/* ========================
   PREMIUM THEME VARIABLES
   ======================== */
:root {
    --primary-navy: #0a192f;
    --secondary-navy: #112240;
    --accent-gold: #d4af37;
    --accent-gold-light: #f3e5ab; 
    --text-white: #e6f1ff;
    --text-muted: #8892b0;
    --white: #ffffff;
    
    --glass-bg: rgba(17, 34, 64, 0.7);
    --glass-border: rgba(212, 175, 55, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --blur-amount: 12px;
    
    --section-spacing: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Selection Color for Premium Feel */
::selection {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

html {
    scroll-behavior: smooth; 
    overflow-x: hidden;
    scroll-padding-top: 90px; /* Fixes Navbar overlapping section titles */
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-muted);
    background-color: var(--primary-navy);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
}

/* === PRELOADER === */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-navy);
    z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s;
}
.loader-logo {
    font-size: 3rem; color: var(--accent-gold);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* === BACK TO TOP BUTTON === */
#backToTop {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: var(--accent-gold);
    color: var(--primary-navy);
    border: none; border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(212,175,55,0.4);
    display: flex; justify-content: center; align-items: center;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-5px); background: #fff; }

/* === OPTIMIZED IMAGES & SHAPES === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-arch {
    border-radius: 150px 150px 10px 10px;
    overflow: hidden;
    height: 200px;
    margin-bottom: 20px;
    border: 2px solid var(--accent-gold);
    will-change: transform;
}
.img-arch img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
@media (hover: hover) {
    .glass-card:hover .img-arch img { transform: scale(1.1); }
}

.collage-container {
    position: relative;
    height: 400px;
    width: 100%;
}
.collage-1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--accent-gold);
    z-index: 1;
}

/* === PERFORMANCE: CURSOR & GLOW (Desktop Only) === */
.cursor-dot, .cursor-outline, .mouse-glow { display: none; }

@media (pointer: fine) {
    .cursor-dot, .cursor-outline {
        display: block; position: fixed; top: 0; left: 0;
        transform: translate(-50%, -50%); border-radius: 50%;
        z-index: 9999; pointer-events: none;
    }
    .cursor-dot { width: 8px; height: 8px; background-color: var(--accent-gold); }
    .cursor-outline {
        width: 40px; height: 40px; border: 1px solid var(--accent-gold);
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }
    .mouse-glow {
        display: block; position: fixed; width: 600px; height: 600px;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
        transform: translate(-50%, -50%); pointer-events: none;
        z-index: 0; top: 0; left: 0; will-change: transform;
    }
    * { cursor: none; }
}

/* Scroll Progress Bar */
#progress-bar {
    position: fixed; top: 0; left: 0; height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), #fff);
    width: 0%; z-index: 2000; box-shadow: 0 0 10px var(--accent-gold);
}

h1, h2, h3, h4, .nav-logo {
    font-family: 'Cinzel', serif; color: var(--text-white);
    margin-bottom: 1rem; letter-spacing: 1px;
}
h1 { font-weight: 700; }

.gold-text { 
    color: var(--accent-gold);
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-clip: text; -webkit-background-clip: text; color: transparent;
    background-size: 200% auto;
}
@media (prefers-reduced-motion: no-preference) {
    .gold-text { animation: shine 5s linear infinite; }
}
@keyframes shine { to { background-position: 200% center; } }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* === UI COMPONENTS === */
.btn {
    display: inline-block; padding: 12px 30px;
    border: 2px solid var(--accent-gold); background: transparent;
    color: var(--accent-gold); font-family: 'Cinzel', serif;
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: all 0.4s ease; position: relative;
    overflow: hidden; z-index: 1; font-size: 0.8rem;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--accent-gold); transition: 0.4s; z-index: -1;
}
.btn:hover { color: var(--primary-navy); }
.btn:hover::before { width: 100%; }
.btn-filled { background: var(--accent-gold); color: var(--primary-navy); }

.section-title {
    text-align: center; font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem; color: var(--text-white); position: relative;
    display: inline-block; width: 100%; z-index: 2;
}
.section-title::after {
    content: ''; display: block; width: 80px; height: 3px;
    background: var(--accent-gold); margin: 15px auto 0;
    box-shadow: 0 0 10px var(--accent-gold);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount)); 
    border: 1px solid var(--glass-border); border-radius: 12px;
    padding: 30px; box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d; perspective: 1000px;
}

nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 5%; display: flex; justify-content: space-between;
    align-items: center; background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.4s ease;
}
nav.scrolled {
    background: rgba(10, 25, 47, 0.95);
    border-bottom: 1px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.logo { font-size: 1.2rem; font-weight: 700; color: var(--accent-gold); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nav-btn {
    font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 600;
    color: var(--text-white); text-transform: uppercase; padding: 6px 12px;
    border: 1px solid transparent; border-radius: 4px; transition: 0.3s;
}
.nav-btn:hover, .nav-btn.active {
    color: var(--accent-gold); background: rgba(255,255,255,0.05);
    text-shadow: 0 0 5px var(--accent-gold);
}
.menu-toggle { display: none; color: var(--accent-gold); font-size: 1.5rem; cursor: pointer; }

section { padding: 80px 5%; position: relative; }
.bg-lines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; opacity: 0.1; pointer-events: none;
}
.line {
    position: absolute; width: 1px; background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

/* HERO */
#home {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background-color: var(--primary-navy);
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.7)),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center; background-attachment: fixed;
    text-align: center; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}
@media (max-width: 768px) { #home { background-attachment: scroll; } }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.stats-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

.counter-card { text-align: center; border-top: 3px solid var(--accent-gold); }
.counter-number { font-family: 'Cinzel', serif; font-size: 3rem; color: var(--accent-gold); font-weight: 700; }

.chart-box {
    background: rgba(255,255,255,0.02); padding: 20px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05); height: 350px; position: relative;
}

.life-card { text-align: center; }
.life-icon { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 20px; }

.news-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 15px; }
.news-date { background: var(--accent-gold); color: var(--primary-navy); padding: 2px 8px; font-size: 0.7rem; font-weight: bold; border-radius: 4px; }

.gallery-img { height: 250px; overflow: hidden; border-radius: 8px; position: relative; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
@media (hover: hover) { .gallery-img:hover img { transform: scale(1.1); } }

details {
    background: rgba(255,255,255,0.03); margin-bottom: 15px;
    border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(212,175,55,0.1); transition: 0.3s;
}
details[open] { border-color: var(--accent-gold); background: rgba(212, 175, 55, 0.05); }
summary {
    padding: 15px; cursor: pointer; font-weight: 600; color: var(--text-white);
    list-style: none; display: flex; justify-content: space-between;
    background: rgba(17,34,64,0.5);
}
summary::after { content: '+'; color: var(--accent-gold); font-size: 1.2rem; }
details[open] summary::after { content: '-'; }
.faq-content { padding: 20px; font-size: 0.9rem; border-top: 1px solid rgba(212,175,55,0.1); }

.fee-calculator {
    border: 2px solid var(--accent-gold); background: rgba(10, 25, 47, 0.8);
    padding: 25px; border-radius: 12px; position: relative; overflow: hidden;
}
.fee-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; position: relative; z-index: 1;}
.fee-result { 
    background: var(--accent-gold); color: var(--primary-navy); 
    padding: 15px; text-align: center; font-weight: bold; border-radius: 8px; margin-top: 20px;
    font-size: 1.2rem; position: relative; z-index: 1;
}
.checkbox-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; position: relative; z-index: 1;}
.checkbox-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: 0.3s;
    user-select: none;
}
.checkbox-btn.selected {
    background: var(--accent-gold); color: var(--primary-navy); border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.job-card, .download-card { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.download-icon { color: #ff5555; margin-right: 10px; font-size: 1.2rem; }

.map-container { width: 100%; height: 350px; border-radius: 8px; overflow: hidden; border: 2px solid var(--accent-gold); margin-top: 20px; box-shadow: 0 0 20px rgba(212,175,55,0.2); }
.map-container iframe { width: 100%; height: 100%; border: 0; filter: grayscale(100%) invert(90%) hue-rotate(180deg); }

input, select, textarea {
    width: 100%; padding: 12px; margin-bottom: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: white; border-radius: 4px; font-family: 'Lato', sans-serif; transition: 0.3s;
}
input:focus, textarea:focus, select:focus { 
    outline: none; border-color: var(--accent-gold); 
    box-shadow: 0 0 10px rgba(212,175,55,0.3); background: rgba(255,255,255,0.1);
}

#social {
    min-height: 80vh; display: flex; flex-direction: column;
    justify-content: center; background: radial-gradient(circle at center, #112240 0%, #0a192f 100%);
}
.social-card {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding: 40px 20px;
    cursor: pointer; transition: all 0.4s ease;
}
.social-icon {
    font-size: 3rem; margin-bottom: 15px; color: var(--text-white); transition: 0.5s;
}

@media (hover: hover) {
    .social-card:hover {
        transform: translateY(-15px) scale(1.05) rotateX(10deg);
        background: rgba(255,255,255,0.08); border-color: var(--accent-gold);
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }
    .social-card:hover .social-icon {
        color: var(--accent-gold); transform: scale(1.2) rotate(10deg);
        text-shadow: 0 0 15px var(--accent-gold);
    }
}

.legal-section h4 { color: var(--accent-gold); margin-bottom: 10px; }
.legal-text { font-size: 0.85rem; margin-bottom: 20px; }

@media (max-width: 1000px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; right: 0; width: 100%; background: var(--primary-navy); padding: 20px; text-align: center; border-bottom: 2px solid var(--accent-gold); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .collage-container { height: 250px; margin-bottom: 20px; }
    .glass-card { 
        transform: none !important; transition: transform 0.2s ease !important;
        backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
        background: rgba(17, 34, 64, 0.95);
    }
}