/* ================================================
   SGC PROTOCOL - Enhanced Visual Effects v2
   With Background Gradients, Nav Effects, Title Glow
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Neon Cyan Colors */
    --sgc-primary: #00ffff;
    --sgc-primary-hover: #00e5ff;
    --sgc-primary-light: #33ffff;
    --sgc-secondary: #00ccff;
    --sgc-accent: #00ff88;
    --sgc-accent-pink: #ff00ff;
    --sgc-success: #00ff66;
    --sgc-warning: #ffaa00;
    --sgc-danger: #ff3366;

    /* Dark Backgrounds */
    --sgc-bg: #050510;
    --sgc-surface: #0a0a1a;
    --sgc-surface-alt: #0f0f25;
    --sgc-bg-card: rgba(15, 15, 40, 0.7);
    --sgc-glass: rgba(20, 20, 50, 0.4);
    --sgc-border: rgba(0, 255, 255, 0.15);
    --sgc-border-hover: rgba(0, 255, 255, 0.5);

    /* 3-Shade Background Gradient (from themes) */
    --sgc-bg-gradient: linear-gradient(180deg, rgba(0, 255, 255, 0.12) 0%, rgba(0, 180, 255, 0.08) 50%, rgba(80, 0, 200, 0.06) 100%);

    /* Text */
    --sgc-text: #ffffff;
    --sgc-text-secondary: #c0d0e0;
    --sgc-text-muted: #607090;

    /* Ambient Effect Opacity (set to 0 for light themes via theme.json) */
    --sgc-ambient-opacity: 1;

    /* Intense Neon Effects */
    --sgc-neon-glow:
        0 0 5px var(--sgc-primary),
        0 0 10px var(--sgc-primary),
        0 0 20px var(--sgc-primary),
        0 0 40px rgba(0, 255, 255, 0.5);
    --sgc-neon-glow-intense:
        0 0 5px var(--sgc-primary),
        0 0 15px var(--sgc-primary),
        0 0 30px var(--sgc-primary),
        0 0 60px rgba(0, 255, 255, 0.6),
        0 0 100px rgba(0, 255, 255, 0.3);
    --sgc-neon-text:
        0 0 5px var(--sgc-primary),
        0 0 10px var(--sgc-primary),
        0 0 20px rgba(0, 255, 255, 0.5);

    /* Glassmorphism */
    --sgc-glass-bg: rgba(10, 10, 30, 0.6);
    --sgc-glass-border: rgba(255, 255, 255, 0.1);
    --sgc-glass-blur: blur(20px);

    /* Clay/Neumorphism */
    --sgc-clay-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.6),
        -4px -4px 12px rgba(255, 255, 255, 0.03);

    /* Radius & Transitions */
    --sgc-radius: 12px;
    --sgc-radius-md: 16px;
    --sgc-radius-lg: 24px;
    --sgc-radius-xl: 32px;
    --sgc-duration-fast: 0.2s;
    --sgc-duration-normal: 0.3s;

    /* Header */
    --sgc-header-height: 90px;

    /* Fonts */
    --sgc-font-primary: 'Orbitron', sans-serif;
    --sgc-font-secondary: 'Rajdhani', sans-serif;
    --sgc-font-body: 'Inter', system-ui, sans-serif;
}

/* ================================================
   Reset & Base with Background Gradient
   ================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sgc-font-body);
    background: var(--sgc-bg);
    color: var(--sgc-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 3-Shade Background Gradient Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--sgc-bg-gradient);
    pointer-events: none;
    z-index: 0;
    opacity: var(--sgc-ambient-opacity, 1);
}

/* Ambient glow orbs + scan line effect - Uses theme primary color */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 30%, color-mix(in srgb, var(--sgc-primary) 10%, transparent) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 85% 70%, color-mix(in srgb, var(--sgc-secondary) 8%, transparent) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 90%, color-mix(in srgb, var(--sgc-primary) 6%, transparent) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: var(--sgc-ambient-opacity);
    animation: ambientPulse 10s infinite ease-in-out;
}

@keyframes ambientPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* ================================================
   Enhanced Stars Background
   ================================================ */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: var(--sgc-ambient-opacity, 1);
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        100px 50px 0 1px rgba(255, 255, 255, 0.9),
        200px 150px 0 0.5px rgba(0, 255, 255, 0.8),
        300px 80px 0 1px rgba(255, 255, 255, 0.7),
        400px 200px 0 0.5px rgba(0, 255, 255, 0.9),
        500px 30px 0 1px rgba(255, 255, 255, 0.6),
        600px 180px 0 0.5px rgba(0, 255, 255, 0.7),
        700px 100px 0 1px rgba(255, 255, 255, 0.8),
        150px 300px 0 0.5px rgba(0, 255, 255, 0.6),
        350px 350px 0 1px rgba(255, 255, 255, 0.5),
        50px 400px 0 0.5px rgba(0, 255, 255, 0.8),
        650px 350px 0 1px rgba(255, 255, 255, 0.6),
        800px 250px 0 0.5px rgba(0, 255, 255, 0.7),
        900px 120px 0 1px rgba(255, 255, 255, 0.5),
        1000px 300px 0 0.5px rgba(0, 255, 255, 0.6),
        1100px 50px 0 1px rgba(255, 255, 255, 0.8),
        250px 500px 0 0.5px rgba(0, 255, 255, 0.7),
        450px 550px 0 1px rgba(255, 255, 255, 0.5),
        1200px 400px 0 0.5px rgba(0, 255, 255, 0.6),
        1300px 150px 0 1px rgba(255, 255, 255, 0.7),
        1400px 300px 0 0.5px rgba(0, 255, 255, 0.8);
    animation: twinkle 3s infinite ease-in-out, drift 80s infinite linear;
}

.stars::after {
    animation-delay: 1.5s;
    transform: translate(200px, 150px) rotate(45deg);
    opacity: 0.7;
}

body.light-mode .stars {
    display: none;
}

body.light-mode::before {
    opacity: 0.5;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.4;
        filter: blur(0px);
    }

    50% {
        opacity: 1;
        filter: blur(0.5px);
    }
}

@keyframes drift {
    from {
        transform: translateX(0) translateY(0);
    }

    to {
        transform: translateX(-100px) translateY(-50px);
    }
}

/* ================================================
   Layout Utilities
   ================================================ */
.sgc-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* ================================================
   Neon Gradient Text + Title Effects
   ================================================ */
.sgc-gradient-text {
    background: linear-gradient(135deg, var(--sgc-primary) 0%, var(--sgc-secondary) 50%, var(--sgc-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
    animation: textGlow 3s infinite alternate;
}

/* Main Title Neon Effect */
.sgc-title-neon {
    font-family: var(--sgc-font-primary);
    text-shadow:
        0 0 10px var(--sgc-primary),
        0 0 20px var(--sgc-primary),
        0 0 40px rgba(0, 255, 255, 0.5),
        0 0 80px rgba(0, 255, 255, 0.3);
    animation: titlePulse 4s infinite ease-in-out;
}

@keyframes titlePulse {

    0%,
    100% {
        text-shadow:
            0 0 10px var(--sgc-primary),
            0 0 20px var(--sgc-primary),
            0 0 40px rgba(0, 255, 255, 0.4);
    }

    50% {
        text-shadow:
            0 0 15px var(--sgc-primary),
            0 0 30px var(--sgc-primary),
            0 0 60px rgba(0, 255, 255, 0.6),
            0 0 100px rgba(0, 255, 255, 0.3);
    }
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
    }

    to {
        filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.7));
    }
}

/* ================================================
   Glassmorphism Header with Nav Effects
   ================================================ */
.sgc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--sgc-header-height, 90px);
    padding: 1rem 0;
    background: var(--sgc-glass-bg);
    backdrop-filter: var(--sgc-glass-blur);
    -webkit-backdrop-filter: var(--sgc-glass-blur);
    border-bottom: 1px solid var(--sgc-glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.sgc-header.scrolled {
    background: var(--sgc-surface);
    border-bottom-color: var(--sgc-border-hover);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 255, 0.1);
}

/* Navigation Link Effects - Glass + Glow */
.sgc-nav-link {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: var(--sgc-radius);
    font-family: var(--sgc-font-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--sgc-text-secondary);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--sgc-glass);
}

/* Glass shine effect */
.sgc-nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

/* Neon underline effect */
.sgc-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sgc-primary), transparent);
    box-shadow: 0 0 15px var(--sgc-primary), 0 0 30px rgba(0, 255, 255, 0.3);
    transition: all 0.35s ease;
    transform: translateX(-50%);
}

.sgc-nav-link:hover {
    color: var(--sgc-primary);
    text-shadow: 0 0 15px var(--sgc-primary);
    background: color-mix(in srgb, var(--sgc-primary) 5%, transparent);
}

.sgc-nav-link.active {
    color: var(--sgc-primary);
    text-shadow: 0 0 15px var(--sgc-primary);
    background: color-mix(in srgb, var(--sgc-primary) 8%, transparent);
}

.sgc-nav-link.active::before {
    width: 100%;
}

.sgc-nav-link:hover::before {
    width: 100%;
}

.sgc-nav-link:hover::after {
    left: 100%;
}

/* CTA Nav Link - Neon Glass Button */
.sgc-nav-link-cta {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 200, 255, 0.1));
    border: 1px solid var(--sgc-border-hover);
    color: var(--sgc-primary);
    box-shadow:
        inset 0 0 20px rgba(0, 255, 255, 0.1),
        0 0 15px rgba(0, 255, 255, 0.1);
}

.sgc-nav-link-cta:hover {
    background: linear-gradient(135deg, var(--sgc-primary), var(--sgc-secondary));
    color: var(--sgc-bg);
    box-shadow: var(--sgc-neon-glow);
    border-color: var(--sgc-primary);
    transform: translateY(-2px);
}

/* ================================================
   Neon Logo
   ================================================ */
.sgc-logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--sgc-primary), var(--sgc-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sgc-font-primary);
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--sgc-bg);
    box-shadow: var(--sgc-neon-glow);
    animation: logoGlow 2s infinite alternate, logoFloat 4s infinite ease-in-out;
    position: relative;
}

.sgc-logo-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sgc-primary), transparent, var(--sgc-secondary));
    z-index: -1;
    animation: rotate 4s linear infinite;
}

@keyframes logoGlow {
    from {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.2);
    }

    to {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.7), 0 0 50px rgba(0, 255, 255, 0.4), 0 0 80px rgba(0, 255, 255, 0.2);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   Hero Section
   ================================================ */
.sgc-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.sgc-hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat1 8s infinite ease-in-out;
}

.sgc-hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 0, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat2 10s infinite ease-in-out;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    33% {
        transform: translate(30px, -40px) scale(1.1);
        opacity: 0.8;
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-40px, -30px) scale(1.15);
        opacity: 0.7;
    }
}

/* ================================================
   Enhanced Neon Badge
   ================================================ */
.sgc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: var(--sgc-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--sgc-border-hover);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sgc-primary);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    animation: badgePulse 3s infinite;
}

.sgc-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--sgc-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--sgc-primary), 0 0 20px var(--sgc-primary);
    animation: pulseGlow 1.5s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 25px rgba(0, 255, 255, 0.1);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.8);
        opacity: 0.6;
    }
}

/* ================================================
   Neon Buttons
   ================================================ */
.sgc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    border-radius: var(--sgc-radius);
    background: linear-gradient(135deg, var(--sgc-primary), var(--sgc-secondary));
    color: var(--sgc-bg);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--sgc-duration-normal);
    box-shadow:
        0 4px 15px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
}

.sgc-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.sgc-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--sgc-neon-glow-intense);
}

.sgc-btn-primary:hover::before {
    transform: translateX(100%);
}

.sgc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    border-radius: var(--sgc-radius);
    background: var(--sgc-glass-bg);
    backdrop-filter: blur(10px);
    color: var(--sgc-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--sgc-border-hover);
    cursor: pointer;
    transition: all var(--sgc-duration-normal);
    box-shadow: var(--sgc-clay-shadow);
}

.sgc-btn-secondary:hover {
    border-color: var(--sgc-primary);
    box-shadow:
        var(--sgc-clay-shadow),
        0 0 25px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--sgc-primary);
}

/* ================================================
   Enhanced Marquee with Neon
   ================================================ */
.sgc-marquee {
    position: relative;
    z-index: 50;
    background: linear-gradient(90deg,
            rgba(0, 255, 255, 0.03),
            rgba(0, 255, 255, 0.12),
            rgba(0, 255, 255, 0.03));
    border-top: 1px solid rgba(0, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 255, 255, 0.4);
    padding: 0.7rem 0;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.15),
        inset 0 0 40px rgba(0, 255, 255, 0.08);
    animation: marqueeGlow 4s infinite alternate;
}

@keyframes marqueeGlow {
    from {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.1), inset 0 0 30px rgba(0, 255, 255, 0.05);
        border-color: rgba(0, 255, 255, 0.3);
    }

    to {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.2), inset 0 0 50px rgba(0, 255, 255, 0.1);
        border-color: rgba(0, 255, 255, 0.5);
    }
}

.sgc-marquee-star {
    color: var(--sgc-primary);
    text-shadow: 0 0 10px var(--sgc-primary);
    animation: starPulse 2s infinite;
}

@keyframes starPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* ================================================
   Enhanced Glassmorphism + Holographic Cards
   ================================================ */
.sgc-card {
    background: var(--sgc-bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--sgc-border);
    border-radius: var(--sgc-radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        var(--sgc-clay-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Neon glow border effect */
.sgc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--sgc-radius-md);
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, var(--sgc-primary) 50%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s;
}

/* Holographic shine sweep */
.sgc-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.08), rgba(255, 255, 255, 0.1), rgba(0, 255, 255, 0.08), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

.sgc-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--sgc-border-hover);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sgc-card:hover::before {
    opacity: 1;
}

.sgc-card:hover::after {
    left: 150%;
}

/* Card Icon with Neon Ring */
.sgc-card-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.12), rgba(0, 150, 255, 0.08));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--sgc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        inset 0 0 25px rgba(0, 255, 255, 0.05),
        0 0 15px rgba(0, 255, 255, 0.05);
    position: relative;
}

.sgc-card-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--sgc-radius) + 4px);
    background: linear-gradient(135deg, var(--sgc-primary), transparent, var(--sgc-secondary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.sgc-card:hover .sgc-card-icon {
    background: linear-gradient(135deg, var(--sgc-primary), var(--sgc-secondary));
    border-color: transparent;
    box-shadow: var(--sgc-neon-glow);
    transform: scale(1.15) rotate(8deg);
}

.sgc-card:hover .sgc-card-icon::before {
    opacity: 0.6;
    animation: rotate 3s linear infinite;
}

/* ================================================
   Section Headers
   ================================================ */
.sgc-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sgc-section-title {
    font-family: var(--sgc-font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 3px;
    margin: 1.5rem 0;
    text-shadow: var(--sgc-neon-text);
}

/* ================================================
   Stats with Neon Numbers
   ================================================ */
.sgc-stat-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--sgc-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--sgc-border);
    border-radius: var(--sgc-radius-md);
    transition: all 0.4s;
    box-shadow: var(--sgc-clay-shadow);
}

.sgc-stat-item:hover {
    border-color: var(--sgc-primary);
    box-shadow:
        var(--sgc-clay-shadow),
        0 0 35px rgba(0, 255, 255, 0.25);
    transform: translateY(-5px);
}

.sgc-stat-value {
    font-family: var(--sgc-font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--sgc-primary), var(--sgc-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
    margin-bottom: 0.5rem;
    animation: numberGlow 2s infinite alternate;
}

@keyframes numberGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.7));
    }
}

/* ================================================
   CTA Section - Holographic Effect
   ================================================ */
.sgc-cta {
    position: relative;
    padding: 6rem 0;
}

.sgc-cta-box {
    position: relative;
    padding: 5rem;
    border-radius: var(--sgc-radius-xl);
    background: var(--sgc-glass-bg);
    backdrop-filter: var(--sgc-glass-blur);
    border: 1px solid var(--sgc-border-hover);
    text-align: center;
    overflow: hidden;
    box-shadow:
        var(--sgc-clay-shadow),
        0 0 80px rgba(0, 255, 255, 0.15);
}

.sgc-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 20%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(100, 0, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: holoShift 8s infinite ease-in-out;
}

.sgc-cta-box::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--sgc-radius-xl);
    background: linear-gradient(90deg, var(--sgc-primary), var(--sgc-accent-pink), var(--sgc-secondary), var(--sgc-primary));
    background-size: 300% 100%;
    z-index: -1;
    animation: borderGlow 4s linear infinite;
    opacity: 0.6;
}

@keyframes holoShift {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* ================================================
   Compact Footer with Neon Effects
   ================================================ */
.sgc-footer {
    background: linear-gradient(180deg, var(--sgc-surface) 0%, var(--sgc-bg) 100%);
    border-top: 1px solid var(--sgc-border);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.sgc-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sgc-primary), transparent);
    box-shadow: 0 0 40px var(--sgc-primary), 0 0 80px rgba(0, 255, 255, 0.3);
    animation: footerGlow 3s infinite alternate;
}

@keyframes footerGlow {
    from {
        box-shadow: 0 0 30px var(--sgc-primary), 0 0 60px rgba(0, 255, 255, 0.2);
    }

    to {
        box-shadow: 0 0 50px var(--sgc-primary), 0 0 100px rgba(0, 255, 255, 0.4);
    }
}

/* Footer Social Link Effects - Glass Neon */
.sgc-footer-social {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sgc-radius);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(0, 150, 255, 0.05));
    border: 1px solid var(--sgc-border);
    color: var(--sgc-text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.sgc-footer-social::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--sgc-primary), var(--sgc-secondary));
    opacity: 0;
    transition: opacity 0.35s;
}

.sgc-footer-social:hover {
    border-color: var(--sgc-primary);
    color: var(--sgc-bg);
    box-shadow: var(--sgc-neon-glow);
    transform: translateY(-4px) scale(1.1);
}

.sgc-footer-social:hover::before {
    opacity: 1;
}

.sgc-footer-social span,
.sgc-footer-social {
    position: relative;
    z-index: 1;
}

/* Footer Link Effects - Neon Underline */
.sgc-footer-link {
    font-size: 0.875rem;
    color: var(--sgc-text-muted);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding: 0.15rem 0;
}

.sgc-footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--sgc-primary), var(--sgc-secondary));
    box-shadow: 0 0 8px var(--sgc-primary);
    transition: width 0.35s ease;
}

.sgc-footer-link:hover {
    color: var(--sgc-primary);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

.sgc-footer-link:hover::before {
    width: 100%;
}

/* ================================================
   Animations
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-float {
    animation: float 4s infinite ease-in-out;
}

/* ================================================
   Utility Classes
   ================================================ */
.section-hidden {
    display: none !important;
}

/* ================================================
   Enhanced Scrollbar
   ================================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sgc-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--sgc-primary), var(--sgc-secondary));
    border-radius: 5px;
    box-shadow: 0 0 10px var(--sgc-primary);
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 25px var(--sgc-primary);
}

/* ================================================
   SGC RESPONSIVE DESIGN SYSTEM
   Mobile-First Approach with SSoT Naming
   ================================================ */

/* Responsive Tokens */
:root {
    /* Breakpoints (reference only, used in media queries) */
    --sgc-breakpoint-sm: 640px;
    --sgc-breakpoint-md: 768px;
    --sgc-breakpoint-lg: 1024px;
    --sgc-breakpoint-xl: 1280px;

    /* Sidebar */
    --sgc-sidebar-width: 280px;
    --sgc-sidebar-collapsed-width: 0px;

    /* Grid defaults (mobile first) */
    --sgc-grid-cols: 1;
    --sgc-container-padding: 1rem;
    --sgc-section-padding: 2rem 1rem;
}

/* ================================================
   SGC Layout System
   ================================================ */

/* Two-column layout with sidebar */
.sgc-layout-sidebar {
    display: flex;
    min-height: 100%;
    position: relative;
}

/* Sidebar Panel */
.sgc-sidebar {
    width: var(--sgc-sidebar-width);
    min-width: var(--sgc-sidebar-width);
    max-width: var(--sgc-sidebar-width);
    background: var(--sgc-surface);
    border-right: 1px solid var(--sgc-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-y: auto;
    max-height: 100vh;
    position: sticky;
    top: 0;
    transition: transform var(--sgc-duration-normal), width var(--sgc-duration-normal);
    z-index: 50;
}

.sgc-sidebar--collapsed {
    transform: translateX(-100%);
    width: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

/* Sidebar section */
.sgc-sidebar-section {
    background: var(--sgc-surface-alt);
    border: 1px solid var(--sgc-border);
    border-radius: var(--sgc-radius);
    overflow: hidden;
}

.sgc-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--sgc-glass);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sgc-text);
    border-bottom: 1px solid var(--sgc-border);
}

.sgc-sidebar-header:hover {
    background: var(--sgc-surface);
}

.sgc-sidebar-content {
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.sgc-sidebar-content--collapsed {
    display: none;
}

/* Main content area */
.sgc-main-content {
    flex: 1;
    min-width: 0;
    padding: var(--sgc-container-padding);
    overflow-x: hidden;
}

/* Sidebar toggle button */
.sgc-sidebar-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 60px;
    background: var(--sgc-surface);
    border: 1px solid var(--sgc-border);
    border-left: none;
    border-radius: 0 var(--sgc-radius) var(--sgc-radius) 0;
    color: var(--sgc-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 51;
    transition: background var(--sgc-duration-fast);
}

.sgc-sidebar-toggle:hover {
    background: var(--sgc-primary);
    color: var(--sgc-bg);
}

/* Mobile overlay for sidebar */
.sgc-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 49;
    opacity: 0;
    transition: opacity var(--sgc-duration-normal);
}

.sgc-sidebar-overlay--visible {
    display: block;
    opacity: 1;
}

/* ================================================
   Responsive Grid System
   ================================================ */

.sgc-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(var(--sgc-grid-cols), 1fr);
}

.sgc-grid--2 {
    --sgc-grid-cols: 1;
}

.sgc-grid--3 {
    --sgc-grid-cols: 1;
}

.sgc-grid--4 {
    --sgc-grid-cols: 1;
}

/* Flex utilities */
.sgc-flex-col-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ================================================
   TABLET BREAKPOINT (768px+)
   ================================================ */
@media (min-width: 768px) {
    :root {
        --sgc-grid-cols: 2;
        --sgc-container-padding: 1.5rem;
        --sgc-section-padding: 3rem 2rem;
    }

    .sgc-grid--2 {
        --sgc-grid-cols: 2;
    }

    .sgc-grid--3 {
        --sgc-grid-cols: 2;
    }

    .sgc-grid--4 {
        --sgc-grid-cols: 2;
    }

    .sgc-flex-col-mobile {
        flex-direction: row;
    }

    /* Sidebar visible on tablet+ */
    .sgc-sidebar {
        transform: translateX(0);
    }

    .sgc-sidebar-toggle {
        display: none;
    }
}

/* ================================================
   DESKTOP BREAKPOINT (1024px+)
   ================================================ */
@media (min-width: 1024px) {
    :root {
        --sgc-grid-cols: 3;
        --sgc-container-padding: 2rem;
        --sgc-section-padding: 4rem 2rem;
    }

    .sgc-grid--3 {
        --sgc-grid-cols: 3;
    }

    .sgc-grid--4 {
        --sgc-grid-cols: 3;
    }
}

/* ================================================
   LARGE DESKTOP BREAKPOINT (1280px+)
   ================================================ */
@media (min-width: 1280px) {
    :root {
        --sgc-grid-cols: 4;
    }

    .sgc-grid--4 {
        --sgc-grid-cols: 4;
    }
}

/* ================================================
   MOBILE BREAKPOINT (<768px)
   ================================================ */
@media (max-width: 767px) {

    /* Sidebar becomes overlay on mobile */
    .sgc-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 100;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .sgc-sidebar--open {
        transform: translateX(0);
    }

    .sgc-sidebar-toggle {
        display: flex;
    }

    /* Stack header nav on mobile */
    .sgc-header-nav {
        display: none;
    }

    .sgc-header-nav--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sgc-surface);
        border-top: 1px solid var(--sgc-border);
        padding: 1rem;
        gap: 0.5rem;
    }

    /* Mobile hamburger menu */
    .sgc-hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        padding: 0.5rem;
    }

    .sgc-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--sgc-primary);
        transition: transform var(--sgc-duration-fast);
    }

    /* Footer stacks on mobile */
    .sgc-footer-columns {
        flex-direction: column;
        text-align: center;
    }

    /* Reduce section padding on mobile */
    .sgc-section {
        padding: var(--sgc-section-padding);
    }

    /* Cards full width on mobile */
    .sgc-card {
        width: 100%;
    }

    /* Control Panel tabs scroll horizontally */
    .cp-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .cp-tab {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

/* ================================================
   Touch-friendly utilities
   ================================================ */
@media (pointer: coarse) {

    /* Larger touch targets */
    .sgc-touch-target {
        min-height: 44px;
        min-width: 44px;
    }

    /* Buttons more touch-friendly */
    .btn-panel,
    .btn-sm {
        padding: 0.6rem 1rem;
    }

    /* Resize handles larger on touch */
    .sgc-resize-handle-center,
    .sgc-zone-col>div[style*="position: absolute"] {
        min-width: 16px;
        min-height: 16px;
    }
}

/* ================================================
   Responsive Typography
   ================================================ */
@media (max-width: 767px) {

    h1,
    .sgc-heading-xl {
        font-size: 1.75rem;
    }

    h2,
    .sgc-heading-lg {
        font-size: 1.5rem;
    }

    h3,
    .sgc-heading-md {
        font-size: 1.25rem;
    }

    .sgc-text-body {
        font-size: 0.9rem;
    }
}

/* ================================================
   ControlPanel Specific Responsive
   ================================================ */
.cp-disposition-layout {
    display: flex;
    gap: 1rem;
    min-height: 600px;
}

.cp-disposition-sidebar {
    width: var(--sgc-sidebar-width);
    min-width: var(--sgc-sidebar-width);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cp-disposition-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 767px) {
    .cp-disposition-layout {
        flex-direction: column;
    }

    .cp-disposition-sidebar {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
}

/* ================================================
   SGC Touch Drag & Drop Styles
   Used by engine/touch-drag.js
   ================================================ */

/* Draggable elements */
.sgc-draggable {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.sgc-draggable:active {
    cursor: grabbing;
}

/* Dragging state */
.sgc-dragging {
    opacity: 0.8;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3);
    border: 2px solid var(--sgc-primary) !important;
}

/* Dropzone elements */
.sgc-dropzone {
    transition: background var(--sgc-duration-fast),
        border-color var(--sgc-duration-fast),
        box-shadow var(--sgc-duration-fast);
}

/* Dropzone active (when dragging over) */
.sgc-dropzone-active {
    background: rgba(0, 255, 255, 0.1) !important;
    border-color: var(--sgc-primary) !important;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Prevent text selection during drag */
.sgc-no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Touch-friendly drag handle */
.sgc-drag-handle {
    cursor: grab;
    touch-action: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgc-drag-handle::before {
    content: '⋮⋮';
    color: var(--sgc-text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
}