/* ==========================================================================
   PYLONWEB DESIGN SYSTEM & CORE STYLES
   ========================================================================== */

:root {
    /* Color Palette */
    --color-bg-base: #0B0F19;
    --color-bg-surface: rgba(15, 23, 42, 0.6);
    --color-bg-card: rgba(15, 23, 42, 0.45);
    
    --color-primary: #00AEEF;
    --color-primary-glow: rgba(0, 174, 239, 0.4);
    --color-primary-rgb: 0, 174, 239;
    
    --color-secondary: #D4AF37;
    --color-secondary-glow: rgba(212, 175, 55, 0.35);
    --color-secondary-rgb: 212, 175, 55;
    
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;
    
    --border-glass: rgba(0, 174, 239, 0.1);
    --border-glass-hover: rgba(0, 174, 239, 0.4);
    --border-glass-gold: rgba(212, 175, 55, 0.1);
    --border-glass-gold-hover: rgba(212, 175, 55, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --nav-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* Background Gradients & Holograms */
.tech-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(11, 15, 25, 0.2) 0%, var(--color-bg-base) 100%),
        linear-gradient(rgba(0, 174, 239, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 174, 239, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center, center center, center center;
    pointer-events: none;
    z-index: -3;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    pointer-events: none;
    z-index: -2;
    mix-blend-mode: screen;
    animation: orb-float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    right: -10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, rgba(0,0,0,0) 70%);
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

@keyframes orb-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

/* Typography & Links */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-base);
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #33ebff;
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-glow:hover::after {
    opacity: 1;
    left: 120%;
    transition: all 0.6s ease-in-out;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.15);
}

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

/* Badge Accent */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 174, 239, 0.08);
    border: 1px solid rgba(0, 174, 239, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-primary);
    animation: pulse 1.5s infinite alternate;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--color-primary); }
}

/* Text Glowing utilities */
.text-glow-cyan {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(0, 174, 239, 0.3);
}

.text-glow-gold {
    color: var(--color-secondary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text-image {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text-image.small {
    height: 28px;
}

.logo-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper.small {
    width: 30px;
    height: 30px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    animation: logo-float 4s infinite alternate ease-in-out;
}

/* Orbital Rotating Ring around the Logo */
.logo-orbit-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--color-secondary);
    border-radius: 50%;
    transform: rotateX(70deg) rotateY(20deg) rotateZ(0deg);
    transform-style: preserve-3d;
    animation: orbit-rotate 6s infinite linear;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 8px var(--color-secondary-glow);
}

@keyframes logo-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

@keyframes orbit-rotate {
    0% { transform: rotateX(70deg) rotateY(20deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateY(20deg) rotateZ(360deg); }
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-text-primary);
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: baseline;
}

.logo-web {
    color: var(--color-primary); /* Cyan 100% */
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 2px;
}

.logo-net {
    color: var(--color-secondary); /* Gold */
    font-size: 0.65rem; /* Larger font size */
    font-weight: 800;
    position: absolute;
    right: 0;
    bottom: -0.48em; /* Position closer to the word above it */
    line-height: 1;
    pointer-events: none;
    letter-spacing: 0.02em;
}




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

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
    box-shadow: 0 0 6px var(--color-primary);
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION (ABOVE THE FOLD)
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Canvas & Hologram Visuals */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 480px;
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 450px;
    max-height: 450px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(0, 174, 239, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 30px rgba(0, 174, 239, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#crystal-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: grab;
}

#crystal-canvas:active {
    cursor: grabbing;
}

/* Hologram Overlay Graphics */
.hologram-grid {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-image: 
        radial-gradient(circle, transparent 40%, rgba(0, 174, 239, 0.03) 70%),
        repeating-radial-gradient(circle, transparent, transparent 10px, rgba(0, 174, 239, 0.08) 10px, rgba(0, 174, 239, 0.08) 12px);
    z-index: 1;
    animation: spin-clockwise 25s infinite linear;
}

.hologram-circle {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(0, 174, 239, 0.15);
    border-radius: 50%;
    z-index: 1;
    animation: spin-counter-clockwise 35s infinite linear;
}

.hologram-circle-inner {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px dotted rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    z-index: 1;
    animation: spin-clockwise 15s infinite linear;
}

.hologram-data-box {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid var(--border-glass);
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--color-primary);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.data-tag {
    display: block;
    letter-spacing: 1px;
}

@keyframes spin-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-counter-clockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 5;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.mouse-icon:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 174, 239, 0.2);
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   SERVICES SECTION (GRID LAYOUT)
   ========================================================================== */

.services-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

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

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass-gold);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Custom interactive hover glow borders */
.card-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 1.5px solid transparent;
    border-radius: 16px;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    z-index: 3;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 174, 239, 0.2);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 
        0 15px 35px -15px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(0, 174, 239, 0.05);
}

.service-card:hover .card-glow-border {
    border-color: var(--color-primary);
    box-shadow: 
        inset 0 0 15px rgba(0, 174, 239, 0.08),
        0 0 15px rgba(0, 174, 239, 0.15);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all var(--transition-normal);
}

.service-card:hover .card-icon-wrapper {
    background: rgba(0, 174, 239, 0.08);
    border-color: var(--color-primary);
    transform: scale(1.05) translateZ(10px);
    box-shadow: 0 0 12px rgba(0, 174, 239, 0.15);
}

.service-icon {
    width: 30px;
    height: 30px;
    transition: stroke var(--transition-normal);
}

.service-card:hover .service-icon path {
    stroke: var(--color-primary);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    transition: color var(--transition-normal);
}

.service-card:hover .card-title {
    color: var(--color-primary);
}

.card-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    transition: color var(--transition-normal);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal);
}

.service-card:hover .card-footer-link {
    color: var(--color-primary);
}

.service-card:hover .arrow-icon {
    transform: translateX(5px);
}

/* ==========================================================================
   ABOUT SECTION (THE CONCEPT)
   ========================================================================== */

.about-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.about-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.about-graphic {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nodes-canvas-wrapper {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.02);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

#nodes-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--color-secondary) 50%, transparent 90%);
    box-shadow: 0 0 10px var(--color-secondary);
    opacity: 0.5;
    z-index: 2;
    animation: scanning 8s infinite linear;
}

@keyframes scanning {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-text-block {
    margin-bottom: 40px;
}

.about-text-block p {
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.about-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(0, 174, 239, 0.25);
}

.stat-plus {
    color: var(--color-secondary);
    font-size: 1.8rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-container {
    max-width: 800px;
}

.contact-form-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
    position: relative;
    margin-top: 40px;
}

.form-glow-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, transparent 40%, var(--color-secondary) 100%);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.contact-form-wrapper:focus-within .form-glow-glow {
    opacity: 0.3;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(15, 23, 42, 0.9);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 45px;
    cursor: pointer;
}

select.form-input option {
    background-color: #0B0F19;
    color: var(--color-text-primary);
    padding: 10px;
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
    box-shadow: 0 0 8px var(--color-primary);
}

.form-input:focus + .input-glow {
    width: 100%;
}

textarea.form-input {
    resize: vertical;
}

/* Spinner during submission */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(11, 15, 25, 0.3);
    border-top: 2px solid var(--color-bg-base);
    border-radius: 50%;
    animation: spin-clockwise 0.8s infinite linear;
    margin-left: 10px;
}

.btn.submitting .spinner {
    display: inline-block;
}

.btn.submitting .btn-text {
    opacity: 0.8;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: #060910;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-glass);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

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

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

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-normal);
}

.social-icon-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(0, 174, 239, 0.05);
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.15);
    transform: translateY(-2px);
}

.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05) 50%, transparent);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.gamer-easter-egg {
    font-size: 0.78rem;
    font-style: italic;
    color: rgba(214, 175, 55, 0.45);
    text-align: center;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 16, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--color-bg-base);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(0, 174, 239, 0.1);
    position: relative;
    z-index: 2;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    text-align: center;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-primary);
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(0, 174, 239, 0.08);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.15);
}

.success-check-svg {
    width: 32px;
    height: 32px;
}

.modal-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.modal-body p {
    font-size: 0.98rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   SCROLL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-delay-1 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.fade-in-delay-3 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --nav-height: 70px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-container {
        gap: 30px;
    }
    
    .services-grid {
        gap: 20px;
    }
    
    .about-container {
        gap: 40px;
    }
    
    .about-text-block p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    /* Navbar Hamburger Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left var(--transition-normal) ease-in-out;
        border-top: 1px solid var(--border-glass);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .nav-cta {
        display: none; /* Hide top CTA on tablet/mobile header */
    }
    
    /* Hero section stack */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        height: 380px;
        order: -1; /* visual on top for mobile/tablet */
    }
    
    /* Services grid stack */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px;
    }
    
    /* About stack */
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-graphic {
        height: 300px;
    }
    
    /* Form */
    .form-row.split {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row.split .form-group:first-child {
        margin-bottom: 24px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    /* Footer layout stack */
    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .btn-block {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .about-stats {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 20px;
    }
    
    .stat-item {
        align-items: center;
        min-width: 120px;
    }
}
