/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-blue: #1a4a8d;
    --primary-dark: #0d2d5a;
    --accent-orange: #e67e22;
    --accent-gold: #d4a84b;
    --accent-gold-light: #f0c96a;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #e2e8f0;
    --medium-gray: #94a3b8;
    --dark-gray: #475569;
    --text-dark: #1e293b;

    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #0a1f3d 0%, #0d2d5a 40%, #1a4a8d 75%, #1e5ea8 100%);
    --card-gradient: linear-gradient(180deg, rgba(26, 74, 141, 0.05) 0%, rgba(26, 74, 141, 0.1) 100%);
    --gold-gradient: linear-gradient(135deg, #d4a84b 0%, #f0c96a 50%, #e67e22 100%);
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 110px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 48px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 20px 80px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 50px rgba(26, 74, 141, 0.35);
    --shadow-gold: 0 8px 32px rgba(212, 168, 75, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gold-gradient);
    z-index: 99997;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 168, 75, 0.7);
}

/* ===== PAGE TRANSITION OVERLAY ===== */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    z-index: 99990;
    transform: scaleY(1);
    transform-origin: top;
    animation: pageReveal 1.1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes pageReveal {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(0); }
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(26, 74, 141, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 85px;
    /* Sticky needs a stacking context to work with z-index */
    will-change: transform;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(13, 45, 90, 0.12);
    background: rgba(255, 255, 255, 1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    height: 100%;
    padding: 10px 0px 10px 0px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition-medium);
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.93rem;
    position: relative;
    transition: var(--transition-fast);
    letter-spacing: 0.01em;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-cta {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

.btn:hover::after {
    background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 74, 141, 0.25);
}

.btn-primary {
    background: #d4a84b;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(212, 168, 75, 0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: #c0942f;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(192, 148, 47, 0.45);
}

.btn-primary svg,
.btn-outline svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-large {
    padding: 17px 38px;
    font-size: 1.02rem;
    border-radius: 12px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: var(--transition-medium);
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: calc(100vh - 72px);
    background: var(--hero-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Sticky header is in-flow, so no large offset needed */
    padding-top: 80px;
    padding-bottom: 100px;
}

/* Animated mesh background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(212, 168, 75, 0.12) 0%, transparent 50%);
    animation: meshPulse 8s ease-in-out infinite alternate;
}

@keyframes meshPulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Dot grid pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: gridDrift 25s linear infinite;
}

@keyframes gridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 32px 32px; }
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(37, 99, 235, 0.3);
    top: -100px;
    right: 10%;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(212, 168, 75, 0.15);
    bottom: 10%;
    left: 5%;
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(30, 94, 168, 0.25);
    top: 50%;
    left: 45%;
    animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero text animations */
.hero-text {
    animation: heroTextIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.4s;
}

@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 26px;
    letter-spacing: -0.02em;
}

.hero-text h1 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero-text p {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 40px;
    line-height: 1.85;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* Pulse ring on primary CTA */
.btn-primary.btn-large {
    position: relative;
}

.btn-primary.btn-large::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    border: 2px solid rgba(212, 168, 75, 0.4);
    animation: ctaPulse 2.5s ease-out infinite;
}

@keyframes ctaPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.12); opacity: 0; }
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: #f0f7ff;
    padding: 60px 0;
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 30px rgba(26, 74, 141, 0.08);
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--light-gray);
}

.stat-item:last-child::after { display: none; }

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Reveal / counter animation */
.stat-item.counting h3 {
    animation: countUp 0.05s steps(1) both;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroVisualIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.6s;
}

@keyframes heroVisualIn {
    from { opacity: 0; transform: translateX(50px) rotate(2deg); }
    to { opacity: 1; transform: translateX(0) rotate(0deg); }
}

.hero-graphic {
    width: 100%;
    max-width: 600px;
    height: 650px;
    position: relative;
}

/* Central glowing sphere in hero graphic */
.hero-graphic::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, rgba(26, 74, 141, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: coreGlow 4s ease-in-out infinite;
    filter: blur(20px);
    z-index: 0;
}

@keyframes coreGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 26px;
    width: 255px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.5);
    animation: floatCard 7s ease-in-out infinite;
    z-index: 5;
    transform-origin: center;
    transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.7);
    z-index: 10;
}

.floating-card:nth-child(1) {
    top: 30px;
    left: 0;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 38%;
    right: -10px;
    animation-delay: 2.3s;
}

.floating-card:nth-child(3) {
    bottom: 30px;
    left: 50px;
    animation-delay: 4.6s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(0.5deg); }
    75% { transform: translateY(-6px) rotate(-0.5deg); }
}

.floating-card .card-icon {
    width: 52px;
    height: 52px;
    background: var(--hero-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(26, 74, 141, 0.3);
    transition: var(--transition-spring);
}

.floating-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(26, 74, 141, 0.4);
}

.floating-card .card-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--white);
}

.floating-card h4 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.floating-card p {
    font-size: 0.82rem;
    color: var(--medium-gray);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Accent line on cards */
.floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 0 0 4px 4px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.floating-card:hover::before {
    transform: scaleX(1);
}

/* ===== SECTION BASE ===== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    background: rgba(26, 74, 141, 0.09);
    color: var(--primary-blue);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    border: 1px solid rgba(26, 74, 141, 0.15);
    transition: var(--transition-medium);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.9rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.08rem;
    color: var(--dark-gray);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--section-padding);
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

/* Decorative background circles */
.services::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(26, 74, 141, 0.05);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(26, 74, 141, 0.04);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--white);
    border-radius: 22px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Animated gradient border */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: var(--gold-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 4px 4px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Shine sweep on hover */
.service-card .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.service-card:hover .shine {
    left: 150%;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(26, 74, 141, 0.08), rgba(26, 74, 141, 0.15));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.service-card:hover .service-icon {
    background: var(--hero-gradient);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(26, 74, 141, 0.35);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    fill: var(--primary-blue);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon svg {
    fill: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 14px;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.service-card:hover h3 {
    color: var(--primary-blue);
}

.service-card p {
    color: var(--dark-gray);
    font-size: 0.93rem;
    line-height: 1.75;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.55;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.service-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.75rem;
    top: 2px;
    transition: transform 0.2s ease;
}

.service-card:hover .service-list li {
    color: var(--text-dark);
}

.service-card:hover .service-list li::before {
    transform: translateX(2px);
}

/* ===== HOW IT WORKS ===== */
.process {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Animated background line */
.process::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-gray), transparent);
    top: 50%;
    left: 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 20px;
}

/* Connector line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--light-gray), var(--accent-gold), var(--light-gray));
    z-index: 0;
    background-size: 200% auto;
    animation: lineFlow 3s linear infinite;
}

@keyframes lineFlow {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0 16px;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--hero-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Ripple ring around step numbers */
.step-number::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(26, 74, 141, 0.2);
    animation: stepRipple 2.5s ease-out infinite;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid rgba(26, 74, 141, 0.1);
    animation: stepRipple 2.5s ease-out 0.5s infinite;
}

@keyframes stepRipple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.step:hover .step-number {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 74, 141, 0.4);
}

.step h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step p {
    color: var(--dark-gray);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
    padding: var(--section-padding);
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

/* Animated mesh for why-us */
.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.why-us::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.why-us .section-header {
    position: relative;
    z-index: 1;
}

.why-us .section-header h2,
.why-us .section-header p {
    color: var(--white);
}

.why-us .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-gold);
    border-color: rgba(255, 255, 255, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 36px;
    display: flex;
    gap: 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(8px) translateY(-4px);
    border-color: rgba(212, 168, 75, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 168, 75, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    background: var(--gold-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-spring);
}

.feature-card:hover .feature-icon {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 12px 30px rgba(212, 168, 75, 0.5);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

.feature-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 90px 0;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: var(--white);
    border-radius: 32px;
    padding: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s ease;
}

.cta-box:hover {
    box-shadow: 0 30px 100px rgba(13, 45, 90, 0.15);
    transform: translateY(-4px);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: var(--gold-gradient);
    border-radius: 50%;
    opacity: 0.07;
    animation: ctaOrb 8s ease-in-out infinite;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 250px;
    height: 250px;
    background: var(--hero-gradient);
    border-radius: 50%;
    opacity: 0.05;
    animation: ctaOrb 10s ease-in-out infinite reverse;
}

@keyframes ctaOrb {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cta-content p {
    color: var(--dark-gray);
    font-size: 1.08rem;
    line-height: 1.6;
}

.cta-actions {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '"';
    position: absolute;
    font-size: 400px;
    font-family: Georgia, serif;
    color: rgba(26, 74, 141, 0.03);
    top: -80px;
    left: -40px;
    line-height: 1;
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

.testimonial-card {
    background: var(--off-white);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 38px;
    }
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 28px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--primary-blue);
    opacity: 0.08;
    line-height: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: var(--white);
    border-color: rgba(212, 168, 75, 0.2);
}

.testimonial-card:hover::before {
    opacity: 0.15;
    transform: scale(1.1);
}

.testimonial-card:hover::after {
    transform: scaleX(1);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
}

.stars svg {
    width: 17px;
    height: 17px;
    fill: var(--accent-gold);
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(212, 168, 75, 0.3));
}

.testimonial-card:hover .stars svg {
    animation: starPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.testimonial-card:hover .stars svg:nth-child(1) { animation-delay: 0s; }
.testimonial-card:hover .stars svg:nth-child(2) { animation-delay: 0.05s; }
.testimonial-card:hover .stars svg:nth-child(3) { animation-delay: 0.1s; }
.testimonial-card:hover .stars svg:nth-child(4) { animation-delay: 0.15s; }
.testimonial-card:hover .stars svg:nth-child(5) { animation-delay: 0.2s; }

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.testimonial-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.testimonial-card blockquote {
    font-size: 0.97rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 0;
    font-style: italic;
}

.read-more-btn {
    color: var(--primary-blue);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 24px;
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: var(--accent-gold);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 52px;
    height: 52px;
    background: var(--hero-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(26, 74, 141, 0.3);
    transition: var(--transition-spring);
    position: relative;
}

.author-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gold-gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .author-avatar::after {
    opacity: 1;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.08);
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 3px;
    font-weight: 600;
}

.author-info p {
    font-size: 0.83rem;
    color: var(--medium-gray);
}

/* ===== TESTIMONIAL MODAL ===== */
.testimonial-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.testimonial-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--off-white);
    padding: 30px 20px;
    border-radius: 20px;
    max-width: 650px;
    width: 95%;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
    .modal-content {
        padding: 40px;
        width: 100%;
    }
}

.testimonial-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: rgba(26, 74, 141, 0.08);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: var(--primary-blue);
}

.close-modal svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-blue);
    transition: stroke 0.3s;
}

.close-modal:hover svg {
    stroke: var(--white);
}

.modal-quote-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-top: 20px;
    font-style: italic;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 90px 0 36px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.5), transparent);
}

footer::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 74, 141, 0.4) 0%, transparent 60%);
    border-radius: 50%;
    bottom: -200px;
    right: -100px;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    margin: 20px 0;
    line-height: 1.85;
    font-size: 0.93rem;
}

.footer-brand img {
    display: block;
    height: auto;
    max-width: 180px;
    max-height: 60px;
    margin-bottom: 15px;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-brand img:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(212, 168, 75, 0.4);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.footer-column {
    position: relative;
    z-index: 1;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 26px;
    color: var(--white);
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-column ul a::before {
    content: '→';
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
    color: var(--accent-gold);
}

.footer-column ul a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-column ul a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-column .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-column .contact-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-column .contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--hero-gradient);
    /* Sticky header is in-flow, just add comfortable top breathing room */
    padding: 90px 0 90px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridDrift 20s linear infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
    animation: heroTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
    animation: heroTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.45s;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    padding-right: 20px;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.contact-text {
    color: var(--dark-gray);
    margin-bottom: 40px;
    line-height: 1.75;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-detail-item:hover {
    background: var(--off-white);
    border-color: rgba(26, 74, 141, 0.1);
    transform: translateX(4px);
}

.contact-detail-item .icon {
    width: 52px;
    height: 52px;
    background: rgba(26, 74, 141, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-detail-item:hover .icon {
    background: var(--primary-blue);
    color: white;
}

.contact-detail-item:hover .icon svg {
    stroke: white;
}

.contact-detail-item .icon svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.contact-detail-item:hover .icon svg {
    transform: scale(1.1);
}

.contact-detail-item h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-detail-item p {
    color: var(--medium-gray);
    font-size: 0.93rem;
    line-height: 1.65;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 44px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: box-shadow 0.4s ease;
}

.contact-form-wrapper:hover {
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 26px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--light-gray);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: var(--off-white);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 74, 141, 0.08);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 8px;
    padding: 18px;
    background: var(--off-white);
    border: 1.5px solid var(--light-gray);
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.checkbox-group:focus-within {
    border-color: var(--primary-blue);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.93rem;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(26, 74, 141, 0.05);
    color: var(--primary-blue);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: var(--section-padding);
    background: var(--off-white);
}

.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 74, 141, 0.1);
}

.faq-item.active {
    border-color: rgba(26, 74, 141, 0.2);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 26px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: all 0.3s ease;
    gap: 16px;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon-wrapper {
    width: 36px;
    height: 36px;
    background: rgba(26, 74, 141, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.active .faq-icon-wrapper {
    background: var(--primary-blue);
    transform: rotate(45deg);
}

.faq-question svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 2.5;
    transition: none;
}

.faq-item.active .faq-question svg {
    stroke: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 28px 28px;
    color: var(--dark-gray);
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
}

/* ===== ABOUT PAGE VALUES ===== */
.value-card {
    background: var(--white);
    padding: 36px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover h3,
.value-card:hover p {
    color: white;
    position: relative;
    z-index: 1;
}

.value-card .value-icon {
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .value-icon {
    background: rgba(255,255,255,0.2) !important;
}

.value-card:hover .value-icon svg {
    stroke: white !important;
}

.value-card h3 {
    transition: color 0.3s ease;
}

.value-card p {
    transition: color 0.3s ease;
}

/* ===== MISSION/VISION SECTION ===== */
.mission-vision-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.19s; }
.stagger-4 { transition-delay: 0.26s; }
.stagger-5 { transition-delay: 0.33s; }
.stagger-6 { transition-delay: 0.40s; }

/* Counter animation */
.stat-item h3 {
    transition: all 0.3s ease;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 52px;
    height: 52px;
    background: var(--hero-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(13, 45, 90, 0.3);
    cursor: pointer;
    z-index: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 36px rgba(13, 45, 90, 0.4);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
}

/* Tooltip */
.back-to-top::before {
    content: 'Back to top';
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.back-to-top:hover::before {
    opacity: 1;
}

/* ===== MOBILE NAV OVERLAY ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 999;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
        animation: mobileNavIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes mobileNavIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.active li {
        animation: navItemIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }

    @keyframes navItemIn {
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links a {
        color: white;
        font-size: 1.6rem;
        font-family: var(--font-heading);
        font-weight: 700;
    }

    .nav-links a:hover { color: var(--accent-gold); }
    .nav-links a.active { color: var(--accent-gold); }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .menu-toggle.active span {
        background: var(--accent-gold);
    }

    .nav-cta {
        display: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .hero-text h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { display: flex; gap: 40px; margin-top: 20px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 2.1rem; }
    .services-grid { grid-template-columns: 1fr; }
    
    .testimonials-grid { 
        grid-template-columns: 1fr;
    }
    .testimonials .container { height: auto; padding: 60px 0; }

    .process-steps {
        flex-direction: column;
        gap: 50px;
    }

    .process-steps::before { display: none; }

    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 44px 32px;
    }

    .cta-actions { margin-left: 0; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .hero-stats { display: flex; gap: 30px; margin-top: 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .page-header { padding: 100px 0 50px; }
    .page-header h1 { font-size: 2rem; }
    .page-header p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .hero { padding-top: 50px; }
    .hero-text h1 { font-size: 1.85rem; }
    .btn-large { padding: 15px 28px; font-size: 0.95rem; }
    .step-number { width: 80px; height: 80px; font-size: 2rem; }
    .back-to-top { bottom: 24px; right: 24px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .stat-item::after { display: none; }
}

/* ===== HERO BUTTON OVERRIDE FOR DARK BG ===== */
.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
    background: transparent;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 1);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: none;
}

/* ===== ANIMATED COUNTER ===== */
@keyframes countUp {
    from { opacity: 0.5; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== LOADING SKELETON (for future use) ===== */
@keyframes skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== DOWNLOADS PAGE STYLES ===== */
.downloads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .downloads-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

.download-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-gray);
}

@media (min-width: 768px) {
    .download-card {
        padding: 2rem;
    }
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.download-icon {
    width: 48px;
    height: 48px;
    background: rgba(26, 74, 141, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.download-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.download-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem !important;
    color: var(--text-dark);
    flex-grow: 1;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    gap: 0.5rem;
    width: 100%;
}

.download-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.download-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== ABOUT PAGE SPECIFIC ===== */
.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mission-vision-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text-content {
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .about-text-content {
        margin-bottom: 0;
    }
}

/* Global Responsive Tweaks */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

.section-title-large {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-p-main {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .section-title-large {
        font-size: 1.85rem;
    }
    
    .about-p-main {
        font-size: 1rem;
    }
}