@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #dc2626;
    --accent-color: #ffffff;
    --text-light: #ffffff;
    --text-dark: #000000;
    --card-bg: #000000;
    --card-hover: #1a1a1a;
    --transition-speed: 0.3s;
    
    /* Enhanced Color Palette - Black, Red, White Theme */
    --success-color: #dc2626;
    --success-dark: #b91c1c;
    --success-light: #fee2e2;
    --info-color: #000000;
    --info-dark: #1f2937;
    --info-light: #f3f4f6;
    --warning-color: #dc2626;
    --warning-dark: #b91c1c;
    --warning-light: #fee2e2;
    --purple-color: #dc2626;
    --purple-dark: #b91c1c;
    --purple-light: #fee2e2;
    --teal-color: #dc2626;
    --teal-dark: #b91c1c;
    --teal-light: #fee2e2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px; /* Space for footer */
}

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.logo a:hover {
    color: var(--accent-color);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Hide mobile navigation elements by default */
.mobile-nav-toggle,
.mobile-nav-menu {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Page Title */
.page-title {
    text-align: center;
    padding: 140px 20px 60px;
}

.page-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.page-title p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Wrapper and Team Styles */
.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.team {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.committee-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 320px;
    perspective: 1000px;
}

.team_member {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    transform-style: preserve-3d;
    min-height: 350px;
}

.team_member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.team_member:hover::before {
    transform: scaleX(1);
}

/* Color-coded committee styling */
/* UNSCH - Deep Red */
.committee-link:nth-child(1) .team_member::before {
    background: linear-gradient(90deg, #8B0000, #B22222);
}
.committee-link:nth-child(1) .team_member:hover h3 {
    color: #DC143C;
}
.committee-link:nth-child(1) .team_member .committee-action span {
    color: #DC143C;
}
.committee-link:nth-child(1) .team_img {
    background: url('UNSCBACKGROUND.jpg') center/cover;
}

/* UNCSW - Purple */
.committee-link:nth-child(2) .team_member::before {
    background: linear-gradient(90deg, #4B0082, #663399);
}
.committee-link:nth-child(2) .team_member:hover h3 {
    color: #9370DB;
}
.committee-link:nth-child(2) .team_member .committee-action span {
    color: #9370DB;
}
.committee-link:nth-child(2) .team_img {
    background: url('W 1 1.png') center/cover;
}

/* ECOSOC - Green */
.committee-link:nth-child(3) .team_member::before {
    background: linear-gradient(90deg, #065F46, #047857);
}
.committee-link:nth-child(3) .team_member:hover h3 {
    color: #10B981;
}
.committee-link:nth-child(3) .team_member .committee-action span {
    color: #10B981;
}
.committee-link:nth-child(3) .team_img {
    background: url('escosbg.jpg') center/cover;
}

/* Lok Sabha - Orange */
.committee-link:nth-child(4) .team_member::before {
    background: linear-gradient(90deg, #EA580C, #F97316);
}
.committee-link:nth-child(4) .team_member:hover h3 {
    color: #FB923C;
}
.committee-link:nth-child(4) .team_member .committee-action span {
    color: #FB923C;
}
.committee-link:nth-child(4) .team_img {
    background: url('loksabhabg.png') center/cover;
}

/* Mahabharat - Golden */
.committee-link:nth-child(5) .team_member::before {
    background: linear-gradient(90deg, #B45309, #D97706);
}
.committee-link:nth-child(5) .team_member:hover h3 {
    color: #FBBF24;
}
.committee-link:nth-child(5) .team_member .committee-action span {
    color: #FBBF24;
}
.committee-link:nth-child(5) .team_img {
    background: url('mahabharatbg.jpg') center/cover;
}

/* AIPPM - Teal */
.committee-link:nth-child(6) .team_member::before {
    background: linear-gradient(90deg, #0F766E, #14B8A6);
}
.committee-link:nth-child(6) .team_member:hover h3 {
    color: #2DD4BF;
}
.committee-link:nth-child(6) .team_member .committee-action span {
    color: #2DD4BF;
}
.committee-link:nth-child(6) .team_img {
    background: url('got.png') center/cover;
}

/* IPC - Purple */
.committee-link:nth-child(7) .team_member::before {
    background: linear-gradient(90deg, #7C3AED, #A855F7);
}
.committee-link:nth-child(7) .team_member:hover h3 {
    color: #C084FC;
}
.committee-link:nth-child(7) .team_member .committee-action span {
    color: #C084FC;
}
.committee-link:nth-child(7) .team_img {
    background: url('ipcbg.jpg') center/cover;
}

.team_member.hover, .team_member:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--card-hover);
}

.team_img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin: 0 auto 25px;
    position: relative;
    background: var(--primary-color);
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.team_member:hover .team_img {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.team_img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    opacity: 0.9;
    z-index: 1;
}

.team_img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.team_img img {
    display: none;
}

.team_member h3 {
    color: var(--text-light);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: color var(--transition-speed);
}

.team_member:hover h3 {
    color: var(--accent-color);
}

.committee-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    transition: color var(--transition-speed);
}

.team_member:hover .committee-description {
    color: rgba(255, 255, 255, 0.9);
}

.committee-action {
    margin-top: 20px;
    display: inline-block;
    position: relative;
}

.committee-action span {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 500;
    transition: transform var(--transition-speed);
}

.committee-action i {
    margin-left: 8px;
    transition: transform var(--transition-speed);
}

.team_member:hover .committee-action span {
    transform: translateX(5px);
}

.team_member:hover .committee-action i {
    transform: translateX(5px);
}

/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Animation Delays */
.animate__delay-1s {
    animation-delay: 0.2s;
}

.animate__delay-2s {
    animation-delay: 0.4s;
}

.animate__delay-3s {
    animation-delay: 0.6s;
}

.animate__delay-4s {
    animation-delay: 0.8s;
}

.animate__delay-5s {
    animation-delay: 1.0s;
}

.animate__delay-6s {
    animation-delay: 1.2s;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .page-title {
        padding: 120px 20px 40px;
    }
    
    .page-title h1 {
        font-size: 36px;
    }
    
    .committee-link {
        width: 100%;
        max-width: 320px;
    }
    
    body {
        padding-bottom: 100px; /* More space for footer on mobile */
    }
}

@media screen and (max-width: 480px) {
    .page-title h1 {
        font-size: 28px;
    }
    
    .page-title p {
        font-size: 16px;
    }
    
    .team_member {
        padding: 25px 15px;
        min-height: 320px;
    }
    
    .team_img {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .team_member h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .committee-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    /* Adjust header for mobile */
    .header-container {
        padding: 10px;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    nav ul li {
        margin: 2px 5px;
    }
    
    nav ul li a {
        font-size: 14px;
        padding: 3px 0;
    }
    
    /* Adjust animation delays for mobile to speed up experience */
    .animate__delay-1s {
        animation-delay: 0.1s;
    }
    
    .animate__delay-2s {
        animation-delay: 0.2s;
    }
    
    .animate__delay-3s {
        animation-delay: 0.3s;
    }
    
    .animate__delay-4s {
        animation-delay: 0.4s;
    }
    
    /* Footer adjustments for mobile */
    footer {
        padding: 15px 0;
    }
    
    .footer-content p {
        font-size: 12px;
    }
}

/* Small phones */
@media screen and (max-width: 360px) {
    .page-title {
        padding: 100px 15px 30px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .team_member {
        min-height: 300px;
        padding: 20px 10px;
    }
    
    .team_img {
        width: 80px;
        height: 80px;
    }
    
    .team_member h3 {
        font-size: 16px;
    }
    
    .committee-description {
        font-size: 13px;
    }
    
    .committee-action span {
        font-size: 14px;
    }
    
    nav ul li a {
        font-size: 13px;
    }
    
    /* Make sure the committee cards don't get too small */
    .committee-link {
        width: 90%;
        max-width: 280px;
    }
}

/* Mobile Navigation Styles */
.nav-toggle {
    position: absolute;
    opacity: 0;
    height: 0;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    height: 24px;
    width: 30px;
    position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--text-light);
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle-label span {
    top: 11px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    bottom: -8px;
}

.nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
    background: var(--accent-color);
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    bottom: 0;
    background: var(--accent-color);
}

/* Adjust header for mobile */
@media screen and (max-width: 768px) {
    .nav-toggle-label {
        display: block !important;
        position: fixed;
        right: 2rem;
        top: 2rem;
        cursor: pointer;
        height: 40px;
        width: 40px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 8px;
        padding: 8px;
        z-index: 1001;
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .nav-toggle-label:hover {
        background: rgba(0, 0, 0, 0.9);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        position: absolute;
        height: 4px;
        width: 24px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-toggle-label span {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
    }

    .nav-toggle-label span::before {
        top: -10px;
        transform: translateX(-50%);
    }

    .nav-toggle-label span::after {
        bottom: -10px;
        transform: translateX(-50%);
    }

    .nav-toggle:checked + .nav-toggle-label span {
        background-color: transparent;
    }

    .nav-toggle:checked + .nav-toggle-label span::before {
        top: 0;
        transform: translateX(-50%) rotate(45deg);
        background: #ffffff;
    }

    .nav-toggle:checked + .nav-toggle-label span::after {
        bottom: 0;
        transform: translateX(-50%) rotate(-45deg);
        background: #ffffff;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 1000;
    }
    
    nav.nav-open {
        transform: translateY(0);
        opacity: 1;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        display: flex;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    nav ul li a {
        font-size: 20px;
        padding: 8px 0;
        display: inline-block;
        color: #ffffff;
    }
    
    body.nav-active {
        overflow: hidden;
    }
    
    /* New Mobile Navigation System */
    .mobile-nav-toggle {
        display: flex !important;
        position: fixed;
        right: 2rem;
        top: 2rem;
        cursor: pointer;
        height: 40px;
        width: 40px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 8px;
        padding: 8px;
        z-index: 1001;
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-nav-toggle:hover {
        background: rgba(0, 0, 0, 0.9);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
    }
    
    .mobile-nav-toggle span {
        display: block;
        height: 3px;
        width: 24px;
        background: var(--text-light);
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .mobile-nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .mobile-nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 1000;
    }
    
    .mobile-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-nav-menu ul {
        list-style: none;
        text-align: center;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-nav-menu ul li {
        margin: 20px 0;
    }
    
    .mobile-nav-menu ul li a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 20px;
        font-weight: 500;
        padding: 10px 20px;
        display: block;
        transition: color 0.3s ease;
    }
    
    .mobile-nav-menu ul li a:hover {
        color: var(--accent-color);
    }
}
    .header-container {
        justify-content: space-between;
    }


/* Adjust for smaller screens */
@media screen and (max-width: 480px) {
    nav ul li a {
        font-size: 18px;
    }
    
    .nav-toggle-label {
        width: 24px;
    }
}

/* Small phones */
@media screen and (max-width: 360px) {
    nav ul li {
        margin: 12px 0;
    }
    
    nav ul li a {
        font-size: 16px;
    }
}