:root {
    --bg-dark: #050505;
    --neon-blue: #00f3ff;
    --neon-gold: #ffd700;
    --neon-magenta: #ff00ff;
    --text-primary: #e0e0e0;
    --font-heading: 'Cinzel', serif;
    --font-tech: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Brushed metal texture overlay */
    background-image:
        linear-gradient(rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.9)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMjIyIi8+CjxwYXRoIGQ9Ik0wIDBMNCA0Wk00IDBMMCA0WiIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjEiLz4KPC9zdmc+');
}

/* --- Loader --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-text {
    font-family: var(--font-tech);
    color: var(--neon-blue);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: #333;
}

.bar-fill {
    height: 100%;
    background: var(--neon-blue);
    width: 0%;
    animation: load 2s ease-in-out forwards;
    box-shadow: 0 0 10px var(--neon-blue);
}

@keyframes load {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* --- Navbar --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    transition: transform 0.5s ease;
}

#navbar.hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--neon-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px --neon-blue;
}

.nav-links .highlight {
    color: var(--neon-magenta);
    border: 1px solid var(--neon-magenta);
    padding: 5px 15px;
    border-radius: 4px;
}

.nav-links .highlight:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-right: 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    color: #fff;
}

/* Glitch Effect on Hover/Load */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-blue);
    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-magenta);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.subtitle {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: var(--neon-blue);
    margin-bottom: 40px;
    min-height: 1.5em;
    /* Prevent layout shift */
}

.cta-button {
    background: transparent;
    border: 1px solid var(--neon-gold);
    color: var(--neon-gold);
    padding: 15px 40px;
    font-family: var(--font-tech);
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.1);
}

.hero-image-container {
    flex: 1;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.hero-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3));
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    transition: transform 0.5s ease-out;
}

/* Scanline animation over image */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 10px var(--neon-blue);
    animation: scan 4s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0.5deg);
    }

    100% {
        clip: rect(80px, 9999px, 100px, 0);
        transform: skew(-0.5deg);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(50px, 9999px, 70px, 0);
        transform: skew(0.5deg);
    }

    100% {
        clip: rect(20px, 9999px, 120px, 0);
        transform: skew(-0.5deg);
    }
}

/* --- Features Section --- */
.features {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    background: #080808;
    position: relative;
}

.feature-card {
    border: 1px solid #222;
    padding: 40px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.feature-card h2 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
}

.feature-card.art:hover {
    border-color: var(--neon-gold);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.1);
}

.feature-card.mech:hover {
    border-color: var(--neon-magenta);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.1);
}

footer {
    text-align: center;
    padding: 40px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #222;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding-top: 100px;
        text-align: center;
        height: auto;
    }

    .hero-content {
        padding-right: 0;
        margin-top: 40px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-image-container {
        height: 50vh;
        width: 100%;
    }
}

/* --- Global Laser Scan --- */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.8), 0 0 30px rgba(0, 243, 255, 0.4);
    z-index: 9999;
    pointer-events: none;
    animation: global-scan 3s linear infinite;
    opacity: 0;
}

@keyframes global-scan {
    0% {
        top: -10px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 105%;
        opacity: 0;
    }
}

/* --- 3x3 Grid System (Blog & Shop) --- */
.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 50px 0;
}

.grid-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.grid-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: translateY(-5px);
}

.grid-card .card-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s;
}

.grid-card:hover .card-img {
    transform: scale(1.05);
}

.grid-card .card-content {
    padding: 25px;
}

.grid-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.grid-card p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
}

/* Responsive Grid Overrides */
@media (max-width: 900px) {
    .grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-3x3 {
        grid-template-columns: 1fr;
    }
}