/* ============================================
   SS Computer - Modern Design System (TECH Edition)
   Elegant · Futuristic · Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Color Palette */
    --brand-primary: #ff6b35;
    --brand-secondary: #f7c59f;
    --brand-teal: #1a936f;
    --brand-navy: #080c14;
    --brand-mid: #0f172a;
    --brand-light: #f8fafc;
    --brand-muted: #94a3b8;
    --brand-card-bg: rgba(255, 255, 255, 0.03);
    --brand-glass: rgba(15, 23, 42, 0.82);
    --brand-glow: rgba(255, 107, 53, 0.45);
    --brand-cyan: #06b6d4;

    /* Gradients */
    --gradient-hero: radial-gradient(circle at top right, #1e293b 0%, #080c14 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35, #f7c59f);
    --gradient-tech: linear-gradient(90deg, #ff6b35 0%, #06b6d4 100%);

    /* Shadows */
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Radius */
    --radius-xl: 12px;
    --radius-2xl: 16px;

    /* Fonts */
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--brand-navy);
    color: var(--brand-light);
    margin: 0;
    overflow-x: hidden;
}

/* System Scanline Overlay */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.04));
    z-index: 10000;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.1;
}

/* ---- Transitions & Loaders ---- */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 53, 0.1);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: tech-spin 0.9s linear infinite;
}

@keyframes tech-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Navigation ---- */
.ss-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    background: transparent;
    transition: all 0.4s ease;
}

.ss-navbar.scrolled {
    background: var(--brand-glass);
    backdrop-filter: blur(15px);
    height: 64px;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.ss-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--brand-cyan);
    border-radius: 50%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    animation: tech-spin 4s linear infinite;
    opacity: 0.6;
}

.brand-logo {
    width: 42px;
    height: 42px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 1px solid var(--brand-primary);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--brand-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ss-nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ss-nav-links a {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: 0.3s;
    text-decoration: none;
    position: relative;
}

.ss-nav-links a:hover,
.ss-nav-links a.active {
    color: var(--brand-primary);
}

.ss-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: 0.3s;
}

.ss-nav-links a:hover::after,
.ss-nav-links a.active::after {
    width: 100%;
}

/* ---- Hero Section ---- */
.ss-hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--brand-primary);
    top: -100px;
    right: 5%;
    animation: float-blob 10s infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--brand-cyan);
    bottom: 10%;
    left: 5%;
    animation: float-blob 8s infinite alternate-reverse;
}

@keyframes float-blob {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(40px, 40px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--brand-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-primary);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--brand-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Buttons Custom */
.btn-primary-ss {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: 0.3s;
    border: 1px solid var(--brand-primary);
}

.btn-primary-ss:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    background: transparent;
}

.btn-ghost-ss {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.btn-ghost-ss:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-primary);
}

/* Floating Cards */
.hero-visual {
    position: relative;
    height: 400px;
}

.hero-float-card {
    position: absolute;
    background: var(--brand-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.hero-card-main {
    top: 10%;
    right: 0;
    width: 260px;
    border-left: 4px solid var(--brand-primary);
}

.hero-card-stat {
    bottom: 10%;
    left: -40px;
    padding: 1rem;
    border-left: 4px solid var(--brand-cyan);
}

.hero-card-badge {
    top: 40%;
    left: -80px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--brand-cyan);
}

/* ---- Sections ---- */
.ss-section {
    padding: 100px 0;
    position: relative;
}

.ss-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.eyebrow-orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.eyebrow-teal {
    background: rgba(6, 182, 212, 0.1);
    color: var(--brand-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.section-title .clip {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Service Nodes */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.service-img-wrap {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.6s;
}

.service-card:hover .service-img {
    transform: scale(1.1);
    opacity: 1;
}

.service-body {
    padding: 1.75rem;
}

.service-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    transition: 0.3s;
}

.service-desc {
    font-size: 0.85rem;
    color: var(--brand-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Glitch Effect on Hover */
@keyframes tech-glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.service-card:hover .service-name {
    animation: tech-glitch 0.2s linear infinite;
    color: var(--brand-primary);
}

/* Stats Bar */
.stats-bar {
    background: #0d1117;
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item .num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Footer */
.ss-footer {
    padding: 100px 0 50px;
    background: #05080f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
}

/* ---- Responsive Matrix ---- */
@media (max-width: 1024px) {
    .ss-navbar {
        padding: 0 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .ss-nav-links {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2rem;
    }
}