:root {
    --bg-main: #0c0e14;
    --bg-card: rgba(22, 27, 39, 0.78);
    --bg-card-sub: rgba(12, 16, 26, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.4);

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --cyan-accent: #06b6d4;

    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--bg-main);
    color: #f8fafc;
    font-family: var(--font-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Glowing Background Elements */
.background-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.25;
}

.sphere-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
    top: -120px;
    left: 15%;
}

.sphere-2 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
    top: 40%;
    right: -100px;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}

/* Typography & Titles */
.main-title {
    font-size: clamp(26px, 4vw, 38px);
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphic Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.12);
}

/* Form Input & Buttons */
.custom-input {
    background: rgba(10, 14, 23, 0.9) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    font-size: 15px;
    padding: 14px 18px;
    border-radius: 10px 0 0 10px !important;
    transition: all 0.2s ease;
}

.custom-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25) !important;
}

.custom-input::placeholder {
    color: #64748b;
    font-family: var(--font-main);
}

.btn-cyber-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #06b6d4 100%);
    background-size: 200% auto;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.btn-cyber-primary:hover {
    background-position: right center;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(99, 102, 241, 0.7);
}

.btn-cyber-primary:active {
    transform: translateY(1px);
}

/* Accordion Custom Styling */
.glass-accordion-item {
    background: var(--bg-card) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass) !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-accordion-item:hover {
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.custom-accordion-button {
    background: transparent !important;
    color: #ffffff !important;
    padding: 20px 24px;
    font-size: 17px;
    box-shadow: none !important;
}

.custom-accordion-button:not(.collapsed) {
    color: #818cf8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-accordion-button::after {
    filter: invert(1);
}

/* Badges */

.badge-accent {
    background: rgba(255, 59, 10, 0.18);
    color: #fc764d;
    border: 1px solid rgba(255, 59, 10, 0.18);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

/* Resource Download Banner */
.resource-banner {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.12) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-resource-download {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.btn-resource-download:hover {
    background: #0369a1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
}

/* Step Cards */
.step-card {
    background: var(--bg-card-sub);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Step Image Thumbnail & Zoom */
.step-image-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
    aspect-ratio: 9 / 16;
}

.step-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.step-image-box:hover .step-img {
    transform: scale(1.04);
}

.zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.step-image-box:hover .zoom-hint {
    opacity: 1;
}

/* Modal Lightbox Styling */
.glass-modal {
    background: rgba(12, 16, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
}