:root {
    --bg-dark: #050505;
    --bg-darker: #000000;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #800000;
    /* Dark Red/Maroon as requested "darker, not neon" */
    --accent-light: #aaa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Roboto', sans-serif;
    /* Traditional font for headers */
    --font-logo: 'Syncopate', sans-serif;
    /* Only for Entropy Doll */
    --font-body: 'Roboto', sans-serif;
    /* Traditional font for body */
}

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

html {
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}



/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    mix-blend-mode: difference;
    transition: padding 0.3s ease;
}

.logo {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #fff;
    animation: glitch-text 0.3s infinite;
    text-shadow:
        2px 0px 1px rgba(255, 0, 255, 0.8),
        -2px 0px 1px rgba(0, 255, 255, 0.8);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 5% 50px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    z-index: -2;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-text {
    z-index: 3;
    padding: 0 20px;
}

.pre-title {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-size: 0.9rem;

}

.hero-text h1 {
    font-family: var(--font-logo);
    /* Keep logo font for main title */
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;

    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 400px;

}

/* Animations */
@keyframes glitch-lift-button {
    0% {
        transform: translateY(-2px) translate(0);
        box-shadow: -3px 3px 0px rgba(255, 0, 255, 0.7), 3px -3px 0px rgba(0, 255, 255, 0.7);
        text-shadow: 2px 0px 1px rgba(255, 0, 255, 0.8), -2px 0px 1px rgba(0, 255, 255, 0.8);
        opacity: 1;
        /* Safety */
    }

    25% {
        transform: translateY(-2px) translate(-1px, 1px);
        box-shadow: -3px 3px 0px rgba(0, 255, 255, 0.7), 3px -3px 0px rgba(255, 0, 255, 0.7);
        text-shadow: -2px 0px 1px rgba(255, 0, 255, 0.8), 2px 0px 1px rgba(0, 255, 255, 0.8);
        opacity: 1;
        /* Safety */
    }

    50% {
        transform: translateY(-2px) translate(1px, -1px);
        box-shadow: -3px 3px 0px rgba(255, 0, 255, 0.7), 3px -3px 0px rgba(0, 255, 255, 0.7);
        text-shadow: 2px 0px 1px rgba(255, 0, 255, 0.8), -2px 0px 1px rgba(0, 255, 255, 0.8);
        opacity: 1;
        /* Safety */
    }

    75% {
        transform: translateY(-2px) translate(0);
        box-shadow: -3px 3px 0px rgba(0, 255, 255, 0.7), 3px -3px 0px rgba(255, 0, 255, 0.7);
        text-shadow: -2px 0px 1px rgba(255, 0, 255, 0.8), 2px 0px 1px rgba(0, 255, 255, 0.8);
        opacity: 1;
        /* Safety */
    }

    100% {
        transform: translateY(-2px) translate(0);
        box-shadow: -3px 3px 0px rgba(255, 0, 255, 0.7), 3px -3px 0px rgba(0, 255, 255, 0.7);
        text-shadow: 2px 0px 1px rgba(255, 0, 255, 0.8), -2px 0px 1px rgba(0, 255, 255, 0.8);
        opacity: 1;
        /* Safety */
    }
}

@keyframes glitch-lift-card {
    0% {
        transform: translateY(-5px) scale(1.02) translate(0);
        box-shadow: -2px 2px 0px rgba(255, 0, 255, 0.7), 2px -2px 0px rgba(0, 255, 255, 0.7);
    }

    25% {
        transform: translateY(-5px) scale(1.02) translate(-1px, 1px);
        box-shadow: -2px 2px 0px rgba(0, 255, 255, 0.7), 2px -2px 0px rgba(255, 0, 255, 0.7);
    }

    50% {
        transform: translateY(-5px) scale(1.02) translate(1px, -1px);
        box-shadow: -2px 2px 0px rgba(255, 0, 255, 0.7), 2px -2px 0px rgba(0, 255, 255, 0.7);
    }

    75% {
        transform: translateY(-5px) scale(1.02) translate(0);
        box-shadow: -2px 2px 0px rgba(0, 255, 255, 0.7), 2px -2px 0px rgba(255, 0, 255, 0.7);
    }

    100% {
        transform: translateY(-5px) scale(1.02) translate(0);
        box-shadow: -2px 2px 0px rgba(255, 0, 255, 0.7), 2px -2px 0px rgba(0, 255, 255, 0.7);
    }
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;

    background: rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    /* Ensure instant visibility */
    /* Use a simpler animation name to avoid conflicts if needed */
    animation: glitch-lift-button 0.3s infinite !important;
}



/* --- Glitch Effects --- */
/* Active Glitch Class (Toggled by JS) */
.hero-text h1.glitch-active {
    animation: tv-glitch-burst 0.4s infinite linear;
    color: #fff;
    opacity: 1;
}

/* TV Glitch Burst - Adjusted: Hard shifts, Fast Blinks, No "Elastic" Skew */
@keyframes tv-glitch-burst {
    0% {
        transform: translate(0);
        opacity: 1;
        text-shadow: none;
    }

    /* 1. Hard Blink & Position Jump */
    2% {
        opacity: 0;
        transform: translate(-10px, 5px);
    }

    4% {
        opacity: 1;
        transform: translate(10px, -5px);
        text-shadow: 3px 0px #ff00ff, -3px 0px #00ffff;
    }

    6% {
        opacity: 0;
    }

    8% {
        opacity: 1;
        transform: translate(0);
        text-shadow: none;
    }

    /* 2. Vertical "V-Hold" Slip (Hard translation, no skew) */
    20% {
        transform: translateY(20px);
        opacity: 0.8;
        text-shadow: 0px 5px #ff00ff, 0px -5px #00ffff;
    }

    22% {
        transform: translateY(-15px);
        opacity: 1;
        text-shadow: 0px -5px #ff00ff, 0px 5px #00ffff;
    }

    24% {
        transform: translate(0);
        opacity: 1;
    }

    /* 3. Rapid Flicker Sequence */
    50% {
        opacity: 0;
        transform: translate(5px, 0);
    }

    52% {
        opacity: 1;
        transform: translate(-5px, 0);
    }

    54% {
        opacity: 0;
    }

    56% {
        opacity: 1;
        transform: translate(0);
    }

    /* 4. Final Hard Shift */
    80% {
        transform: translate(-15px, 10px);
        text-shadow: -5px 0px #ff00ff, 5px 0px #00ffff;
    }

    82% {
        transform: translate(15px, -10px);
        text-shadow: 5px 0px #ff00ff, -5px 0px #00ffff;
    }

    85% {
        transform: translate(0);
        text-shadow: none;
    }

    100% {
        transform: translate(0);
        opacity: 1;
    }
}

/* Navigation Logo - Update selector to match HTML div */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    position: relative;

    font-family: var(--font-logo);
    /* No animation for header logo */
    text-shadow: none;
}

/* Hero Background Image */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 5% 50px;
    overflow: hidden;
    background-image: url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
}

/* Dark Overlay for Text Readability */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Darken image */
    z-index: 1;

}

/* TV Static / Bad Reception Overlay */
.tv-static-overlay {
    position: fixed;
    /* Global overlay */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* Top of everything */
    pointer-events: none;
    /* Click-through */
    /* Stronger scanlines pattern */
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 3px,
            rgba(255, 255, 255, 0.15) 3px,
            rgba(255, 255, 255, 0.15) 6px);
    background-size: 100% 6px;
    /* Larger pattern */
    animation: tv-static-noise 0.15s infinite linear;
    /* Faster */
    mix-blend-mode: screen;
    /* Visible on dark */
    opacity: 0.3;
    /* Slightly reduced for global readability */
}

@keyframes tv-static-noise {
    0% {
        background-position: 0 0;
        opacity: 0.4;
    }

    10% {
        background-position: 0 -20px;
        opacity: 0.3;
    }

    20% {
        background-position: 0 10px;
        opacity: 0.5;
    }

    30% {
        background-position: 0 -10px;
        opacity: 0.35;
    }

    40% {
        background-position: 0 30px;
        opacity: 0.4;
    }

    50% {
        background-position: 0 -30px;
        opacity: 0.3;
    }

    60% {
        background-position: 0 15px;
        opacity: 0.45;
    }

    70% {
        background-position: 0 -20px;
        opacity: 0.35;
    }

    80% {
        background-position: 0 40px;
        opacity: 0.5;
    }

    90% {
        background-position: 0 -10px;
        opacity: 0.3;
    }

    100% {
        background-position: 0 0;
        opacity: 0.4;
    }
}

/* Bottom Fade to Black */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 1;
}

/* Sections */
section {
    padding: 120px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title.center {
    display: block;
    text-align: center;
}

.section-dark {
    background-color: var(--bg-darker);
}

/* About */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.text-content p {
    margin-bottom: 25px;
    font-size: 1.25rem;
    /* Slightly larger for Rajdhani */
    color: #ddd;
    font-weight: 500;
}

.abstract-box {
    width: 100%;
    height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
}

.abstract-box::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--accent);
    z-index: -1;
}

/* Music */
.section-glass {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 20, 30, 1) 100%);
}

.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.album-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Cyberpunk Glitch Hover Effect */
.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(transparent 0px,
            transparent 2px,
            rgba(0, 255, 255, 0.05) 3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1;
}

.album-card:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.8);
    animation: glitch-lift-card 0.3s infinite;
}

.album-card:hover::before {
    opacity: 1;
}

.album-art {
    width: 100%;
    padding-bottom: 100%;
    /* Square aspect ratio */
    background: #222;
    /* Placeholder for album art */
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    /* Ensure link is clickable */
}

.album-art a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.album-art img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.album-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.links a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    font-size: 0.9rem;
    padding-bottom: 2px;
    transition: all 0.2s;
    display: inline-block;
}

.links a:hover {
    color: #fff;
    border-color: #fff;
    animation: glitch-text 0.3s infinite;
    text-shadow:
        2px 0px 1px rgba(255, 0, 255, 0.8),
        -2px 0px 1px rgba(0, 255, 255, 0.8);
}

/* Contact */
.center-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-text {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-family: var(--font-heading);
    /* Ensure monospace-like feel if possible, or stick to current font */
    min-height: 1.5em;
    /* Prevent layout jump */
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    color: inherit;
    font-weight: bold;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes glitch-text {
    0% {
        text-shadow: 2px 0px 1px #ff00ff, -2px 0px 1px #00ffff;
        transform: translate(0);
    }

    25% {
        text-shadow: -2px 0px 1px #ff00ff, 2px 0px 1px #00ffff;
        transform: translate(-1px, 1px);
    }

    50% {
        text-shadow: 2px 0px 1px #ff00ff, -2px 0px 1px #00ffff;
        transform: translate(1px, -1px);
    }

    75% {
        text-shadow: -2px 0px 1px #ff00ff, 2px 0px 1px #00ffff;
        transform: translate(0);
    }

    100% {
        text-shadow: 2px 0px 1px #ff00ff, -2px 0px 1px #00ffff;
        transform: translate(0);
    }
}

.email-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    display: inline-block;
}

.email-link:hover {
    color: #fff;
    animation: glitch-text 0.3s infinite;
    text-shadow:
        3px 0px 0px rgba(255, 0, 255, 0.9),
        -3px 0px 0px rgba(0, 255, 255, 0.9);
}

.social-links {
    margin-top: 50px;
    display: flex;
    gap: 30px;
}

.social-icon {
    font-family: var(--font-heading);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.5rem;
    /* Increased size for icons */
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.1);
    animation: glitch-text 0.3s infinite;
    text-shadow:
        3px 0px 0px rgba(255, 0, 255, 0.9),
        -3px 0px 0px rgba(0, 255, 255, 0.9);
    filter: brightness(1.3);
}

/* Footer */
footer {
    background: rgba(20, 20, 30, 1);
    /* Matches bottom of music/contact sections */
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: #444;
    letter-spacing: 2px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.footer-link:hover,
.footer-link:focus,
.footer-link:active {
    color: #fff;
    border-bottom-color: #fff;
    animation: glitch-text 0.3s infinite;
    text-shadow:
        2px 0px 1px rgba(255, 0, 255, 0.8),
        -2px 0px 1px rgba(0, 255, 255, 0.8);
    outline: none;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in,
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Mobile */
.burger {
    display: none;
    cursor: pointer;
}

@media (max-width: 900px) {
    .hero-container {
        padding-top: 80px;
        gap: 20px;
    }

    .hero-text {
        padding-left: 0;
        margin-bottom: 20px;
    }

    .hero-text h1 {
        font-size: 4.5rem;
        /* Increased from 3rem */
        line-height: 1;
    }

    .subtitle {
        margin: 0 auto 30px auto;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px 5%;
        mix-blend-mode: normal;
        /* Disable difference blend mode for mobile menu visibility */
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: #000000;
        /* Fully black, no transparency */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        z-index: 99;
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        z-index: 100;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px;
        transition: all 0.3s ease;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}