/* --- Design Tokens & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    --bg-dark: #041656; /* Navy Blue */
    --bg-darker: #020b2e; /* Darker Navy */
    --text-primary: #ffffff;
    --text-secondary: #93a8d8;
    
    --accent-orange: #fc9a22;
    --accent-yellow: #e8ab1a;
    --accent-cyan: #0cb9f3;
    
    --accent-gradient: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow), var(--accent-cyan));
    
    --glass-bg: rgba(4, 22, 86, 0.3);
    --glass-border: rgba(12, 185, 243, 0.2);
    --glass-blur: blur(20px);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    /* High-tech grid and glowing orbs background */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(12, 185, 243, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(252, 154, 34, 0.15) 0%, transparent 40%),
        linear-gradient(to bottom, var(--bg-dark), var(--bg-darker)),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(12, 185, 243, 0.03) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(12, 185, 243, 0.03) 51px);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Hide default cursor only if custom cursor is active (handled via media query for fine pointers) */
@media (pointer: fine) {
    body, a, button, .glass-panel, .gallery-item {
        cursor: none;
    }
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; text-align: center; letter-spacing: 2px; }
h3 { font-size: 1.5rem; letter-spacing: 1px; }

.text-gradient {
    background: var(--accent-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s linear infinite;
    position: relative;
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-cyan);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-orange);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* --- Animations --- */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(12, 185, 243, 0.2), inset 0 0 10px rgba(12, 185, 243, 0.1); }
    50% { box-shadow: 0 0 25px rgba(12, 185, 243, 0.5), inset 0 0 15px rgba(12, 185, 243, 0.2); }
    100% { box-shadow: 0 0 10px rgba(12, 185, 243, 0.2), inset 0 0 10px rgba(12, 185, 243, 0.1); }
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 40% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset(5% 0 80% 0); }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-gradient);
    z-index: 10000;
    width: 0%;
    box-shadow: 0 0 15px var(--accent-cyan), 0 0 5px var(--accent-orange);
    border-radius: 0 2px 2px 0;
}

/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 10px var(--accent-cyan);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(12, 185, 243, 0.5);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99998;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(12, 185, 243, 0.1);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(252, 154, 34, 0.5);
}

/* --- Layout & Utilities --- */
section {
    padding: 7rem 0;
    position: relative;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.glass-panel:hover::before {
    left: 150%;
}

.glass-panel:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(12, 185, 243, 0.2);
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

header.scrolled {
    background: rgba(2, 11, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(12, 185, 243, 0.3);
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* Expanded width for more breathing room */
}

.logo img {
    height: 45px;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 8px rgba(252, 154, 34, 0.5));
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 2vw, 2.5rem); /* Responsive gap to prevent overflow */
    align-items: center;
}

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 1rem); /* Responsive font size */
    font-weight: 700; /* Bolder */
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Balanced letter spacing */
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
    white-space: nowrap; /* Prevent text from wrapping to new line */
}

.nav-links a:hover {
    color: #ffffff; /* Bright white on hover */
    text-shadow: 0 0 15px rgba(12, 185, 243, 1);
}

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

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

/* --- VR Tour Special Nav Button --- */
.nav-vr-tour {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 10px rgba(252, 154, 34, 0.6) !important;
    border: 1px solid rgba(252, 154, 34, 0.5);
    padding: 0.4rem 1.2rem !important;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(252, 154, 34, 0.05);
}

.nav-vr-tour:hover {
    background: rgba(252, 154, 34, 0.15) !important;
    border-color: var(--accent-orange);
    box-shadow: 0 0 20px rgba(252, 154, 34, 0.4);
    transform: translateY(-2px);
    color: #fff !important;
}

.nav-vr-tour::after {
    display: none !important; /* No underline for the pill button */
}

.social-nav {
    display: flex;
    gap: 1rem;
}

.social-nav a {
    color: var(--accent-cyan);
    font-size: 1.25rem;
    background: rgba(12, 185, 243, 0.1);
    border: 1px solid var(--glass-border);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-nav a:hover {
    background: var(--accent-cyan);
    color: var(--bg-darker);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 15px var(--accent-cyan);
    border-color: transparent;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--accent-cyan);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
    filter: brightness(0.9) contrast(1.1);
    mix-blend-mode: normal;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 11, 46, 0.95) 0%, rgba(2, 11, 46, 0.1) 50%, rgba(2, 11, 46, 0.8) 100%),
                linear-gradient(to bottom, rgba(2, 11, 46, 0.4) 0%, transparent 60%, var(--bg-darker) 100%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Image column slightly larger */
    gap: 3rem; /* Increased gap */
    align-items: center;
    width: 95%; /* Give some breathing room to the edges */
    max-width: 1500px; /* Stretched wider */
    z-index: 2;
}

.hero-text {
    text-align: left;
}

.hero-logo {
    max-width: 480px;
    margin: 0 auto 1.5rem auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)) drop-shadow(0 0 20px rgba(252, 154, 34, 0.4));
}

.hero-title {
    font-family: 'BatmanForeverAlternate', sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.hero-subtitle {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.hero-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    transition: 0.3s;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(252, 154, 34, 0.3);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(252, 154, 34, 0.5);
}

.btn-secondary {
    background: rgba(252, 154, 34, 0.1);
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    box-shadow: 0 0 15px rgba(252, 154, 34, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-secondary:hover {
    background: var(--accent-orange);
    color: var(--bg-darker);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(252, 154, 34, 0.5);
}

.hero-image-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* Keep logo centered in right column */
    /* Handled by JS 3D tilt */
}

.hero-image-frame {
    width: 100%;
    margin-bottom: -3rem; /* Tightly pull the logo into the layout */
}

.hero-image-frame img {
    width: 100%;
    max-width: 650px; /* Increased logo size */
    height: auto;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.hero-slogan-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    width: 100%;
}
.slogan-line {
    height: 1px;
    background: var(--glass-border);
    flex: 1;
}
.hero-slogan {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 8px rgba(12, 185, 243, 0.8), 0 0 20px rgba(12, 185, 243, 0.6), 0 0 30px rgba(12, 185, 243, 0.4);
    text-align: center;
}

/* --- Hero Collage --- */
.hero-collage {
    margin-top: 4rem; /* More space from intro text */
    position: relative;
    width: 100%;
    max-width: 700px; /* Allow bigger frame */
}
.collage-main {
    width: 100%; /* Stretch fully */
    height: 400px; /* Much bigger frame */
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    border: 3px solid rgba(12, 185, 243, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
}
.collage-thumbnails.overlapping {
    position: absolute;
    bottom: -60px;
    left: -20px; /* Moved to opposite corner (bottom-left) */
    display: flex;
    gap: 15px;
    z-index: 2;
}
.collage-thumbnails.overlapping div {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    border: 5px solid var(--bg-darker);
    overflow: hidden;
    padding: 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.collage-thumbnails.overlapping div:nth-child(1) { transform: translateY(40px) rotate(-12deg); }
.collage-thumbnails.overlapping div:nth-child(2) { transform: translateY(5px) rotate(5deg); z-index: 3;}
.collage-thumbnails.overlapping div:nth-child(3) { transform: translateY(35px) rotate(-8deg); }

.collage-thumbnails.overlapping div:hover {
    transform: translateY(-20px) scale(1.15) rotate(0deg) !important;
    z-index: 10;
    border-color: var(--accent-orange);
    box-shadow: 0 20px 40px rgba(252, 154, 34, 0.5);
}
.hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: brightness(0.9);
}
.hero-collage img:hover {
    filter: brightness(1.1);
    transform: scale(1.1);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr; /* Give the image more space to make it bigger */
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255,255,255,0.02);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 3px solid var(--accent-orange);
    transition: 0.3s;
}

.about-text p:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(10px);
    border-color: var(--accent-yellow);
}

.about-text p i {
    color: var(--accent-orange);
    font-size: 1.8rem;
    margin-top: -0.2rem;
    text-shadow: 0 0 10px rgba(252, 154, 34, 0.5);
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(12, 185, 243, 0.3), 0 0 80px rgba(252, 154, 34, 0.2);
    border: 3px solid rgba(12, 185, 243, 0.6);
    animation: float 6s ease-in-out infinite;
    transform: perspective(1000px) rotateY(-8deg); /* Subtle 3D tilt */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.03) translateY(-10px);
    box-shadow: 0 0 60px rgba(12, 185, 243, 0.6), 0 0 100px rgba(252, 154, 34, 0.4);
    border-color: var(--accent-orange);
    animation-play-state: paused;
}



.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* --- Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 5rem;
}

.stat-item {
    padding: 3rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition-smooth);
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: var(--accent-gradient);
    z-index: -1;
    opacity: 0;
    transition: 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(4, 22, 86, 0.8);
}

.stat-item:hover::after {
    opacity: 1;
    filter: blur(10px);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(252, 154, 34, 0.3));
}

.stat-label {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Departments Section --- */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.dept-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dept-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(12, 185, 243, 0.4));
}

.dept-card h3 {
    color: var(--accent-cyan);
}

.dept-card ul {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dept-card ul li {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dept-card ul li i {
    color: var(--accent-yellow);
    font-size: 1.4rem;
}

.dept-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.dept-images img {
    border-radius: 16px;
    object-fit: cover;
    height: 180px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.4s;
}

.dept-images img:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 11, 46, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item::after {
    content: '\eb31'; /* bx-search-alt-2 */
    font-family: 'boxicons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: var(--accent-cyan);
    z-index: 2;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(12, 185, 243, 0.3);
}

/* --- Activities Section --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.activity-card {
    text-align: center;
    padding: 3rem 2rem;
}

.activity-img-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--glass-border);
    padding: 5px;
    background: var(--bg-darker);
    position: relative;
    transition: 0.4s;
}

.activity-img-wrap::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--accent-gradient);
    z-index: -1;
    animation: gradientMove 3s linear infinite;
}

.activity-card:hover .activity-img-wrap {
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(252, 154, 34, 0.5);
}

.activity-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.activity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.activity-card h3 i {
    color: var(--accent-orange);
}

.activity-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Footer & Contact --- */
footer {
    background: var(--bg-darker);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 33% Contact, 67% for the 2 widgets */
    gap: 5rem;
    margin-bottom: 4rem;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.footer-social-nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-social-nav a {
    color: var(--text-primary);
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    border: 1px solid rgba(12, 185, 243, 0.2);
}

.footer-social-nav a:hover {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(12, 185, 243, 0.4);
    border-color: transparent;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item h6 {
    text-transform: uppercase;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.contact-item p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.contact-item p i {
    color: var(--accent-orange);
    font-size: 1.5rem;
    background: rgba(252, 154, 34, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    height: 480px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    display: flex;
    width: 100%;
}

.facebook-wrapper {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
}

.vr-tour-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-left: 2px solid var(--glass-border);
    transition: all 0.3s ease;
    background: linear-gradient(rgba(2, 11, 46, 0.4), rgba(2, 11, 46, 0.6)), url('../assets/anhhaui.webp') center/cover no-repeat;
    position: relative;
    z-index: 1;
}

.vr-tour-link:hover {
    background: linear-gradient(rgba(12, 185, 243, 0.2), rgba(2, 11, 46, 0.4)), url('../assets/anhhaui.webp') center/cover no-repeat !important;
}
.vr-tour-link:hover i.bx-street-view {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}



/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- Modal & Image Viewer --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 11, 46, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-dark);
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid var(--accent-cyan);
    width: 90%;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(12, 185, 243, 0.3), 0 0 60px rgba(0,0,0,0.8);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.modal-header h3 {
    margin: 0;
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(252, 154, 34, 0.4);
}

.close-modal {
    color: var(--text-secondary);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
    transform: scale(1.1);
}

.modal-gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item-wrap {
    break-inside: avoid;
    margin-bottom: 20px;
}

.btn-close-lightbox {
    position: absolute;
    top: -50px;
    right: 0;
    z-index: 10000;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.btn-close-lightbox:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 15px var(--accent-orange);
    transform: scale(1.2);
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 11, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-img {
    width: 100%;
    border-radius: 12px;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(12, 185, 243, 0.3);
}

.modal-img-wrap {
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-text {
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--accent-cyan);
    margin-bottom: 20px;
    letter-spacing: 5px;
    font-family: 'BatmanForeverAlternate', 'Outfit', sans-serif;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: var(--accent-gradient);
    animation: loadingBar 1s infinite ease-in-out alternate;
}

@keyframes loadingBar {
    0% { left: -50%; width: 50%; }
    100% { left: 100%; width: 50%; }
}

/* --- Hero Particles --- */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Below text, above background */
    pointer-events: none; /* Let mouse interact with things underneath */
}

.particle-wrap {
    position: absolute;
    will-change: transform;
}

.particle-icon {
    color: var(--accent-cyan);
    opacity: 0.2; /* Mờ hơn theo yêu cầu */
    display: block;
    animation: floatParticle linear infinite;
    text-shadow: 0 0 8px rgba(12, 185, 243, 0.4);
    will-change: transform;
}

.particle-wrap:nth-child(even) .particle-icon {
    color: var(--accent-orange);
    text-shadow: 0 0 8px rgba(252, 154, 34, 0.4);
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(10deg);
    }
    66% {
        transform: translateY(15px) rotate(-15deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* --- Back to Top --- */
#back-to-top {
    position: fixed;
    bottom: -60px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

#back-to-top.show {
    bottom: 30px;
}

#back-to-top:hover {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(12, 185, 243, 0.4);
    border-color: transparent;
}


/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-text {
        text-align: center;
    }
    .hero-logo {
        margin: 0 auto 1.5rem auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-frame {
        order: -1;
        max-width: 60%;
        margin: 0 auto;
    }
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
    .modal-gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .reveal-left, .reveal-right {
        transform: translateY(30px);
    }
    .reveal-left.active, .reveal-right.active {
        transform: translateY(0);
    }

    .hero-content {
        width: 100%;
        gap: 2rem;
    }

    .desktop-only {
        display: none !important;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 11, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        border-bottom: 2px solid var(--accent-cyan);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 2.5rem); /* Dynamically scale text on tiny screens */
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem; /* Smaller font on mobile */
    }

    .hero-image-frame {
        margin-bottom: 0; /* Remove negative margin on mobile so it doesn't overlap text */
    }

    .hero-logo {
        max-width: 80%;
    }
    
    .hero-slogan {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem !important;
        width: 100%;
    }
    .hero-buttons a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-collage {
        margin-top: 2rem;
    }
    .collage-main {
        height: 220px; /* Smaller main image */
        border-radius: 12px;
    }
    .collage-thumbnails.overlapping {
        bottom: -30px;
        left: 0;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .collage-thumbnails.overlapping div {
        width: 90px;
        height: 90px;
        border-width: 3px;
        border-radius: 10px;
    }
    .collage-thumbnails.overlapping div:nth-child(1) { transform: translateY(15px) rotate(-8deg); }
    .collage-thumbnails.overlapping div:nth-child(2) { transform: translateY(0px) rotate(2deg); z-index: 3;}
    .collage-thumbnails.overlapping div:nth-child(3) { transform: translateY(10px) rotate(-6deg); }

    .stat-number {
        font-size: 3rem;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        flex-direction: column;
        height: auto;
    }

    .facebook-wrapper {
        min-width: 100%;
        height: 400px; /* Give it a fixed height on mobile */
    }

    .vr-tour-link {
        border-left: none;
        border-top: 2px solid var(--glass-border);
        padding: 3rem 1rem;
    }
    .modal-gallery-grid {
        column-count: 1;
    }
}
