/* ==========================================================================
   DIGIMALIA PREMIUM CSS STYLESHEET
   Identity: Cyber-Obsidian & Electric Glow
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & SYSTEM DESIGN
   -------------------------------------------------------------------------- */
:root {
    /* HSL Cyber-Colors */
    --primary: hsl(220, 90%, 56%);       /* Electric Blue */
    --primary-light: hsl(210, 100%, 65%);
    --primary-glow: rgba(37, 99, 235, 0.45);
    
    --secondary: hsl(265, 89%, 65%);     /* Galactic Violet */
    --secondary-glow: rgba(139, 92, 246, 0.35);
    
    --cyber-aqua: hsl(188, 90%, 50%);    /* Cyber Turquoise */
    --cyber-aqua-glow: rgba(6, 182, 212, 0.4);
    
    --success: hsl(150, 84%, 44%);       /* Cyber Green */
    
    /* Dark Space Theme */
    --bg-darker: hsl(220, 40%, 4%);      /* Deep space black */
    --bg-dark: hsl(222, 35%, 6%);        /* Slate obsidian */
    --bg-card: rgba(15, 23, 42, 0.65);   /* Glass trans */
    --bg-input: rgba(30, 41, 59, 0.4);
    
    /* Text colors */
    --text-white: hsl(210, 40%, 98%);
    --text-gray: hsl(215, 20%, 65%);
    --text-muted: hsl(215, 15%, 45%);
    
    /* Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(37, 99, 235, 0.15);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', 'Courier New', monospace;
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --container-width: 1200px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE RESET
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-darker);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. GENERAL LAYOUT ELEMENTS & CONTAINERS
   -------------------------------------------------------------------------- */
.section-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.section-header h2 {
    font-size: 2.75rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-white) 30%, hsl(210, 45%, 85%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-gray);
}

/* --------------------------------------------------------------------------
   4. PREMIUM BUTTONS UTILITY
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--cyber-aqua) 100%);
    background-size: 200% auto;
    color: var(--text-white);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-30deg);
    pointer-events: none;
    transition: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    background-position: right center;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55),
                0 0 25px rgba(6, 182, 212, 0.45);
}

.btn-primary:hover::before {
    left: 200%;
    transition: left 0.8s ease-in-out;
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   5. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(8, 11, 17, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-container {
    padding: 1rem 2rem;
}

/* Logo layout */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: transform var(--transition-fast);
}

.nav-logo:hover .logo-img {
    transform: rotate(10deg) scale(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.logo-text span {
    color: var(--primary-light);
    text-shadow: 0 0 15px var(--primary-glow);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary-light);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

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

.nav-links a:not(.btn) {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-white);
    opacity: 0.75;
    position: relative;
    padding: 0.35rem 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyber-aqua), var(--primary-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 8px var(--cyber-aqua-glow);
}

.nav-links a:not(.btn):hover {
    opacity: 1;
    color: var(--cyber-aqua);
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.nav-links a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-btn {
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 1 !important;
}

/* Menu Toggle Burger */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 11rem 0 8rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Horizontally center contents */
    background-color: var(--bg-darker);
    overflow: hidden;
}

/* Subtle high-tech cybernetic grid background mesh */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 60%, var(--bg-darker) 100%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 45px 45px, 45px 45px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

/* Animated Scanline / Grid Sweep */
.hero::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(37, 99, 235, 0.03) 45%,
        rgba(6, 182, 212, 0.08) 50%,
        rgba(37, 99, 235, 0.03) 55%,
        transparent 100%
    );
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    animation: gridSweep 12s infinite linear;
}

@keyframes gridSweep {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Cyber particle system in background */
.cyber-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--cyber-aqua);
    border-radius: 2px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 8px var(--cyber-aqua-glow));
}

.particle-1 {
    top: 20%;
    left: 15%;
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    animation: floatParticle1 15s infinite linear;
}

.particle-2 {
    top: 60%;
    left: 80%;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    animation: floatParticle2 20s infinite linear;
}

.particle-3 {
    top: 40%;
    left: 45%;
    width: 6px;
    height: 6px;
    background: var(--cyber-aqua);
    animation: floatParticle3 12s infinite linear;
}

.particle-4 {
    top: 80%;
    left: 25%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: floatParticle4 18s infinite linear;
}

@keyframes floatParticle1 {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-50px) translateX(20px) rotate(180deg); opacity: 0.25; }
    100% { transform: translateY(0) rotate(360deg); opacity: 0.1; }
}

@keyframes floatParticle2 {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    50% { transform: translateY(-70px) translateX(-30px) rotate(-180deg); opacity: 0.3; }
    100% { transform: translateY(0) rotate(-360deg); opacity: 0.15; }
}

@keyframes floatParticle3 {
    0% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-40px) translateX(15px) scale(1.3); opacity: 0.4; }
    100% { transform: translateY(0) scale(1); opacity: 0.2; }
}

@keyframes floatParticle4 {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.12; }
    50% { transform: translateY(-60px) translateX(-15px) rotate(90deg) scale(0.8); opacity: 0.22; }
    100% { transform: translateY(0) rotate(180deg) scale(1); opacity: 0.12; }
}

/* Subtle luminous glows in the background */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.22;
}

.glow-blue {
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: glowPulse 8s infinite alternate;
}

.glow-purple {
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation: glowPulse 10s infinite alternate-reverse;
}

.glow-cyan {
    background: var(--cyber-aqua);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.05;
}

.glow-cyan-hero {
    background: var(--cyber-aqua);
    top: 10%;
    right: -150px;
    width: 550px;
    height: 550px;
    animation: glowPulse 12s infinite alternate-reverse;
    opacity: 0.14;
}

@keyframes glowPulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.15) translate(50px, 30px); opacity: 0.25; }
}

.hero-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.badge-premium {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--cyber-aqua);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 0.4rem 1.15rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.1);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-content p strong {
    color: var(--text-white);
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Indicators */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.trust-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-white);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* --------------------------------------------------------------------------
   7. INTERACTIVE DEVELOPER IDE WINDOW
   -------------------------------------------------------------------------- */
.hero-visual {
    position: relative;
    width: 100%;
}

.ide-window {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(37, 99, 235, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
}

.ide-window:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(37, 99, 235, 0.15);
}

.ide-header {
    background-color: rgba(8, 11, 17, 0.5);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ide-dots {
    display: flex;
    gap: 0.45rem;
}

.ide-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.ide-dots .dot.red { background-color: #ef4444; }
.ide-dots .dot.yellow { background-color: #f59e0b; }
.ide-dots .dot.green { background-color: #10b981; }

.ide-tab {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-right: auto;
    margin-left: 1.5rem;
}

.react-color {
    color: #00d8ff;
}

.ide-body {
    padding: 1.5rem 2rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Syntax Highlighting */
.token.keyword { color: #f43f5e; font-weight: 500; }
.token.string { color: #10b981; }
.token.function { color: #3b82f6; }
.token.boolean { color: #f59e0b; }
.token.tag { color: #8b5cf6; }
.token.name { color: #6366f1; }
.token.attr-name { color: #ec4899; }
.token.attr-value { color: #10b981; }

.ide-footer {
    background-color: rgba(8, 11, 17, 0.5);
    border-top: 1px solid var(--border-color);
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ide-status {
    display: flex;
    gap: 1.25rem;
}

.ide-status i {
    margin-right: 0.25rem;
}

.ide-status span:last-child {
    color: var(--success);
}

.lh-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.ide-shadow {
    position: absolute;
    width: 85%;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    filter: blur(20px);
    bottom: -15px;
    left: 7.5%;
    z-index: -1;
}

/* --------------------------------------------------------------------------
   8. SERVICES GRID SECTION (Custom-crafted)
   -------------------------------------------------------------------------- */
.services {
    padding: 10rem 0;
    background-color: var(--bg-dark);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), 
                0 15px 35px rgba(37, 99, 235, 0.12), 
                0 0 30px rgba(6, 182, 212, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.1));
}

.service-card:hover .service-icon {
    transform: scale(1.12) rotate(8deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    border-color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.service-features li i {
    color: var(--cyber-aqua);
}

/* --------------------------------------------------------------------------
   9. TECH ECOSYSTEM SECTION
   -------------------------------------------------------------------------- */
.tech {
    padding: 10rem 0;
    background-color: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

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

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-item:hover {
    transform: translateY(-8px) scale(1.04);
    background: rgba(255, 255, 255, 0.03);
}

/* Individual brand colors glows on hover */
.tech-item:has(.react-color):hover {
    border-color: rgba(0, 216, 255, 0.55);
    box-shadow: 0 10px 30px rgba(0, 216, 255, 0.15), 0 0 25px rgba(0, 216, 255, 0.08);
}
.tech-item:has(.tailwind-color):hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15), 0 0 25px rgba(56, 189, 248, 0.08);
}
.tech-item:has(.supabase-color):hover {
    border-color: rgba(62, 207, 142, 0.55);
    box-shadow: 0 10px 30px rgba(62, 207, 142, 0.15), 0 0 25px rgba(62, 207, 142, 0.08);
}
.tech-item:has(.flutter-color):hover {
    border-color: rgba(2, 86, 155, 0.55);
    box-shadow: 0 10px 30px rgba(2, 86, 155, 0.15), 0 0 25px rgba(2, 86, 155, 0.08);
}
.tech-item:has(.node-color):hover {
    border-color: rgba(51, 153, 51, 0.55);
    box-shadow: 0 10px 30px rgba(51, 153, 51, 0.15), 0 0 25px rgba(51, 153, 51, 0.08);
}
.tech-item:has(.pg-color):hover {
    border-color: rgba(51, 103, 145, 0.55);
    box-shadow: 0 10px 30px rgba(51, 103, 145, 0.15), 0 0 25px rgba(51, 103, 145, 0.08);
}

.tech-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-item:hover .tech-icon {
    transform: scale(1.16) rotate(6deg);
}

.tech-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.tech-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Brands color */
.tailwind-color { color: #38bdf8; }
.supabase-color { color: #3ecf8e; }
.flutter-color { color: #02569b; }
.node-color { color: #339933; }
.pg-color { color: #336791; }

/* --------------------------------------------------------------------------
   10. MANIFESTO COMPARATIVE TABLE
   -------------------------------------------------------------------------- */
.manifesto {
    padding: 10rem 0;
    background-color: var(--bg-dark);
}

.comparison-table-wrapper {
    overflow-x: auto;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--bg-card);
    min-width: 800px;
}

.comparison-table th, .comparison-table td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: rgba(8, 11, 17, 0.4);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    font-size: 1.1rem;
}

.comparison-table th.highlight {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.comparison-table td.highlight {
    background: rgba(37, 99, 235, 0.02);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.criterion {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-white);
}

.feature-yes {
    color: var(--text-white);
    font-weight: 500;
}

.feature-yes::before {
    content: '⚡ ';
    color: var(--cyber-aqua);
    font-size: 1.1rem;
}

.feature-no {
    color: var(--text-muted);
}

.feature-no::before {
    content: '✕ ';
    color: #ef4444;
}

/* --------------------------------------------------------------------------
   11. ESTIMATOR / CONTACT SECTION & FORMS
   -------------------------------------------------------------------------- */
.contact {
    padding: 10rem 0;
    background-color: var(--bg-darker);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: center;
}

.contact-info {
    max-width: 500px;
}

.info-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--cyber-aqua);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.contact-info h2 {
    font-size: 2.75rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3.5rem;
}

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

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-item i {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.1rem;
}

.info-item span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Interactive Quote Card Form */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3.5rem;
    box-shadow: var(--shadow-lg), 0 0 35px rgba(139, 92, 246, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
}

.contact-form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
    background-color: rgba(30, 41, 59, 0.6);
}

/* Custom Checkbox Tiles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-tile input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    pointer-events: none;
}

.tile-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.tile-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    text-align: center;
    transition: var(--transition-fast);
}

/* Checked Tile State */
.checkbox-tile:has(input:checked) {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.05);
}

.checkbox-tile:has(input:checked) .tile-icon {
    color: var(--primary-light);
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3));
}

.checkbox-tile:has(input:checked) .tile-label {
    color: var(--text-white);
}

/* Budget Range Slider styling */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    margin: 1.5rem 0 0.75rem 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cyber-aqua);
    border: 2px solid var(--text-white);
    cursor: pointer;
    box-shadow: 0 0 15px var(--cyber-aqua-glow);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

#budget-value {
    color: var(--cyber-aqua);
    font-size: 1.15rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-shadow: 0 0 10px var(--cyber-aqua-glow);
}

/* --------------------------------------------------------------------------
   12. LEGAL NOTICE & CGU SPECIFIC STYLES
   -------------------------------------------------------------------------- */
.legal-body {
    background-color: var(--bg-darker);
}

.legal-content-section {
    padding: 10rem 0 8rem 0;
}

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

.legal-wrapper h1 {
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.legal-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legal-divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 2.5rem 0 3.5rem 0;
}

.legal-block {
    margin-bottom: 3.5rem;
}

.legal-block h2 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    color: var(--text-white);
}

.legal-block h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-white);
}

.legal-block p {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-align: justify;
}

.legal-block ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legal-block ul li i {
    color: var(--primary-light);
}

/* --------------------------------------------------------------------------
   13. FOOTER SECTION
   -------------------------------------------------------------------------- */
.footer {
    padding: 6rem 0 3rem 0;
    background-color: rgba(8, 11, 17, 0.95);
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

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

.logo-footer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.logo-footer .logo-text {
    font-size: 1.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

.footer-links-grid h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-links-grid ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-grid a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links-grid a:hover {
    color: var(--primary-light);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials a:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: rgba(37, 99, 235, 0.05);
}

/* --------------------------------------------------------------------------
   14. SUCCESS MODAL COMPONENT & UTILITY
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 11, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3.5rem;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-card {
    transform: scale(1);
}

.modal-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

.modal-card h3 {
    font-size: 1.75rem;
}

.modal-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */

/* Tablet view */
@media (max-width: 1024px) {
    .section-header h2 { font-size: 2.25rem; }
    .hero-content h1 { font-size: 3rem; }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .contact-info {
        max-width: 100%;
    }
}

/* Mobile landscape view */
@media (max-width: 768px) {
    .section-container { padding: 0 1.5rem; }
    .section-header { margin-bottom: 3.5rem; }
    
    /* Navigation burger */
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        padding: 3rem;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        border-top: 1px solid var(--border-color);
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .hero { padding-top: 8rem; }
    .hero-ctas { flex-direction: column; }
    .services-grid { grid-template-columns: 1fr; }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Small mobile phone view */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.25rem; }
    .section-header h2 { font-size: 1.85rem; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .checkbox-group { grid-template-columns: 1fr; }
    .contact-form-card { padding: 2rem 1.5rem; }
    .modal-card { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   15. SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

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