:root {
    --bg-dark: #0a0a0a;
    --text-light: #f5f5f5;
    --text-muted: #888888;
    --accent: #00ff9d;
    --accent-glow: rgba(0, 255, 157, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none; 
    overflow-x: hidden;
}

a, button {
    cursor: none;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s, background-color 0.2s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    background-color: var(--accent-glow);
    border-color: transparent;
    mix-blend-mode: exclusion;
}

.cursor-follower.view {
    width: 80px;
    height: 80px;
    background-color: var(--text-light);
    border-color: transparent;
    mix-blend-mode: difference;
}
.cursor-follower.view::after {
    content: 'VIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--bg-dark);
    font-family: var(--font-display);
    letter-spacing: 1px;
}

/* Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.04;
    background-image: 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');
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader-counter {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.preloader-bar {
    width: 300px;
    max-width: 80vw;
    height: 2px;
    background-color: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.preloader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--accent);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 6rem 4rem 2rem;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    /* Drastically reduced font size to prevent overlapping and clipping */
    font-size: clamp(3rem, 7vw, 8rem);
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    word-break: break-word;
    letter-spacing: -0.02em;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-line.accent {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    margin-left: 8%;
}

.hero-image-wrapper {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 35vw;
    max-width: 450px;
    aspect-ratio: 3/4;
    z-index: 1; /* Sits behind the text */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    border-radius: 12px;
}

.hero-glass-box {
    position: absolute;
    bottom: -10%;
    left: -20%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    width: 280px;
    z-index: 2;
}

.glass-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.glass-line {
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 1rem;
}

.glass-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* About Section */
.about {
    padding: 10rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.3;
    max-width: 1200px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 4rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Work Section */
.work {
    padding: 10rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    overflow: hidden;
}

.project-list {
    display: flex;
    flex-direction: column;
}

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

.project-item:first-of-type {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.project-item:hover .project-info h3 {
    color: var(--accent);
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-image-container {
    width: 30vw;
    max-width: 400px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.4s, transform 0.4s;
}

.project-item:hover .project-image-container {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.placeholder-1 { background: linear-gradient(45deg, #1e1e1e, #2a2a2a); }
.placeholder-2 { background: linear-gradient(45deg, #2a2a2a, #1e1e1e); }

/* Footer */
.footer {
    padding: 8rem 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-sub {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 10rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 4rem;
}

.footer-btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 8rem;
}

.circle-btn {
    width: clamp(120px, 15vw, 150px);
    height: clamp(120px, 15vw, 150px);
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.circle-btn::before {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    transition: bottom 0.4s cubic-bezier(0.1, 0.8, 0.1, 1);
    z-index: -1;
}

.circle-btn:hover {
    color: var(--bg-dark);
    border-color: var(--accent);
}

.circle-btn:hover::before {
    bottom: 0;
    border-radius: 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    gap: 1rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.socials a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.line, .word, .char {
    display: inline-block;
    overflow: hidden;
}
.char, .word {
    transform: translateY(110%);
}

/* Responsive Media Queries */
@media screen and (max-width: 1024px) {
    .nav {
        padding: 1.5rem 2rem;
    }
    .hero {
        padding: 6rem 2rem 2rem;
    }
    .about, .work, .footer {
        padding: 6rem 2rem 2rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 8vw, 7rem);
    }
    
    .hero-title-line.accent {
        margin-left: 5%;
    }
    
    .hero-image-wrapper {
        width: 40vw;
        right: 2%;
    }
    
    .project-image-container {
        width: 40vw;
    }
}

@media screen and (max-width: 768px) {
    /* Hide custom cursor on mobile */
    .cursor, .cursor-follower {
        display: none !important;
    }
    body, a, button {
        cursor: auto;
    }

    .nav {
        padding: 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 8rem 1.5rem 2rem;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        min-height: auto;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
        line-height: 1;
    }
    
    .hero-title-line.accent {
        margin-left: 0; /* Align left on mobile */
    }
    
    /* Reposition image below text on mobile */
    .hero-image-wrapper {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1/1; /* Squarer crop for mobile */
        margin-top: 2rem;
    }
    
    .hero-glass-box {
        bottom: -95px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 1.5rem;
    }
    
    .about {
        padding: 6rem 1.5rem;
        gap: 4rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .work {
        padding: 6rem 1.5rem;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 0;
    }
    
    /* Make image visible by default on mobile, since no hover */
    .project-image-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        opacity: 1;
        margin-top: 1.5rem;
    }
    
    .project-item:hover .project-image-container {
        transform: none;
    }
    
    .footer {
        padding: 6rem 1.5rem 2rem;
    }
    
    .footer-title {
        font-size: clamp(3rem, 12vw, 6rem);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .socials {
        margin-top: 1rem;
    }
}

/* Store Page Styles */
.store-page .store-hero {
    padding: 12rem 4rem 4rem;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.course-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.course-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.buy-btn {
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 30px;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    width: fit-content;
}

.buy-btn:hover {
    background-color: #00cc7d;
}

.buy-btn.small {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
}

.buy-btn:active {
    transform: scale(0.95);
}

.tips-section {
    padding: 8rem 4rem;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.tip-card {
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: border-color 0.3s;
}

.tip-card:hover {
    border-color: var(--accent);
}

.tip-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tip-price {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.store-contact {
    padding: 8rem 4rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-method a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .store-page .store-hero {
        padding: 8rem 1.5rem 2rem;
    }
    .products-grid, .tips-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }
    .course-title {
        font-size: 1.8rem;
    }
    .tips-section, .store-contact {
        padding: 4rem 1.5rem;
    }
}
