:root {
    /* Naughty Nancy Palette */
    --clr-cream: #F9FAEC;
    --clr-espresso: #3C2F27;
    --clr-orange: #FF7545;
    --clr-lavender: #DCCAE0;
    --clr-green: #40B56E;
    
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth; /* Added for smooth anchor link scrolling */
}

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

body {
    background-color: var(--clr-cream);
    color: var(--clr-espresso);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for standard desktop */
    -webkit-font-smoothing: antialiased;
}

a, button {
    cursor: none; /* Let dot-cursor handle it */
}

/* Custom Dot Cursor */
.dot-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--clr-orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    mix-blend-mode: difference;
}
body:hover .dot-cursor {
    opacity: 1;
}
.dot-cursor.active {
    width: 60px;
    height: 60px;
    background-color: var(--clr-lavender);
}
.dot-cursor span {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 800;
    color: var(--clr-espresso);
    letter-spacing: 1px;
}
.dot-cursor.active span {
    display: block;
    content: 'CLICK';
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2vw; /* Reduced from 2rem 4vw to go further top-left */
    display: flex;
    justify-content: flex-end; /* Push nav to the right since logo is removed */
    align-items: flex-start; /* Align nav properly */
    z-index: 100;
    mix-blend-mode: difference;
    color: #fff; /* When blending with difference, white turns into inversion */
    pointer-events: none; /* Let clicks pass through header background */
}

.header > * {
    pointer-events: auto; /* Re-enable clicks for nav */
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Base Section */
.section {
    position: relative;
    width: 100%;
    padding: 8vw 4vw;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
/* Global Fixed Background System */
.global-fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5; /* Under everything */
    pointer-events: none;
}
.global-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10; /* Above slideshow */
}
.orange-overlay { background-color: var(--clr-orange); }
.blue-overlay { background-color: #89C2D9; }

/* Slideshow Background */
.slideshow-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: var(--clr-espresso);
}

/* Split containers */
.slideshow-split {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50vw;
    overflow: hidden;
}
.slideshow-split.left { left: 0; }
.slideshow-split.right { right: 0; }

/* Background image layers */
.bg-layer {
    position: absolute;
    top: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 12s linear; /* Sped up opacity to 0.3s to allow for 0.5s intervals */
    transform: scale(1.05);
}
.bg-layer.active {
    opacity: 1;
    transform: scale(1);
}

/* Half layer config: spans just the 50vw split container */
.slideshow-split .bg-layer.half {
    width: 100%;
    left: 0;
}

/* Full layer config: spans the whole 100vw, acting as a window into a full screen image */
.slideshow-split.left .bg-layer.full {
    width: 200%; /* 200% of 50vw = 100vw */
    left: 0; /* Align left edge of image with left edge of screen */
}
.slideshow-split.right .bg-layer.full {
    width: 200%; /* 200% of 50vw = 100vw */
    right: 0; /* Align right edge of image with right edge of screen */
}

/* Screen-size solid color background layer config */
.slideshow-split .bg-layer.solid {
    width: 100%;
    left: 0;
    background-image: none !important; /* Override inline styles if any */
}
.slideshow-split .bg-layer.solid-orange {
    background-color: var(--clr-orange);
}

/* Picture-in-Picture layer config: small floating image */
.slideshow-split .bg-layer.pip {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    z-index: 10;
}

/* Overlay to darken background slightly for text readability */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 47, 39, 0.4); 
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--clr-cream);
    width: 100%;
}

.giant-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    pointer-events: none; /* Keep text from blocking cursor */
}

.giant-name {
    font-family: var(--font-body); /* Changed to body font to support thinner weights */
    font-weight: 400; /* Made font noticeably thinner */
    /* Massive responsive font size, slightly reduced */
    font-size: clamp(4.5rem, 20vw, 30rem);
    line-height: 0.75;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2); /* optional shadow for contrast */
}

.giant-horizontal {
    text-align: center;
    transform: translateX(-2vw) translateY(-4vh); /* Added translateY to move ERICA up */
}

.giant-diagonal {
    text-align: center;
    /* Angled drastically upward and shifted slightly to overlap */
    transform: rotate(-13deg) translateY(4vw) translateX(2vw); /* Changed rotation to -13deg */
    transform-origin: center center;
}

/* Intro Section */
.intro-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: var(--clr-cream);             /* Changed text to white/cream */
    position: relative;
    z-index: 1; /* Establish stacking context for overlay */
}
.two-col {
    display: flex;
    gap: 8%;
    width: 100%;
    align-items: center; /* Changed from flex-start to center */
    justify-content: space-between;
}
.col.left {
    flex: 0 0 40%; /* Made left column slightly wider for the title */
}
.col.left h2 {
    font-family: var(--font-body); /* Changed to body font to look like image */
    font-weight: 500;
    font-size: clamp(3rem, 5.5vw, 5.5rem); 
    line-height: 1.1;
    color: var(--clr-cream); /* Changed from orange to white */
    text-transform: none; /* Removed uppercase */
}
.col.right {
    flex: 0 0 50%; /* Right column width */
    padding-top: 1vw;
}
.col.right p {
    font-size: clamp(1rem, 1.5vw, 1.8rem); /* Made smaller as requested */
    font-weight: 500; /* Regular weight */
    line-height: 1.5;
    letter-spacing: 0;
}

/* Social Links Placeholders */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(249, 250, 236, 0.2); /* Semi-transparent cream */
    transition: all 0.3s ease;
    color: var(--clr-cream); /* Icon color */
}
.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.social-icon:hover {
    background-color: var(--clr-cream);
    color: var(--clr-orange); /* Invert colors on hover */
    transform: scale(1.1);
}
.social-icon:hover svg {
    transform: scale(1.1);
}

/* Skills Section */
.skills-section {
    color: var(--clr-cream);
    padding: 8vw 4vw 12vw; /* Reverting to give it some breathing room since we're flex-row now */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row-reverse; /* Put title on right, list on left */
    justify-content: space-between;
    align-items: flex-start; /* Align tops of containers */
}

.skills-wrapper {
    flex: 0 0 50%;
    /* Push list down slightly if needed to align perfectly with the text top */
    padding-top: 2vw; 
    padding-left: 2vw;
}

.skills-heading-container {
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    padding-right: 2vw;
}

.skills-main-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(3rem, 5.5vw, 5.5rem); 
    line-height: 1.1;
    text-transform: none; 
    text-align: right;
    color: var(--clr-cream);
}


.skills-list {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.skill-item {
    display: flex;
    flex-direction: column;
    padding: 0.5vw 0; /* Reduced line spacing */
    position: relative;
    cursor: pointer;
}

.skill-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 1.8rem); /* Matched intro paragraph size */
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--clr-cream);
    margin-bottom: 0; /* Removed margin bottom since lines are gone */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
    transform-origin: left center;
}

/* Hover effects */
.skill-item:hover .skill-name {
    color: var(--clr-espresso);
    transform: scale(1.05) translateX(1vw);
}

/* Marquee Section */
.marquee-section {
    background-color: var(--clr-orange);
    color: var(--clr-espresso);
    overflow: hidden;
    padding: 0.5vw 0; /* Extremely narrow strip */
    display: flex;
    white-space: nowrap;
}
.marquee-inner {
    display: inline-block;
}
.marquee-text {
    font-family: var(--font-body); /* Changed to body font so it's not thick */
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 1.5rem); /* Much smaller text */
    text-transform: uppercase;
    display: inline-block;
    padding-left: 100vw; /* Start exactly from the right edge of the screen */
    animation: marquee 60s linear infinite; /* Adjusted speed because string is longer */
}
@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-50%, 0); } /* Move half width to loop seamlessly since we duplicated the double-string */
}

/* GSAP Defaults (hiding prior to scroll) */
.gsap-reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* Media Queries */
@media (max-width: 1024px) {
    .nav { display: none; }
    .two-col {
        flex-direction: column;
        gap: 3rem;
    }
    .col.right { padding-top: 0; }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 5vw;
        justify-content: flex-end;
    }
    .skill-item:hover {
        padding-left: 0; /* Remove hover shift on mobile */
    }
    .dot-cursor {
        display: none; /* Disable custom cursor on mobile */
    }
    body {
        cursor: auto;
    }
    a, button {
        cursor: pointer;
    }
}
