/* ============================================================
   LANDING PAGE STYLES (Static Public Asset)
   Mindblowing Version
   ============================================================ */

/* ─── Global Noise Overlay ──────────────────────────────────── */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ─── Custom Cursor (Desktop Only) ──────────────────────────── */
@media (pointer: fine) {
    body { cursor: none; }
    
    .cursor-dot,
    .cursor-outline {
        position: fixed;
        top: 0; left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 10000;
        pointer-events: none;
        mix-blend-mode: difference;
    }

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

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1px solid color-mix(in oklab, var(--light-500) 50%, transparent);
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }

    .cursor-outline.is-hovering {
        width: 80px;
        height: 80px;
        background-color: color-mix(in oklab, var(--light-500) 20%, transparent);
        border-color: transparent;
    }

    .cursor-image {
        position: fixed;
        top: 0; left: 0;
        width: 280px;
        height: 380px;
        border-radius: 20px;
        pointer-events: none;
        z-index: 10001; /* Di atas cursor lain */
        overflow: hidden;
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
    }
    
    .cursor-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5% 4rem;
    overflow: hidden;
}

.hero__content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: var(--light-500);
    text-transform: uppercase;
}

/* Perspective text distortion */
.hero__title .word {
    display: inline-block;
    transform-style: preserve-3d;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--muted-400);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 3.5rem;
}

/* Ambient Fluid Orbs */
.hero__glow-1,
.hero__glow-2,
.hero__glow-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.hero__glow-1 {
    width: 50vw; height: 50vw;
    background: var(--primary-500);
    top: -10%; left: -10%;
    animation: float1 15s ease-in-out infinite alternate;
}

.hero__glow-2 {
    width: 40vw; height: 40vw;
    background: var(--accent-500);
    bottom: -10%; right: -5%;
    animation: float2 20s ease-in-out infinite alternate;
}

.hero__glow-3 {
    width: 30vw; height: 30vw;
    background: var(--dark-900); /* Dark orb to add contrast */
    top: 40%; left: 40%;
    animation: float3 18s ease-in-out infinite alternate;
}

@keyframes float1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(15%, 20%) scale(1.2); } }
@keyframes float2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-20%, -10%) scale(1.1); } }
@keyframes float3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30%, -30%) scale(1.3); } }

/* ─── Infinite Marquee ──────────────────────────────────────── */
.marquee {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    border-top: 1px solid color-mix(in oklab, var(--light-500) 10%, transparent);
    z-index: 10;
    background: color-mix(in oklab, var(--dark-900) 50%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.marquee__track {
    display: inline-block;
    animation: scroll-left 30s linear infinite;
}

.marquee__text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--muted-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-right: 3rem;
}

.marquee__text span {
    color: var(--primary-500);
}

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── Layout Utilities ──────────────────────────────────────── */
.section {
    padding: 10rem 5%;
    position: relative;
    z-index: 10;
}

.section__label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--primary-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: block;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--light-500);
    margin-bottom: 2rem;
}

/* ─── About: Pinned Layout ──────────────────────────────────── */
.about-pinned {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.about-pinned__left {
    flex: 1;
    /* Pinned by GSAP */
}

.about-pinned__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 50vh; /* Start lower */
    padding-bottom: 20vh;
}

@media (max-width: 1024px) {
    .about-pinned { flex-direction: column; gap: 3rem; }
    .about-pinned__right { padding-top: 0; }
}

/* ─── Portfolio: Horizontal Scroll ──────────────────────────── */
.portfolio-scroll-wrapper {
    overflow: hidden;
    height: 100vh; /* Will be pinned */
    display: flex;
    align-items: center;
    background-color: var(--dark-900);
}

.portfolio-scroll-container {
    display: flex;
    padding-left: 10vw;
    gap: 4rem;
    /* Width will expand naturally, translated by GSAP */
}

.portfolio-panel {
    width: 60vw;
    min-width: 600px;
    height: 60vh;
    flex-shrink: 0;
    position: relative;
}

@media (max-width: 768px) {
    .portfolio-panel { width: 85vw; min-width: 300px; height: 50vh; }
}

/* ─── Tools: Bento Grid ─────────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-item-1 { grid-column: span 2; grid-row: span 2; }
.bento-item-2 { grid-column: span 2; grid-row: span 1; }
.bento-item-3 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-item-1, .bento-item-2, .bento-item-3 {
        grid-column: span 2;
        grid-row: auto;
        min-height: 250px;
    }
}

/* ─── Magnetic Button Utility ───────────────────────────────── */
.magnetic-wrap {
    display: inline-block;
    cursor: pointer;
}
