/* 
    VZLOMMAX 2026 - CYBERPUNK / ELITE CONSOLE REDESIGN
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* CYBER-PALETTE */
    --void-bg: #030508;
    --grid-color: rgba(0, 240, 255, 0.05);

    --neon-cyan: #00F0FF;
    --neon-pink: #FF003C;
    --neon-purple: #B026FF;
    --matrix-green: #00FF41;
    --warning-yellow: #FCE205;

    /* TEXT */
    --text-primary: #E0E7FF;
    --text-secondary: #8B949E;
    --text-terminal: #00FF41;

    /* SURFACES */
    --cyber-glass: rgba(5, 8, 15, 0.85);
    --cyber-border: rgba(0, 240, 255, 0.3);

    /* GRADIENTS */
    --neon-gradient: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    --warning-gradient: linear-gradient(45deg, var(--neon-pink), #8A0020);

    /* SHADOWS & GLOWS */
    --glow-cyan: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
    --glow-pink: 0 0 10px rgba(255, 0, 60, 0.5), 0 0 20px rgba(255, 0, 60, 0.3);
    --glow-green: 0 0 10px rgba(0, 255, 65, 0.5);

    /* FONTS */
    --font-ui: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --font-code: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* BACKGROUND WITH ANIMATED GRID */
body {
    font-family: var(--font-ui);
    background-color: var(--void-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Cyber Grid Background */
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

/* Add a scanline overlay */
body::after {
    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.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* LAYOUT & CONTAINERS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6%;
    position: relative;
    z-index: 10;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 2rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--neon-cyan);
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.glitch-text {
    position: relative;
    display: inline-block;
    color: #fff;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--void-bg);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

/* HEADER & NAV */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(3, 5, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cyber-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(3, 5, 8, 0.95);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: var(--glow-cyan);
}

.navbar-brand .icon {
    color: var(--neon-pink);
    text-shadow: var(--glow-pink);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-code);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.5rem;
    position: relative;
}

.nav-links a::before {
    content: '[';
    position: absolute;
    left: -5px;
    color: var(--neon-cyan);
    opacity: 0;
    transition: 0.3s;
}

.nav-links a::after {
    content: ']';
    position: absolute;
    right: -5px;
    color: var(--neon-cyan);
    opacity: 0;
    transition: 0.3s;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    left: -10px;
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    right: -10px;
    opacity: 1;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* BUTTONS - CYBERPUNK CLIPPED */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Cyberpunk cut corner */
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    border: none;
    outline: none;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--void-bg);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-primary {
    color: var(--neon-cyan);
    background: var(--neon-cyan);
}

.btn-primary:hover {
    color: var(--void-bg);
    text-shadow: none;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover::before {
    background: var(--neon-cyan);
}

.btn-outline {
    color: var(--neon-pink);
    background: var(--neon-pink);
}

.btn-outline:hover {
    color: var(--void-bg);
}

.btn-outline:hover::before {
    background: var(--neon-pink);
}

.btn-blue {
    color: #fff;
    background: var(--neon-purple);
}

.btn-blue:hover::before {
    background: var(--neon-purple);
}

.nav-cta {
    background: var(--neon-cyan);
    color: var(--void-bg) !important;
    padding: 0.5rem 1.5rem !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.nav-cta::before {
    display: none;
}

.nav-cta:hover {
    background: #fff;
    box-shadow: var(--glow-cyan);
    color: #000 !important;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    background-image: linear-gradient(rgba(3, 5, 8, 0.85), rgba(3, 5, 8, 0.95)), url('/static/img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(3, 5, 8, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-family: var(--font-code);
    color: var(--matrix-green);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
    box-shadow: var(--glow-green);
}

/* TERMINAL TYPEWRITER EFFECT */
.typewriter {
    overflow: hidden;
    border-right: .15em solid var(--neon-cyan);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 2.5s steps(40, end), blink-caret .75s step-end infinite;
}

/* CARDS (CYBER-GLASSMORPHISM) */
.grid-3,
.grid-4 {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cyber-card,
.service-card,
.card,
.step-card,
.review-card,
.auth-box,
.package-card {
    background: var(--cyber-glass);
    border: 1px solid var(--cyber-border);
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* Cut corners on cards */
.cyber-card::before,
.service-card::before,
.card::before,
.package-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--neon-cyan), transparent 30%, transparent 70%, var(--neon-purple));
    z-index: -1;
    opacity: 0.5;
    transition: 0.4s;
}

.cyber-card:hover,
.service-card:hover,
.card:hover,
.package-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.cyber-card:hover::before,
.service-card:hover::before,
.card:hover::before {
    opacity: 1;
}

.service-card h3,
.card h3 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card .description,
.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.card-link {
    font-family: var(--font-code);
    color: var(--neon-cyan);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 1.5rem;
    position: relative;
}

.card-link::after {
    content: '_';
    opacity: 0;
    transition: 0.2s;
}

.service-card:hover .card-link::after {
    opacity: 1;
    animation: blink-caret 1s infinite;
}

/* DECORATIVE ELEMENTS */
.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
    background: rgba(255, 0, 60, 0.1);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* STATS DIAGONAL */
.stats {
    background: linear-gradient(90deg, rgba(3, 5, 8, 0.9), rgba(0, 240, 255, 0.05), rgba(3, 5, 8, 0.9)), var(--void-bg);
    border-top: 1px solid var(--cyber-border);
    border-bottom: 1px solid var(--cyber-border);
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    -webkit-text-stroke: 1px var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-code);
    color: var(--neon-cyan);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

/* CONTACT FORM / AUTH BOX */
.auth-box {
    max-width: 500px;
    margin: 0 auto;
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.15);
}

.auth-box::before {
    display: none;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--cyber-border);
    color: var(--matrix-green);
    font-family: var(--font-code);
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* FOOTER */
.footer {
    background: #010204;
    border-top: 2px solid var(--neon-cyan);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-gradient);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: var(--glow-cyan);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--neon-pink);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-code);
}

.footer-bottom a {
    color: var(--neon-cyan);
    text-decoration: none;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 8, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--void-bg);
    border: 1px solid var(--neon-pink);
    padding: 3rem;
    box-shadow: 0 0 50px rgba(255, 0, 60, 0.2);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
}

.close-modal:hover {
    color: var(--neon-pink);
}

/* BREADCRUMBS */
.breadcrumbs {
    font-family: var(--font-code);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--neon-cyan);
    text-decoration: none;
}

/* SIDEBAR STICKY */
.sidebar-sticky {
    position: sticky;
    top: 120px;
}

/* ANIMATIONS */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--neon-cyan);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(44px, 9999px, 86px, 0);
    }

    5% {
        clip: rect(61px, 9999px, 126px, 0);
    }

    10% {
        clip: rect(27px, 9999px, 86px, 0);
    }

    15% {
        clip: rect(104px, 9999px, 8px, 0);
    }

    20% {
        clip: rect(66px, 9999px, 4px, 0);
    }

    25% {
        clip: rect(117px, 9999px, 21px, 0);
    }

    30% {
        clip: rect(78px, 9999px, 60px, 0);
    }

    35% {
        clip: rect(93px, 9999px, 4px, 0);
    }

    40% {
        clip: rect(32px, 9999px, 42px, 0);
    }

    45% {
        clip: rect(49px, 9999px, 97px, 0);
    }

    50% {
        clip: rect(18px, 9999px, 11px, 0);
    }

    55% {
        clip: rect(100px, 9999px, 12px, 0);
    }

    60% {
        clip: rect(24px, 9999px, 91px, 0);
    }

    65% {
        clip: rect(138px, 9999px, 34px, 0);
    }

    70% {
        clip: rect(8px, 9999px, 57px, 0);
    }

    75% {
        clip: rect(48px, 9999px, 8px, 0);
    }

    80% {
        clip: rect(11px, 9999px, 137px, 0);
    }

    85% {
        clip: rect(81px, 9999px, 94px, 0);
    }

    90% {
        clip: rect(100px, 9999px, 22px, 0);
    }

    95% {
        clip: rect(11px, 9999px, 58px, 0);
    }

    100% {
        clip: rect(65px, 9999px, 2px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(144px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(13px, 9999px, 142px, 0);
    }

    10% {
        clip: rect(10px, 9999px, 7px, 0);
    }

    /* shorter for brevity */
    100% {
        clip: rect(95px, 9999px, 112px, 0);
    }
}

/* MOBILE RESPONSIVE */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--neon-cyan);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(3, 5, 8, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        border-top: 1px solid var(--neon-cyan);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* ALERTS */
.alert-block {
    background: rgba(255, 0, 60, 0.05);
    /* neon pink tint */
    border-left: 4px solid var(--neon-pink);
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-ui);
    color: var(--text-primary);
}

/* BLOG SPECIFIC */
.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2,
.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-cloud span {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--cyber-border);
    padding: 5px 15px;
    border-radius: 4px;
    /* A slight curve inside the cyberpunk straight edges helps readability */
    font-size: 0.85rem;
    font-family: var(--font-code);
    color: var(--text-secondary);
}

/* Pricing tables or package cards */
.package-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--neon-pink);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-family: var(--font-code);
    font-weight: bold;
    text-transform: uppercase;
}

.package-price {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: bold;
    margin-bottom: 1rem;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.package-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-family: var(--font-code);
    font-weight: bold;
}