/* =======================
   JD TECH CONSULTING
   Performance-Optimized Design
   ======================= */

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

/* Performance optimizations */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Better touch targets for mobile */
a,
button,
.nav-link,
.nav-cta,
.btn,
.service-card,
.case-card,
.contact-method {
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
}

img,
picture,
video {
    max-width: 100%;
    display: block;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f1f3f5;
    
    --navy: #0a2540;
    --navy-dark: #051627;
    --navy-light: #1a3a5c;
    
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    --accent-blue: #2563eb;
    --accent-blue-light: #3b82f6;
    
    --border-light: #e5e7eb;
    --border-gray: #d1d5db;
    
    --gradient-navy: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 1rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Smooth scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

/* Navigation sizing variables for consistent layout */
:root {
    --nav-height: 80px; /* desktop default */
}

/* =======================
   CLEAN BACKGROUND
   ======================= */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-white);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(37, 99, 235, 0.01) 2px, rgba(37, 99, 235, 0.01) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(37, 99, 235, 0.01) 2px, rgba(37, 99, 235, 0.01) 4px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
}

/* =======================
   NAVIGATION
   ======================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.625rem 0;
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: padding 0.2s ease, box-shadow 0.2s ease;
    height: var(--nav-height);
}

.nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.15s ease;
    line-height: 0; /* prevent baseline cropping */
}

.nav-logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    :root { --nav-height: 60px; }
    .logo-img {
        height: 40px;
        max-width: 200px;
    }
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
    position: relative;
}

.nav-link-portal {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link-portal:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.nav-link-portal::after {
    display: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--navy);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-burger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* =======================
   HERO SECTION
   ======================= */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    background: 
        url('./assets/images/tech-abstract-hero.svg') center center / cover no-repeat,
        linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 37, 64, 0.04);
    border: 1px solid rgba(10, 37, 64, 0.1);
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--navy);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--navy);
    border-radius: 50%;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: 5rem;
    }
}

.title-line {
    display: block;
}

.gradient-text {
    color: var(--navy);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    padding: 1.25rem 1.75rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, rgba(10, 37, 64, 0.2), rgba(10, 37, 64, 0.1));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, var(--navy), var(--accent-blue));
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.btn-outline span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-outline:hover {
    color: white;
    border-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.15);
}

.btn-outline:hover::before {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--navy);
    border: 2px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.06);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary span,
.btn-secondary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover::before {
    opacity: 1;
}


/* =======================
   SERVICES SECTION
   ======================= */
.services {
    padding: 4rem 2rem 3rem;
    position: relative;
    background: var(--bg-white);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./assets/patterns/circuit-pattern.svg');
    background-repeat: repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.services-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .services-container {
        padding: 0 2rem;
    }
}

/* Section Dividers */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-light) 20%,
        var(--navy) 50%,
        var(--border-light) 80%,
        transparent 100%
    );
    margin: 1rem 0;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .section-divider {
        margin: 0.75rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

@media (min-width: 1400px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    position: relative;
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1400px) {
    .service-card {
        padding: 3rem;
        min-height: 380px;
    }
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--navy);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-number {
    display: none; /* Hidden per user feedback - numbers clutter mobile view */
}

@media (min-width: 1400px) {
    .service-number {
        font-size: 5rem;
        top: 2rem;
        right: 2rem;
    }
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--navy);
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

@media (min-width: 1400px) {
    .service-card h3 {
        font-size: 1.75rem;
    }
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: auto;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 400;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.service-tech span {
    padding: 0.375rem 0.875rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
}

/* =======================
   CASE STUDIES SECTION
   ======================= */
.case-studies {
    padding: 3rem 2rem 2rem;
    background: var(--bg-light);
    position: relative;
}

.case-studies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(37, 99, 235, 0.005) 100px, rgba(37, 99, 235, 0.005) 200px);
    pointer-events: none;
    z-index: 0;
}

.case-studies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .case-studies-container {
        padding: 0 2rem;
    }
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

.case-card {
    position: relative;
    padding: 3rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: var(--navy);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.case-number {
    display: none; /* Hidden per user feedback - using full client names instead */
}

.case-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.case-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.case-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.case-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-link {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.case-card:hover .case-link {
    color: var(--navy);
}

.case-btn {
    margin-top: auto;
    width: 100%;
    pointer-events: none; /* Button inside link - link handles click */
}

.case-card:hover .case-btn::before {
    opacity: 1;
}

/* Old expertise section styles - keep for backwards compatibility */
.expertise {
    padding: 8rem 2rem;
    background: var(--bg-light);
}

.expertise-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

@media (max-width: 1200px) {
    .expertise-container {
        padding: 0 2rem;
    }
}

.expertise-content {
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0 4rem;
}

.expertise-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.expertise-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.exp-icon {
    font-size: 2rem;
}

.expertise-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.expertise-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-box {
    padding: 3rem;
    background: var(--navy);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-image: url('./assets/images/tech-illustration.svg');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.cta-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.cta-box .btn-primary {
    background: white;
    color: var(--navy);
    position: relative;
    z-index: 1;
}

.cta-box .btn-primary::before {
    display: none;
}

.cta-box .btn-primary:hover {
    background: var(--bg-light);
}

/* =======================
   TESTIMONIALS SECTION
   ======================= */
.testimonials {
    padding: 3rem 0 2rem;
    background: white;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

.testimonials-track-container {
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    animation: scroll-left 180s linear infinite;
    width: fit-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex: 0 0 400px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.1);
    border-color: var(--navy);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-tagline {
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    font-style: normal;
}

.testimonial-text {
    font-size: 1.0625rem; /* Increased slightly per user feedback */
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 300px;
        padding: 1.5rem;
    }

    .testimonials-container {
        padding: 0 2rem;
    }
}

/* =======================
   CONTACT SECTION
   ======================= */
.contact {
    padding: 3rem 2rem 2rem;
    background: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./assets/images/contact-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .contact-container {
        padding: 0 2rem;
    }
}

.contact-content {
    text-align: center;
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--navy);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.form-status {
    margin-top: 1rem;
    padding: 0.875rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: block;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* =======================
   FOOTER
   ======================= */
.footer {
    padding: 4rem 2rem 2rem;
    background: var(--navy);
    color: white;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

@media (max-width: 1200px) {
    .footer-container {
        padding: 0 2rem;
    }
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .footer-logo-img {
        height: 45px;
        max-width: 200px;
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 1024px) {
    .nav-container,
    .services-container,
    .expertise-container,
    .contact-container,
    .footer-container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--navy);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: left 0.3s;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link-portal {
        background: rgba(255, 255, 255, 0.12);
        padding: 0.75rem 1.5rem;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-burger {
        display: flex;
    }

    /* Hero optimizations */
    .hero {
        padding: 7rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-container {
        padding: 0;
    }

    .hero-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .hero-badge span {
        font-size: 0.625rem;
        letter-spacing: 0.5px;
        line-height: 1.3;
        white-space: normal;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
        line-height: 1.7;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .stat-box {
        width: 100%;
        padding: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Services section */
    .services {
        padding: 3rem 1.5rem 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Case Studies */
    .case-studies {
        padding: 3rem 1.5rem 2rem;
    }

    .cases-grid {
        gap: 1.5rem;
    }

    .case-card {
        padding: 2rem 1.5rem;
    }

    .case-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .case-stat {
        text-align: left;
    }

    /* Contact section */
    .contact {
        padding: 3rem 1.5rem 2rem;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 3rem 0 2rem;
    }
    
    .testimonials-container {
        padding: 0 1.5rem;
    }
    
    .testimonial-card {
        flex: 0 0 280px;
        padding: 1.5rem;
    }

    .contact-intro {
        font-size: 1.125rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 2.5rem 2rem;
    }

    .cta-box h3 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .nav-container,
    .services-container,
    .expertise-container,
    .contact-container,
    .footer-container,
    .case-studies-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Smaller mobile devices */
    .hero {
        padding: 7rem 1rem 3rem;
    }

    .hero-badge {
        font-size: 0.6875rem;
        padding: 0.5rem 1rem;
        max-width: 95%;
    }

    .hero-badge span {
        font-size: 0.5625rem;
        letter-spacing: 0.3px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.65;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .section-label {
        font-size: 0.75rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        min-height: 320px;
    }

    .service-card h3 {
        font-size: 1.375rem;
    }

    .service-number {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }

    .case-card {
        padding: 2rem 1.25rem;
    }

    .case-card h3 {
        font-size: 1.25rem;
    }

    .case-subtitle {
        font-size: 0.8125rem;
    }

    .case-number {
        font-size: 2.5rem;
    }

    .nav-container,
    .services-container,
    .expertise-container,
    .contact-container,
    .footer-container,
    .case-studies-container {
        padding: 0 1rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        min-height: 48px; /* Better touch targets */
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h3 {
        font-size: 1.75rem;
    }

    .contact-method h4 {
        font-size: 1.125rem;
    }

    .method-icon {
        width: 40px;
        height: 40px;
    }

    .footer {
        padding: 4rem 1.5rem 2.5rem;
    }

    .footer-brand {
        margin-bottom: 2.5rem;
    }

    .footer-brand p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.9375rem;
    }

    .footer-links {
        font-size: 0.9375rem;
    }
    
    .testimonial-card {
        flex: 0 0 260px;
        padding: 1.25rem;
    }
    
    .testimonial-text {
        font-size: 0.9375rem;
    }
    
    .section-divider {
        margin: 0.5rem 0;
    }
}

/* =======================
   CASE STUDY DETAIL PAGE
   ======================= */
.case-study-detail {
    padding: 10rem 2rem 6rem;
    background: white;
}

.case-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 3rem;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: var(--navy);
}

.case-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.case-detail-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.case-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.case-detail-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    flex-wrap: wrap;
}

.detail-stat {
    text-align: center;
}

.detail-stat .stat-num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.detail-stat .stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-detail-content {
    margin-bottom: 4rem;
}

.case-detail-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    position: relative;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.04) 0%, rgba(37, 99, 235, 0.04) 100%);
    border-left: 4px solid var(--navy);
    border-radius: 8px;
}

.case-detail-content h2:first-of-type {
    margin-top: 0;
}

/* Add subtle background to content sections */
.case-detail-content h2 + p,
.case-detail-content h2 + ul {
    margin-top: 1.5rem;
}

.case-detail-content p {
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Subtle shaded background for strong tags in sections */
.case-detail-content p strong {
    display: inline-block;
    padding: 0.125rem 0;
    color: var(--navy);
    font-weight: 700;
}

.case-detail-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.case-detail-content li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.case-detail-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.case-detail-content blockquote {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-left: 4px solid var(--navy);
    border-radius: 8px;
}

.case-detail-content blockquote {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
}

.case-detail-content cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-secondary);
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tech-tags span {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.case-cta {
    text-align: center;
    padding: 4rem;
    background: var(--navy);
    border-radius: 20px;
    margin-top: 4rem;
}

.case-cta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.case-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.case-cta .btn-primary {
    background: white;
    color: var(--navy);
}

.case-cta .btn-primary:hover {
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .case-study-detail {
        padding: 7rem 1.5rem 4rem;
    }

    .case-detail-header h1 {
        font-size: 2rem;
    }

    .case-subtitle {
        font-size: 1.125rem;
    }

    .case-detail-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .detail-stat {
        text-align: left;
    }
    
    .case-detail-content h2 {
        font-size: 1.75rem;
        padding: 1.25rem 1.5rem;
    }
    
    .case-detail-content p,
    .case-detail-content li {
        font-size: 1rem;
    }
    
    .case-cta {
        padding: 2.5rem 2rem;
    }

    .case-cta h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .case-study-detail {
        padding: 6rem 1rem 3rem;
    }

    .case-detail-container {
        padding: 0;
    }

    .back-link {
        font-size: 0.875rem;
    }

    .case-detail-header h1 {
        font-size: 1.75rem;
    }

    .case-subtitle {
        font-size: 1rem;
    }

    .stat-num {
        font-size: 2rem;
    }

    .case-detail-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        padding: 1rem 1.25rem;
    }

    .case-detail-content p,
    .case-detail-content li {
        font-size: 1rem;
        line-height: 1.7;
    }

    .case-cta {
        padding: 2rem 1.5rem;
    }

    .case-cta h3 {
        font-size: 1.5rem;
    }

    .case-cta p {
        font-size: 1rem;
    }

    .tech-tags span {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* =======================
   LEGAL PAGES
   ======================= */
.legal-page {
    padding: 8rem 2rem 6rem;
    background: var(--bg-light);
    min-height: 100vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.legal-page h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.intro-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.legal-content ul {
    margin: 1.5rem 0 2rem 1.5rem;
    color: var(--text-secondary);
}

.legal-content li {
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-content strong {
    color: var(--navy);
    font-weight: 600;
}

.legal-content a {
    color: var(--navy);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--accent-blue);
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--navy);
    margin: 2rem 0;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.legal-footer p {
    margin-bottom: 0.5rem;
}

.legal-footer .acknowledgment {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 1.5rem 4rem;
    }

    .legal-page h1 {
        font-size: 2.5rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-page h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 1.5rem 1rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

    .legal-content ul {
        margin-left: 1rem;
    }
}

/* =======================
   ABOUT SECTION
   ======================= */
.about {
    padding: 6rem 2rem;
    background: white;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    margin-top: 2rem;
}

.about-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text em {
    font-style: italic;
    color: var(--navy);
}

.mission-statement {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.03) 0%, rgba(37, 99, 235, 0.03) 100%);
    border-left: 4px solid var(--navy);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 8px;
}

.mission-statement h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-statement p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.about-stat {
    text-align: center;
}

.about-stat-num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.about-stat-label {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.founder-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.founder-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.founder-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.founder-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2.5rem 0;
}

.highlight {
    background: var(--bg-light);
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 3px solid var(--navy);
}

.highlight h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.highlight p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.highlight strong {
    color: var(--navy);
    font-weight: 600;
}

.founder-close {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 1.25rem;
    }

    .about-text h3 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    .about-text p {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
        line-height: 1.7;
    }

    .mission-statement {
        padding: 1.25rem;
        margin: 2rem 0;
    }

    .mission-statement h4 {
        font-size: 1rem;
    }

    .mission-statement p {
        font-size: 0.9375rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .about-stat-num {
        font-size: 2rem;
    }

    .about-stat-label {
        font-size: 0.875rem;
    }

    .founder-section {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
    }

    .founder-section h3 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    .founder-section p {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .founder-highlights {
        gap: 1.25rem;
        margin: 1.5rem 0;
    }

    .highlight {
        padding: 1.25rem;
    }

    .highlight h4 {
        font-size: 1rem;
    }

    .highlight p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .founder-close {
        font-size: 0.9375rem;
        margin-top: 1.5rem;
    }
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
.cookie-consent {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: var(--navy);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: bottom 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

.cookie-consent.show {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.cookie-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: white;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons .btn {
        width: 100%;
    }
}

/* =======================
   BACK TO TOP BUTTON
   ======================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1e3a5f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* =======================
   FREE SCAN MODAL
   ======================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--navy);
}

.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.modal-content > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.scan-widget {
    margin-top: 1.5rem;
    min-height: 400px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }

    .modal-content > p {
        font-size: 1rem;
    }
}

/* =======================
   FORM LOADING SPINNER
   ======================= */
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

.spinner-path {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -40px;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -120px;
    }
}
