:root {
    --primary-bg: #000000;
    --secondary-bg: rgba(10, 10, 15, 0.4);
    --accent-blue: #00e0ff;
    --accent-green: #00ff80;
    --text-light: #e0e0e0;
    --text-dark: #a0a0a0;
    --border-color: rgba(0, 224, 255, 0.4);
    --glass-effect: rgba(255, 255, 255, 0.08);
    --glow-strength: 0 0 30px;
    --transition-speed: 0.7s;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600&display=swap');

body {
    background-color: var(--primary-bg);
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(0, 224, 255, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(0, 255, 128, 0.2) 0%, transparent 35%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    touch-action: manipulation; /* Improves touch responsiveness */
    -webkit-tap-highlight-color: transparent; /* Removes tap highlight on mobile */
    position: relative;
}

#threejs-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    margin: 0.5rem 0;
    word-wrap: break-word;
    color: var(--accent-blue);
    text-shadow: var(--glow-strength) var(--accent-blue);
}

h1 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(0, 224, 255, 0.9);
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-green);
    text-shadow: var(--glow-strength) var(--accent-green);
    position: relative;
    padding-bottom: 0.6rem;
    margin-bottom: 2.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 50%;
    transition: width 0.7s ease, transform 0.7s ease;
}

.content-section.is-visible h2::after {
    width: 160px;
}

p, li {
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--text-light);
}

ul {
    padding-left: 2rem;
}

li {
    margin-bottom: 1rem;
    position: relative;
}

li::before {
    content: '»';
    position: absolute;
    left: -1.8rem;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.3em;
}

strong {
    color: var(--accent-blue);
    text-shadow: 0 0 12px rgba(0, 224, 255, 0.7);
}

.main-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 4rem 0;
    box-sizing: border-box;
}

.content-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    text-align: center;
}

.content-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 5rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 40px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid var(--border-color);
    box-shadow: 0 0 50px rgba(0, 224, 255, 0.3);
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.intro-card, .glass-panel, .event-card {
    background: var(--secondary-bg);
    border-radius: 35px;
    padding: 3.5rem;
    margin-bottom: 3rem;
    border: 3px solid var(--border-color);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 224, 255, 0.5);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

.intro-card:hover, .glass-panel:hover, .event-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 1), 0 0 60px var(--accent-blue);
}

.intro-text {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
}

.btn-cover-group {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.btn-cover {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
    color: white;
    border: none;
    padding: 1.4rem 3.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 0 40px rgba(0, 224, 255, 0.8), 0 0 60px rgba(0, 255, 128, 0.8);
    transition: all 0.6s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    width: 100%; /* Full width on mobile */
    max-width: 300px; /* Limit width on larger mobile */
}

.btn-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.6s ease;
    z-index: -1;
    transform: skewX(-30deg);
}

.btn-cover:hover::before {
    left: 120%;
}

.btn-cover:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 0 60px var(--accent-blue), 0 0 90px var(--accent-green);
}

.btn {
    background: var(--secondary-bg);
    color: var(--accent-blue);
    border: 3px solid var(--accent-blue);
    padding: 1.1rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    min-width: 55px;
    min-height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn:hover,
.btn:focus {
    background: rgba(0, 224, 255, 0.25);
    box-shadow: 0 0 30px var(--accent-blue);
    transform: translateY(-7px) scale(1.04);
    outline: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(
        to bottom right,
        transparent 35%,
        rgba(0, 224, 255, 0.4) 50%,
        transparent 65%
    );
    transform: rotate(50deg);
    transition: all 0.7s ease;
}

.btn:hover::before,
.btn:focus::before {
    left: 120%;
}

.btn-secondary {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.6);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(0, 255, 128, 0.25);
    box-shadow: 0 0 30px var(--accent-green);
}

.button-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    margin-top: 3rem;
    width: 100%;
}

footer {
    text-align: center;
    padding: 2.5rem;
    margin-top: 8rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 3px solid var(--border-color);
    font-size: 1.05rem;
    color: var(--text-dark);
    border-radius: 40px 40px 0 0;
}

.footer-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.4s ease;
}

.footer-link:hover,
.footer-link:focus {
    text-shadow: 0 0 25px var(--accent-blue);
    outline: none;
    color: var(--text-light);
}

.menu-toggle {
    display: flex;
    position: fixed;
    top: 1.8rem;
    right: 1.8rem;
    width: 60px;
    height: 60px;
    background: var(--secondary-bg);
    border: 3px solid var(--accent-blue);
    border-radius: 25px;
    z-index: 1000;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 9px;
    padding: 7px;
    transition: all 0.5s ease;
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.menu-toggle span {
    display: block;
    width: 85%;
    height: 5px;
    background: var(--accent-blue);
    border-radius: 4px;
    transition: all 0.5s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
    background: var(--accent-green);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
    background: var(--accent-green);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 450px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    border-left: 3px solid var(--accent-blue);
    z-index: 999;
    transition: right 0.5s ease-in-out;
    padding: 7rem 2.5rem 2.5rem;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

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

.mobile-nav .button-group {
    flex-direction: column;
    margin-top: 3.5rem;
    width: 100%;
}

.mobile-nav .btn {
    width: 100%;
    margin-bottom: 1.2rem;
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.team-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2.5rem;
}

.team-list li {
    background: rgba(0, 0, 0, 0.6);
    padding: 2.5rem;
    border-radius: 30px;
    border-left: 8px solid var(--accent-blue);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack image and info on mobile */
    align-items: center;
    gap: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    text-align: center; /* Center text for stacked layout */
}

.team-list li:hover,
.team-list li:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 40px var(--accent-green);
    border-left-color: var(--accent-green);
}

.team-member-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--accent-green);
    flex-shrink: 0;
    background-color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 0 25px rgba(0, 255, 128, 0.8);
}

.team-member-info {
    flex: 1;
    text-align: center; /* Center text for stacked layout */
}

.team-member-info strong {
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.6);
}

.team-member-info span {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.member-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.feature-list, .tech-list {
    list-style: none;
    padding: 0;
}

.feature-item, .tech-list li {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 8px solid var(--accent-blue);
    transition: all 0.5s ease;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    text-align: left;
}

.feature-item:hover, .tech-list li:hover {
    border-left-color: var(--accent-green);
    transform: translateX(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 224, 255, 0.5);
}

.feature-item strong {
    color: var(--accent-blue);
    text-shadow: 0 0 12px rgba(0, 224, 255, 0.5);
}

.fair-details p {
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    color: var(--text-light);
}
.fair-details strong {
    color: var(--accent-green);
}

.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.event-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border: 3px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.event-card:hover,
.event-card:focus-within {
    transform: translateY(-12px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 40px var(--accent-blue);
    border-color: var(--accent-green);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 30px 30px 0 0;
}

.event-card h3 {
    color: var(--accent-blue);
    margin-top: 1.2rem;
    font-size: 1.6rem;
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.7);
}

.event-card p {
    margin-bottom: 0;
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--text-light);
}

.event-year {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 0 12px rgba(0, 255, 128, 0.6);
}

.slideshow-container {
    position: relative;
    width: 100%;
    margin: 3rem auto;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    border: 3px solid var(--border-color);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
}

.slide {
    display: none;
    width: 100%;
    text-align: center;
    padding: 30px 0;
    box-sizing: border-box;
}

.slide.active {
    display: block;
    animation: fadeInScale 1.2s ease forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.slide img,
.slide video {
    max-width: 95%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 25px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    border: 4px solid rgba(0, 224, 255, 0.5);
}

.caption {
    padding: 25px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px rgba(0, 224, 255, 0.8);
    margin-top: 1.5rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem auto;
    width: 100%;
    flex-wrap: wrap;
}

.btn-slideshow {
    flex: 1 1 auto;
    max-width: 200px;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
}

.thumbnail-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    margin: 3rem auto;
    width: 100%;
    padding: 25px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 25px;
    border: 3px solid var(--border-color);
    overflow-x: auto; /* Enable horizontal scrolling for thumbnails */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox scrollbar */
    scrollbar-color: var(--accent-blue) transparent; /* Firefox scrollbar color */
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.4);
}

.thumbnail-container::-webkit-scrollbar {
    height: 14px;
}
.thumbnail-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 14px;
}
.thumbnail-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
    border-radius: 14px;
    border: 4px solid var(--secondary-bg);
}

.thumbnail {
    width: 110px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 5px solid transparent;
    border-radius: 15px;
    transition: all 0.5s ease;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.thumbnail:hover,
.thumbnail:focus {
    border-color: var(--accent-green);
    transform: scale(1.12);
    outline: none;
    box-shadow: 0 0 30px rgba(0, 255, 128, 0.9);
}

.thumbnail.active {
    border-color: var(--accent-blue);
    box-shadow: 0 0 35px rgba(0, 224, 255, 1);
    transform: scale(1.1);
}

/* --- Mobile Specific Styles (max-width: 767px) --- */
@media (max-width: 767px) {
    h1 {
        font-size: 2.8rem; /* Smaller font size for mobile */
    }
    h2 {
        font-size: 2rem; /* Smaller font size for mobile */
    }
    p, li {
        font-size: 1rem; /* Smaller base font size */
    }
    .main-content-wrapper {
        padding: 2rem 0; /* Reduced padding */
    }
    .content-section {
        margin: 4rem auto; /* Reduced margin */
        padding: 1.5rem; /* Reduced padding */
    }
    .section-header {
        margin-bottom: 3rem; /* Reduced margin */
        padding: 1.5rem; /* Reduced padding */
        border-radius: 25px; /* Slightly less rounded */
    }
    .subtitle {
        font-size: 1.1rem; /* Smaller subtitle */
    }
    .intro-card, .glass-panel, .event-card {
        padding: 2.5rem; /* Reduced padding */
        margin-bottom: 2rem; /* Reduced margin */
        border-radius: 30px; /* Slightly less rounded */
    }
    .intro-text {
        font-size: 1.05rem; /* Smaller intro text */
    }
    .btn-cover-group {
        gap: 1.5rem; /* Reduced gap */
        flex-direction: column; /* Ensure column layout on mobile */
    }
    .btn-cover {
        padding: 1rem 2.5rem; /* Smaller padding */
        font-size: 1.1rem; /* Smaller font */
        letter-spacing: 1.5px; /* Reduced letter spacing */
        max-width: 280px; /* Constrain width */
    }
    .btn {
        padding: 0.8rem 1.5rem; /* Smaller padding */
        font-size: 1rem; /* Smaller font */
        min-width: 48px; /* Ensure sufficient touch target */
        min-height: 48px; /* Ensure sufficient touch target */
    }
    .menu-toggle {
        width: 50px; /* Smaller toggle */
        height: 50px;
        top: 1rem;
        right: 1rem;
        border-radius: 20px;
        gap: 7px;
    }
    .menu-toggle span {
        height: 4px;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    .mobile-nav {
        width: 80%; /* Slightly narrower mobile nav */
        padding: 6rem 1.5rem 1.5rem; /* Adjusted padding */
    }
    .team-list li {
        padding: 1.8rem; /* Reduced padding */
        gap: 1rem; /* Reduced gap */
        flex-direction: column; /* Stack image and info */
        text-align: center;
    }
    .team-member-img {
        width: 80px; /* Smaller image */
        height: 80px;
        border: 4px solid var(--accent-green); /* Thinner border */
    }
    .team-member-info strong {
        font-size: 1.2rem; /* Smaller font */
    }
    .member-description {
        font-size: 0.9rem; /* Smaller description */
    }
    .feature-item, .tech-list li {
        padding: 1.5rem; /* Reduced padding */
        border-left-width: 6px; /* Thinner border */
    }
    .event-card {
        padding: 2.5rem; /* Reduced padding */
    }
    .event-card h3 {
        font-size: 1.4rem; /* Smaller font */
    }
    .slideshow-container {
        min-height: 300px; /* Shorter slideshow */
        margin: 2rem auto; /* Reduced margin */
        border-radius: 30px; /* Slightly less rounded */
    }
    .slide img, .slide video {
        max-height: 50vh; /* Shorter max height */
        border-radius: 20px; /* Slightly less rounded */
        border-width: 3px; /* Thinner border */
    }
    .caption {
        font-size: 1.1rem; /* Smaller caption */
        padding: 15px; /* Reduced padding */
    }
    .controls {
        gap: 1.5rem; /* Reduced gap */
        margin: 2rem auto; /* Reduced margin */
    }
    .btn-slideshow {
        padding: 1rem 1.5rem; /* Smaller padding */
        font-size: 1rem; /* Smaller font */
        max-width: 160px; /* Constrain width */
    }
    .thumbnail-container {
        padding: 15px; /* Reduced padding */
        gap: 12px; /* Reduced gap */
        border-radius: 20px; /* Slightly less rounded */
        border-width: 2px; /* Thinner border */
    }
    .thumbnail {
        width: 90px; /* Smaller thumbnail */
        height: 70px;
        border-width: 3px; /* Thinner border */
        border-radius: 10px; /* Slightly less rounded */
    }
    footer {
        padding: 1.5rem; /* Reduced padding */
        margin-top: 4rem; /* Reduced margin */
        font-size: 0.95rem; /* Smaller font */
        border-radius: 25px 25px 0 0; /* Slightly less rounded */
    }
}

/* --- Tablet/Medium Screens (min-width: 768px) --- */
@media (min-width: 768px) {
    h1 {
        font-size: 4.5rem;
    }
    h2 {
        font-size: 3rem;
    }
    .content-section {
        margin: 10rem auto;
        padding: 3rem;
    }
    .section-header {
        padding: 3rem;
    }
    .intro-card, .glass-panel, .event-card {
        padding: 4.5rem;
    }
    .btn-cover-group {
        flex-direction: row; /* Row layout for larger screens */
        flex-wrap: wrap;
        max-width: 800px;
    }
    .btn-cover {
        width: auto; /* Auto width when in row layout */
        max-width: none; /* Remove max-width constraint */
    }
    .team-list {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Two columns for team members */
    }
    .team-list li {
        flex-direction: row; /* Row layout for image and info */
        text-align: left;
    }
    .team-member-info {
        text-align: left;
    }
    .slideshow-container {
        min-height: 650px;
    }
    .slide img, .slide video {
        max-height: 80vh;
    }
    .menu-toggle {
        display: none; /* Hide menu toggle on desktop */
    }
    .mobile-nav {
        display: none; /* Hide mobile nav on desktop */
    }
    .menu-backdrop {
        display: none; /* Hide backdrop on desktop */
    }
}

/* --- Desktop Screens (min-width: 1024px) --- */
@media (min-width: 1024px) {
    h1 {
        font-size: 5.5rem;
    }
    h2 {
        font-size: 3.5rem;
    }
    .btn-cover-group {
        max-width: 1000px;
    }
    .team-list {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
    .slideshow-container {
        min-height: 750px;
    }
    .slide img, .slide video {
        max-height: 85vh;
    }
}

/* --- Large Desktop Screens (min-width: 1200px) --- */
@media (min-width: 1200px) {
    h1 {
        font-size: 6.5rem;
    }
    h2 {
        font-size: 3.8rem;
    }
    .content-section {
        max-width: 1400px; /* Even wider sections */
    }
}

/* --- Landscape Orientation for Mobile Devices (max-height: 600px and max-width: 991px) --- */
@media (orientation: landscape) and (max-width: 991px) {
    .main-content-wrapper {
        padding: 1rem 0;
    }
    .content-section {
        margin: 2rem auto;
        padding: 1rem;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .intro-card, .glass-panel, .event-card {
        padding: 1.5rem;
    }
    .intro-text, p, li {
        font-size: 0.9rem;
    }
    .btn-cover {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    .menu-toggle {
        top: 0.8rem;
        right: 0.8rem;
        width: 40px;
        height: 40px;
        gap: 4px;
        border-radius: 10px;
    }
    .menu-toggle span {
        height: 2px;
    }
    .mobile-nav {
        padding-top: 4rem;
    }
    .team-member-img {
        width: 60px;
        height: 60px;
    }
    .team-member-info strong {
        font-size: 1rem;
    }
    .member-description {
        font-size: 0.8rem;
    }
    .event-card h3 {
        font-size: 1.2rem;
    }
    .event-year {
        font-size: 0.8rem;
    }
    .slideshow-container {
        min-height: 250px;
    }
    .slide img, .slide video {
        max-height: 45vh;
    }
    .caption {
        font-size: 0.9rem;
    }
    .thumbnail {
        width: 70px;
        height: 50px;
    }
    .team-list li {
        flex-direction: row; 
        text-align: left;
    }
    .team-member-info {
        text-align: left;
    }
}
