/*
Theme Name: Opflow Custom Theme
Theme URI: https://opflowagency.com
Author: Opflow Creative
Description: Custom built high-performance theme for Opflow Creative Agency.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: Proprietary
*/

/* =========================================
   DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    color-scheme: dark;
    /* Color Palette: White, Blue, Black */
    --color-bg-light: #ffffff;
    --color-bg-dark: #0f1219;
    --color-bg-darker: #080a0e;

    --color-primary: #2563eb;
    /* Vibrant Blue */
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-primary-glow: rgba(37, 99, 235, 0.4);

    --color-text-dark: #111827;
    --color-text-muted: #6b7280;
    --color-text-light: #f9fafb;
    --color-text-light-muted: #9ca3af;

    --color-border-light: #e5e7eb;
    --color-border-dark: #1f2937;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 600;
}


h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: var(--space-2xl) 0;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 0.1em;
}

.text-blue {
    color: var(--color-primary-light);
}

.text-center {
    text-align: center;
}

/* =========================================
   COMPONENTS
   ========================================= */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 9999px;
    transition: all var(--transition-bounce);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    transform: translateY(0);
}

.btn.sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn.base {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn.lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 var(--color-primary-glow);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.w-full {
    width: 100%;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 9999px;
    color: var(--color-primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* =========================================
   LAYOUT
   ========================================= */

/* Header / Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-base);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 18, 25, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-brand .logo-img {
    height: 32px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    /* Thinner than 900 */
    /* Removed text-stroke for slimmer native letters */
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    /* Tighter letter spacing to match modern tech logos */
    line-height: 1;
    margin-top: 2px;
}

.navbar:not(.scrolled) .logo-text {
    color: var(--color-text-light);
}

.navbar.scrolled .logo-text {
    color: var(--color-text-light);
}

.footer-brand .logo-text {
    color: var(--color-text-light);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    /* Slight gap between SVG and text */
}

.logo-icon {
    flex-shrink: 0;
    margin-right: -6px;
    /* Pull the text in tight since SVG has internal padding */
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-light-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(15, 18, 25, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.glow-bg.top-right {
    top: -100px;
    right: -200px;
}

.glow-bg.bottom-left {
    bottom: -100px;
    left: -200px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light-muted);
    margin: 1.5rem 0 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    /* Pushing it down below the natural center point of the left column */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transform: scale(1.0);
    /* Reset scale so it's not cut off */
}

.stat-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    bottom: 20%;
    left: -10%;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary-light);
}

.stat-info h3 {
    font-size: 1.5rem;
    margin: 0;
}

.stat-info p {
    font-size: 0.875rem;
    color: var(--color-text-light-muted);
    margin: 0;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, calc(-50% - 20px));
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

.hero-abstract-art {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-abstract-art .circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.c1 {
    width: 400px;
    height: 400px;
    top: 30%;
    left: 30%;
    /* Move further towards the center/left */
    transform: translate(-50%, -50%);
    border-width: 2px !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    overflow: hidden;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.c2 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: dashed !important;
}

.c3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 60%);
    opacity: 0.2;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-light-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Services Section */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section-header p {
    color: var(--color-text-muted);
    margin-top: 1rem;
    font-size: 1.125rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.services-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 2rem;
    padding-bottom: 1rem;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

.service-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all var(--transition-base);
}

.service-slide:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
}

@media (min-width: 768px) {
    .service-slide {
        flex-direction: row;
        align-items: center;
    }

    .service-image {
        flex: 1;
    }

    .service-content {
        flex: 1;
    }
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    color: var(--color-text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.carousel-arrow:hover {
    background: var(--color-primary);
    color: white;
}

.prev-arrow {
    left: -10px;
}

.next-arrow {
    right: -10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 5px;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-dark);
}

.service-features i {
    color: var(--color-primary);
    width: 16px;
    height: 16px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--color-bg-light);
    padding: var(--space-xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.2);
}

.quote-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--color-text-dark);
    font-style: italic;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--color-border-light);
    padding-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border-light);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.client-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* About Section */
.about-section {
    background-color: var(--color-bg-light);
    /* Matching the clean white/blue aesthetic */
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Subtle background accent for the About section to mimic the wavy lines */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-badge {
    display: inline-block;
    background: linear-gradient(90deg, #42b0ff, #3b82f6);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    padding: 0.5rem 2rem;
    border-radius: 0.5rem;
    margin: 0 auto 2.5rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}


.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.4;
    color: #1a202c;
    /* Deep dark text like the reference */
    max-width: 900px;
    margin: 0 auto;
}

.about-heading .text-blue {
    color: #3b82f6;
    /* Matching the bright blue from the image */
}

/* FAQ Section */
.faq-section {
    background-color: var(--color-bg-light);
    padding: var(--space-xl) 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--color-text-dark);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    padding-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(249, 250, 251, 0.5);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Active State */
.faq-item.faq-open {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.faq-item.faq-open .faq-icon {
    transform: rotate(45deg);
    /* Turns plus into an X */
}

/* CTA & Contact Section */
.cta-section {
    position: relative;
    background: linear-gradient(to bottom, var(--color-bg-dark), var(--color-bg-darker));
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 4rem 3rem;
    text-align: center;
    backdrop-filter: blur(20px);
}

.glass-panel h2 {
    margin-bottom: 1rem;
}

.glass-panel p {
    color: var(--color-text-light-muted);
    margin-bottom: 3rem;
}

.contact-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    /* Removed gap: 1.5rem to let steps control their own spacing */
}

/* Multi-Step Form Logic */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 1;
    transform: translateY(0);
}

.step-question {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.step-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.prev-step-btn {
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
}

/* Radio Cards for Multiple Choice */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    /* Slightly larger padding */
    min-height: 80px;
    /* Force minimum height directly on the visible card */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--color-text-light);
    transition: all var(--transition-base);
    font-weight: 500;
    width: 100%;
    /* Force full width of grid cell */
    box-sizing: border-box;
}

.radio-card:hover .radio-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.radio-card input:checked+.radio-content {
    background: var(--color-primary-glow);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
    color: white;
}

.hidden-unless-selected {
    display: none !important;
}

.hidden-unless-selected.active {
    display: inline-flex !important;
}

/* Form Progress Bar */
.form-progress {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-container {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-primary);
    width: 20%;
    /* Will be updated via JS */
    transition: width 0.4s ease-out;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--color-text-light-muted);
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

/* Generic Form Inputs */
.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: white;
    font-family: inherit;
    transition: all var(--transition-base);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' 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 1.25rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.form-group select option {
    background-color: #0f1219 !important;
    color: #ffffff !important;
    padding: 10px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Floating Labels */
.form-group label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    color: var(--color-text-light-muted);
    transition: all var(--transition-fast);
    pointer-events: none;
    background: transparent;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label,
.form-group select:focus~label,
.form-group select:valid~label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    padding: 0 0.5rem;
    background: var(--color-bg-darker);
    color: var(--color-primary-light);
}

/* Footer */
footer {
    background: var(--color-bg-darker);
    color: var(--color-text-light-muted);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: center;
}

.footer-brand .logo-text {
    font-size: 2rem;
    /* Keep footer text slightly smaller to match the smaller 28px SVG context if needed, or unify */
    margin-top: 2px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link-column a {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.link-column a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards var(--transition-bounce);
    animation-delay: var(--delay, 0s);
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInAnim 1s forwards ease-out;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeInAnim {
    to {
        opacity: 1;
    }
}

/* Scroll reveal classes set by JS */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--transition-bounce);
    transition-delay: var(--delay, 0s);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.error-shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin: 1.5rem auto 2.5rem;
    }

    .stat-card {
        bottom: 10%;
        left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
        /* Tighter padding on mobile so menu sits higher */
    }

    .desktop-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 18, 25, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--color-border-dark);
        padding: 1rem;
        /* Tighter internal padding */
        gap: 1rem;
        /* Tighter gap */
        text-align: center;
    }

    .desktop-nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .glass-panel {
        padding: 3rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    /* Fix hero image cut-off on mobile */
    .hero-visual {
        height: 320px;
        margin-top: 1rem;
        /* Push image down to clear overlap with button, scale container to fit */
    }

    .c1 {
        width: 250px;
        height: 250px;
        top: 40%;
        left: 50%;
    }

    .c2 {
        width: 200px;
        height: 200px;
        top: 40%;
    }

    .c3 {
        width: 150px;
        height: 150px;
        top: 40%;
    }
}