@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: #1a1a1a;
    --card-hover: #2a2a2a;
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

* {
    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);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Back to Home Button */
.back-to-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.back-btn i {
    font-size: 12px;
}

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.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;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 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 {
    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 {
    width: 100%;
}

/* Committee Hero Section */
.committee-hero {
    min-height: 60vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 100px 20px 60px;
}

.committee-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
}

.committee-logo {
    width: 120px;
    height: 120px;
    max-width: 25vw;
    max-height: 25vw;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.committee-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.committee-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.committee-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.5;
}

/* Theme Colors with Background Images */
.unsch-theme {
    background: linear-gradient(rgba(139, 0, 0, 0.7), rgba(178, 34, 34, 0.7)), url('UNSCBACKGROUND.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.uncsw-theme {
    background: linear-gradient(rgba(75, 0, 130, 0.7), rgba(102, 51, 153, 0.7)), url('W 1 1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.iaea-theme {
    background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(37, 99, 235, 0.7)), url('iaeabg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.ecosoc-theme {
    background: linear-gradient(rgba(6, 95, 70, 0.7), rgba(4, 120, 87, 0.7)), url('escosbg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.loksabha-theme {
    background: linear-gradient(rgba(234, 88, 12, 0.7), rgba(249, 115, 22, 0.7)), url('loksabhabg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.mahabharat-theme {
    background: linear-gradient(rgba(180, 83, 9, 0.7), rgba(217, 119, 6, 0.7)), url('mahabharatbg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.aippm-theme {
    background: linear-gradient(rgba(15, 118, 110, 0.7), rgba(20, 184, 166, 0.7)), url('aippmbg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.ipc-theme {
    background: linear-gradient(rgba(124, 58, 237, 0.7), rgba(168, 85, 247, 0.7)), url('ipcbg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.got-theme {
    background: linear-gradient(rgba(20, 20, 20, 0.8), rgba(40, 25, 10, 0.8)), url('gotbg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: #f4f4f4;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Navigation */
.section-nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    margin: 30px 0;
    padding: 20px;
    position: sticky;
    top: 80px;
    z-index: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.section-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all var(--transition-speed);
    position: relative;
    display: block;
    text-align: center;
    border: 2px solid transparent;
}

.section-nav .nav-link:hover,
.section-nav .nav-link.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.content {
    margin-bottom: 80px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

.section-header h2 i {
    margin-right: 15px;
    color: var(--accent-color);
}

.section-content {
    background: rgba(26, 26, 26, 0.8);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.section-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: var(--text-light);
}

.section-content h4 {
    font-size: 20px;
    font-weight: 500;
    margin: 20px 0 10px 0;
    color: var(--text-light);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-speed);
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Timeline */
.timeline {
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 120px;
    margin-right: 20px;
}

.timeline-content {
    color: rgba(255, 255, 255, 0.9);
}

/* Guide Sections */
.guide-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.guide-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-section h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.download-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-speed);
}

.download-item:hover {
    transform: translateY(-5px);
}

.download-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.download-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.download-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Table Styles */
.matrix-table {
    overflow-x: auto;
    margin: 30px 0;
}

.matrix-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.matrix-table th,
.matrix-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.matrix-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--text-light);
}

.matrix-table td {
    color: rgba(255, 255, 255, 0.9);
}

.matrix-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.matrix-notes {
    margin-top: 20px;
}

.matrix-notes ul {
    list-style: none;
    padding: 0;
}

.matrix-notes li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 20px;
}

.matrix-notes li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Director Profile */
.director-profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

.director-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.director-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-info h3 {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.director-title {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.director-education {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.director-bio p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.director-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.director-contact h4 {
    margin-bottom: 10px;
    color: var(--text-light);
}

.director-contact p {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.director-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Lists */
.section-content ul {
    list-style: none;
    padding: 0;
}

.section-content li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 20px;
}

.section-content li::before {
    content: '▶';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    height: 3px;
    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;
}

.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);
}

.nav-toggle {
    display: none;
}

.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;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    nav {
        display: none;
    }
    
    .nav-toggle-label {
        display: block;
        z-index: 1001;
    }
    
    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;
        gap: 20px;
    }
    
    nav ul li a {
        font-size: 20px;
        padding: 8px 0;
    }
    
    .committee-hero {
        height: 50vh;
    }
    
    .committee-hero h1 {
        font-size: 32px;
    }
    
    .committee-hero p {
        font-size: 18px;
    }
    
    .section-nav {
        margin: 20px 0;
        padding: 15px;
        position: relative;
        background: rgba(26, 26, 26, 0.98);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
        display: block !important;
        transform: none;
        opacity: 1;
    }
    
    .section-nav ul {
        gap: 12px;
        justify-content: center;
        display: flex !important;
        flex-wrap: wrap;
    }
    
    .section-nav .nav-link {
        padding: 10px 18px;
        font-size: 15px;
        font-weight: 600;
        min-width: 80px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        display: block !important;
    }
    
    .section-content {
        padding: 30px 20px;
    }
    
    .director-profile {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .director-image {
        margin: 0 auto;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-sections {
        grid-template-columns: 1fr;
    }
    
    .matrix-table {
        font-size: 14px;
    }
    
    .matrix-table th,
    .matrix-table td {
        padding: 10px;
    }
}

@media screen and (max-width: 768px) {
    .back-to-home {
        top: 15px;
        left: 15px;
    }
    
    .back-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .back-to-home {
        top: 10px;
        left: 10px;
    }
    
    .back-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .committee-hero {
        min-height: 50vh;
        height: auto;
        padding: 80px 15px 40px;
    }
    
    .committee-hero h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .committee-hero p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .committee-logo {
        width: 80px;
        height: 80px;
        max-width: 20vw;
        max-height: 20vw;
        margin-bottom: 20px;
        border-width: 2px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-content {
        padding: 20px 15px;
    }
    
    .section-nav {
        padding: 12px;
        margin: 15px 0;
    }
    
    .section-nav ul {
        gap: 8px;
    }
    
    .section-nav .nav-link {
        padding: 8px 12px;
        font-size: 12px;
        min-width: auto;
    }
    
    .director-image {
        width: 120px;
        height: 120px;
    }
    
    .director-info h3 {
        font-size: 20px;
    }
    
    /* Additional mobile fixes */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 20px 15px;
    }
    
    .download-grid {
        gap: 15px;
    }
    
    .download-item {
        padding: 20px 15px;
    }
    
    .header-container {
        padding: 12px 4%;
    }
    
    .logo a {
        font-size: 20px;
    }
}

/* Extra small screens */
@media screen and (max-width: 360px) {
    .committee-hero {
        padding: 70px 10px 30px;
    }
    
    .committee-hero h1 {
        font-size: 20px;
    }
    
    .committee-hero p {
        font-size: 13px;
    }
    
    .committee-logo {
        width: 70px;
        height: 70px;
        max-width: 18vw;
        max-height: 18vw;
    }
    
    .section-nav .nav-link {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .header-container {
        padding: 10px 3%;
    }
    
    .logo a {
        font-size: 18px;
    }
}
