:root {
    --primary-color: #000033;
    --accent-color: #4d4dff;
    --text-color: #333333;
    --grid-gap: 1.5rem;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
}

.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary-color);
    margin-top: 0;
    padding-top: 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.math-pattern-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: patternMove 20s linear infinite;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0,0,51,0.8) 0%, 
        rgba(0,0,51,0.9) 50%, 
        rgba(0,0,51,1) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    font-size: 2rem;
    color: rgba(255,255,255,0.1);
    animation: float 6s infinite;
}

.shape:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.shape:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
.shape:nth-child(3) { top: 40%; left: 50%; animation-delay: 4s; }

@keyframes patternMove {
    0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coordinators {
    padding: 4rem 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.5s ease-out, opacity 0.3s ease-out;
}

.grid-container.active {
    height: auto;
    opacity: 1;
}

.profile-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 51, 0.1) 0px 4px 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 51, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: rgba(0, 0, 51, 0.15) 0px 8px 24px;
}

.profile-image {
    height: 280px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.profile-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,51,0.6) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover .profile-image::after {
    opacity: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-image img {
    transform: scale(1.08);
}

.profile-info {
    padding: 1.8rem;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.profile-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.profile-card:hover .profile-info::before {
    width: 80px;
}

.profile-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-info h4 {
    color: var(--accent-color);
    font-size: 1rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
    padding: 0 0.5rem;
    position: relative;
}

.quote::before,
.quote::after {
    content: '"';
    color: var(--accent-color);
    opacity: 0.5;
    font-size: 1.2rem;
}

.role {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year-sections {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.year-container {
    margin-bottom: 2.5rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 51, 0.1) 0px 4px 16px;
    transition: transform 0.3s ease;
}

.year-header {
    background: linear-gradient(135deg, var(--primary-color), #000044);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.year-header:hover {
    background: linear-gradient(135deg, #000044, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 51, 0.15) 0px 8px 24px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.year-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.math-symbol {
    font-size: 2.5rem;
    opacity: 0.8;
    margin-left: auto;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.year-header:hover .math-symbol {
    transform: rotate(360deg);
}

.fas {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.fa-chevron-up {
    transform: rotate(180deg);
}

/* Add subtle pattern overlay */
.year-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%);
    background-size: 10px 10px;
    opacity: 0.1;
    z-index: 1;
}

.math-patterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, var(--primary-color) 25%, transparent 25%),
        linear-gradient(-45deg, var(--primary-color) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.math-symbol {
    font-size: 2rem;
    opacity: 0.7;
    margin-left: auto;
}

.fas {
    transition: transform 0.3s ease;
}

.fa-chevron-up {
    transform: rotate(180deg);
}

.staff-coordinators {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, var(--primary-color) 0%, #000044 100%);
    color: white;
    text-align: center;
}

.staff-heading {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.staff-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--accent-color);
}

.staff-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.staff-card {
    flex: 0 1 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info h3 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
}

.designation {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.message {
    font-style: italic;
    line-height: 1.6;
}

.faculty-section {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    overflow: hidden;
}

.math-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('images/math-pattern.svg'),
        radial-gradient(circle at 30% 20%, rgba(0,0,51,0.02) 0%, transparent 80%);
    opacity: 0.1;
    pointer-events: none;
}

.section-content {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.faculty-heading {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.faculty-intro {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    font-style: italic;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 1rem;
}

@media (min-width: 1400px) {
    .faculty-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.faculty-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 51, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 51, 0.12);
}

.faculty-image {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
}

.faculty-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.08);
}

.faculty-info {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), white);
}

.faculty-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.department {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 51, 0.2);
    z-index: 1000;
}

.scroll-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 51, 0.3);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gallery-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.gallery-heading {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.gallery-intro {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,51,0.1);
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-card.wide {
    grid-column: span 2;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,51,0.9), transparent);
    color: white;
    transform: translateY(100px);
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.event-desc {
    display: block;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.gallery-card:hover .event-desc {
    opacity: 1;
    transform: translateY(0);
}

.club-photos {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.photos-heading {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.photos-intro {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.photo-category {
    margin-bottom: 4rem;
}

.photo-category h3 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.photo-category h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,51,0.1);
    aspect-ratio: 16/9;
}

.photo-card.large {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,51,0.8), transparent);
    color: white;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 25px;
}

.logo-wrapper {
    padding: 8px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 5px 5px 15px #d1d1d1,
                -5px -5px 15px #ffffff;
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 6px 6px 20px #c1c1c1,
                -6px -6px 20px #ffffff;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.header-logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.header-logo:hover {
    filter: brightness(1.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.15);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* Mobile Navigation Styles */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.2s;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 51, 0.1);
        z-index: 999;
        gap: 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 12px;
    }

    .nav-link:hover::after {
        width: 50px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .nav-brand {
        margin-left: 0;
        gap: 10px;
    }

    .logo-wrapper {
        padding: 6px;
    }

    .header-logo {
        width: 60px;
        height: 60px;
    }

    .brand-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .profile-image {
        height: 250px;
    }
    
    .profile-info {
        padding: 1.5rem;
    }

    .staff-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .staff-card {
        flex: 0 1 auto;
    }

    .faculty-section {
        padding: 4rem 1rem;
    }
    
    .faculty-grid {
        gap: 2rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-card.wide {
        grid-column: auto;
    }
    
    .gallery-overlay {
        transform: translateY(0);
    }
    
    .event-desc {
        opacity: 1;
        transform: translateY(0);
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-card {
        aspect-ratio: 3/2;
    }

    .year-header {
        padding: 1.5rem;
    }

    .header-content {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .year-header h2 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .math-symbol {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
    }
}
