/* =========================================
   EMA CONSTRUCT — PREMIUM CSS DESIGN SYSTEM
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --primary:      #0A2540;
    --primary-mid:  #0F3460;
    --accent:       #0066FF;
    --accent-light: #3B82F6;
    --gold:         #D4A843;
    --white:        #FFFFFF;
    --off-white:    #F6F8FC;
    --dark-text:    #111827;
    --muted:        #64748B;

    --glass-bg:     rgba(255,255,255,0.12);
    --glass-border: rgba(255,255,255,0.25);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --shadow-soft: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-card: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-hero: 0 30px 80px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--dark-text);
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--gold));
    border-radius: 2px;
    margin: 0 auto;
}

.section-divider.left { margin: 0; }


/* ── ANIMATIONS ──────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO SECTION ────────────────────────── */
.hero-section {
    position: relative;
    /* Lock to exactly one screen */
    height: 100vh;
    height: 100svh; /* safari/mobile safe viewport */
    max-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=85');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.42);
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(10,37,64,0.95) 0%,
        rgba(0,102,255,0.4) 50%,
        rgba(10,37,64,0.72) 100%
    );
}

.hero-overlay { display: none; }

#particles-js {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0; z-index: 1;
}

/* Content: flex column so it fills without overflowing */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 90px;   /* offset for sticky navbar */
    padding-bottom: 60px;
    /* If content is taller than remaining space, scale down padding */
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 18px; /* tighter */
}
.hero-badge-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212,168,67,0.8);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.07;
    color: white;
    margin-bottom: 14px; /* tighter */
    letter-spacing: -0.025em;
    text-shadow: 0 4px 32px rgba(0,0,0,0.35);
}
.hero-title-gold {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 60%, #D97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    max-width: 540px;
    margin-bottom: 22px; /* tighter */
    line-height: 1.65;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px; /* tighter */
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--accent), #1746C4);
    color: white;
    font-weight: 700;
    font-size: 0.97rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 28px rgba(0,102,255,0.45);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}
.hero-btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    border-radius: inherit;
    opacity: 0; transition: opacity 0.3s;
}
.hero-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,102,255,0.55); color: white; }
.hero-btn-primary:hover::before { opacity: 1; }
.hero-btn-arrow {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    transition: transform 0.3s;
}
.hero-btn-primary:hover .hero-btn-arrow { transform: translateX(3px); }

.hero-btn-secondary {
    background: rgba(255,255,255,0.0);
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.97rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Trust row */
.hero-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px; /* tighter */
}
.hero-trust-item {
    display: flex; align-items: center; gap: 7px;
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.03em;
}
.hero-trust-item i { color: var(--gold); font-size: 0.75rem; }
.hero-trust-sep {
    width: 4px; height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    margin: 0 6px;
}

/* Hero stats */
.hero-stats {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 18px; /* tighter */
    margin-top: 0;
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
}
.hero-stat { flex: 1; min-width: 0; padding-right: 22px; overflow: hidden; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.15); padding-left: 22px; padding-right: 0; }
.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.02em;
}
.hero-stat-num span { color: var(--gold); }
.hero-stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 5px;
    line-height: 1.3;
}

/* ── HERO VISUAL (right column) ────────── */
.hero-visual {
    position: relative;
    padding: 20px 20px 20px 0;
}
.hero-img-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    position: relative;
}
.hero-img-main {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 8s ease;
}
.hero-img-card:hover .hero-img-main { transform: scale(1.05); }
.hero-img-label {
    position: absolute;
    bottom: 16px; left: 16px;
    background: rgba(10,37,64,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white; font-size: 0.8rem; font-weight: 600;
    padding: 8px 16px; border-radius: 100px;
    letter-spacing: 0.05em;
}

/* Floating stat cards */
.hero-float-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    min-width: 160px;
    animation: float 4s ease-in-out infinite;
}
.hero-float-card--tr {
    top: 0; right: -12px;
    animation-delay: 0s;
}
.hero-float-card--bl {
    bottom: -8px; left: -12px;
    animation-delay: 2s;
}
.hero-float-icon {
    width: 40px; height: 40px; min-width: 40px;
    background: rgba(0,102,255,0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.hero-float-icon--green {
    background: rgba(16,185,129,0.1);
    color: #10B981;
}
.hero-float-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem; font-weight: 800;
    color: var(--primary); line-height: 1;
    letter-spacing: -0.02em;
}
.hero-float-lbl {
    font-size: 0.7rem; font-weight: 500;
    color: var(--muted); margin-top: 2px; letter-spacing: 0.04em;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
    z-index: 10;
}
.hero-scroll-line {
    width: 1.5px; height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
    animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll span {
    color: rgba(255,255,255,0.45);
    font-size: 0.65rem; letter-spacing: 0.15em;
    text-transform: uppercase; font-weight: 600;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Hero side card */
.hero-side-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hero);
}
.hero-side-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.9;
}
.hero-side-info {
    padding: 20px 24px;
}
.hero-side-info h5 { color: white; font-size: 1rem; margin-bottom: 4px; }
.hero-side-info p { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 0; }

/* ── STATS STRIP ─────────────────────────── */
.stats-strip {
    background: var(--primary);
    padding: 48px 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.stat-number span { color: var(--gold); }
.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 6px;
}
.stat-divider { border-color: rgba(255,255,255,0.1); }

/* ── SERVICES SECTION ────────────────────── */
.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--accent), #1D4ED8);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(0,102,255,0.3);
}

.service-card h4 {
    font-size: 1.18rem;
    margin-bottom: 12px;
    color: var(--primary);
}
.service-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ── ABOUT / WHO WE ARE ──────────────────── */
.about-section { background-color: white; }

.about-img-frame {
    position: relative;
}
.about-img-main {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.about-img-floating {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 6px solid white;
    box-shadow: var(--shadow-card);
}
.about-badge-float {
    position: absolute;
    top: 30px;
    left: -30px;
    background: var(--primary);
    color: white;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-card);
}
.about-badge-float .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}
.about-badge-float small { font-size: 0.72rem; color: rgba(255,255,255,0.7); display: block; }

.feature-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.feature-check .check-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: rgba(0,102,255,0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}
.feature-check p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.feature-check strong { color: var(--dark-text); }

/* ── TEAM SECTION ────────────────────────── */
.team-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s ease;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.team-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center 15%;
}
.team-card-body { padding: 24px; }
.team-card-body h5 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card-body .role { color: var(--accent); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.team-card-body p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ── PROJECT CARDS ───────────────────────── */
.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s ease;
    display: block;
    text-decoration: none;
    height: 340px;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.project-card:hover img { transform: scale(1.07); }
.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.2) 60%, transparent 100%);
    transition: all 0.35s ease;
}
.project-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 24px;
}
.project-cat-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.project-card-content h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 6px;
}
.project-card-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.83rem;
    margin: 0;
}
.project-arrow {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    opacity: 0;
}
.project-card:hover .project-arrow { opacity: 1; background: var(--accent); }

/* ── ARTICLE CARDS ───────────────────────── */
.article-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.35s ease;
    height: 100%;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.article-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.article-card:hover .article-card-img { transform: scale(1.04); }
.article-img-wrap { overflow: hidden; }
.article-card-body { padding: 24px; }
.article-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.article-card-body h5 {
    font-size: 1.08rem;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}
.article-card-body p { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.read-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.read-link:hover { gap: 10px; color: var(--primary); }

/* ── CTA BAND ────────────────────────────── */
.cta-band {
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,37,64,0.95), rgba(0,102,255,0.75));
}
.cta-band > * { position: relative; z-index: 1; }

/* ── FOOTER ──────────────────────────────── */
.footer-glass {
    background: var(--primary);
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.footer-glass::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 420px; height: 420px;
    background: rgba(0,102,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
}
.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.92rem; line-height: 1.7; max-width: 300px; margin-bottom: 28px; }

.footer-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.25s ease;
    margin-right: 8px;
    font-size: 0.9rem;
}
.footer-social a:hover { background: var(--accent); color: white; transform: translateY(-2px); }

.footer-heading { color: white; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.92rem; transition: all 0.2s ease; display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '→'; font-size: 0.8rem; opacity: 0; transition: all 0.2s ease; transform: translateX(-6px); }
.footer-links a:hover { color: white; }
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.footer-contact-icon {
    width: 36px; height: 36px; min-width: 36px;
    background: rgba(255,255,255,0.07);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-light);
    font-size: 0.85rem;
}
.footer-contact-item p { margin: 0; color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.5; }

.footer-bottom {
    padding: 22px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.35); font-size: 0.83rem; }

/* ── GLASS PANEL (Legacy support) ───────── */
.glass-panel {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* ── BUTTONS ─────────────────────────────── */
.btn-premium {
    background: linear-gradient(135deg, var(--accent), #1D4ED8);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.93rem;
    box-shadow: 0 4px 18px rgba(0,102,255,0.35);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,102,255,0.5); color: white; }

.btn-outline-primary {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    font-weight: 600;
}
.btn-outline-primary:hover { background: var(--accent) !important; color: white !important; }

/* ── PREMIUM CARD (Legacy) ───────────────── */
.premium-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
}
.premium-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.premium-card .card-img-top { height: 240px; object-fit: cover; }
.premium-card-body { padding: 1.5rem; }

/* ── SECTION BG VARIANTS ─────────────────── */
.bg-section-alt { background-color: var(--off-white); }
.bg-white-pure { background-color: white; }

/* ── ANIMATIONS ──────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float { animation: float 4s ease-in-out infinite; }

/* ── PREMIUM SERVICES SECTION ────────────── */
.services-premium-section {
    background: var(--primary);
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}
.services-premium-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(0,102,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.sps-header {
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}
.sps-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 0;
}
.sps-title span {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sps-desc {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 340px;
    margin-left: auto;
    text-align: right;
}
.sps-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FCD34D;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: gap 0.25s ease;
}
.sps-cta-link:hover { gap: 14px; color: #FCD34D; }

/* Cards */
.sps-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 390px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                box-shadow 0.4s ease;
}
.sps-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.sps-photo {
    position: absolute;
    inset: 0;
    background-image: var(--sps-bg);
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.sps-card:hover .sps-photo { transform: scale(1.1); }

.sps-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5,15,35,0.98) 0%,
        rgba(5,15,35,0.6) 45%,
        rgba(0,60,200,0.1) 100%
    );
    transition: background 0.4s ease;
}
.sps-card:hover .sps-overlay {
    background: linear-gradient(
        to top,
        rgba(0,40,160,0.97) 0%,
        rgba(0,50,200,0.72) 50%,
        rgba(0,80,255,0.2) 100%
    );
}

.sps-body {
    position: absolute;
    inset: 0;
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.sps-num {
    position: absolute;
    top: 20px; right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    user-select: none;
    transition: color 0.4s;
}
.sps-card:hover .sps-num { color: rgba(255,255,255,0.1); }

.sps-icon {
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: #FCD34D;
    margin-bottom: 18px;
    transition: background 0.35s, border-color 0.35s, transform 0.35s;
    flex-shrink: 0;
}
.sps-card:hover .sps-icon {
    background: rgba(252,211,77,0.18);
    border-color: rgba(252,211,77,0.45);
    transform: scale(1.1) rotate(-5deg);
}

.sps-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.25;
}
.sps-card-desc {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.0);
    line-height: 1.7;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, color 0.45s ease, margin 0.45s ease;
}
.sps-card:hover .sps-card-desc {
    max-height: 90px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 4px;
}

.sps-learn-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FCD34D;
    color: var(--primary) !important;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    padding: 9px 18px;
    border-radius: 100px;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.25s ease;
    width: fit-content;
    flex-shrink: 0;
}
.sps-learn-btn i { font-size: 0.75rem; transition: transform 0.25s; }
.sps-learn-btn:hover {
    background: white;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.sps-learn-btn:hover i { transform: translateX(4px); }

@media (max-width: 767px) {
    .services-premium-section { padding: 70px 0 80px; }
    .sps-header { margin-bottom: 40px; }
    .sps-desc { margin-left: 0; text-align: left; max-width: 100%; }
    .sps-card { height: 320px; }
    .sps-card-desc { max-height: 70px !important; color: rgba(255,255,255,0.6) !important; margin-bottom: 4px !important; }
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 991px) {
    /* Hero stays screen-locked on tablet */
    .hero-section { height: 100vh; height: 100svh; }
    .hero-content {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    .hero-title { font-size: 2.2rem; }
    .hero-badge { margin-bottom: 14px; }
    .hero-subtitle { font-size: 0.98rem; margin-bottom: 16px; }
    .hero-cta-row { margin-bottom: 14px; }
    .hero-trust { margin-bottom: 14px; }
    .hero-stats { padding-top: 16px; }
    .hero-stat-num { font-size: 1.75rem; }
    .hero-stat-label { font-size: 0.68rem; }
    /* About */
    .about-img-floating, .about-badge-float { display: none; }
    .about-img-main { height: 380px; }
    /* Stats strip */
    .stat-number { font-size: 2.2rem; }
}

/* ── TABLET (768px) ──────────────────── */
@media (max-width: 767px) {
    /* Hero locked to phone screen */
    .hero-section {
        height: 100vh;
        height: 100svh;
        overflow: hidden;
    }
    .hero-content {
        padding-top: 72px !important;
        padding-bottom: 30px !important;
        padding-left: 0;
        padding-right: 0;
        align-items: flex-start;
    }
    .hero-content > .container,
    .hero-content.container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    /* Tighten all hero elements for mobile */
    .hero-badge { margin-bottom: 10px; padding: 6px 14px; font-size: 0.7rem; }
    .hero-title {
        font-size: 1.75rem;
        letter-spacing: -0.02em;
        line-height: 1.1;
        margin-bottom: 10px;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
        max-width: 100%;
    }
    .hero-badge { font-size: 0.7rem; padding: 6px 14px; }

    /* Buttons: side-by-side, not full-width */
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 13px 22px;
        font-size: 0.9rem;
        width: auto !important;
        flex: none;
    }
    .d-flex.flex-wrap.gap-3 {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    /* ──────────────────────────────── */
    /* Stats: 4 in one horizontal strip */
    /* ──────────────────────────────── */
    .hero-stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding-top: 20px;
        margin-top: 28px;
        width: 100%;
    }
    .hero-stat {
        flex: 1 !important;
        display: block !important;
        text-align: center;
        border-left: none !important;
        border-bottom: none !important;
        padding: 0 4px !important;
        overflow: hidden;
        min-width: 0;
    }
    .hero-stat + .hero-stat {
        border-left: 1px solid rgba(255,255,255,0.15) !important;
    }
    .hero-stat:last-child { border-bottom: none; }
    .hero-stat-num {
        font-size: 1.35rem;
        line-height: 1;
        font-weight: 800;
    }
    .hero-stat-label {
        font-size: 0.52rem;
        letter-spacing: 0.04em;
        text-align: center;
        margin-top: 4px;
        line-height: 1.3;
    }

    /* Project cards */
    .project-card { height: 260px; }
    .project-arrow { opacity: 1 !important; background: rgba(0,102,255,0.7) !important; }

    /* Section padding */
    section.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .container.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

    /* Stats strip */
    .stats-strip .row { row-gap: 24px; }
    .stat-number { font-size: 2rem; }

    /* Service cards */
    .service-card { padding: 24px 20px; }
    .service-icon { width: 56px; height: 56px; font-size: 1.3rem; }

    /* Team */
    .team-card-img { height: 220px; }

    /* CTA band */
    .cta-band h2 { font-size: 1.9rem !important; }

    /* Footer */
    .footer-glass { padding: 50px 0 0; }

    /* Section titles */
    h2.display-5 { font-size: 1.7rem !important; }
    h2.display-4 { font-size: 1.85rem !important; }
}

/* ── SMALL PHONE (max 576px) ───────────── */
@media (max-width: 576px) {
    .hero-title { font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.1; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-btn-primary, .hero-btn-secondary {
        padding: 12px 20px;
        font-size: 0.88rem;
        width: auto !important;
    }
    .hero-stat-num { font-size: 1.5rem; }
    .hero-stat-label { font-size: 0.58rem; }
    .hero-badge { font-size: 0.68rem; padding: 6px 12px; }
    .d-flex.flex-wrap { gap: 8px !important; }
    .article-card-img { height: 180px; }
    .about-img-main { height: 260px; } /* Reduced for mobile */
    .navbar-brand { font-size: 1.2rem; }
    .section-eyebrow { font-size: 0.68rem; }
    h2.display-5 { font-size: 1.55rem !important; }
    h2.display-4 { font-size: 1.7rem !important; }
}

/* ── DARK MODE OVERRIDES ────────────────── */
body.dark-mode {
    background-color: #050E17 !important;
    color: rgba(255,255,255,0.8) !important;
    --off-white: #08121D;
    --white: #0D1B2A;
    --dark-text: #E2E8F0;
    --muted: #94A3B8;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
    color: #FFFFFF !important;
}

body.dark-mode .hdr-nav {
    background: rgba(10, 37, 64, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

body.dark-mode .hdr-nav-link {
    color: rgba(255,255,255,0.85) !important;
}

body.dark-mode .hdr-logo-main {
    color: white !important;
}

body.dark-mode .service-card,
body.dark-mode .team-card,
body.dark-mode .article-card,
body.dark-mode .glass-panel,
body.dark-mode .about-section,
body.dark-mode .ct-card,
body.dark-mode .ct-form-card,
body.dark-mode .ct-side-panel,
body.dark-mode .faq-item,
body.dark-mode .career-card,
body.dark-mode .tm-card,
body.dark-mode .ct-side-head {
    background: #0D1B2A !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.85) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4) !important;
}

body.dark-mode input, 
body.dark-mode textarea, 
body.dark-mode select {
    background-color: #162638 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}

body.dark-mode .ct-label {
    color: rgba(255,255,255,0.7) !important;
}

body.dark-mode .stat-number,
body.dark-mode .hero-stat-num {
    color: white !important;
}

body.dark-mode .about-img-floating {
    border-color: #0D1B2A !important;
}

body.dark-mode .footer-glass {
    background: #03080F !important;
}

body.dark-mode .faq-question {
    color: white !important;
}

body.dark-mode .ct-input-styled, 
body.dark-mode .ct-textarea-styled,
body.dark-mode .ct-input-icon-field {
    background: #162638 !important;
    border-color: rgba(255,255,255,0.1) !important;
}

body.dark-mode .ct-step span {
    background: #162638 !important;
    border-color: #2D3748 !important;
}

body.dark-mode .ct-type-inner {
    background: #162638 !important;
    border-color: #2D3748 !important;
}

body.dark-mode .ct-progress-track {
    background: #2D3748 !important;
}
/* -- FLOATING WHATSAPP BUTTON -- */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 15px rgba(0,0,0,0.2); z-index: 10000; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease; }
.whatsapp-float:hover { background-color: #128c7e; color: #fff; transform: scale(1.1) rotate(15deg); }
@media (max-width: 768px) { .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; } }

/* ── GLOBAL MOBILE OPTIMIZATION (MAX 767px) ───────────── */
@media (max-width: 767px) {
    /* 1. Global Padding & Margin Fixes */
    section, .py-5, .ab-section, .sv-section, .faq-section, .cta-band, .sv-why-strip {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .hero-content, .ab-hero-content, .sv-hero-content, .faq-hero-content, .ct-hero-content, .tm-hero-content {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
        min-height: auto !important;
    }
    
    /* 2. Global Typography Scaling */
    h1, .hero-title, .ab-hero-title, .sv-hero-title, .faq-hero-title, .ct-hero-title, .team-section-title, .sps-title {
        font-size: 1.85rem !important;
        line-height: 1.15 !important;
        margin-bottom: 12px !important;
    }
    h2, .display-4, .display-5, .ab-h2, .sv-why-title, .ab-cta-title {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }
    h3, h4, .sps-card-title, .project-card-content h4, .sv-item-title, .faq-group-header {
        font-size: 1.3rem !important;
    }
    p, .hero-subtitle, .ab-hero-sub, .sv-hero-sub, .faq-hero-sub {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    .section-eyebrow {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
    }
    
    /* 3. Global Container & Grid Fixes */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .row.g-5, .row.g-4 {
        --bs-gutter-y: 1.5rem;
        --bs-gutter-x: 1.5rem;
    }
    .carousel-container {
        margin: 0 -20px !important;
        padding: 0 20px !important;
    }
    .carousel-item-custom {
        width: 85% !important;
        padding-right: 15px;
    }

    /* 4. Global Button Scaling */
    .btn, .btn-premium, .hero-btn-primary, .hero-btn-secondary, .ab-cta-btn-primary, .ab-cta-btn-outline, .sv-primary-btn, .sv-secondary-btn, .sv-why-btn-gold, .sv-why-btn-outline {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-bottom: 10px;
    }
    .hero-cta-row, .d-flex.flex-wrap, .sv-item-actions {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100%;
    }

    /* 5. Extra Small Photos & Icons for Mobile (User Request) */
    /* Shrinking photos */
    .about-img-main, .ab-img, .hero-img-main, .ct-side-card img {
        height: 180px !important;
    }
    .project-card, .article-card-img, .sv-item-photo, .sps-card {
        height: 180px !important;
    }
    .team-card-img {
        height: 160px !important;
    }
    
    /* Shrinking icons & circular elements */
    .service-icon, .sv-item-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    .ab-value-card i {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    .feature-check .check-icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        font-size: 0.65rem !important;
    }
    .hero-float-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        font-size: 0.85rem !important;
    }
    .review-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }
}
