/* ============================================================
   SPOTWEB TECH — Global Styles
   ============================================================ */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb { background: #0ea5e9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #38bdf8; }

/* Selection */
::selection { background: #0ea5e9; color: #fff; }

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

/* Body */
body {
    background: #030712;
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* Typography */
.font-display { font-family: 'Syne', system-ui, sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-warm {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Glass Card ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(14, 165, 233, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.08);
}

/* ---- Gradient Button ---- */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: #e2e8f0;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    cursor: pointer;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: #0ea5e9;
    color: #38bdf8;
    transform: translateY(-2px);
}

/* ---- Glow Orb ---- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ---- Section Styles ---- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

/* ---- Tech Badge ---- */
.tech-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
}
.tech-badge:hover {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

/* ---- Skill Bar ---- */
.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    border-radius: 9999px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

/* ---- Hero Animated Grid ---- */
.hero-grid {
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- Floating Card ---- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(2) { animation-delay: -2s; }
.floating-card:nth-child(3) { animation-delay: -4s; }

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

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered reveal delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ---- Testimonial Slider ---- */
.testimonial-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Pricing Card Popular ---- */
.pricing-popular {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(37, 99, 235, 0.1));
    border-color: rgba(14, 165, 233, 0.4) !important;
    position: relative;
}

/* ---- Typewriter cursor ---- */
.typewriter::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #0ea5e9;
}

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

/* ---- Progress ring ---- */
.stat-number {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

/* ---- Hamburger nav ---- */
#navbar.scrolled .nav-inner {
    background: rgba(3, 7, 18, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ---- Gallery lightbox ---- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox-overlay.active { display: flex; }

/* ---- Form focus ---- */
.form-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.form-input::placeholder { color: #4b5563; }
.form-input:focus {
    outline: none;
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ---- Timeline ---- */
.timeline-line {
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0ea5e9, rgba(14, 165, 233, 0.1));
}

/* ---- Mobile responsive helpers ---- */
@media (max-width: 640px) {
    .hero-title { font-size: 2.5rem !important; }
}
