/* ========================================
   ACCESSIBILITY STYLES
   ======================================== */

/* Skip Navigation Link */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-nav:focus {
    top: 0;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Indicators */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Enhanced Focus for Interactive Elements */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000ff;
        --primary-dark: #000080;
        --text-primary: #000000;
        --text-secondary: #000000;
        --background-white: #ffffff;
        --border-light: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Keyboard Navigation Enhancement */
.keyboard-navigation button:focus,
.keyboard-navigation a:focus {
    box-shadow: 0 0 0 3px var(--primary-blue);
    background-color: var(--background-light);
}

/* ========================================
   NEXSILICA VISUAL IDENTITY & THEME
   ======================================== */

/* Color Palette */
:root {
    /* Primary Colors - Tech-forward blues and teals */
    --primary-blue: #0066cc;
    --primary-dark: #003d7a;
    --primary-light: #3385db;
    --accent-teal: #00a0b0;
    --accent-cyan: #00d4ff;
    
    /* Secondary Colors */
    --secondary-gray: #2c3e50;
    --secondary-light: #34495e;
    --background-light: #0e2d4d;
    --background-white: #0c1c2d;
    
    /* Status & Accent Colors */
    --success-green: #00c851;
    --warning-orange: #ff8800;
    --error-red: #ff4444;
    
    /* Text Colors */
    --text-primary: #f2f2f2e6;
    --text-secondary: rgb(191 195 199 / 90%);
    --text-muted: #718096;
    --text-light: #a0aec0;
    --text-white: #fffffff6;
    
    /* Borders & Shadows */
    --border-light: #ffffff1a;
    --border-medium: #cbd5e07a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Typography Hierarchy */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');
/* Import DIN Alternate Bold Font */
@import url('webfontkit-20250621-174930/stylesheet.css');

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #0a1b2c;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

h5 {
    font-size: var(--font-size-xl);
    font-weight: 500;
}

h6 {
    font-size: var(--font-size-lg);
    font-weight: 500;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.text-large {
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

.text-small {
    font-size: var(--font-size-sm);
}

.text-xs {
    font-size: var(--font-size-xs);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Code/Monospace Typography */
code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: 1400px;
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: 5rem 0;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.gap-xl {
    gap: var(--space-xl);
}

/* Grid Utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    line-height: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
    color: var(--text-white);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    transform: translateY(-2px);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
}

/* Form Button States */
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

/* Card Styles */
.card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    margin-bottom: var(--space-lg);
}

.card-body {
    margin-bottom: var(--space-lg);
}

.card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
}

/* Header & Navigation */
header {
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-sm);
    position: relative; /* Added for z-index context if needed later */
    z-index: 110; /* Ensure it's above other header elements */
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary); /* Or a contrasting color like var(--primary-blue) */
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* Hero Section Detailed Styles */
.hero-section {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
    padding: var(--space-3xl) 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1050px;
    margin: 0 auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-headline {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 90%;
}

.hero-cta-buttons {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero-visual {
    width: 115%;
    margin-right: -15%;
    height: 550px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background: transparent;
    cursor: grab;
}

.hero-visual:active {
    cursor: grabbing;
}

#hero-3d-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border-radius: inherit;
}

/* Synergy Spark Animation — REMOVED, replaced by Three.js 3D chip */

/* Remove old chip animation styles */
/*
.chip-animation {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.chip-outline {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse 2s ease-in-out infinite;
}

.chip-circuits {
    width: 80%;
    height: 80%;
    position: absolute;
    top: 10%;
    left: 10%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.3) 8px,
        rgba(255, 255, 255, 0.3) 10px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.3) 8px,
        rgba(255, 255, 255, 0.3) 10px
    );
    border-radius: var(--radius-md);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes circuitFlow {
    0% { 
        background-position: 0 0, 0 0;
    }
    100% { 
        background-position: 16px 0, 0 12px;
    }
}

/* Animation Pause Button */
.animation-pause-btn {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 2;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.animation-pause-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.animation-pause-btn span {
    font-size: var(--font-size-lg);
}

.hidden {
    display: none !important;
}

/* Mobile Navigation & Hero Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-white);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        gap: var(--space-md);
        z-index: 100; /* Ensure dropdown is below toggle */
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        /* Ensure hamburger lines are visible */
    }
    
    .hamburger-line {
        background-color: var(--text-primary); /* Ensure this contrasts with header */
    }

    /* Reduce hero section padding and height for tablets */
    .hero-section {
        padding: var(--space-lg) 0;
        min-height: auto;
    }

    /* Hero section mobile layout: stack animation above text */
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: var(--space-lg);
        grid-template-rows: auto auto; /* Define explicit rows */
        display: grid !important; /* Force grid layout */
    }
    
    /* Move hero visual (animation) to the top */
    .hero-visual {
        order: -1 !important; /* Force visual above text on mobile */
        grid-row: 1 !important; /* Explicitly place in first row */
        height: 360px; /* Restored from 500px */
        margin: 0 auto !important; /* Centered */
        width: 100% !important;
    }
    
    /* Ensure hero text appears below animation */
    .hero-text {
        order: 1 !important; /* Force text below visual on mobile */
        grid-row: 2 !important; /* Explicitly place in second row */
    }
    
    /* Old synergy animation responsive styles removed */
    
    /* Hero text adjustments */
    .hero-headline {
        font-size: var(--font-size-4xl);
        margin-bottom: var(--space-lg);
        line-height: 1.2; /* Improved line height for readability */
    }
    
    .hero-subheadline {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-xl);
        max-width: 100%; /* Use full width on mobile */
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
        margin-top: 0; /* Add spacing from text */
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .animation-pause-btn {
        width: 35px;
        height: 35px;
        bottom: var(--space-sm);
        right: var(--space-sm);
    }
    
    .animation-pause-btn span {
        font-size: var(--font-size-base);
    }
}

/* Small Mobile Breakpoint (480px and down) */
@media (max-width: 480px) {
    .hero-section {
        padding: var(--space-xl) 0;
        min-height: 60vh;
    }
    
    .hero-content {
        gap: var(--space-xl);
    }
    
    .hero-headline {
        font-size: var(--font-size-3xl);
        line-height: 1.1;
        margin-bottom: var(--space-md);
    }
    
    .hero-subheadline {
        font-size: var(--font-size-base);
        line-height: 1.6;
        margin-bottom: var(--space-lg);
    }
    
    /* Further optimize 3D visual for small screens */
    .hero-visual {
        height: 220px;
        margin: 0 auto; /* Centered */
    }
    
    .hero-cta-buttons {
        gap: var(--space-sm);
        margin-top: var(--space-md); /* Reduced spacing for small screens */
    }
      .hero-cta-buttons .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-sm);
    }
    
    .animation-pause-btn {
        width: 30px;
        height: 30px;
    }
    
    .animation-pause-btn span {
        font-size: var(--font-size-sm);
    }
}

/* Extra Small Mobile Breakpoint (320px - minimum support) */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-headline {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subheadline {
        font-size: var(--font-size-sm);
    }
    
    /* Ultra-compact 3D visual for smallest screens */
    .hero-visual {
        height: 180px;
        margin: 0;
    }
    
    .hero-cta-buttons {
        gap: var(--space-sm);
        margin-top: var(--space-md); /* Reduced spacing for small screens */
    }
      .hero-cta-buttons .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-xs);
    }
}

/* ================================
   CONTACT FORM STYLES
   ================================ */

/* Contact section container */
.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0;
}

/* Honeypot field - hidden from users but accessible to bots */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   SECTION-SPECIFIC WIREFRAME LAYOUTS
   ======================================== */

/* Header/Navigation Layout */
.header {
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* How It Works Section Layout */
.how-it-works-section {
    background: var(--background-light);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Steps Flow Container */
.steps-flow {
    display: flex;
    align-items: stretch; /* Changed from center to stretch */
    gap: var(--space-md);
    position: relative;
    padding: var(--space-xl) 0;
    justify-content: space-between;
    max-width: 100%;
    overflow-x: hidden; /* Remove scrollbar on desktop */
    overflow-y: hidden; /* Prevent vertical scrollbar during animation */
    padding-bottom: 1rem; /* Space to avoid bottom clipping during translateY */
    padding-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    flex-wrap: nowrap;
}

/* Individual Step Items */
.step-item {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    box-shadow: 0px 0px 0px 1px #2041647a;
    transition: all var(--transition-normal);
    border: 2px solid #203c58b3;
    flex: 1;
    min-width: 180px; /* Reduced from 200px to allow fitting safely at 1080px */
    max-width: 250px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* Step Icons */
.step-icon {
    width: 100px;
    height: 83px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: #ffffff;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
}

.step-item:hover .step-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.step-img {width: 66.67%;
    height: 80%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

/* Step Icon Variants
.step-icon[data-icon="share"]::before {
    content: "📤";
    font-size: var(--font-size-xl);
}

.step-icon[data-icon="analyze"]::before {
    content: "🔬";
    font-size: var(--font-size-xl);
}

.step-icon[data-icon="design"]::before {
    content: "⚡";
    font-size: var(--font-size-xl);
}

.step-icon[data-icon="deploy"]::before {
    content: "🚀";
    font-size: var(--font-size-xl);
} */



/* Step Titles */
.step-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

/* Step Details */
.step-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    flex-grow: 1;
}

.step-details li {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-lg);
    text-align: left;
    line-height: 1.5;
}

.step-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

.step-details li:last-child {
    margin-bottom: 0;
}

/* Flow Arrows - Smaller Animated Design */
.arrow {
    width: 30px; /* Arrow container width */
    height: 30px; /* Arrow container height */
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal); /* Only transform for hover */
    cursor: pointer;
    align-self: center; /* Add this to vertically center the arrow */
}

/* Arrow shaft (horizontal line) */
.arrow::before {
    content: '';
    position: absolute;
    width: 12px; /* Shorter shaft */
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    left: 2px; 
    top: 50%; 
    transform: translateY(-50%); 
    transition: all 0.3s ease;
}

/* Arrow head (single angled line) */
.arrow-top {
    position: absolute;
    width: 10px; 
    height: 2px; 
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
    top: calc(50% - 1px); /* Align with shaft center */
    left: 11px; /* Position relative to shaft end */
    transform-origin: right center; /* Pivot at the right end of this piece */
    transform: rotate(45deg); /* Angle upwards and leftwards from the pivot */
}

/* Arrow head bottom part */
.arrow-bottom {
    position: absolute;
    width: 10px; 
    height: 2px; 
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
    top: calc(50% - 1px); /* Align with shaft center */
    left: 11px; /* Position relative to shaft end */
    transform-origin: right center; /* Pivot at the right end of this piece */
    transform: rotate(-45deg); /* Angle downwards and leftwards from the pivot */
}

/* Hover animation */
.arrow:hover::before {
    width: 15px; /* Adjusted hover width for new shaft */
    background: var(--primary-dark);
}

.arrow:hover::after {
    border-color: var(--primary-dark);
    right: 3px; /* Move arrowhead slightly on hover */
}

/* Active state */
.arrow:active {
    transform: scale(0.95);
}



/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .arrow {
        transition: none;
    }
    .arrow-top, .arrow-bottom, .arrow::before {
        transition: none;
    }
}

/* How It Works Mobile Responsiveness */
@media (max-width: 1024px) {
    .steps-flow {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: var(--space-lg); /* Add padding for scrollbar */
        scroll-behavior: smooth;
        scrollbar-color: var(--background-light) var(--background-white);
        scrollbar-width: thin;
    }
    
    .step-item {
        padding: var(--space-lg);
        min-width: 250px; /* Force sufficient width to compel scrolling */
        max-width: 320px;
    }
    
    .step-icon {
        width: 100px;
        height: 83px;
        font-size: var(--font-size-xl);
    }
    
    .step-title {
        font-size: var(--font-size-lg);
    }
    
    .arrow {
        width: 35px;
        height: 35px;
    }
    
    .arrow-top, .arrow-bottom {
        width: 18px;
        height: 2px;
    }
    
    .arrow::before {
        width: 22px;
        height: 2px;
    }
}

@media (max-width: 768px) {
    .steps-flow {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }
    
    .arrow {
        transform: rotate(90deg);
        width: 30px;
        height: 30px;
    }
    
    .step-item {
        margin-bottom: 0;
        min-width: unset;
        width: 100%;
        max-width: 550px; /* Increased from 480px to better fit bullet points on single line */
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .section-description {
        font-size: var(--font-size-base);
    }
    
    .step-item {
        padding: var(--space-md);
        min-height: 280px;
    }
    
    .step-icon {
        width: 70px;
        height: 58px;
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-md);
    }
    
    .step-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-sm);
    }
    
    .step-details li {
        font-size: var(--font-size-sm);
        padding-left: var(--space-md);
    }
    
    .arrow {
        width: 25px;
        height: 25px;
    }
    
    .arrow-top, .arrow-bottom {
        width: 15px;
        height: 2px;
    }
    
    .arrow::before {
        width: 18px;
        height: 2px;
    }
}

/* ========================================
   VISUAL ASSETS & ICONS
   ======================================== */

/* Icon Styles */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.icon-lg {
    width: 48px;
    height: 48px;
}

.icon-xl {
    width: 64px;
    height: 64px;
}

.icon-2xl {
    width: 80px;
    height: 80px;
}

/* Hero Section Visual — duplicate block removed (styles defined above) */

/* Feature Card Icons */
.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--text-white);
    font-size: var(--font-size-xl);
}

/* Security Icon */
.security-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--text-white);
    font-size: var(--font-size-2xl);
}
.security-img {
    width: 66.67%;
    height: 80%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

/* Use Case Visual Placeholders */
.use-case-visual {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--background-light), var(--border-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
}

.use-case-visual::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: #d0d0d0;
    border-radius: 50%;
    opacity: 0.8;
}

/* Logo Placeholder */
.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    /* overflow: visible; */
}

.logo-img {
    height: 50px;
    width: auto;
    /* overflow: visible; */
}

.logo-text {
    font-family: 'din_alternatebold'; 
    font-size: 2rem;
    font-weight: normal; /* Change from bold to normal since the font itself is bold */
    color: var(--primary-blue);
    letter-spacing: 0.1em;
}

/* Optional: Hide text on small screens if logo is self-explanatory */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
}

/* Responsive Visual Adjustments */
@media (max-width: 768px) {
    .hero-visual {
        height: 360px;
    }
    
    .step-icon {
        width: 80px;
        height: 66.5px;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .use-case-visual {
    }
    
    .flow-arrow {
        display: none;
    }
}

/* Paused Animation State */
.hero-visual.paused .chip-outline,
.hero-visual.paused .chip-circuits,
.hero-visual.paused::before {
    animation-play-state: paused;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .chip-outline,
    .chip-circuits,
    .hero-visual::before {
        animation: none;
    }
    
    .animation-pause-btn {
        display: none;
    }
}

/* Progressive Disclosure Styles for How It Works */
.step-expand-btn {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-md);
    color: var(--primary-blue);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    width: 100%;
    background: var(--background-light);
}

.step-expand-btn:hover {
    background: var(--primary-blue);
    color: var(--text-white);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.step-expand-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.expand-icon {
    transition: transform var(--transition-normal);
    font-size: var(--font-size-xs);
}

.step-expand-btn[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

.step-expand-btn[aria-expanded="true"] .expand-text::before {
    content: "Hide ";
}

.step-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-normal);
    background: var(--background-light);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.step-expanded-content[aria-hidden="false"] {
    max-height: 500px; /* Adjust based on content */
    padding: var(--space-lg);
}

.expanded-details h4 {
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    margin-top: var(--space-md);
}

.expanded-details h4:first-child {
    margin-top: 0;
}

.expanded-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
}

.expanded-details li {
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    position: relative;
    padding-left: var(--space-lg);
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

.expanded-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

/* Mobile Responsive Design for Progressive Disclosure */
@media (max-width: 768px) {
    .step-expand-btn {
        font-size: var(--font-size-xs);
        padding: var(--space-xs) var(--space-sm);
    }
    
    .step-expanded-content[aria-hidden="false"] {
        padding: var(--space-md);
    }
    
    .expanded-details h4 {
        font-size: var(--font-size-sm);
    }
    
    .expanded-details li {
        font-size: var(--font-size-xs);
        padding-left: var(--space-md);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .step-expanded-content {
        transition: none;
    }
    
    .expand-icon {
        transition: none;
    }
}

/* ========================================
   SECURITY HIGHLIGHT BOX
   ======================================== */

.security-section {
    /* background: radial-gradient(ellipse, var(--background-light) 0%, var(--background-white) 100%); */
    padding: var(--space-3xl) 0;
}

.security-highlight-box {
    background: var(--background-light);
    border: 2px solid #1d4369b3;
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    box-shadow: 0px 0px 0px 1px #2041647a;
    max-width: 600px;
    margin: 0 auto;
    transition: all var(--transition-normal);
}

.security-highlight-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal), var(--primary-blue));
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.1;
    transition: all var(--transition-normal);
    
}

.security-highlight-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.security-icon {
    width: 120px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: var(--font-size-3xl);
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all var(--transition-normal);
}

.security-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(0, 102, 204, 0.3);
    border-radius: var(--radius-xl);
    animation: securityPulse 3s ease-in-out infinite;
}

.security-highlight-box:hover .security-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

@keyframes securityPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.security-title {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.security-message {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.security-message strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.security-features {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.feature-check {
    color: var(--accent-teal);
    font-weight: bold;
    font-size: var(--font-size-md);
}

/* Mobile Responsive Design for Security Box */
@media (max-width: 768px) {
    .security-highlight-box {
        padding: var(--space-xl);
        margin: 0 auto;
    }
    
    .security-icon {
        width: 80px;
        height: 66.5px;
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-md);
    }
    
    .security-title {
        font-size: var(--font-size-xl);
    }
    
    .security-message {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-lg);
    }
    
    .security-features {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
}

@media (max-width: 480px) {
    .security-highlight-box {
        padding: var(--space-lg);
        margin: 0 var(--space-sm);
    }
    
    .security-icon {
        width: 80px;
        height: 66.5px;
        font-size: var(--font-size-xl);
    }
    
    .security-title {
        font-size: var(--font-size-lg);
    }
    
    .security-message {
        font-size: var(--font-size-sm);
    }
    
    .security-feature {
        font-size: var(--font-size-xs);
    }
}

/* Accessibility and Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .security-icon::after {
        animation: none;
    }
}

/* ========================================
   WHY NEXSILICA SECTION - 5 FEATURE CARDS
   ======================================== */

.why-nexsilica-section {
    background: var(--background-light);
    padding: var(--space-3xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

/* Special grid layout for exactly 5 cards - Olympic logo style */
@media (min-width: 1024px) {
    .features-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-xl);
        justify-items: center;
    }
    
    /* First row: 3 cards centered */
    .feature-card:nth-child(1) {
        grid-column: 1 / 3;
    }
    
    .feature-card:nth-child(2) {
        grid-column: 3 / 5;
    }
    
    .feature-card:nth-child(3) {
        grid-column: 5 / 7;
    }
    
    /* Second row: 2 cards centered like Olympic logo */
    .feature-card:nth-child(4) {
        grid-column: 2 / 4;
        grid-row: 2;
    }
    
    .feature-card:nth-child(5) {
        grid-column: 4 / 6;
        grid-row: 2;
    }
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(5, 1fr);
        justify-items: stretch;
    }
    
    /* Reset positioning for larger screens */
    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3),
    .feature-card:nth-child(4),
    .feature-card:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
}

.feature-card {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 0px 0px 0px 1px #2041647a;
    transition: all var(--transition-normal);
    border: 2px solid #203c58b3;
    position: relative;
    overflow: hidden;
}

/* .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left var(--transition-slow);
} */

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* .feature-card:hover::before {
    left: 100%;
} */

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-lg);
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* .feature-card:hover::before {
    left: 100%;
} */

.feature-icon {
    width: 100px;
    height: 83px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: var(--font-size-2xl);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.feature-img {
    width: 66.67%;
    height: 80%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.feature-title {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.feature-description {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive Design for Features Grid */
@media (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        width: 80px;
        height: 66.5px;
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-md);
    }
    
    .feature-title {
        font-size: var(--font-size-lg);
    }
    
    .feature-description {
        font-size: var(--font-size-sm);
    }
    
    /* Center the 5th card at 768px/tablet range */
    .feature-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: calc(50% - var(--space-lg) / 2);
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .feature-card:nth-child(5) {
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }
    
    .feature-card {
        padding: var(--space-md);
    }
    
    .feature-icon {
        width: 80px;
        height: 66.5px;
        font-size: var(--font-size-lg);
    }
    
    .feature-title {
        font-size: var(--font-size-base);
    }
    
    .feature-description {
        font-size: var(--font-size-xs);
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    .feature-card::before {
        transition: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .feature-card:hover .feature-icon {
        transform: none;
    }
}

/* ========================================
   USE CASES SECTION - 4 USE CASE ITEMS
   ======================================== */

.use-cases-section {
    /* background: radial-gradient(ellipse, var(--background-light) 0%, var(--background-white) 100%); */
    padding: var(--space-3xl) 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

@media (min-width: 769px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (min-width: 1200px) {
    .use-cases-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xl);
    }
}

.use-case-item {
    background: var(--background-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid #203c58b3;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 0px 0px 1px #2041647a;
}

.use-case-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.02), rgba(32, 201, 151, 0.02));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.use-case-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.use-case-item:hover::before {
    opacity: 1;
}

.use-case-visual {
    width: 120px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
    /* border: 1px solid var(--border-light); */
    align-content: center;
    margin: 0 auto var(--space-lg);
    transition: all var(--transition-normal);
}

.use-case-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    
}

.use-case-icon {
    /* font-size: var(--font-size-4xl); */
    z-index: 1;
    position: relative;
    transition: transform var(--transition-normal);
    width: 66.67%;
    height: 80%;
}

.use-case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.use-case-item:hover .use-case-visual {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg)
}

.use-case-title {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.use-case-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    text-align: left;
}

.use-case-metrics {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.metric {
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    white-space: nowrap;
}

.metric strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Mobile Responsive Design for Use Cases */
@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg); /* Reduced gap as requested */
    }
}

@media (max-width: 480px) {
    .use-cases-grid {
        grid-template-columns: 1fr !important;
    }
    
    .use-case-item {
        padding: var(--space-lg);
    }
    
    .use-case-visual {
        height: 83.3px;
        margin-bottom: var(--space-md);
        width: 100px;
    }
    
    .use-case-icon {
        font-size: var(--font-size-3xl);
    }
    
    .use-case-title {
        font-size: var(--font-size-lg);
    }
    
    .use-case-description {
        font-size: var(--font-size-xs);
        margin-bottom: var(--space-md);
    }
    
    .use-case-metrics {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-lg);
        justify-content: center;
        align-items: center;
    }
    
    .metric {
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .use-case-item {
        padding: var(--space-md);
    }
    
    .use-case-visual {
        height: 66.5px;
        width: 80px;
    }
    
    .use-case-icon {
        font-size: var(--font-size-2xl);
    }
    
    .use-case-title {
        font-size: var(--font-size-base);
    }
    
    .use-case-description {
        font-size: var(--font-size-xs);
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    .use-case-item:hover {
        transform: none;
    }
    
    .use-case-item:hover .use-case-icon {
        transform: none;
    }
}

/* ========================================
   ABOUT NEXSILICA SECTION
   ======================================== */

.about-section {
    background: var(--background-light);
    padding: var(--space-3xl) 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-story {
    margin: var(--space-2xl) 0;
}

.about-lead {
    font-size: var(--font-size-xl);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.about-paragraph {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.about-values {
    margin: var(--space-3xl) 0;
    padding: var(--space-2xl);
    background: var(--background-white);
    border-radius: var(--radius-xl);
    box-shadow: 0px 0px 0px 1px #2041647a;
    border: 2px solid rgba(32, 60, 88, 0.7);
    transition: all var(--transition-normal);
}

.about-values:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}


.values-title {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive layout for values grid */
@media (max-width: 1023px) {
    .values-grid {
        max-width: 700px;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        max-width: 600px;
    }
    
    .values-grid .value-item:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - var(--space-lg) / 2);
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr !important;
    }
    
    .values-grid .value-item:last-child {
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }
}

.value-item {
    text-align: center;
    padding: var(--space-lg);
}

.value-icon {
    width: 100px;
    height: 83px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: var(--font-size-xl);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.value-item h4 {
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.value-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin: 0;
}

.value-img {
    width: 60%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.about-values:hover .value-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.about-cta {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--background-white);
    border-radius: var(--radius-xl);
    box-shadow: 0px 0px 0px 1px #2041647a;
    margin-top: var(--space-2xl);
    border: 2px solid rgba(32, 60, 88, 0.7);
    transition: transform var(--transition-normal);
}

.about-cta:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light); 
}

.value-contact-button{
    transition: transform var(--transition-normal);
}

.about-cta:hover .value-contact-button{
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.about-cta h3 {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.about-cta p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xl);
}

/* Mobile Responsive Design for About Section */
@media (max-width: 768px) {
    .about-content {
        padding: 0 var(--space-md);
    }
    
    .about-lead {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-lg);
    }
    
    .about-paragraph {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-md);
    }
    
    .about-values {
        padding: var(--space-xl);
        margin: var(--space-xl) 0;
    }
      .values-title {
        font-size: var(--font-size-xl);
    }
    
    .value-item {
        padding: var(--space-md);
    }
    
    .value-icon {
        width: 80px;
        height: 66.5px;
        font-size: var(--font-size-lg);
    }
    
    .value-item h4 {
        font-size: var(--font-size-base);
    }
    
    .value-item p {
        font-size: var(--font-size-xs);
    }
    
    .value-img {
        width: 45px;
               height: 45px;
    }
    .about-cta {
        padding: var(--space-xl);
    }
    
    
    .about-cta h3 {
        font-size: var(--font-size-xl);
    }
    
    .about-cta p {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .about-values {
        padding: var(--space-lg);
    }
    
    .about-cta {
        padding: var(--space-lg);
    }
    
    .about-lead {
        font-size: var(--font-size-base);
    }
    
    .about-paragraph {
        font-size: var(--font-size-sm);
    }
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */

.contact-section {
    background: var(--background-white);
    padding: var(--space-3xl) 0;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
    margin-top: var(--space-2xl);
}

/* Contact Form Container */
.contact-form-container {
    background: var(--background-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: 0px 0px 0px 1px #2041647a;
    border: 2px solid rgba(32, 60, 88, 0.7);
    position: relative;
    transition: all var(--transition-normal);
}

.contact-form-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* .contact-form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal), var(--primary-blue));
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.1;
} */

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.form-input {
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    background: var(--background-white);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* Form Error Messages */
.form-error {
    font-size: var(--font-size-xs);
    color: var(--error-red);
    font-weight: 500;
    margin-top: var(--space-xs);
    min-height: 1.2em;
    display: block;
}

.form-error:empty {
    display: none;
}

/* Checkbox Group */
.checkbox-group {
    margin: var(--space-md) 0;
    border: 0px solid transparent;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    line-height: 1.5;
}

.form-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--background-white);
    cursor: pointer;
    position: relative;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.form-checkbox:checked {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-white);
    font-size: var(--font-size-xs);
    font-weight: bold;
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkbox-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Submit Button */
.contact-submit {
    margin-top: var(--space-md);
    position: relative;
    overflow: hidden;
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Form Success State */
.form-success {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--success-green), #00a851);
    border-radius: var(--radius-xl);
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
}

.success-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-lg);
}

.form-success h3 {
    color: var(--text-white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
}

.form-success p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
}

/* Contact Info Sidebar */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info-item {
    background: var(--background-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    border: 2px solid rgba(32, 60, 88, 0.7);
    position: relative;
    overflow: hidden;
    box-shadow: 0px 0px 0px 1px #2041647a;
}

.contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.info-icon {
    width: 70px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: var(--font-size-xl);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.contact-info-item:hover .info-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.contact-form-img {
width: 60%;
height: 80%;
object-fit: contain;
/* border-radius: var(--radius-lg); */
overflow: visible;
transition: transform var(--transition-normal);
}

.contact-info-item h4 {
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.contact-info-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .contact-form-container {
        padding: var(--space-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .contact-info .contact-info-item:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - var(--space-lg) / 2);
        margin: 0 auto;
    }
    
    .contact-info-item {
        padding: var(--space-lg);
    }
    
    .info-icon {
        width: 48px;
        height: 40px;
        font-size: var(--font-size-lg);
    }
    
    .contact-info-item h4 {
        font-size: var(--font-size-base);
    }
    
    .contact-info-item p {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .contact-info {
        grid-template-columns: 1fr !important;
    }
    
    .contact-info .contact-info-item:last-child {
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: var(--space-2xl) 0;
    }
    
    .contact-content {
        padding: 0 var(--space-md);
    }
    
    .contact-form-container {
        padding: var(--space-lg);
    }
    
    .form-input {
        padding: var(--space-sm);
    }
    
    .checkbox-label {
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .checkbox-text {
        font-size: var(--font-size-xs);
    }
    
    .contact-info-item {
        padding: var(--space-md);
    }
}

/* Form Validation States */
.form-group.has-error .form-input {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.form-group.has-success .form-input {
    border-color: var(--success-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.1);
}

/* Accessibility Improvements */
.form-input:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.form-checkbox:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .contact-form-container,
    .contact-info-item,
    .form-input,
    .form-checkbox {
        transition: none;
    }
    
    .contact-info-item:hover {
        transform: none;
    }
}

/* Character Counter */
.character-counter {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: right;
    margin-top: var(--space-xs);
    transition: color var(--transition-normal);
}

/* Form Loading State */
.contact-submit .btn-loading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-submit .btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--text-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--secondary-gray) 0%, var(--secondary-light) 100%);
    color: var(--text-white);
    padding: var(--space-3xl) 0 0;
    margin-top: var(--space-3xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Footer Logo & Company Info */
.footer-logo h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 0 0 var(--space-xs);
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0 0 var(--space-md);
    font-weight: 500;
}

.footer-description {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

/* Footer Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-label {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-cyan);
}

/* Footer Headings */
.footer-heading {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 var(--space-lg);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary-light));
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links li a:hover {
    color: var(--accent-cyan);
    transform: translateX(4px);
}

.footer-links li a::before {
    content: '›';
    position: absolute;
    left: -12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--accent-cyan);
}

.footer-links li a:hover::before {
    opacity: 1;
}

/* Footer Bottom Section */
.footer-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Media Links */
.footer-social {
    display: flex;
    flex-direction: column;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Newsletter Form */
.footer-newsletter {
    display: flex;
    flex-direction: column;
}

.newsletter-description {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: var(--space-md) 0 var(--space-lg);
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
}

.newsletter-input-group {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: var(--accent-cyan);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: var(--font-size-sm);
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--text-light);
}

.newsletter-button {
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    color: var(--text-white);
    border: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    transform: translateY(-1px);
}

/* Footer Copyright */
.footer-copyright {
    padding: var(--space-xl) 0;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    position: relative;
}

.copyright-content {
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    width: 100%;
}

/* On larger screens, use full width */
@media (min-width: 1240px) {
    .copyright-content {
        max-width: 100%;
        padding: 0 var(--space-lg);
    }
}

.copyright-content p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.footer-legal-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent-cyan);
}

/* Responsive Footer Design */
@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom-section {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-2xl) 0 0;
        margin-top: var(--space-2xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .footer-column:first-child {
        order: -1;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        max-width: 320px;
    }
    
    .newsletter-button {
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 480px) {
    .footer-legal-links {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .social-links {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .copyright-content {
        padding: 0 var(--space-md);
    }
}

/* Newsletter Message Styles */
.newsletter-message {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    animation: slideInDown 0.3s ease-out;
}

.newsletter-message-success {
    background: rgba(0, 200, 81, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(0, 200, 81, 0.2);
}

.newsletter-message-error {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.newsletter-message-info {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ENHANCED MOBILE RESPONSIVENESS REVIEW
   ======================================== */

/* Touch-friendly Interactions */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .step-item:hover,
    .feature-card:hover,
    .use-case-item:hover,
    .contact-info-item:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    /* Larger touch targets */
    .nav-link,
    .btn,
    .footer-links a,
    .social-link {
        /* min-height: 44px; */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        /* min-height: 44px; */
    }
}

/* Enhanced Small Screen Support (360px to 480px) */
@media (max-width: 480px) {
    /* Better section spacing */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    /* Improved text readability */
    .hero-headline {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        line-height: 1.1;
    }
    
    .hero-subheadline {
        font-size: clamp(0.875rem, 4vw, 1rem);
        line-height: 1.5;
    }
    
    /* Better button sizing */
    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-sm);
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Improved form elements */
    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: var(--space-md);
    }
    
    /* Better modal/dropdown handling */
    .nav-menu.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--background-white);
        padding: var(--space-3xl) var(--space-lg);
        z-index: 1000;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .nav-menu.active .nav-link {
        padding: var(--space-lg) 0;
        font-size: var(--font-size-lg);
        border-bottom: 1px solid var(--border-light);
    }
}

/* Ultra Small Screens (320px - minimum viable) */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    /* Ultra compact typography */
    .hero-headline {
        font-size: var(--font-size-2xl);
        line-height: 1.2;
    }
    
    .section-header h2 {
        font-size: var(--font-size-xl);
    }
    
    /* Minimal spacing */
    .section {
        padding: var(--space-xl) 0;
    }
    
    /* Stack everything except social links */
    .hero-cta-buttons,
    .footer-legal-links,
    .copyright-content {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }
    
    .social-links {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center;
    }
}

/* Landscape Orientation on Small Screens */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 50vh;
        padding: var(--space-xl) 0;
    }
    
    .hero-visual {
        height: 160px; /* Reduced from 200px */
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders for high DPI */
    .card,
    .btn,
    .form-input {
        border-width: 0.5px;
    }
}

/* Dark Mode Support (if user prefers) */
@media (prefers-color-scheme: dark) {
    /* Note: This would be implemented if we had a dark theme */
    /* For now, we'll ensure good contrast in all lighting conditions */
}

/* Reduced Data Usage / Slow Connections */
@media (prefers-reduced-data: reduce) {
    /* Minimize animations and gradients for slow connections */
    .hero-visual::before,
    .chip-outline,
    .chip-circuits {
        animation: none;
    }
    
    .card::before,
    .feature-card::before,
    .use-case-item::before {
        display: none;
    }
}

/* Print Styles for Mobile Screenshots */
@media print {
    .mobile-menu-toggle,
    .animation-pause-btn,
    .nav-menu {
        display: none !important;
    }
    
    .hero-section,
    .section {
        page-break-inside: avoid;
        padding: var(--space-lg) 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Mobile utility classes */
.touch-device .card:hover,
.touch-device .feature-card:hover,
.touch-device .use-case-item:hover {
    transform: none;
}

.touch-active {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.1s ease !important;
}

.small-screen .desktop-only {
    display: none !important;
}

.large-screen .mobile-only {
    display: none !important;
}

/* the previous .in-viewport animation was removed due to conflicting with .scroll-animate transitions */

/* CSS Custom Property for mobile viewport height */
.hero-section {
    min-height: calc(var(--vh, 1vh) * 80);
}

/* Scroll Animations for Cards */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-animate.in-viewport {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Effects for Grids/Flex containers */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.5s; }

.steps-flow .step-item:nth-child(1) { transition-delay: 0.1s; }
.steps-flow .step-item:nth-child(3) { transition-delay: 0.3s; }
.steps-flow .step-item:nth-child(5) { transition-delay: 0.5s; }
.steps-flow .step-item:nth-child(7) { transition-delay: 0.7s; }

.use-cases-grid .use-case-item:nth-child(1) { transition-delay: 0.1s; }
.use-cases-grid .use-case-item:nth-child(2) { transition-delay: 0.2s; }
.use-cases-grid .use-case-item:nth-child(3) { transition-delay: 0.3s; }
.use-cases-grid .use-case-item:nth-child(4) { transition-delay: 0.4s; }

.values-grid .value-item:nth-child(1) { transition-delay: 0.1s; }
.values-grid .value-item:nth-child(2) { transition-delay: 0.2s; }
.values-grid .value-item:nth-child(3) { transition-delay: 0.3s; }

/* Contact Section Animations */
.contact-form-container { transition-delay: 0.1s; }
.contact-info .contact-info-item:nth-child(1) { transition-delay: 0.2s; }
.contact-info .contact-info-item:nth-child(2) { transition-delay: 0.3s; }
.contact-info .contact-info-item:nth-child(3) { transition-delay: 0.4s; }

