:root {
    --bg-color: #0a0a0a;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent-primary: #00ff9d;
    /* Neon Green */
    --accent-secondary: #bd00ff;
    /* Neon Purple */
    --accent-tertiary: #00f3ff;
    /* Cyan */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Mono', monospace;
    --grid-gap: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor handling */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.highlight {
    color: var(--accent-primary);
}

.separator {
    color: var(--accent-secondary);
    margin: 0 0.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--accent-primary);
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--accent-primary);
    color: var(--bg-color);
}

.btn.primary:hover {
    background: transparent;
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

.btn.secondary {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.btn.secondary:hover {
    border-color: var(--accent-tertiary);
    color: var(--accent-tertiary);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
    /* Ensure canvas doesn't overflow */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content */
    opacity: 0.6;
    /* Subtle blend */
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 1rem;
    position: relative;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-main);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(12px, 9999px, 5px, 0);
    }

    20% {
        clip: rect(100px, 9999px, 86px, 0);
    }

    40% {
        clip: rect(54px, 9999px, 12px, 0);
    }

    60% {
        clip: rect(2px, 9999px, 95px, 0);
    }

    80% {
        clip: rect(120px, 9999px, 45px, 0);
    }

    100% {
        clip: rect(5px, 9999px, 150px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(85px, 9999px, 14px, 0);
    }

    20% {
        clip: rect(12px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(144px, 9999px, 5px, 0);
    }

    60% {
        clip: rect(4px, 9999px, 12px, 0);
    }

    80% {
        clip: rect(14px, 9999px, 120px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 4px, 0);
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Marquee */
.marquee-container {
    background: var(--accent-primary);
    color: var(--bg-color);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--accent-primary);
    border-bottom: 1px solid var(--accent-primary);
    transform: rotate(-1deg);
    width: 105%;
    margin-left: -2.5%;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content span {
    margin: 0 2rem;
}

/* Work / Portfolio */
.work-section {
    padding: 8rem 10%;
    background: radial-gradient(circle at top right, #111 0%, #0a0a0a 40%);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    border-left: 4px solid var(--accent-secondary);
    padding-left: 1rem;
    text-shadow: 0 0 10px rgba(189, 0, 255, 0.3);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 255, 157, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    height: 300px;
    width: 100%;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9IjAuMSIvPgo8L3N2Zz4=');
    /* subtle grid texture */
    opacity: 0.5;
}

.placeholder-gradient-1 {
    background: linear-gradient(135deg, #ff00cc 0%, #333399 100%);
}

.placeholder-gradient-2 {
    background: linear-gradient(135deg, #00ff9d 0%, #0099ff 100%);
}

.placeholder-gradient-3 {
    background: linear-gradient(135deg, #bd00ff 0%, #ff0055 100%);
}

.card-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.card-link {
    font-size: 0.85rem;
    color: var(--accent-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

.card-link::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.card-link:hover::after {
    margin-left: 10px;
}

.card-image-real {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block;
    height: auto;
    border-bottom: 1px solid #333;
}

/* About / Timeline */
.about-section {
    padding: 8rem 10%;
    background: #0f0f0f;
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.about-section::before {
    content: 'HISTORY';
    position: absolute;
    right: -5%;
    top: 10%;
    font-size: 15rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
}

.about-container {
    position: relative;
    z-index: 2;
}

.timeline {
    border-left: 2px solid #333;
    padding-left: 0;
    margin-left: 1rem;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.65rem;
    /* center on line */
    top: 0.3rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-color);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    transition: transform 0.3s;
}

.timeline-item:hover::before {
    transform: scale(1.5);
    background: var(--accent-primary);
}

.year {
    display: inline-block;
    font-family: var(--font-body);
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--accent-primary);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* Scroll Animation State */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.timeline-item h3 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    color: var(--text-main);
}

.timeline-item p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Social */
.social-section {
    padding: 8rem 10%;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 70%);
}

.social-content h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.social-btn {
    padding: 2rem;
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
}

.social-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.2);
}

.crypto-address {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #222;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .navbar {
        padding: 1.5rem 5%;
    }

    .nav-links {
        display: none;
        /* Simple hide for MVP, ideally hamburger */
    }

    .social-content h2 {
        font-size: 2.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-btn {
        padding: 1.5rem;
        font-size: 1rem;
    }
}