/* Color Palette: Academy Blue, Highlight Gold, Deep Black */
:root {
    --primary: #0056b3;
    --primary-light: #007bff;
    --accent: #ffc107;
    --accent-light: #ffdf00;
    --dark-bg: #050505;
    --text-light: #f8fafc;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Smooth Scroll */
html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a, 
body.has-custom-cursor button, 
body.has-custom-cursor .magnetic { cursor: none; }

iframe { cursor: auto; }

h1, h2, h3, .quote { font-family: 'Playfair Display', serif; }

/* ===== PRELOADER ===== */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    background: var(--dark-bg);
    transition: opacity 0.6s ease;
}
#preloader.loaded { opacity: 0; pointer-events: none; }
.preloader-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.preloader-logo {
    font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 700;
    color: var(--accent); z-index: 2; animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(212,175,55,0.3); }
    50% { text-shadow: 0 0 30px rgba(212,175,55,0.6), 0 0 60px rgba(212,175,55,0.2); }
}
.curtain-left, .curtain-right {
    position: absolute; top: 0; width: 50%; height: 100%;
    background-image: url('Images/curtain_texture.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    z-index: 1;
    transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.curtain-left { left: 0; transform-origin: top left; border-right: 3px solid var(--accent); }
.curtain-right { right: 0; transform-origin: top right; border-left: 3px solid var(--accent); }
/* Bunch up (scale to 0 width) and skew (swing) instead of sliding flatly */
#preloader.loaded .curtain-left { transform: scaleX(0) skewX(-15deg); }
#preloader.loaded .curtain-right { transform: scaleX(0) skewX(15deg); }

/* ===== WebGL Background ===== */
#webgl-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none;
}

/* ===== Custom Cursor ===== */
.cursor-dot {
    width: 8px; height: 8px; background-color: var(--accent);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 10005; transition: opacity 0.2s;
}
.cursor-outline {
    width: 40px; height: 40px; border: 2px solid var(--primary);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 10004;
    transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s, opacity 0.2s;
    transform: translate(-16px, -16px);
}
.hovering .cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    border-color: var(--accent);
    transform: translate(-26px, -26px);
}
.hovering .cursor-dot { background-color: var(--primary); }

/* Typography Accents */
.accent-primary { color: var(--primary); }
.accent-gold { color: var(--accent); }

/* ===== Navigation ===== */
.magnetic-nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    display: flex; justify-content: space-between; align-items: center;
    width: 90%; max-width: 1200px; padding: 15px 30px;
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 50px; z-index: 100;
}
.logo { font-size: 1.5rem; font-weight: 700; font-family: 'Playfair Display', serif; letter-spacing: 2px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
    color: var(--text-light); text-decoration: none; font-weight: 400;
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;
    transition: color 0.3s; padding: 10px; display: inline-block;
    position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

/* ===== Sections ===== */
.section {
    min-height: 100vh; padding: 100px 20px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.content-wrapper { max-width: 1200px; width: 100%; }

/* Section Transition Wipe */
.section-transition {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary), transparent);
    opacity: 0.4;
}

/* ===== Hero & Curtains ===== */
.hero-section { text-align: center; overflow: hidden; }
.hero-section h1 { font-size: clamp(4rem, 8vw, 8rem); line-height: 1.1; margin-bottom: 20px; font-weight: 700; text-shadow: 0 10px 30px rgba(201,24,74,0.4); }
.subtitle { font-size: 1.3rem; color: #a1a1aa; font-family: 'Outfit', sans-serif; letter-spacing: 1px; text-transform: uppercase; }

.interactive-curtain {
    position: absolute; top: 0; width: 50vw; height: 100%;
    background-image: url('Images/curtain_texture.jpg');
    background-size: cover;
    background-position: center;
    z-index: 10;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    pointer-events: none; /* Let mouse interact with hero */
}
.curtain-l { left: 0; transform-origin: top left; transform: scaleX(0.15); border-right: 2px solid var(--accent); }
.curtain-r { right: 0; transform-origin: top right; transform: scaleX(0.15); border-left: 2px solid var(--accent); }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0.7; font-family: 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem;
}
.mouse { width: 24px; height: 40px; border: 2px solid var(--accent); border-radius: 20px; display: flex; justify-content: center; padding-top: 8px; }
.wheel { width: 2px; height: 6px; background: var(--accent); border-radius: 2px; animation: scroll 1.5s infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(15px); opacity: 0; } }

/* ===== Glass Cards ===== */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 4px;
    padding: 60px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
}

/* ===== Vision ===== */
.vision-section { text-align: center; }
.vision-section h2 { font-size: 3rem; margin-bottom: 30px; }
.quote { font-size: 2.2rem; font-weight: 400; font-style: italic; line-height: 1.5; color: var(--accent-light); }
.floating-img { width: 300px; height: 350px; object-fit: cover; border-radius: 50%; margin-top: 50px; animation: float 6s ease-in-out infinite; box-shadow: 0 20px 50px rgba(0, 86, 179, 0.2); border: 4px solid var(--accent); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ===== About Grid ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 3.5rem; margin-bottom: 20px; }
.about-text p { font-size: 1.2rem; line-height: 1.8; color: #a1a1aa; font-family: 'Outfit', sans-serif;}
.about-img img { width: 100%; border-radius: 4px; filter: grayscale(20%) contrast(1.2); border: 1px solid rgba(212, 175, 55, 0.3); }

/* ===== Work / Timeline ===== */
.work-section h2 { font-size: 3.5rem; margin-bottom: 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; flex-wrap: wrap; gap: 20px;}
.timeline-nav { display: flex; gap: 15px; }
.nav-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: transparent; border: 1px solid var(--accent);
    color: var(--accent); font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.nav-btn:hover { background: var(--accent); color: var(--dark-bg); transform: scale(1.1); }

.timeline-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}
.timeline-wrapper::-webkit-scrollbar { display: none; }

.timeline-track {
    display: flex; gap: 40px; padding: 0 10px;
    width: max-content;
}
.timeline-item { min-width: 350px; flex-shrink: 0; scroll-snap-align: start; }
.timeline-year {
    font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
    color: var(--accent); margin-bottom: 15px; letter-spacing: 2px;
}
.timeline-card {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--glass-border); border-radius: 4px; padding: 40px 30px;
    transition: transform 0.4s, background 0.4s, border-color 0.4s;
}
.timeline-card:hover { transform: translateY(-10px); background: rgba(0, 86, 179, 0.1); border-color: var(--primary); }
.card-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.timeline-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.timeline-card p { color: #a1a1aa; line-height: 1.6; font-family: 'Outfit', sans-serif; font-size: 0.95rem; }

/* ===== Awards ===== */
.awards-section h2 { font-size: 3.5rem; text-align: center; margin-bottom: 60px; }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.award-card {
    text-align: center; padding: 50px 30px;
    background: var(--glass-bg); backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border); border-radius: 4px;
    transition: transform 0.4s, border-color 0.4s;
}
.award-card:hover { transform: translateY(-8px); border-color: var(--accent); }
.award-number {
    font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 700;
    color: var(--accent); margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(212,175,55,0.3);
}
.award-card p { color: #a1a1aa; font-size: 1rem; line-height: 1.5; }

/* ===== Survey Poll ===== */
.poll-container { display: flex; flex-direction: column; gap: 15px; max-width: 600px; margin: 0 auto; }
.poll-option {
    position: relative; padding: 15px 25px; border-radius: 8px;
    border: 1px solid var(--glass-border); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    overflow: hidden; transition: border-color 0.3s;
    background: transparent; color: var(--text-light); width: 100%;
    font-family: inherit; font-size: 1rem;
}
.poll-option:hover { transform: scale(1.02); border-color: var(--primary); }
.poll-fill {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: linear-gradient(90deg, rgba(0,86,179,0.3), rgba(255,193,7,0.3));
    z-index: 0; transition: width 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.poll-label, .poll-percent { position: relative; z-index: 1; font-family: 'Outfit', sans-serif; font-size: 1.1rem; }
.poll-option.voted .poll-fill { width: var(--target-width); }


/* ===== Gallery Masonry ===== */
.gallery-section h2 { font-size: 3.5rem; text-align: center; margin-bottom: 60px; }
.masonry-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-auto-rows: 250px; gap: 20px; }
.gallery-item { border-radius: 4px; overflow: hidden; position: relative; border: 1px solid var(--glass-border); cursor: pointer; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); filter: grayscale(40%); }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); filter: grayscale(0%); }
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }

/* ===== Lightbox ===== */
.lightbox {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); z-index: 10001;
    align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90%; max-height: 85vh; border-radius: 4px;
    border: 1px solid var(--glass-border);
    animation: lightbox-in 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
@keyframes lightbox-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
    position: absolute; top: 30px; right: 40px;
    color: #fff; font-size: 3rem; cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    background: none; border: none; outline: none;
}
.lightbox-close:hover { color: var(--primary); transform: rotate(90deg); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.contact-info h3 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-info p { font-size: 1.2rem; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-family: 'Outfit', sans-serif; color: #a1a1aa;}
.social-links { display: flex; gap: 20px; margin-top: 40px; }
.social-links a {
    width: 50px; height: 50px; background: transparent;
    border: 1px solid var(--accent); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--accent); font-size: 1.2rem; text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.social-links a:hover { background: var(--accent); color: var(--dark-bg); transform: scale(1.1); }

/* ===== Footer ===== */
.site-footer {
    text-align: center; padding: 60px 20px 40px;
    border-top: 1px solid var(--glass-border);
    background: rgba(5,5,5,0.9);
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-logo {
    font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
    color: var(--accent); margin-bottom: 8px;
}
.footer-tagline { color: #71717a; font-size: 1rem; margin-bottom: 25px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.footer-links a {
    color: #71717a; font-size: 1.2rem; text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.back-to-top {
    display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--accent); text-decoration: none; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px;
    transition: transform 0.3s;
}
.back-to-top:hover { transform: translateY(-5px); }
.back-to-top i { font-size: 1.2rem; }
.footer-credits { color: #52525b; font-size: 0.85rem; }
.footer-credits a { color: #71717a; text-decoration: none; transition: color 0.3s; }
.footer-credits a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
.mobile-menu-btn {
    display: none; position: fixed; top: 20px; right: 20px; z-index: 1000;
    width: 50px; height: 50px;
    background: var(--glass-bg); border: 1px solid var(--accent); border-radius: 50%;
    color: var(--accent); font-size: 1.5rem; outline: none;
    align-items: center; justify-content: center;
    backdrop-filter: blur(12px); cursor: pointer;
}

/* Tablet */
@media (max-width: 1024px) {
    .section { padding: 80px 20px; }
    .about-grid { gap: 40px; }
    .gallery-item.wide { grid-column: span 1; }
    .gallery-item.tall { grid-row: span 1; }
    .quote { font-size: 1.8rem; }
    .about-text h2, .work-section h2, .gallery-section h2, .awards-section h2 { font-size: 2.8rem; }
    .timeline-item { min-width: 300px; }
}

/* Mobile */
@media (max-width: 768px) {
    .section { padding: 60px 15px; }
    .mobile-menu-btn { display: flex; }
    
    .magnetic-nav {
        top: 0; left: 0; transform: none;
        width: 100%; height: 100vh; border-radius: 0;
        flex-direction: column; justify-content: center;
        background: rgba(5,5,5, 0.98);
        opacity: 0; pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .magnetic-nav.active { opacity: 1; pointer-events: all; }
    .nav-links { flex-direction: column; align-items: center; gap: 30px; }
    .nav-links a { font-size: 1.5rem; }
    
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .masonry-gallery { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .awards-grid { grid-template-columns: 1fr 1fr; }
    
    .glass-card { padding: 40px 20px; }
    .floating-img { width: 250px; height: 250px; margin-top: 30px; }
    .quote { font-size: 1.5rem; }
    .about-text h2, .work-section h2, .gallery-section h2, .awards-section h2 { font-size: 2.2rem; }

    .timeline-item { min-width: calc(100vw - 40px); scroll-snap-align: center; }
    
    /* Performance fixes for mobile GPUs */
    .magnetic-nav, .glass-card, .lightbox {
        backdrop-filter: none !important;
    }
    .magnetic-nav { background: rgba(15, 15, 15, 0.98); }
    .glass-card { background: rgba(20, 20, 20, 0.98); }
    .lightbox { background: rgba(0, 0, 0, 0.98); }
}

/* Touch Devices */
@media (pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none !important; }
    * { cursor: auto !important; }
}

/* GSAP Utility */
.reveal { opacity: 0; transform: translateY(50px); }

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: #fff; font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; z-index: 9999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}
@media (max-width: 768px) {
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 1.8rem; }
}
