:root {
    /* Colors */
    --bg-body: #050505;
    --bg-card: #0F0F0F;
    --bg-card-hover: #161616;
    --border-color: #222222;
    --border-hover: #333333;
    
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    
    --accent-blue: #3459E6;
    --accent-purple: #8B5CF6;
    --gradient-primary: linear-gradient(135deg, #3459E6 0%, #8B5CF6 100%);
    --gradient-text: linear-gradient(90deg, #FFFFFF 0%, #A1A1AA 100%);
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HIGH-END TECH POLISH --- */

/* 1. Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505; 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue); 
}

/* 2. Text Selection */
::selection {
    background: rgba(52, 89, 230, 0.3);
    color: white;
}

/* 3. Film Grain / Noise Texture (Subtle) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.03;
    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");
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 89, 230, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(52, 89, 230, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

/* Header / Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(52, 89, 230, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-blue);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-note {
    font-size: 13px;
    color: #666;
    display: block;
}

/* Sections Common */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Cards */
.card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle base border */
    border-radius: 12px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(20px);
    /* Tech: Corner accent logic could go here, keeping it clean for now */
}

/* Gradient Border on Hover */
.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), transparent, transparent);
    border-radius: 13px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(52, 89, 230, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-blue);
    font-size: 24px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Metrics */
.metrics-section {
    background: #0A0A0A;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
}

.metric-item {
    text-align: center;
}

/* Process */
.process-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 80px;
    font-weight: 800;
    position: absolute;
    top: -20px;
    right: -10px;
    opacity: 0.1;
    color: var(--text-main);
    line-height: 1;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.process-step p {
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* Sectors */
.sector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.sector-pill {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s ease;
}

.sector-pill:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* Contact / Form */
.contact-section {
    background: linear-gradient(180deg, var(--bg-body) 0%, #0a0a0a 100%);
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: #161616;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #1a1a1a;
}

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

/* Fix for background-clip lint */
.metric-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-main); /* Fallback */
    margin-bottom: 8px;
    display: block;
    background: var(--gradient-text); 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations & Effects */

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(52, 89, 230, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 89, 230, 0.1);
    border-color: var(--accent-blue);
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none; }
}

/* Enhanced Hero Background (Cyber Grid) */
.hero {
    position: relative;
    overflow: hidden;
    background: #050505; /* Black base */
}

/* Grid lines moving */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(52, 89, 230, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 89, 230, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center bottom;
    transform: perspective(500px) rotateX(60deg) scale(2);
    transform-origin: center top;
    animation: grid-move 20s linear infinite;
    opacity: 0.3;
    z-index: -2;
    mask-image: linear-gradient(to bottom, transparent 10%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 100%);
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 500px; }
}

/* Button Shine Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

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

/* Enhanced Scroll Reveal (Scale Up) */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Case Studies */
.case-study {
    border-color: rgba(255, 255, 255, 0.08);
}

.case-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.case-tag {
    display: inline-block;
    margin-top: 15px;
    padding: 4px 12px;
    background: rgba(52, 89, 230, 0.1);
    border: 1px solid rgba(52, 89, 230, 0.2);
    border-radius: 4px;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
}

/* Fixes for Mobile overflow */
body {
    overflow-x: hidden;
}

/* =========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================= */

/* Tablet (1024px and down) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 56px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Process steps: Last one spans 2 cols if needed, or keep grid-2 */
    .grid-3 .process-step:last-child {
        grid-column: span 2;
    }
}

/* Mobile (768px and down) */
@media screen and (max-width: 768px) {
    
    /* Typography */
    .hero h1 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-desc {
        font-size: 16px;
    }

    /* Layout Grids -> Single Column */
    .grid-3, .grid-2, .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Reset span for mobile */
    .grid-3 .process-step:last-child {
        grid-column: auto;
    }

    /* Navigation - Scrollable Horizontal Bar */
    .site-header .container {
        flex-direction: column;
        justify-content: center;
        padding: 10px 20px;
        height: auto;
    }

    .site-header {
        height: auto;
        padding-bottom: 10px;
        background: rgba(5, 5, 5, 0.95); /* Solid for readability */
    }

    .logo {
        margin-bottom: 10px;
        font-size: 24px;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
        gap: 20px;
        justify-content: flex-start; /* Start align for scroll */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .nav-links li {
        display: inline-block;
    }

    .nav-links a.btn {
        display: inline-flex; /* Ensure button keeps shape */
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Hero adjustments */
    .hero {
        padding: 140px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Cards & Spacing */
    .card, .process-step {
        padding: 24px;
    }

    .step-number {
        font-size: 60px;
        top: -10px;
        right: 10px;
    }

    /* Contact Form */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-card {
        padding: 24px;
    }

    /* Hide generic metrics if too clustered */
    .metrics-section .grid-4 {
        gap: 40px;
    }
    
    .metric-number {
        font-size: 36px;
    }
}
/* =========================================
   GLOBAL BACKGROUND EFFECTS 
   ========================================= */

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orb-float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue), transparent 70%);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 89, 230, 0.5), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: orb-pulse;
    animation-duration: 15s;
}

@keyframes orb-float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 30px); }
}

@keyframes orb-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
}

/* Add subtle tech dots pattern overlay */
.background-effects::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}
