/* ==========================================================================
   Coder4Nix Theme - Hero Slider Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Container
   -------------------------------------------------------------------------- */
.c4n-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height, 90px));
    min-height: 500px;
    overflow: hidden;
    background: #0d1117;
}

/* --------------------------------------------------------------------------
   2. Slides Container
   -------------------------------------------------------------------------- */
.c4n-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.c4n-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
    padding: 0 24px;
}

/* Grid layout container inside each slide */
.c4n-hero-slide .c4n-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1190px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.c4n-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   3. Slide Backgrounds
   -------------------------------------------------------------------------- */
.c4n-hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Slide 1: Code Theme */
.c4n-hero-slide--code .c4n-hero-slide-bg {
    background: linear-gradient(135deg, #0d1117 0%, #0a1628 40%, #0d1117 100%);
}

.c4n-hero-slide--code .c4n-hero-slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 200, 83, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(0, 176, 255, 0.10) 0%, transparent 50%);
}

/* Slide 2: Product Theme */
.c4n-hero-slide--product .c4n-hero-slide-bg {
    background: linear-gradient(135deg, #0d1117 0%, #111927 40%, #0d1117 100%);
}

.c4n-hero-slide--product .c4n-hero-slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 70% 60%, rgba(124, 77, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 40%, rgba(0, 200, 83, 0.08) 0%, transparent 50%);
}

/* Slide 3: Server Theme */
.c4n-hero-slide--server .c4n-hero-slide-bg {
    background: linear-gradient(135deg, #0d1117 0%, #0f1923 40%, #0d1117 100%);
}

.c4n-hero-slide--server .c4n-hero-slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 40% 70%, rgba(0, 176, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(0, 200, 83, 0.08) 0%, transparent 50%);
}

/* Grid Pattern Overlay */
.c4n-hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Slide Content
   -------------------------------------------------------------------------- */
.c4n-hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 100%;
    padding: 0;
}

.c4n-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.2);
    color: #00c853;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

/* Badge colors per slide */
.c4n-hero-slide--code .c4n-hero-badge {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.25);
    color: #00c853;
}
.c4n-hero-slide--product .c4n-hero-badge {
    background: rgba(0, 176, 255, 0.1);
    border-color: rgba(0, 176, 255, 0.25);
    color: #00b0ff;
}
.c4n-hero-slide--server .c4n-hero-badge {
    background: rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.25);
    color: #7c4dff;
}

.c4n-hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    color: #e6edf3;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.c4n-hero-title .c4n-gradient-text {
    background: linear-gradient(135deg, #00c853, #00b0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.c4n-hero-title .c4n-accent-text {
    background: linear-gradient(135deg, #00b0ff, #7c4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.c4n-hero-subtitle {
    font-size: 1.1rem;
    color: #8b949e;
    max-width: 480px;
    margin: 0 0 2rem;
    line-height: 1.7;
}

.c4n-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.c4n-hero-btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.c4n-hero-btn-primary {
    background: #00c853;
    color: #000;
    border: 2px solid #00c853;
}

.c4n-hero-btn-primary:hover {
    background: #00b347;
    border-color: #00b347;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.35);
}

.c4n-hero-btn-outline {
    background: transparent;
    color: #e6edf3;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.c4n-hero-btn-outline:hover {
    border-color: #00b0ff;
    color: #00b0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 176, 255, 0.2);
}

/* --------------------------------------------------------------------------
   5. Animated CSS Illustrations
   -------------------------------------------------------------------------- */

/* --- 5a. Visual Container (shared) --- */
.c4n-hero-visual {
    position: relative;
    width: 100%;
    height: 420px;
    z-index: 5;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

/* Slide-specific backgrounds */
.c4n-hero-visual--code {
    background: linear-gradient(135deg, rgba(0,200,83,0.06), rgba(0,176,255,0.03));
}
.c4n-hero-visual--product {
    background: linear-gradient(135deg, rgba(0,176,255,0.06), rgba(124,77,255,0.03));
}
.c4n-hero-visual--server {
    background: linear-gradient(135deg, rgba(124,77,255,0.06), rgba(0,200,83,0.03));
}

/* --- 5b. Floating Icons (shared) --- */
.c4n-float-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    animation: c4n-float 4s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 6;
}

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

/* --- 5c. Slide 1: Developer Workspace --- */
.c4n-iso-workspace {
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotateX(5deg) rotateY(-5deg);
    transform-style: preserve-3d;
}

.c4n-hero-visual--code {
    perspective: 1000px;
}

.c4n-iso-monitor {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 200px;
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,200,83,0.1);
}

.c4n-iso-monitor-header {
    height: 28px;
    background: #1c2333;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}

.c4n-dot-r, .c4n-dot-y, .c4n-dot-g {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.c4n-dot-r { background: #ff5f57; }
.c4n-dot-y { background: #ffbd2e; }
.c4n-dot-g { background: #28c840; }

.c4n-iso-monitor-body {
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.9;
    color: #6e7681;
}

.c4n-code-kw { color: #ff7b72; }
.c4n-code-fn { color: #d2a8ff; }
.c4n-code-str { color: #a5d6ff; }
.c4n-code-var { color: #ffa657; }
.c4n-code-cmt { color: #6e7681; }

.c4n-iso-stand {
    position: absolute;
    top: 225px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    background: linear-gradient(to bottom, #2d333b, #22272e);
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.c4n-iso-stand-base {
    position: absolute;
    top: 252px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 8px;
    background: #2d333b;
    border-radius: 4px;
}

.c4n-iso-keyboard {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    background: #1c2333;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.c4n-iso-keyboard span {
    background: #161b22;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- 5d. Slide 2: Radio Dashboard Laptop --- */
.c4n-hero-visual--product {
    position: relative;
}

.c4n-iso-laptop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(1000px) rotateX(5deg) rotateY(-8deg);
    width: 340px;
}

.c4n-iso-laptop-screen {
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,176,255,0.1);
}

.c4n-iso-laptop-header {
    height: 28px;
    background: #1c2333;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}

.c4n-url-bar {
    margin-left: auto;
    padding: 2px 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    font-size: 9px;
    color: #6e7681;
    font-family: 'JetBrains Mono', monospace;
}

.c4n-dashboard-ui {
    padding: 16px;
    min-height: 220px;
}

.c4n-dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.c4n-dashboard-title {
    font-size: 12px;
    font-weight: 700;
    color: #e6edf3;
}

.c4n-dashboard-title i {
    color: #00b0ff;
    margin-right: 6px;
}

.c4n-dashboard-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #00c853;
    font-weight: 600;
}

.c4n-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c853;
    display: inline-block;
    animation: c4n-pulse-dot 2s ease-in-out infinite;
}

@keyframes c4n-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(0,200,83,0); }
}

.c4n-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 50px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.c4n-waveform span {
    flex: 1;
    background: linear-gradient(to top, #00c853, #00b0ff);
    border-radius: 2px;
    animation: c4n-wave 1.5s ease-in-out infinite;
    opacity: 0.7;
}

.c4n-waveform span:nth-child(odd) { animation-delay: -0.5s; }
.c4n-waveform span:nth-child(3n) { animation-delay: -1s; }
.c4n-waveform span:nth-child(5n) { animation-delay: -0.3s; }

@keyframes c4n-wave {
    0%, 100% { height: 20%; }
    50% { height: 90%; }
}

.c4n-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.c4n-dash-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.c4n-dash-stat-val {
    font-size: 14px;
    font-weight: 800;
    color: #00c853;
}

.c4n-dash-stat-lbl {
    font-size: 9px;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.c4n-iso-laptop-base {
    height: 14px;
    background: linear-gradient(to bottom, #2d333b, #22272e);
    border-radius: 0 0 4px 4px;
    position: relative;
}

.c4n-iso-laptop-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 0 0 4px 4px;
}

/* Floating audio wave elements */
.c4n-float-wave {
    position: absolute;
    width: 60px;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0.4;
}

.c4n-float-wave span {
    flex: 1;
    background: #00b0ff;
    border-radius: 1px;
    animation: c4n-wave 2s ease-in-out infinite;
}

.c4n-float-wave-1 { top: 30px; right: 20px; }
.c4n-float-wave-2 { bottom: 50px; left: 10px; transform: rotate(-15deg); }

/* --- 5e. Slide 3: Server Racks --- */
.c4n-rack-group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(800px) rotateY(-10deg) rotateX(3deg);
    display: flex;
    gap: 12px;
}

.c4n-rack-unit {
    width: 120px;
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(124,77,255,0.08);
}

.c4n-rack-header {
    height: 24px;
    background: #1c2333;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #6e7681;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.c4n-rack-slots {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.c4n-rack-slot {
    height: 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}

.c4n-led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    animation: c4n-blink-led 3s ease-in-out infinite;
}

.c4n-led:nth-child(2) { animation-delay: -1s; }

.c4n-led-green { background: #00c853; box-shadow: 0 0 6px #00c853; }
.c4n-led-blue { background: #00b0ff; box-shadow: 0 0 6px #00b0ff; }
.c4n-led-purple { background: #7c4dff; box-shadow: 0 0 6px #7c4dff; }
.c4n-led-amber { background: #ffbd2e; box-shadow: 0 0 6px #ffbd2e; }

@keyframes c4n-blink-led {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.c4n-rack-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}

.c4n-rack-bar-fill {
    height: 100%;
    border-radius: 2px;
    animation: c4n-fill-bar 4s ease-in-out infinite;
}

.c4n-bar-green { background: #00c853; }
.c4n-bar-blue { background: #00b0ff; }
.c4n-bar-purple { background: #7c4dff; }

@keyframes c4n-fill-bar {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* --- 5f. Responsive Layout --- */
@media (max-width: 991px) {
    .c4n-hero-slide .c4n-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .c4n-hero-content {
        text-align: center;
    }
    .c4n-hero-subtitle {
        margin: 0 auto 2rem;
    }
    .c4n-hero-actions {
        justify-content: center;
    }
    .c4n-hero-visual {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   6. Slide Navigation Dots
   -------------------------------------------------------------------------- */
.c4n-hero-dots {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.c4n-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.c4n-hero-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.c4n-hero-dot.active {
    background: #00c853;
    border-color: #00c853;
    transform: scale(1.2);
}

/* Progress bar on active dot */
.c4n-hero-dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #00c853;
    animation: c4n-dot-progress 6s linear;
}

@keyframes c4n-dot-progress {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   7. Slide Arrows
   -------------------------------------------------------------------------- */
.c4n-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0;
}

.c4n-hero-arrow:hover {
    background: rgba(0, 200, 83, 0.15);
    border-color: rgba(0, 200, 83, 0.3);
    color: #00c853;
}

.c4n-hero-arrow:focus,
.c4n-hero-arrow:focus-visible,
.c4n-hero-arrow:active {
    background: rgba(0, 200, 83, 0.2);
    border-color: rgba(0, 200, 83, 0.4) !important;
    color: #00c853;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.25) !important;
}

.c4n-hero-arrow--prev { left: 1.5rem; }
.c4n-hero-arrow--next { right: 1.5rem; }

@media (max-width: 767px) {
    .c4n-hero-arrow { display: none; }
}

/* --------------------------------------------------------------------------
   8. Scroll Indicator
   -------------------------------------------------------------------------- */
.c4n-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.c4n-hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    position: relative;
    overflow: hidden;
}

.c4n-hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #00c853);
    animation: c4n-scroll-indicator 2s ease-in-out infinite;
}

@keyframes c4n-scroll-indicator {
    0% { top: -100%; }
    100% { top: 100%; }
}

@media (max-width: 767px) {
    .c4n-hero-scroll { display: none; }
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .c4n-hero {
        height: calc(100vh - var(--header-height, 90px));
        min-height: 450px;
    }

    .c4n-hero-title {
        font-size: 2.5rem;
    }

    .c4n-hero-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 767px) {
    .c4n-hero {
        height: calc(100vh - var(--header-height, 90px));
        min-height: 400px;
    }

    .c4n-hero-title {
        font-size: 2rem;
    }

    .c4n-hero-subtitle {
        font-size: 0.95rem;
    }

    .c4n-hero-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .c4n-hero-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .c4n-hero-title {
        font-size: 1.65rem;
    }

    .c4n-hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   10. Animation for active slide content
   -------------------------------------------------------------------------- */
.c4n-hero-slide.active .c4n-hero-badge {
    animation: c4n-fadeInDown 0.6s ease 0.1s both;
}

.c4n-hero-slide.active .c4n-hero-title {
    animation: c4n-fadeInUp 0.7s ease 0.2s both;
}

.c4n-hero-slide.active .c4n-hero-subtitle {
    animation: c4n-fadeInUp 0.7s ease 0.4s both;
}

.c4n-hero-slide.active .c4n-hero-actions {
    animation: c4n-fadeInUp 0.7s ease 0.6s both;
}

/* ==========================================================================
   11. Light Mode Overrides
   ========================================================================== */

/* --- 11a. Hero Container & Slide Backgrounds --- */
[data-theme="light"] .c4n-hero {
    background: #f0f2f5;
}

[data-theme="light"] .c4n-hero-slide--code .c4n-hero-slide-bg {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8edf4 40%, #f0f2f5 100%);
}
[data-theme="light"] .c4n-hero-slide--code .c4n-hero-slide-bg::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 200, 83, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(0, 176, 255, 0.06) 0%, transparent 50%);
}

[data-theme="light"] .c4n-hero-slide--product .c4n-hero-slide-bg {
    background: linear-gradient(135deg, #f0f2f5 0%, #eae8f4 40%, #f0f2f5 100%);
}
[data-theme="light"] .c4n-hero-slide--product .c4n-hero-slide-bg::before {
    background:
        radial-gradient(ellipse at 70% 60%, rgba(124, 77, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 40%, rgba(0, 200, 83, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .c4n-hero-slide--server .c4n-hero-slide-bg {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf4 40%, #f0f2f5 100%);
}
[data-theme="light"] .c4n-hero-slide--server .c4n-hero-slide-bg::before {
    background:
        radial-gradient(ellipse at 40% 70%, rgba(0, 176, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(0, 200, 83, 0.05) 0%, transparent 50%);
}

/* --- 11b. Grid Overlay --- */
[data-theme="light"] .c4n-hero-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* --- 11c. Particles --- */
[data-theme="light"] .c4n-particle {
    background: rgba(0, 200, 83, 0.15);
}

/* --- 11d. Text Colors --- */
[data-theme="light"] .c4n-hero-title {
    color: #1f2937;
}

[data-theme="light"] .c4n-hero-subtitle {
    color: #4b5563;
}

/* --- 11e. Badges --- */
[data-theme="light"] .c4n-hero-slide--code .c4n-hero-badge {
    background: rgba(0, 200, 83, 0.12);
    border-color: rgba(0, 200, 83, 0.3);
    color: #009940;
}
[data-theme="light"] .c4n-hero-slide--product .c4n-hero-badge {
    background: rgba(0, 176, 255, 0.12);
    border-color: rgba(0, 176, 255, 0.3);
    color: #0088cc;
}
[data-theme="light"] .c4n-hero-slide--server .c4n-hero-badge {
    background: rgba(124, 77, 255, 0.12);
    border-color: rgba(124, 77, 255, 0.3);
    color: #6a3de0;
}

/* --- 11f. Buttons --- */
[data-theme="light"] .c4n-hero-btn-primary {
    background: #00c853;
    color: #fff;
    border-color: #00c853;
}
[data-theme="light"] .c4n-hero-btn-primary:hover {
    background: #00b347;
    border-color: #00b347;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.3);
}

[data-theme="light"] .c4n-hero-btn-outline {
    color: #374151;
    border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .c4n-hero-btn-outline:hover {
    border-color: #0088cc;
    color: #0088cc;
    box-shadow: 0 8px 25px rgba(0, 176, 255, 0.15);
}

/* --- 11g. Visual Container (monitor, laptop, racks stay dark for contrast) --- */
[data-theme="light"] .c4n-hero-visual {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .c4n-hero-visual--code {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.08), rgba(0, 176, 255, 0.05));
}
[data-theme="light"] .c4n-hero-visual--product {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.08), rgba(124, 77, 255, 0.05));
}
[data-theme="light"] .c4n-hero-visual--server {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(0, 200, 83, 0.05));
}

/* --- 11h. Float Icons --- */
[data-theme="light"] .c4n-float-icon {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
}

/* --- 11i. Monitor & Laptop Shells (keep dark for realism) --- */
[data-theme="light"] .c4n-iso-monitor {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 200, 83, 0.06);
}
[data-theme="light"] .c4n-iso-laptop-screen {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 176, 255, 0.06);
}

/* --- 11j. Server Racks (keep dark for realism) --- */
[data-theme="light"] .c4n-rack-unit {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 20px rgba(124, 77, 255, 0.05);
}

/* --- 11k. Navigation Dots --- */
[data-theme="light"] .c4n-hero-dot {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .c4n-hero-dot:hover {
    background: rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .c4n-hero-dot.active {
    background: #00c853;
    border-color: #00c853;
}

/* --- 11l. Navigation Arrows --- */
[data-theme="light"] .c4n-hero-arrow {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .c4n-hero-arrow:hover {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.25);
    color: #009940;
}
[data-theme="light"] .c4n-hero-arrow:focus,
[data-theme="light"] .c4n-hero-arrow:focus-visible,
[data-theme="light"] .c4n-hero-arrow:active {
    background: rgba(0, 200, 83, 0.15);
    border-color: rgba(0, 200, 83, 0.35) !important;
    color: #009940;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2) !important;
}

/* --- 11m. Scroll Indicator --- */
[data-theme="light"] .c4n-hero-scroll {
    color: rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .c4n-hero-scroll-line {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent);
}

/* --- 11n. Gradient Text (slightly richer for light bg) --- */
[data-theme="light"] .c4n-hero-title .c4n-gradient-text {
    background: linear-gradient(135deg, #009940, #0088cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .c4n-hero-title .c4n-accent-text {
    background: linear-gradient(135deg, #0088cc, #6a3de0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
