/* ============================================
   AlfaByte.ro — Style Sheet
   Theme: "Year 2080 — Dark Cyberpunk Elegance"
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0e0e15;
    --bg-tertiary: #12121a;
    --accent-cyan: #00f0ff;
    --accent-purple: #8b5cf6;
    --accent-green: #00ff88;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-muted: #555555;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.3);

    /* Typography */
    --font-heading: 'Oxanium', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --container-padding: 0 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Navbar */
    --navbar-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

/* Subtle scanline overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--accent-purple);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10001;
    padding: 12px 24px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

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

.section-padding {
    padding: var(--section-padding);
}

.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); }
.text-green { color: var(--accent-green); }

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: block;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    color: var(--bg-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
    color: var(--accent-cyan);
}

.btn-green {
    background: linear-gradient(135deg, var(--accent-green), #00cc6a);
    color: var(--bg-primary);
    box-shadow: var(--glow-green);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    color: var(--bg-primary);
}

/* Animated border glow for CTA buttons */
.btn-glow {
    position: relative;
    z-index: 1;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-green), var(--accent-cyan));
    background-size: 400% 400%;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
    opacity: 0.7;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: var(--bg-primary);
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    transition: text-shadow var(--transition-base);
}

.navbar-logo:hover {
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    color: var(--text-primary);
}

.navbar-logo .logo-alpha {
    display: inline-block;
    width: 1.1em;
    height: 1.4em;
    vertical-align: -0.3em;
    margin-right: 0;
}

.navbar-logo .logo-alpha svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
    transition: filter var(--transition-base);
}

.navbar-logo:hover .logo-alpha svg {
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.7));
}

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

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

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

/* Glitch effect on hover */
.nav-link:hover {
    animation: glitchText 0.3s ease;
}

@keyframes glitchText {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.lang-switcher a {
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.lang-switcher a.active {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.lang-switcher a:hover {
    color: var(--accent-cyan);
}

.lang-divider {
    color: var(--text-muted);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile overlay menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}

.mobile-menu.active .nav-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .nav-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .nav-link:nth-child(7) { transition-delay: 0.4s; }

.mobile-menu .lang-switcher {
    margin-left: 0;
    margin-top: 16px;
    font-size: 1rem;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--navbar-height);
}

/* Animated gradient mesh background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 60%);
    animation: meshMove 15s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.05) translate(-10px, 10px); }
    66% { transform: scale(0.98) translate(10px, -10px); }
    100% { transform: scale(1.02) translate(-5px, 5px); }
}

/* Grid pattern overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Particles canvas container */
.particles-container {
    position: absolute;
    inset: 0;
    z-index: 2;
}

#particles-canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    min-height: 1.2em;
}

.hero-title .typewriter {
    display: inline;
    border-right: 3px solid var(--accent-cyan);
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { border-color: var(--accent-cyan); }
    50% { border-color: transparent; }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--accent-purple);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.8s ease 1.5s forwards;
    opacity: 0;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator .chevron {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

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

/* ---------- About Section ---------- */
.about {
    position: relative;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---------- Services Section ---------- */
.services {
    position: relative;
    overflow: hidden;
}

/* Circuit board SVG background */
.services-circuit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.3) 30%, black 40%);
    mask-image: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.3) 30%, black 40%);
}

/* Static PCB traces */
.pcb-trace {
    fill: none;
    stroke: rgba(0, 240, 255, 0.07);
    stroke-width: 1;
    stroke-linecap: square;
    stroke-linejoin: miter;
}
.pcb-trace--thick {
    stroke-width: 1.8;
    stroke: rgba(0, 240, 255, 0.05);
}

/* Via holes (layer transitions) */
.pcb-via {
    fill: none;
    stroke: rgba(0, 240, 255, 0.08);
    stroke-width: 0.8;
}
.pcb-via-hole {
    fill: rgba(0, 240, 255, 0.04);
}

/* IC component pads */
.pcb-pad {
    fill: none;
    stroke: rgba(0, 240, 255, 0.06);
    stroke-width: 0.6;
}
.pcb-pin {
    fill: rgba(0, 240, 255, 0.05);
}

/* Traveling pulse dot — single circle, filter creates glow + bright center */
.pcb-dot {
    stroke: none;
}
.pcb-dot--cyan   { fill: #00f0ff; }
.pcb-dot--purple { fill: #8b5cf6; }
.pcb-dot--green  { fill: #00ff88; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 1;
}

/* Animated gradient border on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        var(--accent-cyan),
        var(--accent-purple),
        var(--accent-green),
        var(--accent-cyan)
    );
    background-size: 300% 300%;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: cardBorderRotate 4s linear infinite;
}

/* Inner fill to create border effect */
.service-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: var(--bg-primary);
    z-index: -1;
    transition: background 0.4s ease;
}

@keyframes cardBorderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Holographic shimmer sweep */
.service-card .card-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 240, 255, 0.04) 40%,
        rgba(139, 92, 246, 0.06) 50%,
        rgba(0, 240, 255, 0.04) 60%,
        transparent 100%
    );
    z-index: 0;
    transition: none;
    pointer-events: none;
}

.service-card:hover .card-shimmer {
    animation: shimmerSweep 0.8s ease forwards;
}

@keyframes shimmerSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Corner accents that appear on hover */
.service-card .corner-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card .corner-accent--tl {
    top: 8px;
    left: 8px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}

.service-card .corner-accent--tr {
    top: 8px;
    right: 8px;
    border-top: 2px solid var(--accent-purple);
    border-right: 2px solid var(--accent-purple);
}

.service-card .corner-accent--bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 2px solid var(--accent-purple);
    border-left: 2px solid var(--accent-purple);
}

.service-card .corner-accent--br {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

.service-card:hover .corner-accent {
    opacity: 1;
}

.service-card:hover .corner-accent--tl {
    transform: translate(-3px, -3px);
}

.service-card:hover .corner-accent--tr {
    transform: translate(3px, -3px);
}

.service-card:hover .corner-accent--bl {
    transform: translate(-3px, 3px);
}

.service-card:hover .corner-accent--br {
    transform: translate(3px, 3px);
}


.service-card:hover {
    border-color: transparent;
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.1),
        0 0 60px rgba(139, 92, 246, 0.05);
}

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

.service-card:hover::after {
    background: rgba(10, 10, 15, 0.95);
}

/* Scanning line effect on hover */
.service-card .scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.service-card:hover .scan-line {
    animation: scanDown 1.5s ease-in-out infinite;
}

@keyframes scanDown {
    0% { top: -5%; }
    100% { top: 105%; }
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(0, 240, 255, 0.06);
    border: none;
    color: var(--accent-cyan);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

/* Animated gradient border — same as btn-glow */
.service-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-green), var(--accent-cyan));
    background-size: 400% 400%;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

/* Inner fill (covers the gradient, leaving only the border visible) */
.service-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--bg-primary);
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.25),
        0 0 20px rgba(139, 92, 246, 0.15);
}

.service-card:hover .service-icon::after {
    opacity: 0.9;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-cyan);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon svg {
    filter:
        drop-shadow(0 0 4px rgba(0, 240, 255, 0.5))
        drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ---------- Process Section ---------- */
.process {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Upward glow — blurred gradient bar behind the line (GPU-accelerated) */
.process::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 60px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-cyan),
        var(--accent-purple),
        var(--accent-green),
        var(--accent-cyan),
        transparent
    );
    filter: blur(20px);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);
}

/* Thin visible gradient line at section bottom */
.process::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 5%,
        var(--accent-cyan),
        var(--accent-purple),
        var(--accent-green),
        var(--accent-cyan),
        transparent 95%
    );
    opacity: 0;
    transform: scaleX(0);
    transition: none;
    z-index: 2;
}

.process.process-complete::after {
    opacity: 1;
    transform: scaleX(1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.process.process-complete::before {
    opacity: 0.7;
    transition: opacity 0.8s ease 1.2s;
    animation: auraGlowPulse 4s ease-in-out infinite 2s;
}

/* Pulsing glow — uses only GPU-composited properties (opacity, filter, transform) */
@keyframes auraGlowPulse {
    0%, 100% {
        opacity: 0.4;
        filter: blur(20px) hue-rotate(0deg);
        transform: scaleY(1) translateZ(0);
    }
    25% {
        opacity: 0.8;
        filter: blur(25px) hue-rotate(30deg);
        transform: scaleY(1.2) translateZ(0);
    }
    50% {
        opacity: 0.5;
        filter: blur(22px) hue-rotate(-40deg);
        transform: scaleY(1.05) translateZ(0);
    }
    75% {
        opacity: 0.9;
        filter: blur(28px) hue-rotate(60deg);
        transform: scaleY(1.3) translateZ(0);
    }
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical connecting line (dim background) */
.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 0;
}

/* Animated progress fill line — no glow so circles fully cover it */
.process-timeline::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    width: 2px;
    height: var(--progress-height, 0%);
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), var(--accent-green));
    transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
    align-items: flex-start;
    z-index: 4;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-primary);
    border: 2px solid var(--border);
    position: relative;
    z-index: 5;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover .step-number {
    background: #0a1520;
    box-shadow: var(--glow-cyan);
}

/* Active step state (triggered by JS scroll) */
.process-step.step-active .step-number {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: #0a1520;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1);
}

/* Pulse ring around active step number */
.process-step.step-active .step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.4);
    animation: stepRingPulse 2s ease-in-out infinite;
}

@keyframes stepRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0; }
}

/* Active step content highlight */
.process-step.step-active .step-content h3 {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Horizontal connector line from timeline to content */
.step-content {
    padding-top: 8px;
    position: relative;
}

.step-content::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 24px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
    transition: width 0.5s ease 0.2s;
}

.process-step.step-active .step-content::before {
    width: 16px;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: all 0.4s ease;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Data packet traveling along the timeline — behind circles */
.process-timeline .data-packet {
    position: absolute;
    left: 27px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.process-timeline.animating .data-packet {
    animation: dataTravel var(--packet-duration, 3s) ease-in-out infinite;
    opacity: 1;
}

.process-timeline .data-packet:nth-child(2) {
    animation-delay: 1.5s;
    width: 6px;
    height: 6px;
    left: 28px;
}

@keyframes dataTravel {
    0% { top: 0%; opacity: 0; }
    5% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: var(--progress-height, 100%); opacity: 0; }
}

/* ---------- Technologies Section ---------- */
.technologies {
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    cursor: default;
    animation: techFloat 6s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

.tech-item:nth-child(even) {
    animation-delay: -3s;
}

.tech-item:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
    box-shadow: var(--glow-cyan);
}

@keyframes techFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.tech-item svg,
.tech-item img {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.tech-item:hover svg,
.tech-item:hover img {
    opacity: 1;
}

.tech-item > span:first-of-type {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Tech tooltip on hover */
.tech-desc {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--accent-cyan);
    border-radius: 6px;
    padding: 5px 12px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.tech-desc::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--accent-cyan);
}

.tech-item:hover .tech-desc {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(0, 240, 255, 0.06) 0%, transparent 70%),
        var(--bg-secondary);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Contact Section ---------- */
.contact {
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    padding-top: 16px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-cyan);
    stroke-width: 1.5;
    fill: none;
    min-width: 20px;
}

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

.contact-info-item a:hover {
    color: var(--accent-cyan);
}

/* Contact Form */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--accent-cyan);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

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

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

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

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

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--accent-cyan);
    cursor: pointer;
    margin-top: 2px;
}

.form-checkbox span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* Honeypot - hidden from real users */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Submit button */
.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

.form-submit .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.form-submit.loading .spinner {
    display: inline-block;
}

.form-submit.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form messages */
.form-message {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 0.9rem;
    display: none;
    animation: fadeInUp 0.4s ease;
}

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

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

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .navbar-logo {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.social-links a:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.social-links a svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: fill var(--transition-fast);
}

.social-links a:hover svg {
    fill: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-bottom .made-with {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 24px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    transition: bottom var(--transition-slow);
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cookie-text a {
    font-size: 0.8rem;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.cookie-btn-accept {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.cookie-btn-accept:hover {
    box-shadow: var(--glow-cyan);
}

.cookie-btn-settings {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.cookie-btn-decline {
    color: var(--text-secondary);
    background: transparent;
}

.cookie-btn-decline:hover {
    color: var(--text-primary);
}

/* Cookie settings panel */
.cookie-settings {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cookie-settings.visible {
    display: block;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.cookie-toggle span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-toggle .badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 4px;
    margin-left: 8px;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    transition: all var(--transition-base);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-secondary);
    top: 2px;
    left: 2px;
    transition: all var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--accent-cyan);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: var(--accent-cyan);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Privacy Policy Page ---------- */
.policy-page {
    padding-top: calc(var(--navbar-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
}

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

.policy-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 8px;
}

.policy-content .policy-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.policy-content h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--accent-cyan);
}

.policy-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.policy-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.policy-content ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    padding-left: 16px;
}

.policy-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.policy-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.policy-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.policy-back:hover {
    color: var(--accent-purple);
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive Design ---------- */

/* Tablets & small desktops */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile landscape & tablets */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
        --navbar-height: 70px;
    }

    .navbar-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

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

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

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .process-step {
        gap: 20px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1rem;
    }

    .process-timeline::before,
    .process-timeline::after {
        left: 23px;
    }

    .process-timeline .data-packet {
        left: 20px;
    }

    .process-timeline .data-packet:nth-child(2) {
        left: 21px;
    }

    .contact-form {
        padding: 24px;
    }

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

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

/* Small phones */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px 0;
        --container-padding: 0 16px;
    }

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

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

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

    .service-card {
        padding: 28px 20px;
    }

    .contact-form {
        padding: 16px;
    }
}

/* Large screens */
@media (min-width: 1600px) {
    :root {
        --container-width: 1400px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    .stagger-children > * {
        opacity: 1;
        transform: none;
    }

    .hero-label,
    .hero-subtitle,
    .hero-description,
    .hero-cta,
    .scroll-indicator {
        opacity: 1;
        transform: none;
    }

    .hero-title .typewriter {
        border-right: none;
    }

    .tech-item {
        animation: none;
    }

    .process-step .step-number {
        color: var(--accent-cyan);
        border-color: var(--accent-cyan);
    }

    .process-timeline::after {
        height: 100%;
    }

    .process-step.step-active .step-number::after {
        display: none;
    }

    .process-timeline .data-packet {
        display: none;
    }

    .process.process-complete::after {
        animation: none;
    }

    .process.process-complete::before {
        animation: none;
        opacity: 0.3;
        filter: blur(20px);
    }

    .services-circuit {
        display: none;
    }
}
