/* ============================================
   AVANT - Cyber-Minimalism Premium Design System
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --bg-deep: #000000;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --accent-cyan: #00f0ff;
    --accent-purple: #7000ff;
    --text-main: #f8fafc;
    --text-muted: rgba(248, 250, 252, 0.6);
    --text-subtle: rgba(248, 250, 252, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Spacing - Reduced for compact view */
    --section-padding: clamp(3rem, 8vw, 6rem);
    --container-max: 1100px;
    --container-padding: clamp(1rem, 4vw, 1.5rem);

    /* Typography - Slightly smaller */
    --font-primary: 'Space Grotesk', sans-serif;
    --scale-factor: 0.9;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);

    /* Effects */
    --blur-glass: blur(12px);
    --shadow-glow-cyan: 0 0 30px rgba(0, 240, 255, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(112, 0, 255, 0.3);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Grain Texture Overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Selection */
::selection {
    background: var(--accent-cyan);
    color: var(--bg-deep);
}

/* ============================================
   Typography - Scaled down for compact view
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 6vw, 3.8rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
    font-weight: 300;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-cyan {
    color: var(--accent-cyan);
}

.text-purple {
    color: var(--accent-purple);
}

/* ============================================
   Layout Components
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Hyper-Border Container */
.hyper-border {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.hyper-border:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    backdrop-filter: var(--blur-glass);
}

.badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: #000000;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.logo span {
    color: var(--accent-cyan);
}

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

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-main);
}

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

/* Header Contact Button */
.nav-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-deep);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.nav-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-switch:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

/* Background Glow */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-deep);
}

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

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    backdrop-filter: var(--blur-glass);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ============================================
   Solutions Section - Bento Grid with Animations
   ============================================ */

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Module Card Base */
.module-card {
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    overflow: hidden;
    cursor: crosshair;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Card Sizes */
.module-card.large {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 320px;
}

.module-card.medium {
    grid-column: span 4;
    min-height: 160px;
}

.module-card.wide {
    grid-column: span 6;
    min-height: 220px;
}

/* Scan Line Animation - SLOWER & MORE VISIBLE */
.module-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 240, 255, 0.6) 40%,
        rgba(0, 240, 255, 0.9) 50%,
        rgba(0, 240, 255, 0.6) 60%,
        transparent 100%
    );
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(0, 240, 255, 0.3),
        0 0 60px rgba(0, 240, 255, 0.1);
    transition: top 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 10;
}

.module-card:hover::before {
    top: 100%;
}

/* Glow Border on Hover */
.module-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(0, 240, 255, 0.5),
        transparent 50%,
        rgba(112, 0, 255, 0.3)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.module-card:hover::after {
    opacity: 1;
}

.module-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow:
        0 0 40px rgba(0, 240, 255, 0.15),
        inset 0 0 40px rgba(0, 240, 255, 0.03);
}

/* Module Header */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.module-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.module-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    color: var(--accent-cyan);
    font-size: 1rem;
}

/* Module Title - Cyberpunk Style */
.module-title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.module-card.large .module-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

/* Module Description */
.module-description {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 350px;
    position: relative;
    z-index: 2;
}

/* Tech Tags - Hidden by default, visible on hover */
.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.module-card:hover .module-tags {
    opacity: 1;
    transform: translateY(0);
}

.module-tag {
    padding: 0.3rem 0.6rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.module-tag:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-cyan);
}

/* Binary Code Decoration */
.module-binary {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: rgba(0, 240, 255, 0.2);
    line-height: 1.4;
    text-align: right;
    pointer-events: none;
    z-index: 1;
}

/* Module Stats/Features */
.module-stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
    padding-top: 1.5rem;
    position: relative;
    z-index: 2;
}

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

.module-stat-value {
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.module-stat-label {
    font-size: 0.65rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Card Content Layout */
.module-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Responsive Bento Grid */
@media (max-width: 1024px) {
    .module-card.large {
        grid-column: span 12;
    }

    .module-card.medium {
        grid-column: span 6;
    }

    .module-card.wide {
        grid-column: span 6;
    }
}

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

    .module-card.large,
    .module-card.medium,
    .module-card.wide {
        grid-column: span 1;
        min-height: auto;
    }

    .module-card {
        padding: 1.5rem;
    }

    .module-title {
        font-size: 1.5rem !important;
    }
}

/* Legacy support - keep old classes working */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.solution-card {
    padding: 2rem;
    text-align: left;
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.solution-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Performance Section
   ============================================ */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.metric-card {
    padding: 2.5rem;
    text-align: center;
}

.metric-value {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.metric-description {
    font-size: 0.875rem;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.project-visual {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-visual img {
    transform: scale(1.05);
}

.project-content {
    text-align: left;
}

.project-category {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-cyan);
}

/* ============================================
   Why Us Section
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 2px;
}

.stat-value {
    font-size: clamp(3.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.stat-description {
    font-size: 0.9rem;
}

/* ============================================
   Methodology Section - Premium Horizontal Timeline
   ============================================ */
.methodology-section {
    overflow: hidden;
}

.methodology-timeline {
    position: relative;
    margin-top: 4rem;
    padding: 2rem 0;
}

/* Main Horizontal Line */
.timeline-line {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-progress.animated {
    width: 100%;
}

/* Timeline Steps Container */
.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

/* Individual Step */
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: crosshair;
}

/* Connector (dot and line to card) */
.step-connector {
    position: relative;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.step-dot {
    width: 20px;
    height: 20px;
    background: var(--bg-deep);
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-step:hover .step-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
    transform: scale(1.3);
}

.dot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-cyan);
    opacity: 0;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Step Card */
.step-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: var(--blur-glass);
    margin-top: 1.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

/* Scan Effect on Step Cards */
.step-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 240, 255, 0.6) 40%,
        rgba(0, 240, 255, 0.9) 50%,
        rgba(0, 240, 255, 0.6) 60%,
        transparent 100%
    );
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(0, 240, 255, 0.3);
    transition: top 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 10;
}

.timeline-step:hover .step-card::before {
    top: 100%;
}

.timeline-step:hover .step-card {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Step Number */
.step-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(112, 0, 255, 0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-step:hover .step-number {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
}

/* Step Title */
.step-title {
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

/* Step Description */
.step-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Geometric Background Canvas
   ============================================ */
#geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Header Contact Button (highlighted)
   ============================================ */
.btn-header-contact {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-deep);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-header-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

/* ============================================
   Contact Form Section
   ============================================ */
.contact-section {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02));
}

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

.contact-form {
    padding: 3rem;
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.04);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-subtle);
}

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

.form-select option {
    background: var(--bg-deep);
    color: var(--text-main);
}

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

.form-error {
    display: none;
    font-size: 0.8rem;
    color: #ff4757;
    margin-top: 0.5rem;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: #ff4757;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.form-message.error {
    display: block;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    color: #ff4757;
}

/* ============================================
   Floating CTA Button
   ============================================ */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-deep);
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3);
    transition: var(--transition-smooth);
}

.floating-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 240, 255, 0.4);
}

.floating-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent-cyan);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-seo-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
    opacity: 0.7;
}

.footer-column-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-made-with {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-heart {
    color: #ff4757;
    animation: heartbeat 1.5s infinite;
}

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

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
    padding-top: 120px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--accent-cyan);
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.legal-content ul, .legal-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

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

.legal-content a:hover {
    text-decoration: underline;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-back-link:hover {
    color: var(--accent-cyan);
}

.legal-last-updated {
    font-size: 0.875rem;
    color: var(--text-subtle);
    margin-bottom: 2rem;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

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

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        gap: 1rem;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-visual {
        aspect-ratio: 16/9;
    }

    /* Methodology Timeline - Tablet */
    .timeline-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .timeline-line {
        display: none;
    }

    .step-connector {
        height: 40px;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .floating-cta {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-cta-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .contact-form {
        padding: 1.5rem;
    }

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

    /* Methodology Timeline - Mobile */
    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-number {
        font-size: 3rem;
    }

    .step-card {
        padding: 1.5rem;
    }

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

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-link {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
