:root {
    --bg-dark: #000000;
    --text-main: #ffffff;
    --accent: #ffd700;
    /* God Gold */
    --accent-neon: #ff003c;
    /* Cyberpunk Red/Pink */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Red Waves Canvas */
#godModeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* Lenis Smooth Scroll Setup */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Film Grain Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background: 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.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Custom Beast Mode Cursor - Morphing Diamond */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--text-main);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
}

.cursor-trail {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-neon);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    mix-blend-mode: screen;
    box-shadow: 0 0 30px var(--accent-neon);
    animation: rotateCursor 10s linear infinite;
}

@keyframes rotateCursor {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.cursor-trail.active {
    width: 100px;
    height: 100px;
    border-color: var(--accent);
    background: rgba(255, 215, 0, 0.1);
    animation: rotateCursorFast 2s linear infinite;
}

@keyframes rotateCursorFast {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* Preloader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: 'Outfit', sans-serif;
    font-size: 6vw;
    letter-spacing: 0.3em;
    color: var(--text-main);
    text-shadow: 0 0 20px var(--text-main);
}

.loader-sub {
    font-family: 'Inter', sans-serif;
    color: var(--accent-neon);
    letter-spacing: 0.5em;
    margin-top: 10px;
    font-weight: 900;
}

.loader-progress {
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-neon), var(--accent));
    margin-top: 30px;
    box-shadow: 0 0 10px var(--accent);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

/* Layout */
.smooth-scroll-wrapper {
    position: relative;
    z-index: 10;
}

.panel {
    min-height: 100vh;
    padding: 100px 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Hero & Glitch Text */
.hero {
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.5em;
    color: var(--accent);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.title-wrapper {
    overflow: hidden;
    position: relative;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 12vw;
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    display: inline-block;
}

.hero-title.offset {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-neon);
    margin-left: 5vw;
}

/* Glitch Animation CSS */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    pointer-events: none;
}

.glitch::before {
    left: 6px;
    text-shadow: -3px 0 var(--accent-neon);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -6px;
    text-shadow: -3px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 83px, 0);
    }

    20% {
        clip: rect(65px, 9999px, 14px, 0);
    }

    40% {
        clip: rect(43px, 9999px, 99px, 0);
    }

    60% {
        clip: rect(89px, 9999px, 23px, 0);
    }

    80% {
        clip: rect(2px, 9999px, 55px, 0);
    }

    100% {
        clip: rect(44px, 9999px, 32px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(20px, 9999px, 43px, 0);
    }

    20% {
        clip: rect(55px, 9999px, 84px, 0);
    }

    40% {
        clip: rect(13px, 9999px, 9px, 0);
    }

    60% {
        clip: rect(89px, 9999px, 63px, 0);
    }

    80% {
        clip: rect(92px, 9999px, 15px, 0);
    }

    100% {
        clip: rect(14px, 9999px, 72px, 0);
    }
}

.hero-bottom {
    margin-top: 5vh;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: 2px;
}

/* About - Clip Path Reveal */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(255, 0, 60, 0.5);
    position: relative;
    z-index: 10;
}

.sticky-title {
    position: sticky;
    top: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 10px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 60, 0.3);
    display: block;
    width: max-content;
    margin: 0 auto 50px auto;
    z-index: 100;
}

.about-text-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    /* Baseline for GSAP */
}

.about-text.large-text {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateZ(50px);
}

.about-text.medium-text {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: 500;
    transform: translateZ(30px);
}

/* The Legacy - Straight Line Vertical Timeline */
.legacy-timeline {
    position: relative;
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-neon), var(--accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 40px;
    display: flex;
    justify-content: flex-end;
}

.timeline-item.right {
    left: 50%;
    justify-content: flex-start;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 4px solid var(--accent-neon);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 0 15px var(--accent-neon);
}

.timeline-item.right .timeline-dot {
    left: -10px;
    right: auto;
}

.content-box {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 550px;
    position: relative;
    transform-style: preserve-3d;
}

.content-box .date {
    font-size: 1rem;
    color: var(--accent-neon);
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateZ(20px);
}

.content-box h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateZ(40px);
}

.content-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    transform: translateZ(30px);
}

.content-box p {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.5;
    transform: translateZ(25px);
}

/* Marquees */
.skills {
    padding: 50px 0;
    min-height: auto;
    margin-top: 100px;
}

.skills-ticker-container {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
}

.skills-ticker {
    display: inline-block;
}

.skills-ticker-container.left-to-right .skills-ticker {
    animation: tickerLR 30s linear infinite;
}

.skills-ticker-container.right-to-left .skills-ticker {
    animation: tickerRL 30s linear infinite;
}

.skills-ticker span {
    font-family: 'Outfit', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    margin: 0 20px;
}

.skills-ticker span.dot {
    -webkit-text-stroke: 0;
    color: var(--accent-neon);
    font-size: 4rem;
    vertical-align: middle;
}

.skills-ticker span:hover {
    color: var(--accent);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 40px var(--accent);
}

@keyframes tickerLR {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes tickerRL {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Footer Epic */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to top, rgba(255, 0, 60, 0.1), transparent);
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 12vw;
    line-height: 0.8;
    text-align: center;
    margin-bottom: 100px;
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.socials,
.contact-form-epic {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transform-style: preserve-3d;
}

.socials h3,
.contact-form-epic h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--accent-neon);
    margin-bottom: 40px;
    transform: translateZ(30px);
}

.socials a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
    width: fit-content;
    transform: translateZ(20px);
}

.socials a:hover {
    color: var(--accent);
}

.contact-form-epic form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateZ(20px);
}

.contact-form-epic input,
.contact-form-epic textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 1.2rem;
    outline: none;
    transition: 0.3s;
}

.contact-form-epic input:focus,
.contact-form-epic textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.god-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--accent);
    padding: 20px 40px;
    overflow: hidden;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    cursor: none;
    margin-top: 20px;
    width: fit-content;
    transition: 0.3s;
}

.god-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.god-btn:hover::before {
    left: 0;
}

.god-btn:hover {
    color: #000;
    box-shadow: 0 0 50px var(--accent);
}

@media(max-width: 900px) {

    /* Navigation */
    .nav {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Typography & Spacing */
    .section-heading {
        font-size: 3rem;
        margin-bottom: 30px;
    }

    .sticky-title {
        font-size: 2.5rem;
        padding: 10px 20px;
    }

    .panel {
        padding: 80px 20px;
    }

    /* Hero */
    .hero-title {
        font-size: 15vw;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-title.offset {
        margin-left: 0;
    }

    .hero-bottom {
        font-size: 1rem;
    }

    /* About */
    .about-text-wrapper {
        padding: 30px;
        border-radius: 15px;
    }

    .about-text.large-text {
        font-size: 2rem;
        transform: translateZ(20px);
    }

    .about-text.medium-text {
        font-size: 1.1rem;
        transform: translateZ(10px);
    }

    /* Timeline */
    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding: 20px 0 20px 50px;
        justify-content: flex-start;
    }

    .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 10px;
        right: auto;
        width: 15px;
        height: 15px;
    }

    .content-box {
        padding: 25px;
        border-radius: 10px;
    }

    .content-box h3 {
        font-size: 1.5rem;
        transform: translateZ(20px);
    }

    .content-box h4 {
        font-size: 1rem;
        transform: translateZ(15px);
    }

    .content-box p {
        font-size: 0.9rem;
        transform: translateZ(10px);
    }

    /* Skills Marquee */
    .skills-ticker span {
        font-size: 3.5rem;
    }

    .skills-ticker span.dot {
        font-size: 2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .socials,
    .contact-form-epic {
        padding: 30px;
    }

    .socials h3,
    .contact-form-epic h3 {
        font-size: 1.8rem;
        transform: translateZ(15px);
    }

    .socials a {
        font-size: 1.2rem;
        transform: translateZ(10px);
    }

    .contact-form-epic form {
        gap: 20px;
    }

    .god-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
}