/* --- Global Variables & Reset --- */
:root {
    --primary-orange: #FF6B35;
    --espresso-dark: #1A110A;
    --forest-green: #1B2B1E;
    --rich-brown: #2D1B10;
    --cream-bg: #F9F6F0;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    list-style: none;
    text-decoration: none;
}

body {
    background-color: var(--espresso-dark);
    color: var(--white);
    overflow-x: hidden;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.nav-links a {
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--primary-orange);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.logo h2 {
    font-family: 'Chewy', cursive;
    color: var(--white);
    font-size: 2rem;
    letter-spacing: 1px;
}

.hero-logo {
    height: 100px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 10, 5, 0.98);
        /* Deep premium dark glass */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 99;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links a {
        font-family: 'Chewy', cursive;
        font-size: clamp(2rem, 10vw, 3.5rem);
        color: var(--white) !important;
        letter-spacing: 2px;
        transition: all 0.3s ease;
        text-transform: uppercase;
    }

    .nav-links a:hover {
        color: var(--primary-orange) !important;
        transform: scale(1.1);
    }

    /* Staggered link animation */
    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.6s;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 7px;
        cursor: pointer;
        z-index: 100;
        position: relative;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px;
        border-radius: 10px;
        backdrop-filter: blur(5px);
    }

    .menu-toggle span {
        display: block;
        width: 32px;
        height: 3.5px;
        background: var(--white);
        transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-radius: 5px;
    }

    /* Animate Hamburger to X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
        background: var(--primary-orange);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
        background: var(--primary-orange);
    }
}

.menu-toggle {
    display: none;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--white) !important;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 3px solid var(--espresso-dark);
    box-shadow: 4px 4px 0px var(--espresso-dark);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--espresso-dark);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--espresso-dark);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--white);
    color: var(--espresso-dark);
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 3px solid var(--espresso-dark);
    box-shadow: 4px 4px 0px var(--espresso-dark);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--espresso-dark);
}

/* --- Animations --- */
@keyframes character-dance {

    0%,
    100% {
        transform: translateY(0) rotate(0) scale(1);
    }

    25% {
        transform: translateY(-10px) rotate(-3deg) scale(1.02, 0.98);
    }

    50% {
        transform: translateY(0) rotate(0) scale(1);
    }

    75% {
        transform: translateY(-10px) rotate(3deg) scale(1.02, 0.98);
    }
}

@keyframes floating-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.dancing-character {
    animation: character-dance 2s ease-in-out infinite;
    transform-origin: bottom center;
}

.dancing-character:hover {
    animation-duration: 0.8s;
    /* VIBE BOOST! */
}

.floating-character {
    animation: floating-float 4s ease-in-out infinite;
}

/* --- Sticker Components --- */
.sticker-card {
    background: var(--white);
    padding: 30px;
    border: 3px solid var(--espresso-dark);
    border-radius: 20px;
    box-shadow: 8px 8px 0px var(--primary-orange);
    color: var(--espresso-dark);
    transition: transform 0.3s ease;
}

.sticker-card:hover {
    transform: translateY(-5px);
}

.sticker-img {
    border: 3px solid var(--espresso-dark);
    border-radius: 15px;
    box-shadow: 6px 6px 0px var(--espresso-dark);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Varied Shapes */
.sticker-circle {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sticker-blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% !important;
}

.sticker-angled {
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    border-radius: 0 !important;
}

.sticker-bespoke {
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40% !important;
    aspect-ratio: 1 / 1;
}

.bg-pattern {
    background:
        radial-gradient(ellipse at top left, rgba(101, 67, 33, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(255, 107, 53, 0.2) 0%, transparent 60%),
        linear-gradient(135deg, #1a110a 0%, #2c1a10 35%, #1a1108 65%, #0f0a05 100%);
    background-attachment: fixed;
}

.video-sticker {
    position: relative;
    border: 4px solid var(--espresso-dark);
    box-shadow: 10px 10px 0px var(--primary-orange);
    border-radius: 25px;
    overflow: hidden;
    line-height: 0;
}

.video-sticker video {
    width: 100%;
    height: auto;
    display: block;
}

.vibe-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.vibe-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4);
}

/* --- Sections & Dividers --- */
section {
    padding: 100px 8%;
    position: relative;
}

.bg-cream {
    background-color: var(--cream-bg);
    color: var(--espresso-dark);
}

.bg-espresso {
    background-color: var(--espresso-dark);
    color: var(--white);
}

.bg-forest {
    background-color: var(--forest-green);
    color: var(--white);
}

.wavy-divider {
    position: relative;
    height: 60px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.wavy-bottom {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231A110A" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    margin-top: -1px;
}

/* --- Content Styling --- */
.section-title {
    font-family: 'Chewy', cursive;
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 50px;
}

.split-layout>div {
    flex: 1;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    background-color: var(--espresso-dark);
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('assets/setup-daytime.jpeg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    position: relative;
}

.hero h1 {
    color: var(--white);
    font-family: 'Chewy', cursive;
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px var(--primary-orange);
}

.hero p {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 8px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar {
        padding: 20px 5%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        /* Keep logo and hamburger on same line */
        justify-content: space-between;
        align-items: center;
        background: transparent;
        /* Keep it slick */
        padding: 20px 5%;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3.2rem) !important;
        text-shadow: 2px 2px 0px var(--primary-orange);
    }

    .hero p {
        font-size: 0.95rem;
        padding: 8px 15px;
    }

    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    }

    section {
        padding: 50px 5%;
    }

    .logo img {
        height: 45px;
    }

    .split-layout {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .split-layout .story-text {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .stat-item .number {
        font-size: 2.5rem;
    }

    .sticker-img {
        max-width: 90%;
        margin: 0 auto;
    }

    /* --- Back to Top Button --- */
    .back-to-top {
        position: fixed;
        bottom: 30px;
        left: 30px;
        width: 50px;
        height: 50px;
        background-color: var(--primary-orange);
        color: var(--white);
        border: 3px solid var(--espresso-dark);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 4px 4px 0px var(--espresso-dark);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: scale(1.1) translateY(-5px);
        box-shadow: 6px 6px 0px var(--espresso-dark);
        background-color: var(--white);
        color: var(--primary-orange);
    }

    .back-to-top:active {
        transform: scale(0.9);
        box-shadow: 0px 0px 0px var(--espresso-dark);
    }