/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Poppins:wght@300;400;500;600;700&display=swap");

/* CSS Variables */
:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #00f2fe;
    --dark: #0a0a1f;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #00d4aa;
    --warning: #ffc107;
    --danger: #dc3545;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --glow: 0 0 15px rgba(106, 17, 203, 0.5);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: linear-gradient(
        135deg,
        var(--dark) 0%,
        #1a1a2e 50%,
        #16213e 100%
    );
    overflow-x: hidden;
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 380px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 30px;
    font-family: "Orbitron", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--dark);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 31, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 31, 0.85);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    transition: var(--transition);
}

header.scrolled .navbar {
    padding: 5px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logo{
    height: 55px;
    border: white solid;
    border-radius: 50%;
}

.logo-icon {
    height: 50px;
    font-size: 2rem;
    color: var(--accent);
}

.logo-text {
    font-family: "Orbitron", sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 20% 80%,
            rgba(106, 17, 203, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 117, 252, 0.2) 0%,
            transparent 50%
        );
    z-index: -1;
}

.hero-content {
    margin-top: 80px;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 span{
    color:rgb(204, 40, 40);
}

.hero #r{
    color: rgb(204, 40, 40);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    position: relative;
    left: -20px
}
.hero h2{
    font-size:2.3rem;
    animation: fadeInUp 1s ease 0.2s both;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image {
    position: absolute;
    right: 30px;
    top: 270px;
    transform: translateY(-50%);
    width: 60%;
    opacity: 0.8;
    z-index: 1;
}

/* About Section */
.about {
    background: rgba(10, 10, 31, 0.7);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--light);
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image #au{
    height: 400px;
    opacity:0.8;
}
.about-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.2;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.role{
    color: #ffc107;
}
/* Events Section */
.events {
    position: relative;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-content {
    padding: 20px;
}

.event-date {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.event-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light);
}

.event-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Teacher section */
#teacher{
    padding: 80px 0;
    background: rgba(10, 10, 31, 0.7);
}

#teacher #h{
    font-size: 50px;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 40px;
    color: var(--accent);
    font-family: "Orbitron", sans-serif;
    position: relative;
    right: -20px;
}

.tea {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#teacher .member-image {
    flex-shrink: 0;
    height: 200px;
    width: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    transition: var(--transition);
    position: relative;
}

#teacher .member-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.6);
}

#teacher .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#teacher .member-info {
    flex: 1;
    text-align: left;
}

#teacher .member-role {
    font-size: 23px;
    color: var(--accent);
    margin-bottom: 20px;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    /* text-decoration: solid underline; */
}

#teacher #tp {
    opacity: 0.8;
}

#teacher .member-info p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}


/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    #teacher #h {
        font-size: 45px;
    }
    
    .tea {
        gap: 40px;
        max-width: 1000px;
    }
    
    #teacher .member-image {
        height: 180px;
        width: 180px;
    }
    
    #teacher .member-role {
        font-size: 21px;
    }
    
    #teacher .member-info p {
        font-size: 16px;
    }
}

/* iPad Pro (1024px and below) */
@media (max-width: 1024px) {
    #teacher #h {
        font-size: 40px;
    }
    
    .tea {
        gap: 35px;
        max-width: 900px;
    }
    
    #teacher .member-image {
        height: 170px;
        width: 170px;
    }
    
    #teacher .member-role {
        font-size: 20px;
    }
    
    #teacher .member-info p {
        font-size: 15px;
    }
}

/* iPad Air & Mini (820px and below) */
@media (max-width: 820px) {
    #teacher {
        padding: 60px 0;
    }
    
    #teacher #h {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .tea {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 30px;
    }
    
    #teacher .member-image {
        height: 160px;
        width: 160px;
        margin: 0 auto;
    }
    
    #teacher .member-info {
        text-align: center;
    }
    
    #teacher .member-role {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    #teacher .member-info p {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* Medium devices (tablets, less than 768px) */
@media (max-width: 767.98px) {
    #teacher {
        padding: 50px 0;
    }
    
    #teacher #h {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .tea {
        gap: 25px;
        padding: 0 25px;
    }
    
    #teacher .member-image {
        height: 150px;
        width: 150px;
    }
    
    #teacher .member-role {
        font-size: 20px;
    }
    
    #teacher .member-info p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Small devices (landscape phones, less than 576px) */
@media (max-width: 575.98px) {
    #teacher {
        padding: 40px 0;
    }
    
    #teacher #h {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .tea {
        gap: 20px;
        padding: 0 20px;
    }
    
    #teacher .member-image {
        height: 140px;
        width: 140px;
        border-width: 3px;
    }
    
    #teacher .member-role {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    #teacher .member-info p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Extra small devices (portrait phones, less than 400px) */
@media (max-width: 399.98px) {
    #teacher {
        padding: 30px 0;
    }
    
    #teacher #h {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .tea {
        gap: 15px;
        padding: 0 15px;
    }
    
    #teacher .member-image {
        height: 130px;
        width: 130px;
    }
    
    #teacher .member-role {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    #teacher .member-info p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Very small devices (less than 350px) */
@media (max-width: 349.98px) {
    #teacher #h {
        font-size: 22px;
    }
    
    #teacher .member-image {
        height: 120px;
        width: 120px;
    }
    
    #teacher .member-role {
        font-size: 15px;
    }
    
    #teacher .member-info p {
        font-size: 12px;
    }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    #teacher {
        padding: 40px 0;
    }
    
    #teacher #h {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .tea {
        flex-direction: row;
        gap: 25px;
    }
    
    #teacher .member-image {
        height: 120px;
        width: 120px;
    }
    
    #teacher .member-info p {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #teacher .member-image {
        border-width: 3px;
    }
}

/* Print styles for teacher section */
@media print {
    #teacher {
        background: white;
        padding: 40px 0;
    }
    
    #teacher #h {
        color: black;
    }
    
    #teacher .member-role {
        color: #333;
    }
    
    #teacher .member-info p {
        color: #666;
    }
    
    #teacher .member-image {
        border-color: #333;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    #teacher .member-image:hover {
        transform: none;
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #teacher {
        background: rgba(5, 5, 15, 0.8);
    }
}

/* Ensure circular image on all devices */
#teacher .member-image {
    border-radius: 50% !important;
    overflow: hidden !important;
}

#teacher .member-image img {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Team Section */

.team {
    background: rgba(10, 10, 31, 0.7);
    position: relative;
}

.team-container {
    position: relative;
    padding: 0 40px;
}

.scrollable-team {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: #6a11cb #0a0a1f;
}

.scrollable-team::-webkit-scrollbar {
    height: 8px;
}

.scrollable-team::-webkit-scrollbar-track {
    background: #0a0a1f;
    border-radius: 10px;
}

.scrollable-team::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border-radius: 10px;
}

.scrollable-team::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right, #7a56af, #3a85fc);
}

.team-member {
    flex: 0 0 auto;
    width: 280px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 380px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.4);
    border-color: rgba(0, 242, 254, 0.3);
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #00f2fe;
    position: relative;
}

.member-image::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #6a11cb, #2575fc, #00f2fe);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-image::before {
    opacity: 1;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #f8f9fa;
    font-family: "Orbitron", sans-serif;
}

.member-role {
    color: #00f2fe;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
}

.member-role::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00f2fe;
    transition: width 0.3s ease;
}

.team-member:hover .member-role::after {
    width: 100%;
}

.team-member p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #f8f9fa;
}

.member-social a:hover {
    background: #00f2fe;
    color: #0a0a1f;
    transform: translateY(-3px);
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(106, 17, 203, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scroll-btn:hover {
    background: rgba(106, 17, 203, 1);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light);
}

.project-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tech-tag {
    background: rgba(106, 17, 203, 0.2);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    background: rgba(10, 10, 31, 0.7);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-5px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--light);
    font-family: "Poppins", sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: #050515;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-col p {
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

#dev{
    opacity: 0.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}


/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        max-width: 550px;
    }
}

/* iPad Pro (1024px and below) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-image {
        width: 50%;
        right: 20px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
    }
}

/* iPad Air & Mini (820px and below) */
@media (max-width: 820px) {
    .hero {
        min-height: 90vh;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-top: 100px;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        left: 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 80%;
        max-width: 500px;
        margin: 0 auto;
        opacity: 0.9;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    
    .feature-icon {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .team-container {
        padding: 0 30px;
    }
    
    .team-member {
        width: 260px;
        height: 360px;
    }
    
    .member-image {
        width: 110px;
        height: 110px;
    }
}

/* Medium devices (tablets, less than 768px) */
@media (max-width: 767.98px) {
    /* Navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 31, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        transition: all 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 15px;
        font-size: 1.1rem;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(106, 17, 203, 0.2);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Hero Section - Mobile specific */
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        margin-top: 40px;
        margin-bottom: 30px;
        order: 1;
    }
    
    .hero-image {
        order: 2;
        width: 90%;
        max-width: 400px;
        margin: 20px auto 0;
        opacity: 0.9;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* About Section - Mobile */
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
    
    /* Events & Projects */
    .events-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card,
    .project-card {
        margin-bottom: 20px;
    }
    
    /* Team Section - Mobile */
    .team-container {
        padding: 0 20px;
    }
    
    .scroll-btn {
        display: none;
    }
    
    .scrollable-team {
        padding: 10px 5px;
        gap: 15px;
    }
    
    .team-member {
        width: 280px;
        height: 380px;
        padding: 25px 20px;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
    
    .member-image img {
        border-radius: 50%;
    }
    
    /* Ensure circular images on all screens */
    .member-image {
        border-radius: 50%;
        overflow: hidden;
    }
    
    .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
    
    .footer-links a:hover {
        padding-left: 0;
        transform: translateY(-2px);
    }
}

/* Small devices (landscape phones, less than 576px) */
@media (max-width: 575.98px) {
    .logo-text{
        font-size: 1.1rem;
    }
    #logo{
        height: 50px;
        border: white solid;
        border-radius: 50%;
}
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h2::after {
        width: 200px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.2rem;
    }
    

    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-image {
        width: 95%;
        max-width: 350px;
    }
    
    /* About Section */
    .about-image #au {
        height: 250px;
    }
    
    /* Team Section */
    .team-member {
        width: 260px;
        height: 360px;
    }
    
    .member-image {
        width: 100px;
        height: 100px;
    }
    
    .member-info h3 {
        font-size: 1.1rem;
    }
    
    .member-role {
        font-size: 0.9rem;
    }
    .member-info p{
        font-size: 13px;
    }
    
    .member-social a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 20px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    /* Footer */
    .footer-content {
        gap: 25px;
    }
    
    .copyright p {
        font-size: 0.75rem;
    }
}

/* Very small devices (less than 400px) */
@media (max-width: 399.98px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero span {
        font-size: 2.7rem;
    }

    .hero h2 {
        font-size: 1.rem;
    }
    .hero-image{
        height: 390px;
        width: 250px;
        position: relative;
        bottom: 10px;
    }
    .team{
        position: relative;
        top: -40px
    }
    .about{
        position: relative;
        top:-65px;
    }
    .team-member {
        width: 240px;
        height: 340px;
        padding: 20px 15px;
    }
    
    .member-image {
        width: 90px;
        height: 90px;
    }
    
    .member-info h3 {
        font-size: 1rem;
    }
    
    .member-role {
        font-size: 0.85rem;
    }
    
    .team-member p {
        font-size: 0.85rem;
    }

    .copyright p {
        font-size: 0.6em;
    }
    .contact-form{
        display: none;
    }
    #contact .social-links{
        display: none;
    }
    .social-links{
        justify-self: center;
    }
    /* Ensure circular images */
    .member-image,
    .member-image img {
        border-radius: 50%;
    }
}

/* iPad Mini specific (768px and below in portrait) */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
    .hero {
        min-height: 80vh;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 70%;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .feature {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .feature-icon {
        margin-bottom: 0;
    }
}

/* iPad Air specific (820px and below in landscape) */
@media only screen and (min-device-width: 820px) and (max-device-width: 1180px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
    }
    
    .hero-content {
        max-width: 50%;
    }
    
    .hero-image {
        width: 45%;
        right: 20px;
    }
}


/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .event-card:hover,
    .project-card:hover,
    .team-member:hover {
        transform: none;
    }
    
    .nav-links a:hover::after {
        width: 0;
    }
    
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Add any high-DPI specific styles here */
}

/* Print styles */
@media print {
    .navbar,
    .hero-image,
    .scroll-btn,
    .social-links,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Ensure circular member images on all devices */
.member-image {
    border-radius: 50% !important;
    overflow: hidden !important;
}

.member-image img {
    border-radius: 50% !important;
    object-fit: cover !important;
}
