/* Feature Highlights Section */
.feature-highlights {
    background: #0a0a0a;
    padding: 4rem 0 2rem 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: flex-start;
}
.feature-card {
    background: transparent;
    color: #fff;
    padding: 0;
    border: none;
    box-shadow: none;
}
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-radius: 12px;
}
.feature-icon-pink {
    color: #fbb6ce;
}
.feature-icon-blue {
    color: #7dd3fc;
}
.feature-icon-green {
    color: #bbf7d0;
}
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}
.feature-card p {
    color: #a3a3a3;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --secondary-color: #6366f1;
    --accent-color: #00d4ff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-light: #64748b;
    --text-inverse: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.8);
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-tech: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-neural: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-data: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --blur-glass: blur(10px);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all var(--transition-normal);
}

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

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: -0.025em;
}

.nav-logo span {
    color: var(--primary-color);
    font-weight: 300;
}

/* make the pipe in the logo lighter (Inter 300) */
.logo-pipe {
    font-weight: 300; /* Inter 300 is the lightest weight loaded */
    color: #9ca3af;
    opacity: 0.9;
    margin: 0 0.35rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-tech);
    transition: width var(--transition-normal);
}

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

/* Add styles for Costa Rica flag in navigation */
.nav-flag {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    margin-left: 0.5rem;
}

.flag-image {
    width: 24px;
    height: auto;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.flag-image:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.flag-text {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    transition: color var(--transition-normal);
}

.nav-flag:hover .flag-text {
    color: var(--primary-color);
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-normal);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.network-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: networkPulse 8s ease-in-out infinite;
}

.network-layer:nth-child(2) {
    animation-delay: 2s;
}

.network-layer:nth-child(3) {
    animation-delay: 4s;
}

@keyframes networkPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 60px);
}

.hero-content {
    margin-top: -5rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.hero-text:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.hero-image {
    flex: 0 0 486px;
    width: 486px;
}

.hero-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-normal);
}

.hero-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-main-video {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-2xl);
}

.video-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-top: 1rem;
    text-align: center;
    opacity: 0.9;
}

.video-title strong {
    font-weight: 700;
}

/* Video Placeholder Styles */
.hero-video-placeholder {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-video-placeholder:hover {
    transform: scale(1.02);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
}

.hero-video-placeholder:hover .video-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #333;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-video-placeholder:hover .play-button {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Video Container Styles */
.video-container {
    position: relative;
    display: block;
    width: 100%;
    min-height: 274px; /* Ensure minimum height for background image */
}

.video-container video {
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Audio Player Styles */
.audio-player-section {
    margin-top: 0.5rem;
    text-align: center;
}

.audio-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    padding: 1rem;
    width: 100%;
    margin: 0 auto;
}

.audio-creator-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-top: 1rem;
    text-align: center;
    opacity: 0.9;
}

.audio-btn {
    width: 40px;
    height: 40px;
    background: var(--gradient-tech);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.audio-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.audio-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-tech);
    width: 0%;
    transition: width 0.1s ease;
}

.audio-time {
    font-size: 0.875rem;
    color: #cbd5e1;
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

/* Mobile responsiveness for hero image */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        flex: 0 0 auto;
        width: 405px;
        max-width: 405px;
        order: -1;
    }

    .audio-player {
        width: 100%;
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .audio-creator-title {
        font-size: 0.9rem;
    }
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-icon {
    font-size: 1rem;
}

.hero-text h1 {
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    margin-top: -2px;
    letter-spacing: -0.025em;
}

.gradient-text {
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #cbd5e1;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-tech);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-tech);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Metrics Section */
.metrics-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.metrics-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.metrics-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.metric-card {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-tech);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 102, 255, 0.2);
}

.metric-visual {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.metric-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.metric-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.metric-badge {
    display: inline-block;
    background: var(--gradient-tech);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Canvas styling for metric charts */
#privacyChart, #fidelityChart, #scaleChart {
    display: block;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
}

#metricsCanvas {
    width: 100%;
    height: 300px;
    opacity: 0.6;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.solutions .container {
    position: relative;
    z-index: 1;
}

.solutions .section-header h2 {
    color: #ffffff;
}

.solutions .section-header p {
    color: #cbd5e1;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.solution-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.healthcare-card .solution-background {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 212, 255, 0.08) 100%);
}

.finance-card .solution-background {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
}

.ml-card .solution-background {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(34, 197, 94, 0.08) 100%);
}

.solution-card:hover .solution-background {
    opacity: 1;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    position: relative;
    margin-bottom: 1.5rem;
    z-index: 2;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.card-accent {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.solution-card:hover .card-accent {
    width: 80px;
}

.healthcare-accent {
    background: linear-gradient(90deg, #0066ff 0%, #00d4ff 100%);
}

.finance-accent {
    background: linear-gradient(90deg, #764ba2 0%, #6366f1 100%);
}

.ml-accent {
    background: linear-gradient(90deg, #10b981 0%, #22c55e 100%);
}

.solution-card p {
    color: #cbd5e1;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
}

/* Media queries for tablet responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .solution-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Solution Metrics */
.solution-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.05);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.metric-item:hover {
    background: rgba(0, 102, 255, 0.08);
    transform: translateX(5px);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 60px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
}

/* Technology Section */
.technology {
    padding: 100px 0;
    background: var(--bg-dark);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Technology Pipeline Styles - Clean & Minimal */
.tech-pipeline-container {
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.tech-pipeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pipeline-stage {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    width: 220px;
    min-height: 280px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.pipeline-stage:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stage-visual {
    margin-bottom: 1.5rem;
}

.stage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.stage-icon i {
    font-size: 1.5rem;
    color: white;
}

.stage-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.stage-info p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.pipeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 212, 255, 0.6);
    font-size: 1.2rem;
    margin-top: 0;
    height: 100%;
    align-self: center;
}

.pipeline-separator {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 3rem auto;
}

.final-stage-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.final-stage {
    width: 400px;
    min-height: 200px;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.final-stage .stage-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.final-stage:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

/* Case Studies Section */
.case-studies {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.case-studies-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    background: transparent;
}

.case-studies .container {
    position: relative;
    z-index: 2;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-study-card {
    /* Remove the light card background so text is legible on dark sections */
    background: transparent;
    /* subtle outline so cards remain defined on dark backgrounds */
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.case-study-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.case-study-image {
    position: relative;
    height: 200px;
    /* darker gradient so the image area reads well on a dark section */
    background: linear-gradient(135deg, rgba(6,10,20,0.6), rgba(12,18,30,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 212, 255, 0.15);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Ensure inserted case study images fill the image area and maintain cover */
.case-study-image img.case-study-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-study-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 212, 255, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-study-content {
    padding: 2rem;
    color: rgba(255,255,255,0.92);
}

/* Title badge inside case study (matches metric-badge style) */
.case-study-content .metric-badge {
    display: inline-block;
    margin-bottom: 0.85rem; /* extra space between title badge and summary */
}

.case-study-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.case-study-content p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    font-size: 0.85rem; /* smaller summary text */
    margin-top: 0.4rem;
}

/* Industries Section */
.industries {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.industry-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.industry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.industry-item:hover::before {
    opacity: 1;
}

.industry-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 102, 255, 0.2);
}

.industry-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-neural);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.industry-icon i {
    font-size: 2rem;
    color: white;
}

.industry-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.industry-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-profile {
    margin-top: 4.5rem; /* Align with first paragraph after title */
}

.about-profile {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-profile-image {
    width: 100%;
    max-width: 472px;
    height: 456px;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
    object-position: center;
    transform: scaleX(-1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem 0;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.about-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-flag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-flag-image {
    width: 20px;
    height: auto;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.about-flag-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    font-style: italic;
}

.about-text p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.core-values-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.core-values-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.core-values-card:hover::before {
    opacity: 1;
}

.core-values-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.core-value-item {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.core-value-item:last-child {
    margin-bottom: 0;
}

.core-value-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.core-value-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    font-family: inherit;
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-tech);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: #2d3748;
    color: var(--text-inverse);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-inverse);
    font-weight: 600;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-flag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.6rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.footer-flag-image {
    width: 21px;
    height: auto;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.footer-flag-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
}

.footer-flag:hover {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.footer-flag:hover .footer-flag-image {
    transform: scale(1.1);
}

.footer-flag:hover .footer-flag-text {
    color: rgba(255, 255, 255, 1);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section a:hover {
    color: var(--text-inverse);
}

.footer-small {
    font-size: 0.85rem;
}

.footer-bold {
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Tablet Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .metrics-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-features {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .feature-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .tech-pipeline {
        flex-direction: column;
        gap: 1.5rem;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    .pipeline-stage {
        min-width: auto;
        width: 100%;
        max-width: 350px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 600px;
    }

    .about-profile-image {
        max-width: 220px;
        height: 300px;
        margin: 0 auto;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .core-values-card {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

    .case-study-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .metrics-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }

    .metric-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }


}

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

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Responsive adjustments for solutions */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation - Completely Removed */
.loading {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

.loading.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure all sections load immediately without animations */
section, .metric-card, .solution-card, .industry-item, .pipeline-stage {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Force immediate visibility on all elements to prevent darkening */
*, *::before, *::after {
    opacity: inherit !important;
    visibility: inherit !important;
}

/* Ensure body and html are immediately visible */
html, body {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Founder Quote Styling */
.founder-quote {
    color: #ffffff !important;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.founder-quote strong {
    font-style: normal;
    color: #ffffff;
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Parallax Elements */
[data-parallax] {
    transition: transform var(--transition-fast) ease-out;
}

/* High Performance Animations */
.hero-canvas,
.data-point,
.network-layer {
    will-change: transform;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }

    .hero {
        background: white !important;
        color: black !important;
    }

    .gradient-text {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
}