/* ═══════════════════════════════════════════════════════
   DripOff AI — Services Page
   PREMIUM IMMERSIVE DESIGN — V2
   Performance-optimized · Sharp backgrounds · No blur
   ═══════════════════════════════════════════════════════ */

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

:root {
    --bg: #030308;
    --text: #f0f0f5;
    --text-dim: rgba(240, 240, 245, 0.6);
    --text-muted: rgba(240, 240, 245, 0.35);
    --accent: #6EE7B7;
    --accent-blue: #3B82F6;
    --glass: rgba(10, 10, 30, 0.6);
    --glass-border: rgba(110, 231, 183, 0.15);
    --glass-blur: 16px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    background: var(--bg);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    cursor: none;
}

a { color: inherit; text-decoration: none; }

::selection {
    background: var(--accent);
    color: var(--bg);
}


/* ═══════════════════════════════════════════════
   $1M WEBGL PARTICLE ENGINE CANVAS
   ═══════════════════════════════════════════════ */

#bgWorld {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0a1a 0%, #030308 100%);
}

#webgl-canvas {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    outline: none;
}

/* Subtle vignette overlay — NOT heavy dark */
.bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(3, 3, 8, 0.5) 0%,
            rgba(3, 3, 8, 0.15) 30%,
            rgba(3, 3, 8, 0.15) 60%,
            rgba(3, 3, 8, 0.55) 100%
        ),
        radial-gradient(ellipse at center, transparent 40%, rgba(3, 3, 8, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Atmospheric glow  */
.bg-glow {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(110, 231, 183, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 30% 50% at 80% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    mix-blend-mode: screen;
}


/* ═══════════════════════════════════════════════
   PREMIUM FUTURISTIC CURSOR
   ═══════════════════════════════════════════════ */

#cursorInner, #cursorOuter {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 50%));
    will-change: transform;
}
#cursorInner {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}
#cursorInner.hover {
    width: 16px;
    height: 16px;
    background: rgba(110, 231, 183, 0.3);
    box-shadow: 0 0 15px rgba(110, 231, 183, 0.4);
}
#cursorOuter {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(110, 231, 183, 0.4);
    border-radius: 50%;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
#cursorOuter.hover {
    width: 52px;
    height: 52px;
    background: rgba(110, 231, 183, 0.05);
    border-color: rgba(110, 231, 183, 0.8);
}


/* ═══════════════════════════════════════════════
   UNIFIED NAVIGATION — Matches Home & Explore
   ═══════════════════════════════════════════════ */

#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}
#mainHeader.scrolled {
    background: rgba(3, 3, 8, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text);
}
.logo-icon { display: flex; }

#mainNav ul {
    display: flex;
    list-style: none;
    gap: 36px;
}
#mainNav li { list-style: none; }
#mainNav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.3s;
    position: relative;
}
#mainNav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    transition: width 0.3s var(--ease);
}
#mainNav a:hover { color: var(--text); }
#mainNav a:hover::after { width: 100%; }
#mainNav a.active { color: var(--text); }
#mainNav a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.btn-nav {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 24px;
    border: 1px solid rgba(110, 231, 183, 0.15);
    border-radius: 100px;
    color: var(--text);
    transition: all 0.3s;
    background: rgba(10, 10, 30, 0.6);
    backdrop-filter: blur(10px);
}
.btn-nav:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}


/* ═══════════════════════════════════════════════
   CONTENT SECTIONS
   Tighter spacing — no wasted blank space
   ═══════════════════════════════════════════════ */

.content-section {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-inner {
    max-width: 1200px;
    width: 100%;
    padding: 100px 40px 80px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════
   HERO — Full viewport, giant text with text-shadow
   ═══════════════════════════════════════════════ */

.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: rgba(10, 10, 30, 0.7);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(110, 231, 183, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
}

.title-line {
    display: block;
    font-size: clamp(48px, 8vw, 110px);
    color: var(--text);
    /* Strong text shadow for readability over busy backgrounds */
    text-shadow:
        0 2px 20px rgba(3, 3, 8, 0.8),
        0 4px 60px rgba(3, 3, 8, 0.6),
        0 0 100px rgba(3, 3, 8, 0.4);
}

.title-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(110, 231, 183, 0.6)) drop-shadow(0 0 80px rgba(59, 130, 246, 0.4));
}

.hero-sub {
    font-size: 15px;
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(3, 3, 8, 0.8);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.01% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ═══════════════════════════════════════════════
   STATEMENT — Compact, no wasted space
   ═══════════════════════════════════════════════ */

.section-statement {
    min-height: 70vh;
}

.statement-text {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.5vw, 60px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dim);
    max-width: 850px;
    text-shadow: 0 2px 30px rgba(3, 3, 8, 0.7);
}

.statement-text .highlight {
    color: var(--text);
    text-shadow:
        0 0 40px rgba(110, 231, 183, 0.15),
        0 2px 30px rgba(3, 3, 8, 0.7);
}


/* ═══════════════════════════════════════════════
   SERVICES GRID — Premium glassmorphism cards
   ═══════════════════════════════════════════════ */

.section-services {
    min-height: auto;
    padding: 40px 0;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(110, 231, 183, 0.3);
}

.services-count {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 2px 20px rgba(3, 3, 8, 0.6);
}

.services-count .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(10, 10, 30, 0.65);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: all 0.35s var(--ease);
    cursor: none;
    position: relative;
    overflow: hidden;
}

/* Premium glow line on top of card */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-card:hover {
    border-color: rgba(110, 231, 183, 0.35);
    background: rgba(10, 10, 30, 0.8);
    transform: translateY(-3px);
    box-shadow:
        0 15px 50px rgba(110, 231, 183, 0.08),
        0 0 0 1px rgba(110, 231, 183, 0.1) inset;
}

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

.card-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: rgba(110, 231, 183, 0.12);
    line-height: 1;
}

.service-card:hover .card-num {
    color: rgba(110, 231, 183, 0.35);
}

.card-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.card-count {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════════
   DETAILED CATEGORIES — Compact with glow borders
   ═══════════════════════════════════════════════ */

.section-detail {
    min-height: auto;
    padding: 20px 0;
}

.detail-inner {
    padding-top: 40px;
    padding-bottom: 40px;
}

.detail-category {
    margin-bottom: 30px;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: rgba(10, 10, 30, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.35s, box-shadow 0.35s;
}

.detail-category:hover {
    border-color: rgba(110, 231, 183, 0.28);
    box-shadow: 0 0 40px rgba(110, 231, 183, 0.04);
}

.cat-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: rgba(110, 231, 183, 0.12);
    line-height: 1;
}

.cat-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.cat-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-services span {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-dim);
    transition: all 0.25s var(--ease);
    cursor: none;
}

.cat-services span:hover {
    border-color: rgba(110, 231, 183, 0.3);
    background: rgba(110, 231, 183, 0.08);
    color: var(--text);
    box-shadow: 0 0 16px rgba(110, 231, 183, 0.06);
}


/* ═══════════════════════════════════════════════
   CTA  — Bold and eye-catching
   ═══════════════════════════════════════════════ */

.section-cta {
    min-height: 80vh;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
}

.cta-title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
}

.cta-title .title-line {
    font-size: clamp(48px, 8vw, 100px);
}

.cta-sub {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 480px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(3, 3, 8, 0.7);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    transition: all 0.35s var(--ease);
    box-shadow: 0 0 40px rgba(110, 231, 183, 0.2);
    cursor: none;
}

.cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 60px rgba(110, 231, 183, 0.35);
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.site-footer {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-footer a {
    color: var(--text-dim);
    transition: color 0.3s;
}

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


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: none; }
    #siteNav { padding: 15px 20px; }
    .section-inner { padding: 80px 20px 50px; }
    .detail-category { padding: 20px; }
    .hero-title .title-line { letter-spacing: -1px; }
    body { cursor: auto; }
    #cursorGlow, #cursorDot { display: none; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .cat-head { flex-direction: column; gap: 8px; }
}
