:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #bbff00;
    /* Acid Lime */
    --secondary-color: #a29bfe;
    --card-bg: #111111;
    --font-main: 'Outfit', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    /* Hide scrollbar for custom smooth scroll */
    cursor: none;
    /* Hide default cursor */
}

/* Custom Scrollbar hide */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* --- Page Transition --- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 2rem;
    font-weight: 900;
    transform-origin: top;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--text-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.05;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABMTExERERQUFBFRUVQUFAODf2TAAAAB3RSTlMABw8XJDw/QO/16AAAALhJREFUOMul00sOhCAMBNC5gIcQ739jTfSPiYnJ9KXQAl08C6b5OM7j+OF1k99eX7Vj/ZTaS36M8z6M7W2v2r03z/W87n32j/O+72vdwz7v+76vbQ/7vO/7vrY97PO+7/va9rDP+77va9vDPu/7vq9tD/u87/u+tj3s877v+9r2sM/7vu9r28M+7/u+r20P+7zv+762Pezzvu/72vawz/u+72vbaw737+/f//9/3t9/f7/f39/f39/f39/f39/f39/f39/f339VwB/gR9MhZgAAAABJRU5ErkJggg==');
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-decoration: none;
    color: inherit;
}

.menu-btn {
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: none;
    /* Custom cursor handles this */
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    transform-style: preserve-3d;
    /* For parallax tilt */
}

.hero-title {
    font-size: 12vw;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    cursor: none;
    transition: transform 0.1s ease-out;
    /* Smooth tilt */
}

.hero-subtitle {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: monospace;
    min-height: 1.5em;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

/* Parallax Layers */
.parallax-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    opacity: 0.1;
}

.layer-1 {
    background-image: url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=2670&auto=format&fit=crop');
    z-index: 1;
}

.layer-2 {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* --- Rotating Text --- */
.rotating-text-section {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
}

.rotating-container {
    display: flex;
    align-items: center;
    font-size: 6vw;
    /* Responsive large font */
    font-weight: 700;
    line-height: 1.1;
    gap: 1.5rem;
}

.static-text {
    color: var(--text-color);
}

.dynamic-wrapper {
    height: 1.1em;
    /* Matches line-height */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.dynamic-word {
    height: 100%;
    /* Take full height of wrapper, so they stack if we translate */
    /* flexible, but simplest is explicit height matching usage */
    flex-shrink: 0;
    color: var(--accent-color);
}

/* --- Sticky Card Stacking --- */
.cards-section {
    padding: 5rem 5%;
    background: var(--bg-color);
}

.section-header {
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cards-container {
    padding-bottom: 10vh;
}

.card {
    height: 400px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: sticky;
    top: 150px;
    display: flex;
    align-items: center;
    /* Vertical center content */
    margin-bottom: 4rem;
    /* Spacing for stack trigger */
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, filter 0.3s ease;
    overflow: hidden;
}

/* Each card gets a slightly different color or accent for visual distinction */
.card-1 {
    border-top: 4px solid #ff0055;
    background: linear-gradient(135deg, #111, #1a0a0f);
}

.card-2 {
    border-top: 4px solid #0055ff;
    background: linear-gradient(135deg, #111, #0a0f1a);
    top: 180px;
}

.card-3 {
    border-top: 4px solid #00ff55;
    background: linear-gradient(135deg, #111, #0a1a0f);
    top: 210px;
}

.card-4 {
    border-top: 4px solid #ffff00;
    background: linear-gradient(135deg, #111, #1a1a0a);
    top: 240px;
}

.card-content {
    padding: 3rem;
}

.card h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- Horizontal Scroll --- */
.horizontal-section {
    height: 100vh;
    /* Will be pinned by GSAP */
    background: #000;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.horizontal-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 5%;
}

.horizontal-container {
    display: flex;
    gap: 4rem;
    width: max-content;
    /* Important for horizontal scrolling */
}

.h-item {
    position: relative;
    width: 400px;
    height: 60vh;
    flex-shrink: 0;
}

.h-img-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.h-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.h-item:hover .h-img-box img {
    transform: scale(1.1);
}

.h-num {
    position: absolute;
    bottom: -3rem;
    left: 0;
    font-size: 4rem;
    font-weight: 900;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* --- Scrollytelling --- */
.scrollytelling-section {
    padding: 5rem 5%;
    display: flex;
    justify-content: space-between;
}

.scrolly-container {
    display: flex;
    width: 100%;
}

.scrolly-text {
    width: 40%;
}

.step {
    height: 80vh;
    /* Each step takes full view height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s;
}

.step.active {
    opacity: 1;
}

.step h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.scrolly-visual {
    width: 50%;
    position: relative;
}

.visual-box {
    width: 100%;
    height: 60vh;
    background: #222;
    position: sticky;
    top: 20vh;
    border-radius: 20px;
    transition: background-color 0.5s, transform 0.5s;
}

/* --- Spotlight / Reveal --- */
.spotlight-section {
    height: 100vh;
    position: relative;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: none;
    /* We use a special spotlight cursor here logic-wise */
}

.spotlight-cursor {
    /* Implemented in JS mostly for radial gradient mask */
}

.spotlight-content {
    text-align: center;
    color: #333;
    /* Dark text on dark bg, revealed by light */
    z-index: 1;
}

.mask-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Hidden by default, shown by spotlight logic */
    display: flex;
    justify-content: center;
    align-items: center;
    /* We will use clip-path in JS or mix-blend-mode */
    background: transparent;
    pointer-events: none;
}

.mask-text {
    font-size: 8rem;
    color: var(--text-color);
    font-weight: 900;
}

/* --- Infinite Marquee --- */
.marquee-section {
    padding: 8rem 0;
    background: var(--bg-color);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    /* Animation handled in GSAP */
}

.marquee-content span {
    font-size: 6rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
    text-transform: uppercase;
    padding-right: 2rem;
}

/* --- Project List Hover Reveal --- */
.project-list {
    padding: 8rem 5%;
    background: #080808;
    position: relative;
}

.list-header {
    margin-bottom: 4rem;
    text-align: center;
}

.list-header h2 {
    font-size: 4rem;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    transition: transform 0.3s;
}

.project-cat {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.project-item:hover .project-title {
    transform: translateX(20px);
    color: var(--accent-color);
}

.project-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 300px;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s ease, transform 0.5s ease;
    border-radius: 12px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-item:hover .project-img {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Zoom Parallax Section --- */
.zoom-section {
    height: 200vh;
    /* Scroll space */
    position: relative;
}

.zoom-container {
    height: 100vh;
    width: 100%;
    position: sticky;
    /* Sticky is easier than pin sometimes, but we will use GSAP pin */
    top: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-text {
    position: absolute;
    z-index: 2;
    text-align: center;
    mix-blend-mode: difference;
}

.zoom-text h2 {
    font-size: 8rem;
    font-weight: 900;
}

.zoom-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.zoom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.5);
    /* Start small */
}

/* --- Footer --- */
.footer {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #050505;
}

.circular-text-container {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s;
}

.circular-text-container:hover {
    transform: scale(1.1);
}

.circular-text {
    width: 100%;
    height: 100%;
    animation: rotateText 10s linear infinite;
}

.circular-text text {
    font-size: 24px;
    font-weight: 700;
    fill: var(--text-color);
    letter-spacing: 2px;
}

.arrow-up {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

@keyframes rotateText {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.footer-links {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* --- Section Indicator --- */
#section-indicator {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 10000;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    user-select: all;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

#section-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer Actions --- */
.footer-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.cta-btn {
    padding: 1rem 2rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.cta-btn:hover {
    color: #000;
    box-shadow: 0 0 30px rgba(187, 255, 0, 0.3);
}

.cta-btn:hover::before {
    width: 100%;
}
/* --- Border Beam Button --- */
.border-beam-section {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #050505;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-beam-container {
    padding: 4px; /* Space for the beam */
    position: relative;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    display: inline-block;
}

.border-beam-btn {
    position: relative;
    background: #000;
    color: #fff;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.border-beam-btn:hover {
    background: #111;
}

.beam-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        var(--accent-color)
    );
    animation: rotateBeam 4s linear infinite;
    z-index: 1;
}

@keyframes rotateBeam {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.beam-mask {
    position: absolute;
    inset: 2px;
    background: #000;
    border-radius: 14px;
    z-index: 1;
}

/* --- Shimmer Shine Button --- */
.shimmer-btn-container {
    margin-top: 4rem;
    position: relative;
    display:flex;
    justify-content: center;
    align-items: center;
}

/* The glowing backlight layer */
.shimmer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #A855F7, #EC4899, #F97316); /* Purple -> Pink -> Orange */
    filter: blur(25px);
    opacity: 0.6;
    border-radius: 9999px;
    z-index: 0;
    transition: opacity 0.3s;
}

.shimmer-btn:hover ~ .shimmer-glow {
    opacity: 1;
}

.shimmer-btn {
    position: relative;
    padding: 1.2rem 4rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    border: none;
    border-radius: 9999px; /* Pill shape */
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(90deg, #A855F7, #EC4899, #F97316); /* Main Gradient bg */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* The white shine sweep effect */
.shimmer-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transform: skewX(-20deg);
    animation: shimmerSwipe 3s infinite;
    pointer-events: none;
}

@keyframes shimmerSwipe {
    0% { left: -100%; }
    20% { left: 200%; } /* Fast swipe */
    100% { left: 200%; } /* Wait */
}

.shimmer-btn span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
