/* Import Premium Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Outfit:wght@100..900&display=swap');

/* Visual System Variables */
:root {
    --bg-dark: #0d0d0d;
    --bg-card: rgba(22, 22, 22, 0.75);
    --bg-card-hover: rgba(33, 33, 33, 0.9);
    --border-color: rgba(229, 193, 88, 0.15);
    --border-hover: rgba(229, 193, 88, 0.4);
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --gold: #ffd700;
    --gold-dim: #e5c158;
    --gold-glow: rgba(255, 215, 0, 0.2);
    --blue-accent: #55a4f2;
    --blue-glow: rgba(85, 164, 242, 0.2);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-serif: "EB Garamond", serif;
    --font-sans: "Outfit", sans-serif;
    --container-width: 1200px;
}

/* Reset & Core Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, #1e2536 0%, #0a0c10 70%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Typography styling */
h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gold);
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Helper Components */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gold {
    color: var(--gold-dim);
}

.text-blue {
    color: var(--blue-accent);
}

/* Header & Glassmorphic Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(8, 8, 8, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

header.scrolled .nav-container {
    height: 65px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

header.scrolled .brand-logo img {
    height: 40px;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* Nav Links desktop */
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.25rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.btn-donate {
    background: linear-gradient(135deg, var(--gold-dim) 0%, #b8860b 100%);
    color: #000;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px var(--gold-glow);
    border: none;
    cursor: pointer;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 80px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 65%, rgba(0, 0, 0, 0.5) 100%),
                url('uploads/1/4/1/6/141615389/background-images/1819238958.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13,13,13,0.1) 0%, rgba(13,13,13,0.7) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    text-align: right;
    padding: 2rem;
    margin-right: 5%;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.95), 0 2px 5px rgba(0,0,0,0.9);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--blue-accent);
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.95), 0 2px 5px rgba(0,0,0,0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    border: 1px solid var(--gold-dim);
    color: var(--gold-dim);
    background: transparent;
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(229, 193, 88, 0.1);
    color: var(--gold);
    border-color: var(--gold);
}

/* Quick Access Hub (Floating Grid) */
.quick-hub {
    position: relative;
    z-index: 20;
    margin-top: -60px;
    margin-bottom: 4rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.quick-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.quick-card img {
    height: 70px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.quick-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px var(--gold-glow);
}

.quick-card:hover img {
    transform: scale(1.1);
}

.quick-card span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.quick-card:hover span {
    color: var(--gold);
}

/* Global Section Styling */
section {
    padding: 6rem 0;
    position: relative;
}

section:nth-of-type(even) {
    background: rgba(18, 22, 32, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid & Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Glassmorphic content layout */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* About & Mandate Layouts */
.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    text-align: justify;
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    aspect-ratio: 16/10;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Hazard Badges Grid */
.hazards-box {
    margin-top: 3rem;
}

.hazards-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hazards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.hazard-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.hazard-badge:hover {
    background: rgba(229, 193, 88, 0.08);
    border-color: var(--gold-dim);
    color: var(--gold);
}

/* Tabs & Toggles Component */
.tab-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(22, 22, 22, 0.4);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    align-self: center;
}

.tab-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gold-dim);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(229, 193, 88, 0.25);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Card components styling (Team, projects, etc) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: #111;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px var(--gold-glow);
}

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

.card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.8rem;
}

.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--blue-accent);
}

.card-title {
    font-size: 1.4rem;
    color: var(--gold-dim);
    line-height: 1.3;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.card-link i {
    transition: var(--transition-smooth);
}

.card:hover .card-link i {
    transform: translateX(4px);
}

/* Specific Card Layout for Team Members */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card .card-img-wrapper {
    aspect-ratio: 1/1; /* Square portrait style */
}

/* Projects Showcase Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

/* Facilities styles */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Networking Sponsor Grid */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.sponsor-logo-box {
    background: rgba(22, 22, 22, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.sponsor-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: var(--transition-smooth);
}

.sponsor-logo-box:hover {
    border-color: var(--border-hover);
    background: rgba(255, 215, 0, 0.03);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.sponsor-logo-box:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* Regulations Layout */
.regulations-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
}

.regulations-container::-webkit-scrollbar {
    width: 6px;
}

.regulations-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}

.regulations-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.regulations-container::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dim);
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rule-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--gold-dim);
    padding: 1.2rem;
    border-radius: 0 12px 12px 0;
    transition: var(--transition-smooth);
}

.rule-item:hover {
    background: rgba(255, 215, 0, 0.02);
    border-left-color: var(--gold);
}

.rule-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.rule-details {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Publications */
.pub-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.pub-cover {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pub-cover img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

/* Interactive Details Modal (Wow Factor) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: #141414;
    border: 1px solid var(--border-hover);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: 28px;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.15);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 100;
}

.modal-close:hover {
    background: var(--gold);
    color: #000;
    transform: rotate(90deg);
}

.modal-header-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content-wrap {
    padding: 2.5rem;
}

.modal-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--blue-accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.modal-body {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.modal-body p {
    margin-bottom: 1.2rem;
}

/* Footer Section */
.footer-wrap {
    background: #080808;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-info-item a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--gold-dim);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media screen and (max-width: 768px) {
    /* Hamburger Menu active styles */
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #0d0d0d;
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 30px rgba(0,0,0,0.8);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        justify-content: center;
        text-align: center;
        background-position: 40% center;
    }

    .hero-content {
        text-align: center;
        margin-right: 0;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
    }

    .quick-hub {
        margin-top: -30px;
        margin-bottom: 2rem;
    }

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

    .section-header h2 {
        font-size: 2.2rem;
    }

    .pub-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-box {
        max-height: 95vh;
        border-radius: 20px;
    }

    .modal-header-img {
        height: 200px;
    }

    .modal-content-wrap {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

@media screen and (max-width: 480px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-title {
        font-size: 1.2rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Invert transparent black line illustrations to white for Facilities, Projects, and Publications */
#facilities .card-img-wrapper img,
#projects .card-img-wrapper img,
#publications .pub-cover img {
    filter: invert(1) brightness(1.5) contrast(1.2);
    mix-blend-mode: screen;
    opacity: 0.75;
    transition: var(--transition-smooth);
}

#facilities .card:hover .card-img-wrapper img,
#projects .card:hover .card-img-wrapper img,
#publications .pub-cover:hover img {
    filter: invert(1) brightness(2.2) contrast(1.2);
    opacity: 1;
    transform: scale(1.08);
}




