:root {
    --navy: #0F1C2E;
    --midnight: #1F3A5F;
    --sky: #4A7FB5;
    --white: #FFFFFF;
    
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(40px) saturate(180%);
    --bubbly-rim: inset 0 4px 15px rgba(255, 255, 255, 0.9), 
                  inset 0 -4px 10px rgba(255, 255, 255, 0.3),
                  0 20px 50px rgba(15, 28, 46, 0.1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--navy); font-family: 'DM Sans', sans-serif; overflow-x: hidden; }

/* ── BACKGROUND ────────────────────── */
.video-background { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; overflow: hidden; }
#bg-video { width: 100vw; height: 100vh; object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.35); backdrop-filter: blur(4px); }

/* ── NAVIGATION ────────────────────── */
.glass-nav { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 1400px; height: 110px; background: rgba(255, 255, 255, 0.9); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: 100px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px 0 40px; z-index: 100; }
.nav-logo { height: 80px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; font-family: 'Montserrat', sans-serif; }
.btn-nav-contact { background: var(--navy) !important; color: var(--white) !important; padding: 18px 42px; border-radius: 100px; font-weight: 700; transition: 0.3s; }

/* ── HERO ──────────────────────────── */
.hero { height: 100vh; width: 100vw; display: flex; align-items: center; padding: 0 8vw; }
.hero-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.hero-visual { 
    flex: 2; 
    display: flex; 
    justify-content: flex-end; 
    perspective: 1000px; /* Creates the 3D space */
}

.hero-img { 
    width: 100%; 
    max-width: 850px; 
    height: auto; 
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.15));
    transition: transform 0.1s ease-out; /* Makes the tilt smooth */
    transform-style: preserve-3d;
    will-change: transform;
    animation: float 6s ease-in-out infinite; 
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.gradient-text { font-family: 'Montserrat', sans-serif; font-size: clamp(3rem, 6.5vw, 6.8rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(135deg, var(--navy) 0%, var(--midnight) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ── BUBBLY CARDS & PANELS ─────────── */
.section { padding: 12vh 8vw; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 10; }
.bubbly { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--bubbly-rim); }
.glass-card { padding: 40px 80px 80px 80px; max-width: 1000px; width: 100%; border-radius: 40px; }

/* ── DIVISIONS SECTION (FLEX ROW FIX) ── */
.section-header h2 { font-family: 'Montserrat', sans-serif; font-size: 3rem; color: var(--navy); font-weight: 800; margin-bottom: 60px; }

.services-flex-row { 
    display: flex; 
    flex-direction: row; 
    justify-content: space-between; 
    align-items: stretch; /* Makes them all equal height */
    gap: 24px; 
    width: 100%; 
    max-width: 1400px; 
}

.glass-panel { 
    flex: 1; /* Forces all 4 to squeeze into the same row seamlessly */
    min-width: 250px; 
    padding: 40px 30px; 
    border-radius: 40px; 
    transition: transform 0.4s ease; 
    text-align: left; 
}
.glass-panel:hover { transform: translateY(-12px); }

.img-container { width: 100%; border-radius: 28px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.division-img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* ── TYPOGRAPHY ────────────────────── */
.dict-word { font-family: 'Playfair Display', serif; font-style: italic; font-size: 5rem; color: var(--navy); }
.dict-phonetics { color: var(--sky); font-weight: 700; font-size: 1.4rem; margin-bottom: 24px; }
.dict-pos { color: var(--midnight); font-weight: 400; font-style: italic; opacity: 0.7; }
.def-num { color: var(--sky); font-weight: 800; margin-right: 10px; }
.def-divider { border: 0; height: 1px; background: rgba(15, 28, 46, 0.1); margin: 48px 0; }
.tag { font-size: 0.8rem; font-weight: 700; color: var(--sky); text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 8px; }
.glass-panel h3 { font-family: 'Montserrat', sans-serif; color: var(--navy); font-weight: 700; font-size: 1.6rem; margin-bottom: 16px; }
.service-list { list-style: none; color: var(--midnight); font-size: 0.95rem; line-height: 1.7; font-weight: 500; }
.service-list li { padding-left: 18px; position: relative; margin-bottom: 6px; }
.service-list li::before { content: "•"; position: absolute; left: 0; color: var(--sky); font-weight: bold; }

/* ── FORM ──────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.full-width { grid-column: 1 / -1; }
.glass-input { width: 100%; padding: 20px; background: rgba(255, 255, 255, 0.65); border: 1px solid var(--glass-border); border-radius: 18px; font-size: 1.05rem; color: var(--navy); box-shadow: var(--bubbly-rim); transition: 0.3s; font-family: 'DM Sans', sans-serif; }
.glass-input::placeholder { color: var(--midnight); opacity: 0.5; font-weight: 400; }

.btn-primary { background: var(--navy); color: var(--white); border: none; padding: 22px; border-radius: 100px; font-weight: 700; font-size: 1.2rem; cursor: pointer; transition: 0.3s; margin-top: 20px; width: 100%; font-family: 'Montserrat', sans-serif; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(15, 28, 46, 0.2); }

/* ── FOOTER ──────────────────────────── */
.site-footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 100px 8vw 40px;
    position: relative;
    z-index: 10;
    font-family: var(--font-body);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 80px;
}

.footer-logo {
    height: 55px; /* Adjust based on your logo's proportions */
    width: auto;
    object-fit: contain;
    margin-bottom: 24px;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--steel); /* Soft blue-grey from your palette */
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--sky); /* Your brand Sky Blue */
    border-color: var(--sky);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(74, 127, 181, 0.2);
}

.social-icons img {
    width: 22px;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom-left a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-left a:hover {
    color: var(--white);
}

.footer-dot {
    font-size: 0.8rem;
    opacity: 0.4;
}

.footer-bottom-right span {
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .site-footer {
        padding: 80px 5vw 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}
/* ── RESPONSIVE ────────────────────── */
@media (max-width: 1100px) {
    .services-flex-row { flex-wrap: wrap; }
    .glass-panel { flex: 1 1 45%; } /* Drops to 2x2 grid smoothly on smaller screens */
}
@media (max-width: 968px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-visual { justify-content: center; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .glass-panel { flex: 1 1 100%; } /* Stacks correctly ONLY on mobile phones */
    .glass-card { padding: 40px 20px; }
}
