/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #1a202c;
}

p {
    color: #4a5568;
    line-height: 1.7;
}

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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

button[disabled] .spinner {
    border-top-color: rgba(255, 255, 255, 0.5);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 55, 72, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
    filter: none;
}

.logo-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #90cdf4;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 50%;
    background-color: #90cdf4;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.contact-btn {
    background: #2b6cb0;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #2c5282;
    transform: translateY(-1px);
}

.contact-btn::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #e2e8f0;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 25%, #e0e7ff 50%, #dbeafe 75%, #f0f9ff 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23e2e8f0" fill-opacity="0.3"><circle cx="30" cy="30" r="1"/></g></svg>');
    opacity: 0.5;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #4a5568;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 160px;
}

.btn-primary {
    background: #2b6cb0;
    color: white;
}

.btn-primary:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 108, 176, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2b6cb0;
    border: 2px solid #2b6cb0;
}

.btn-secondary:hover {
    background: #2b6cb0;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.floating-card:nth-child(1) {
    top: 50px;
    right: 100px;
    width: 200px;
}

.floating-card:nth-child(2) {
    top: 200px;
    right: 50px;
    width: 180px;
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    top: 350px;
    right: 120px;
    width: 190px;
    animation-delay: -4s;
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2d3748;
}

.card-content p {
    font-size: 0.9rem;
    color: #718096;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Styles */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #1a202c;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: #f7fafc;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1a202c;
}

.service-description {
    margin-bottom: 24px;
    color: #4a5568;
    line-height: 1.6;
    flex-grow: 1;
}

.service-link {
color: #2b6cb0;
text-decoration: none;
font-weight: 600;
font-size: 14px;
transition: color 0.3s ease;
}

.service-link:hover {
color: #2c5282;
}

.coming-soon {
color: #718096;
font-style: italic;
}

.coming-soon-card {
position: relative;
opacity: 0.8;
}

.coming-soon-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
    z-index: 2;
}

@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}

.service-link.coming-soon {
color: #718096;
cursor: default;
pointer-events: none;
}

.coming-soon-card .service-icon {
opacity: 0.7;
}

.coming-soon-card .service-title {
color: #4a5568;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.about-subtitle {
    font-size: 1.5rem;
    color: #2b6cb0;
    margin-bottom: 24px;
    font-weight: 500;
}

.about-description {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 8px;
}

.stat-label {
    color: #4a5568;
    font-weight: 500;
}

/* Values Section */
.values {
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: #f7fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: white;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1a202c;
}

.value-description {
    color: #4a5568;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: #1a202c; /* match footer */
    color: white;
    text-align: center;
}

.cta::after {
    content: "";
    display: block;
    width: 160px; /* made wider */
    height: 1px;
    background: #2d3748; /* revert to subtle color */
    margin: 32px auto 0; /* more space above */
    border-radius: 1px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta .btn-primary {
    background: white;
    color: #2b6cb0;
}

.cta .btn-primary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo {
    height: 40px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(100%);
    margin-bottom: 16px;
}

.footer-description {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: white;
}

.contact-info p {
    color: #a0aec0;
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(26, 32, 44, 0.98);
        width: 100%;
        text-align: center; /* center links per request */
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 24px 16px; /* add horizontal breathing room */
        gap: 8px; /* we'll control spacing via link padding */
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Improve hero spacing on mobile */
    .hero {
        padding-top: 120px; /* push content below navbar */
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 8px; /* slight extra spacing below top of hero */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Menu item sizing and tap targets */
    .nav-menu .nav-item { 
        width: 100%;
    }
    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 16px 12px; /* slightly taller */
        font-size: 16px; /* a bit smaller text */
        border-radius: 12px;
    }
    .nav-menu .nav-link:hover {
        background: rgba(144, 205, 244, 0.12);
    }
    /* Remove underline/indicator for active link on mobile */
    .nav-menu .nav-link.active {
        text-decoration: none;
        border-bottom: none;
    }
    .nav-menu .nav-link.active::after {
        display: none;
        content: none;
    }
    
    .btn {
        min-width: 140px;
        padding: 14px 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        padding: 80px 0;
    }
    
    /* Hero visuals as horizontal scroll-snap carousel on mobile */
    .hero-visual {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 8px 4px 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        height: auto;
    }

    .floating-card {
        position: static; /* override absolute positioning */
        flex: 0 0 auto;
        min-width: 220px;
        width: 220px;
        animation: none; /* disable float animation on mobile */
        transform: none; /* disable transform to avoid jank while scrolling */
        scroll-snap-align: start;
    }

    /* neutralize desktop positional offsets */
    .floating-card:nth-child(1),
    .floating-card:nth-child(2),
    .floating-card:nth-child(3) {
        top: auto;
        right: auto;
        width: 220px;
    }

    .floating-card:hover {
        transform: none;
        box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }
    
    /* Ensure consent link moves to new line on small tablets and below */
    .contact-form-section .checkbox-label {
        flex-wrap: wrap;
    }
    .contact-form-section .checkbox-label .privacy-link {
        display: block;
        flex-basis: 100%;
        margin-top: 6px;
        margin-left: 32px; /* 20px checkbox + ~12px gap */
    }
}

/* Process Steps - Desktop Alternating Timeline */
.process-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    bottom: 80px;
    width: 6px;
    background: radial-gradient(circle, #2b6cb0 2px, transparent 2px);
    background-size: 6px 20px;
    background-repeat: repeat-y;
    animation: dotFlow 2s linear infinite;
}

.process-grid::after {
    display: none;
}

@keyframes dotFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 20px;
    }
}

.process-step {
    display: flex;
    gap: 30px;
    padding: 40px 0;
    position: relative;
    opacity: 0;
    animation: slideInStep 0.6s ease-out forwards;
}

/* Alternating layout - odd steps on left, even on right */
.process-step:nth-child(odd) {
    justify-content: flex-end;
    transform: translateX(-30px);
}

.process-step:nth-child(even) {
    justify-content: flex-start;
    transform: translateX(30px);
}

.process-step:nth-child(1) { animation-delay: 0.8s; }
.process-step:nth-child(2) { animation-delay: 1.1s; }
.process-step:nth-child(3) { animation-delay: 1.4s; }
.process-step:nth-child(4) { animation-delay: 1.7s; }
.process-step:nth-child(5) { animation-delay: 2.0s; }
.process-step:nth-child(6) { animation-delay: 2.3s; }

@keyframes slideInStep {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 8px 25px rgba(43, 108, 176, 0.3);
    border: 4px solid white;
}

.step-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(226, 232, 240, 0.8);
    flex-grow: 1;
    max-width: 400px;
    position: relative;
    transition: all 0.3s ease;
    margin-left: 30px;
    margin-right: 30px;
}

/* Arrow pointing to center for odd steps (left side) */
.process-step:nth-child(odd) .step-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid white;
    filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.05));
}

/* Arrow pointing to center for even steps (right side) */
.process-step:nth-child(even) .step-content::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid white;
    filter: drop-shadow(2px 0 4px rgba(0, 0, 0, 0.05));
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1a202c;
    font-weight: 600;
}

.step-content p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1a202c;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.example-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    text-align: center; /* center heading and text */
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.example-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px; /* center the icon */
    color: white;
}

.example-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #1a202c;
}

.example-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Mission Content */
.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.mission-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1a202c;
}

.mission-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
    background: #f9fafb; /* subtle off-white background */
    padding: 100px 0 120px;
    position: relative;
}

.contact-form-section::before {
    display: none; /* remove noisy dot pattern overlay */
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 56px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.form-group:focus-within label {
    color: #2563eb;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
    box-shadow: none;
}

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

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: #1f2937;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    margin-top: 3px;
    position: relative;
    transition: all 0.2s ease;
    background: white;
}

.checkbox-label:hover .checkmark {
    border-color: #9ca3af;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.privacy-link {
    color: #2b6cb0;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.privacy-link:hover {
    color: #2c5282;
}

/* Scoped minimalist overrides for contact form */
.contact-form-section .btn-primary {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(66, 153, 225, 0.25);
}

.contact-form-section .btn-primary:hover {
    background: linear-gradient(135deg, #90cdf4 0%, #63b3ed 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.35);
}

.contact-form-section .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 5px rgba(37, 99, 235, 0.25);
}

.contact-form-section .btn-large {
    padding: 16px 40px;
    font-size: 15px;
    width: 100%;
    margin-top: 8px;
}

/* Checkbox refinements */
.contact-form-section .checkmark {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border-color: #e5e7eb;
}

.contact-form-section .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    font-size: 11px;
    font-weight: 600;
}

/* Placeholder and select styling */
.contact-form-section .form-group input::placeholder,
.contact-form-section .form-group textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.contact-form-section select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Loading state for form submission */
.contact-form-section .btn-primary.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.contact-form-section .btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus visibility accessibility */
.contact-form-section .form-group input:focus-visible,
.contact-form-section .form-group select:focus-visible,
.contact-form-section .form-group textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.12);
}

/* Contact Info Hero */
.contact-info-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.co.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #1a202c;
}

.contact-item p {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-method {
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-method h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1a202c;
}

.contact-method p {
    margin-bottom: 8px;
    color: #2b6cb0;
    font-weight: 600;
}

.contact-method small {
    color: #718096;
    font-size: 0.85rem;
}

.social-links-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-links-inline a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-links-inline a:hover {
    color: #2c5282;
}

/* Privacy Content */
.privacy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.privacy-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.privacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.privacy-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #1a202c;
}

.privacy-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Active Navigation Link */
.nav-link.active {
    color: #90cdf4 !important;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    color: white;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.close:hover,
.close:focus {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.modal-body h3 {
    color: #1a202c;
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.modal-body h4 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.modal-body p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-body ul {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body strong {
    color: #1a202c;
}

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-hero {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Timeline Design - Back to simple vertical */
    .process-grid {
        max-width: 600px;
    }
    
    .process-grid::before {
        left: 30px;
        transform: none;
        width: 4px;
        background-size: 4px 15px;
    }
    
    .process-grid::after {
        display: none;
    }
    
    .process-step {
        gap: 20px;
        padding: 30px 0;
    }
    
    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        flex-direction: row;
        transform: translateX(-30px);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        position: absolute;
        left: 30px;
        transform: translateX(-50%);
    }
    
    .step-content {
        padding: 20px;
        max-width: none;
        margin-left: 60px;
        margin-right: 20px;
    }
    
    /* All speech bubbles point left on mobile */
    .process-step .step-content::before {
        left: -12px !important;
        right: auto !important;
        border-left: none !important;
        border-right: 12px solid white !important;
        border-top-width: 12px !important;
        border-bottom-width: 12px !important;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    /* Extra spacing for very small screens */
    .hero {
        padding-top: 140px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    /* Consent text readability tweaks */
    .contact-form-section .checkbox-group {
        gap: 10px;
    }
    .contact-form-section .checkbox-label {
        font-size: 13.5px;
        line-height: 1.8;
        word-break: break-word;
        white-space: normal;
        display: grid; /* grid for precise placement */
        grid-template-columns: 20px 1fr; /* checkbox + text */
        column-gap: 12px;
        align-items: start;
    }
    .contact-form-section .checkmark {
        margin-top: 4px;
        width: 18px;
        height: 18px;
        grid-column: 1;
        grid-row: 1;
    }
    .contact-form-section .privacy-link {
        display: block;
        grid-column: 1 / -1; /* full width under checkbox */
        grid-row: 2;
        margin-top: 6px;
        margin-left: 0;
        padding-left: 0;
    }
    .contact-form-section .privacy-link::before { content: none; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-container {
        padding: 20px;
        margin: 0 16px;
    }
    
    .privacy-content {
        grid-template-columns: 1fr;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
    }
}