:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-primary: #00f3ff;
    /* Neon Cyan */
    --accent-secondary: #bc13fe;
    /* Neon Purple */
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    background-color: var(--bg-color);
    /* Root background */
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

body {
    background-color: transparent;
    /* Prevent body bg from covering negative z-index items */
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* Dedicated Background Layers to fix z-index stacking */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    /* deeply behind */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -5;
    /* behind content, above background */
    pointer-events: none;
}

/* Background Animation - Bloom/Pulse */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(188, 19, 254, 0.15), transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: pulseBackground 8s infinite alternate;
    mix-blend-mode: screen;
}

/* Scanline/Grid Effect overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 243, 255, 0.03) 3px);
    z-index: -1;
    pointer-events: none;
    background-size: 100% 4px;
}

@keyframes pulseBackground {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-primary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px var(--accent-secondary);
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

nav a.active,
nav a:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.site-logo {
    position: fixed;
    top: 5px;
    left: 20px;
    width: 45px;
    /* Adjust size as needed - 'kinda small' */
    height: auto;
    z-index: 1001;
    /* Above nav and overlay */
    filter: drop-shadow(0 0 5px var(--accent-primary));
    /* Optional cool glow */
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--accent-secondary));
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.1);
    border-color: var(--accent-primary);
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
    height: 250px;
    /* Example height */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

.btn:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: var(--glass-border);
    color: #666;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tech Page Specifics */
.tech-list li {
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-left: 2px solid var(--accent-secondary);
    list-style: none;
}

/* Link Tree Specifics */
.link-tree {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1rem;
    border: var(--glass-border);
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.link-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* --- Marquee Banner Start --- */
.marquee-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--accent-primary);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    position: relative;
    z-index: 1002;
    /* Ensure it sits above other background elements */
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-size: 0.9rem;
    text-shadow: 0 0 5px var(--accent-primary);
    letter-spacing: 1px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Marquee Banner End --- */