/* ==========================
   Global reset
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #050816;
    color: #f5f7ff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================
   Background
========================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 195, 255, 0.18), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(255, 0, 255, 0.16), transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.12), transparent 40%),
        #050816;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    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: 40px 40px;
    z-index: -1;
}

/* ==========================
   Main layout
========================== */

.page-layout {
    display: flex;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
    position: relative;
z-index: 1;
}

/* ==========================
   Sidebar
========================== */

.sidebar {
    width: 340px;
    padding: 32px 22px;
    border: 1px solid rgba(0, 195, 255, 0.35);
    border-radius: 18px;
    background: rgba(4, 10, 24, 0.02);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 35px rgba(0, 195, 255, 0.16);
}

.logo {
    font-family: "Orbitron", sans-serif;
    font-size: 2.8rem;
    letter-spacing: 9px;
    color: #9db9ff;
    text-shadow:
        0 0 10px #00c3ff,
        0 0 25px #8b5cf6;
    text-align: center;
    margin-bottom: 12px;
}

.logo::after {
    content: "DEVELOPER • SECURITY • CLOUD";
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #8bdcff;
    margin-top: 10px;
}

.sidebar-nav {
    margin-top: 45px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav-link {
    background: transparent;
    color: #e5efff;
    border: 1px solid transparent;
    text-align: left;
    font-size: 1.4rem;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
    font-family: "JetBrains Mono", monospace;
}

.nav-link:hover {
    color: #ffffff;
    border-color: rgba(0, 195, 255, 0.55);
    background: rgba(0, 195, 255, 0.08);
    box-shadow: 0 0 18px rgba(0, 195, 255, 0.18);
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(0, 136, 255, 0.85), rgba(180, 0, 255, 0.7));
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 0 18px rgba(0, 195, 255, 0.45),
        0 0 28px rgba(180, 0, 255, 0.22);
}

/* ==========================
   Main content
========================== */

.main-content {
    flex: 1;
    border: 1px solid rgba(0, 195, 255, 0.25);
    border-radius: 18px;
    background: rgba(4, 10, 24, 0.02);
    backdrop-filter: blur(2px);
    box-shadow: inset 0 0 40px rgba(0, 195, 255, 0.05);
    padding: 42px 52px;
}

.hero {
    max-width: 980px;
}

.eyebrow {
    color: #00d9ff;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1px;
    margin-top: 10px;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.7);
    font-family: "JetBrains Mono", monospace;
}

.hero h1 {
    font-family: "Orbitron", sans-serif;
    font-size: 2.8rem;
    line-height: 1.05;
    margin-bottom: 3px;
    margin-top: 10px;
    color: #ffffff;
    text-shadow:
        0 0 12px rgba(0, 195, 255, 0.8),
        0 0 30px rgba(180, 0, 255, 0.35);
        animation: heroGlow 3s ease-in-out infinite alternate;
}

.hero-text {
    max-width: 1000px;
    font-size: 1.rem;
    line-height: 1.8;
    color: #b9c8e8;
    margin-bottom: 5px;
}

/* ==========================
   Video card
========================== */

.video-card {
    width: 400px;
    height: 180px;
    border-radius: 38px;
    border: 1px dashed rgba(0, 217, 255, 0.55);
    background: rgba(8, 15, 36, 0.38);
    box-shadow:
        0 0 25px rgba(0, 195, 255, 0.12),
        inset 0 0 35px rgba(180, 0, 255, 0.08);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
    transition: 0.3s ease;
}

.video-card:hover {
    border-color: #ff4dff;
    box-shadow:
        0 0 32px rgba(0, 217, 255, 0.25),
        0 0 45px rgba(255, 77, 255, 0.16);
    transform: translateY(-5px);
}

.play-button {
    font-size: 4.5rem;
    color: white;
    text-shadow:
        0 0 18px rgba(0, 217, 255, 0.8),
        0 0 28px rgba(255, 77, 255, 0.45);
    margin-bottom: 10px;
}

.video-card p {
    color: #dbeafe;
}

/* ==========================
   Buttons
========================== */

.hero-buttons {
    display: flex;
    gap: 18px;
}

.hero-buttons button {
    padding: 15px 30px;
    border-radius: 10px;
    font-size: .5rem;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.hero-buttons button:first-child {
    background: linear-gradient(90deg, #0077ff, #b400ff);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.35);
}

.hero-buttons button:last-child {
    background: rgba(0, 0, 0, 0.25);
    color: white;
    border: 1px solid rgba(0, 217, 255, 0.55);
}

.hero-buttons button:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(0, 217, 255, 0.35);
}.

/* ==========================
   Status Badge
========================== */

.status-badge {
    position: absolute;
    top: 32px;
    right: 40px;
    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 10px;
    padding: 10px 16px;
    color: #b9d7ff;
    background: rgba(8, 15, 36, 0.8);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.12);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 12px #22c55e;
    animation: statusPulse 2s infinite;
}

.main-content {
    position: relative;
}

/* ==========================
   Tech Panel
========================== */

.tech-panel {
    margin-top: 15px;
    border: 1px solid rgba(0, 217, 255, 0.35);
    border-radius: 16px;
    background: rgba(8, 15, 36, 0.36);
    box-shadow:
        0 0 24px rgba(0, 217, 255, 0.12),
        inset 0 0 30px rgba(180, 0, 255, 0.06);
    padding: 10px;
}

.tech-panel h2 {
    font-size: 1rem;
    color: #00d9ff;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

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

.tech-item {
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    color: #e5efff;
    transition: 0.25s ease;
    font-size: 1rem;
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: #ff4dff;
    box-shadow: 0 0 22px rgba(255, 77, 255, 0.2);
}

/* ==========================
   Terminal Panel
========================== */

.terminal-panel {
    margin-top: 10px;
    margin-bottom: 2px;
    border: 1px solid rgba(0, 217, 255, 0.35);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.14);
    font-family: "JetBrains Mono", monospace;
}

.terminal-header {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.25);
    color: #00d9ff;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.04);
    font-family: "JetBrains Mono", monospace;
}

.terminal-header span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.terminal-header span:nth-child(1) {
    background: #ff4dff;
}

.terminal-header span:nth-child(2) {
    background: #facc15;
}

.terminal-header span:nth-child(3) {
    background: #3b82f6;
    margin-right: 18px;
}

.terminal-body {
    padding: 24px;
    color: #22c55e;
    line-height: 1.9;
    font-family: "JetBrains Mono", monospace;
    font-size: .8rem;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link i {
    width: 25px;
    color: #8bdcff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.7);
}

.nav-link.active i {
    color: white;
}

/* ==========================
   Page Load Animations
========================== */

.hero,
.sidebar {
    opacity: 0;
    animation: fadeIn 0.9s ease forwards;
}

.hero {
    animation-delay: .5s;
}

.sidebar {
    animation-delay: .3s;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes heroGlow {

    from {

        text-shadow:
            0 0 10px #00d9ff,
            0 0 25px #00d9ff,
            0 0 35px #7c3aed;

    }

    to {

        text-shadow:
            0 0 18px #00d9ff,
            0 0 40px #00d9ff,
            0 0 65px #7c3aed;

    }

}

@keyframes statusPulse {

    0% {

        transform: scale(1);
        opacity: 1;

    }

    50% {

        transform: scale(1.5);
        opacity: .6;

    }

    100% {

        transform: scale(1);
        opacity: 1;

    }

}

/* ==========================
   Toast Notification
========================== */

#toast {
    position: fixed;
    bottom: 30px;
    right: 30px;

    padding: 16px 22px;

    background: rgba(8,15,36,.92);
    border: 1px solid rgba(0,217,255,.45);
    border-radius: 12px;

    color: white;
    font-family: "Inter", sans-serif;

    opacity: 0;
    transform: translateY(20px);

    transition: .3s;

    pointer-events: none;

    box-shadow: 0 0 25px rgba(0,217,255,.25);

    z-index: 9999;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================
   Responsive Design
========================== */

@media (max-width: 900px) {

    body {
        overflow-x: hidden;
    }

    .page-layout {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .sidebar {
        width: 100%;
        padding: 22px 18px;
    }

    .logo {
        font-size: 2rem;
        letter-spacing: 6px;
        margin-bottom: 10px;
    }

    .logo::after {
        font-size: 0.65rem;
    }

    .sidebar-nav {
        margin-top: 24px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 12px;
        justify-content: flex-start;
    }

    .nav-link i {
        width: 18px;
    }

    .main-content {
        width: 100%;
        padding: 32px 20px;
    }

    .status-badge {
        position: static;
        display: inline-block;
        margin-bottom: 14px;
        font-size: 0.7rem;
    }

    .eyebrow {
        font-size: 0.7rem;
        letter-spacing: 2px;
        line-height: 1.6;
    }

    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.15;
    }

    .hero-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .video-card {
        width: 100%;
        height: 230px;
    }

    .play-button {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons button {
        width: 100%;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-item {
        font-size: 0.85rem;
    }

    .terminal-body {
        font-size: 0.8rem;
        overflow-x: auto;
    }

    .hero-grid {
    grid-template-columns: 1fr;
    }

    .hero-right .hud-panel {
        position: static;
    }
}

/* ==========================
   Video Modal
========================== */

.video-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle, rgba(0, 217, 255, 0.12), transparent 45%),
        rgba(8, 15, 36, 0.25);
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.video-modal.show {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: min(900px, 90vw);
    height: min(500px, 60vh);
    border: 1px solid rgba(0, 217, 255, 0.55);
    border-radius: 18px;
    background: rgba(8, 15, 36, 0.95);
    box-shadow:
        0 0 40px rgba(0, 217, 255, 0.25),
        0 0 80px rgba(180, 0, 255, 0.18);
}

.close-video {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.6);
    background: #081528;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}

.video-placeholder {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b9d7ff;
    font-size: 1.2rem;
}

/* ==========================
   HUD Dashboard
========================== */

.hud-panel {
    margin-top: 28px;
    max-width: 620px;
    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 18px;
    background: rgba(8, 15, 36, 0.36);
    box-shadow:
        0 0 28px rgba(0, 217, 255, 0.16),
        inset 0 0 30px rgba(180, 0, 255, 0.06);
    padding: 22px;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "JetBrains Mono", monospace;
    color: #00d9ff;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.hud-live {
    color: #22c55e;
    text-shadow: 0 0 10px #22c55e;
}

.hud-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 217, 255, 0.14);
    padding: 12px 0;
    color: #b9c8e8;
}

.hud-row strong {
    color: white;
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
}

.hud-progress {
    margin-top: 18px;
}

.hud-progress-label {
    display: flex;
    justify-content: space-between;
    color: #8bdcff;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.hud-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hud-progress-fill {
    width: 35%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00d9ff, #b400ff);
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.65);
}

/* ==========================
   Hero Grid Layout
========================== */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
    gap: 32px;
    align-items: start;
}

.hero-left,
.hero-right {
    min-width: 0;
}

.hero-right .hud-panel {
    margin-top: 0;
    max-width: none;
    position: sticky;
    top: 30px;
}