/* Optimized Hero Landing Styles for MKTechs */

:root {
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e8e8e8;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-blue: #788cff;
    --font-main: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* VIDEO BACKGROUND */
.video-bg {
    position: fixed;
    inset: 0;
    z-index: -5;
    background: #000;
    /* Fallback */
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.1);
}

/* DARK OVERLAY & POLISH */
.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: -3;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.7) 100%);
}

/* CANVAS PARTICLES */
canvas#hero-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
}

/* MAIN CONTENT */
.hero-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

h1#headline {
    font-size: clamp(1.8rem, 8vw, 6.5rem);
    font-weight: 500;
    letter-spacing: -4px;
    margin-bottom: 2rem;
    opacity: 1;
    /* Visible by default */
    line-height: 0.95;
    text-transform: uppercase;
}

.sub {
    font-size: 16px;
    letter-spacing: 5px;
    opacity: 1;
    /* Visible by default */
    color: var(--text-muted);
    text-transform: uppercase;
}

.cta-container {
    margin-top: 60px;
    opacity: 1;
    /* Visible by default */
}

.btn-cta {
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px;
}

.btn-cta:hover {
    background: var(--text-primary);
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

/* KINETIC ELEMENTS */
.cards-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.card {
    position: absolute;
    width: 280px;
    padding: 30px;
    pointer-events: auto;
    opacity: 1;
    /* Visible by default */
}

.card h3 {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--accent-indigo);
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
}

@media(min-width: 1024px) {
    .card.p1 {
        left: 5%;
        top: 20%;
    }

    .card.p2 {
        right: 5%;
        bottom: 20%;
    }
}

@media(max-width: 1023px) {
    .cards-container {
        display: none;
    }

    /* Focus on text for mobile hero */
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mobile Adjustments */
@media(max-width: 1023px) {
    .hero-content {
        justify-content: center;
        padding-top: 40px;
    }

    h1#headline {
        font-size: clamp(2rem, 10vw, 4rem);
        letter-spacing: -2px;
        margin-bottom: 1.5rem;
    }

    .sub {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .cta-container {
        margin-top: 40px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .btn-cta,
    h1,
    .sub {
        transition: none !important;
        animation: none !important;
    }
}