* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #8dafb5;
    font-family: sans-serif;
}

#app {
    display: flex;
    width: 400vw;
    height: 100vh;
}

#app.slide-left {
    transform: translateX(-100vw);
}

#app.story-active {
    transform: translateX(-200vw);
}

#app.homepage-active {
    transform: translateX(-300vw);
}

.screen {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* --- Curtain Styles --- */
.curtain {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.curtain img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.curtain-left {
    left: 0;
    transform: translateX(-100%);
}

.curtain-right {
    right: 0;
    transform: translateX(100%);
}

/* When active, they cover the screen */
.curtains-closed .curtain-left {
    transform: translateX(0);
}

.curtains-closed .curtain-right {
    transform: translateX(0);
}

.hero {
    background-image: url("hero BG.png");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.welcome-container {
    position: absolute;
    top: 8%;
    left: 20%;
    width: 45%;
    max-width: 600px;
    z-index: 10;
    opacity: 0;
    animation: dropIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s forwards;
}

.welcome-text {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.2));
    animation: float 4s ease-in-out infinite;
    animation-delay: 1.4s;
}

.character {
    position: absolute;
    bottom: 5%;
    left: 8%;
    width: 35%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0px 20px 15px rgba(0, 0, 0, 0.4));
    z-index: 20;
    transform-origin: bottom center;
    opacity: 0;
    animation:
        slideInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards,
        idle 4s ease-in-out 1s infinite;
}

.space-btn {
    position: absolute;
    bottom: 8%;
    right: 20%;
    width: 25%;
    max-width: 300px;
    height: auto;
    cursor: none !important;
    z-index: 20;
    opacity: 0;
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s forwards;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.space-btn:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.space-btn:active,
.space-btn.pressed {
    transform: scale(0.85) !important;
    filter: brightness(0.9) !important;
}

/* --- Screen 2 Styles --- */

.screen-2 {
    background-image: url("2BG.png");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3%;
    justify-content: flex-start;
}

.screen2-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    color: white;
    text-align: center;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2%;
    opacity: 0;
    transform: translateY(-50px);
}

#app.slide-left .screen2-title {
    animation: dropInText 0.8s ease-out 0.8s forwards;
}

.characters-container {
    display: flex;
    justify-content: center;
    gap: 3%;
    width: 90%;
    max-width: 1400px;
}

.character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

#app.slide-left .character-card:nth-child(1) {
    animation: popUpCard 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s forwards;
}

#app.slide-left .character-card:nth-child(2) {
    animation: popUpCard 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s forwards;
}

#app.slide-left .character-card:nth-child(3) {
    animation: popUpCard 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.4s forwards;
}

.char-img {
    width: 100%;
    max-height: 42vh;
    object-fit: contain;
    height: auto;
    filter: drop-shadow(0px 20px 15px rgba(0, 0, 0, 0.4));
    margin-bottom: 10px;
    transition: filter 0.3s ease, scale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), translate 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: none !important;
}

.char-img:hover {
    scale: 1.05;
    translate: 0 -10px;
    filter: drop-shadow(0px 30px 20px rgba(0, 0, 0, 0.5)) brightness(1.1);
}

#app.slide-left .char-img {
    animation: idle 4s ease-in-out 2s infinite;
    transform-origin: bottom center;
}

.btn-img {
    width: 90%;
    max-width: 250px;
    max-height: 12vh;
    object-fit: contain;
    height: auto;
    cursor: none !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.btn-img:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.btn-img:active {
    transform: scale(0.9) !important;
    filter: brightness(0.8) !important;
}

/* --- Animations --- */

@keyframes dropIn {
    0% {
        transform: translateY(-100px) scale(0.8) rotate(-5deg);
        opacity: 0;
    }

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

@keyframes slideInLeft {
    0% {
        transform: translateX(-150px) scale(0.8) rotate(-10deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(150px) scale(0.8) rotate(10deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideInRightFlipped {
    0% {
        transform: translateX(150px) scaleX(-0.8) scaleY(0.8) rotate(10deg);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scaleX(-1) scaleY(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0) translateY(50px);
        opacity: 0;
    }

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

@keyframes popInCentered {
    0% {
        transform: translateX(-50%) scale(0) translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes dropInText {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popUpCard {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px) rotate(-1deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(-1deg);
    }
}

@keyframes idle {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.96) translateY(5px);
    }
}

@keyframes idleFlipped {

    0%,
    100% {
        transform: scaleX(-1) scaleY(1);
    }

    50% {
        transform: scaleX(-1) scaleY(0.96) translateY(5px);
    }
}

/* --- Screen Story Styles --- */
.screen-story {
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

#app.story-farmer .screen-story {
    background-image: url("farmerBG.png");
}

#app.story-bike .screen-story {
    background-image: url("bikeagencyBG.png");
}

#app.story-writer .screen-story {
    background-image: url("writerBG.png");
}

.story-char {
    position: absolute;
    bottom: 2%;
    height: auto;
    filter: drop-shadow(0px 20px 15px rgba(0, 0, 0, 0.4));
    z-index: 20;
    transform-origin: bottom center;
}

.left-char {
    left: 8%;
    width: 55%;
    max-width: 650px;
}

.right-char {
    right: 8%;
    width: 42%;
    max-width: 520px;
    transform: scaleX(-1);
}

.screen-story .story-char,
.screen-story .story-nav-buttons,
.screen-story .back-btn {
    opacity: 0;
}

#app.story-active .left-char {
    animation:
        slideInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards,
        idle 4s ease-in-out 1.1s infinite;
}

#app.story-active .right-char {
    animation:
        slideInRightFlipped 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s forwards,
        idleFlipped 4s ease-in-out 1.3s infinite;
}

#app.story-active .story-nav-buttons {
    animation: popInCentered 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.7s forwards;
}

#app.story-active .back-btn {
    animation: dropIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.9s forwards;
}

.story-nav-buttons {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 35%;
    max-width: 350px;
    z-index: 20;
}

.nav-btn-story {
    width: 45%;
    height: auto;
    cursor: none !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.nav-btn-story:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.nav-btn-story:active,
.nav-btn-story.pressed {
    transform: scale(0.85) !important;
    filter: brightness(0.9) !important;
}

.back-btn {
    position: absolute;
    top: 2%;
    left: 1%;
    width: 13%;
    max-width: 120px;
    height: auto;
    cursor: none !important;
    z-index: 50;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.back-btn:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.back-btn:active,
.back-btn.pressed {
    transform: scale(0.85) !important;
    filter: brightness(0.9) !important;
}

.skip-btn {
    position: fixed;
    top: 2%;
    right: 1%;
    width: 13%;
    max-width: 120px;
    height: auto;
    cursor: none !important;
    z-index: 100;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease, opacity 0.5s ease;
}

.skip-btn:hover {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.skip-btn:active,
.skip-btn.pressed {
    transform: scale(0.85) !important;
    filter: brightness(0.9) !important;
}


.speech-bubble {
    position: absolute;
    bottom: 60%;
    background: #150a05;
    color: white;
    padding: 14px 28px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    max-width: 400px;
    z-index: 30;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.speech-bubble.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.bubble-left {
    left: 20%;
}

.bubble-left::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 35px;
    border-width: 20px 20px 0 0;
    border-style: solid;
    border-color: #150a05 transparent transparent transparent;
}

.bubble-right {
    right: 20%;
}

.bubble-right::after {
    content: '';
    position: absolute;
    bottom: -18px;
    right: 35px;
    border-width: 20px 0 0 20px;
    border-style: solid;
    border-color: #150a05 transparent transparent transparent;
}

@keyframes bounceTalk {
    0% {
        transform: scaleY(1) translateY(0);
    }

    100% {
        transform: scaleY(0.95) translateY(-15px);
    }
}

/* Responsiveness for smaller screens */
@media (max-width: 768px) {

    /* Screen 1: Hero */
    .welcome-container {
        width: 80%;
        left: 50%;
        translate: -50% 0;
        top: 12%;
    }

    .character {
        width: 75%;
        left: 50%;
        translate: -50% 0;
        bottom: 15%;
    }

    .space-btn {
        width: 55%;
        right: auto;
        left: 50%;
        translate: -50% 0;
        bottom: 6%;
    }

    /* Screen 2: Choose */
    .screen-2 {
        padding-top: 8%;
        overflow-y: auto;
        overflow-x: hidden;
        justify-content: flex-start;
    }

    .screen2-title {
        font-size: 2.2rem;
        margin-bottom: 5%;
        padding: 0 10px;
    }

    .characters-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-bottom: 60px;
        width: 100%;
    }

    .character-card {
        width: 80%;
        max-width: 320px;
    }

    .char-img {
        max-height: 35vh;
    }

    /* Screen 3: Story */
    .left-char {
        width: 65%;
        left: -8%;
        bottom: 15%;
    }

    .right-char {
        width: 55%;
        right: -5%;
        bottom: 15%;
    }

    .speech-bubble {
        font-size: 1.2rem;
        padding: 15px 20px;
        top: auto;
        bottom: 44%;
        max-width: 80%;
        z-index: 40;
    }

    .bubble-left {
        left: 10%;
    }

    .bubble-left::after {
        bottom: auto;
        top: 98%;
        /* Slightly overlap to avoid gaps */
        left: 40px;
        border-width: 20px 20px 0 0;
        border-color: #150a05 transparent transparent transparent;
    }

    .bubble-right {
        right: 10%;
    }

    .bubble-right::after {
        bottom: auto;
        top: 98%;
        /* Slightly overlap to avoid gaps */
        right: 40px;
        border-width: 20px 0 0 20px;
        border-color: #150a05 transparent transparent transparent;
    }

    .story-nav-buttons {
        width: 85%;
        bottom: 4%;
    }

    .back-btn {
        width: 20%;
        max-width: 80px;
        top: 3%;
        left: 3%;
    }
}

/* ========================================= */
/* --- Main Homepage Styles (State 5) ------ */
/* ========================================= */

.screen-home {
    background-color: #f4f1ea;
    background-image: radial-gradient(#d4d0c8 2px, transparent 2px);
    background-size: 30px 30px;
    color: #150a05;
    overflow: hidden;
}

.home-scroll-container {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 80px; /* Offset for fixed header */
    background-size: cover;
    background-attachment: fixed;
}

/* Custom Scrollbar for the scroll container */
.home-scroll-container::-webkit-scrollbar {
    width: 12px;
}
.home-scroll-container::-webkit-scrollbar-track {
    background: #f4f1ea;
    border-left: 3px solid #150a05;
}
.home-scroll-container::-webkit-scrollbar-thumb {
    background: #fff;
    border: 3px solid #150a05;
    border-radius: 6px;
}

/* Typography & Layout Utility */
.screen-home h1, .screen-home h2, .screen-home h3, .screen-home h4, .screen-home button, .screen-home .nav-link, .screen-home .hero-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: #150a05;
    text-shadow: 1px 1px 0px #fff;
}
.screen-home p {
    line-height: 1.6;
    color: #150a05;
    font-family: sans-serif;
    font-weight: 600;
}
.section-tag {
    display: inline-block;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #150a05;
    background: #fcd34d; /* Bright Yellow */
    padding: 6px 16px;
    border-radius: 20px;
    border: 3px solid #150a05;
    box-shadow: 4px 4px 0px #150a05;
    margin-bottom: 1rem;
    transform: rotate(-3deg);
}
.section-tag.light {
    background: #f472b6; /* Bright Pink */
}

/* Hand-Drawn Buttons */
.screen-home a.cta-btn, .screen-home button.replay-btn, .screen-home .primary-hero-btn, .screen-home .secondary-hero-btn, .screen-home .claim-estimate-btn, .screen-home .submit-btn {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    background: #fff;
    color: #150a05;
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 50px;
    border: 3px solid #150a05;
    font-weight: 700;
    box-shadow: 0px 5px 0px #150a05;
    transition: transform 0.1s, box-shadow 0.1s;
    display: inline-block;
    text-transform: uppercase;
}
.screen-home a.cta-btn:hover, .screen-home button.replay-btn:hover, .screen-home .claim-estimate-btn:hover, .screen-home .submit-btn:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0px 8px 0px #150a05;
}
.screen-home a.cta-btn:active, .screen-home button.replay-btn:active, .screen-home .primary-hero-btn:active, .screen-home .secondary-hero-btn:active, .screen-home .claim-estimate-btn:active, .screen-home .submit-btn:active {
    transform: translateY(4px);
    box-shadow: 0px 1px 0px #150a05;
}

/* Header / Navbar */
.home-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Increased slightly to fit thick buttons */
    background: #f4f1ea; /* Paper white */
    z-index: 100;
    border-bottom: 4px solid #150a05;
}
.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 2rem;
    font-family: 'Caveat', cursive;
    font-weight: 900;
    color: #150a05;
    text-shadow: 2px 2px 0px #fff;
    white-space: nowrap;
}
.logo-highlight {
    color: #f472b6; /* Pink accent */
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-link {
    color: #150a05;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    transition: transform 0.2s;
    white-space: nowrap;
}
.nav-link:hover {
    transform: rotate(-5deg) scale(1.1);
    color: #f472b6;
}
.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.nav-actions .replay-btn, .nav-actions .cta-btn {
    font-size: 1.3rem !important;
    padding: 6px 18px !important;
    white-space: nowrap;
}

/* Hero Section */
.home-hero {
    padding: 100px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 85vh;
    justify-content: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 3px solid #150a05;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 4px 4px 0px #150a05;
    transform: rotate(2deg);
}
.badge-dot {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #150a05;
}
.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
    color: #150a05;
    text-shadow: 2px 2px 0px #fff, -1px -1px 0px #fff, 1px -1px 0px #fff, -1px 1px 0px #fff, 1px 1px 0px #fff;
}
.gradient-text {
    color: #fcd34d; /* Bright yellow */
    text-shadow: 3px 3px 0px #150a05, -1px -1px 0 #150a05, 1px -1px 0 #150a05, -1px 1px 0 #150a05, 1px 1px 0 #150a05;
    display: inline-block;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}
.hero-subtitle {
    font-size: 1.8rem;
    font-family: 'Caveat', cursive;
    max-width: 750px;
    margin-bottom: 3rem;
    background: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    border: 3px solid #150a05;
    box-shadow: 5px 5px 0px #150a05;
    transform: rotate(-1deg);
    line-height: 1.3;
}
.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 5rem;
}
.primary-hero-btn {
    background: #fcd34d !important;
    font-size: 1.6rem !important;
    padding: 12px 36px !important;
    font-family: 'Caveat', cursive;
    color: #150a05;
    text-decoration: none;
    border-radius: 50px;
    border: 3px solid #150a05;
    font-weight: 700;
    box-shadow: 0px 5px 0px #150a05;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    display: inline-block;
}
.primary-hero-btn:hover {
    transform: translateY(-4px) rotate(-2deg);
    box-shadow: 0px 9px 0px #150a05;
}
.primary-hero-btn:active {
    transform: translateY(4px) rotate(1deg) !important;
    box-shadow: 0px 1px 0px #150a05 !important;
}

.secondary-hero-btn {
    background: #fff !important;
    font-size: 1.6rem !important;
    padding: 12px 36px !important;
    font-family: 'Caveat', cursive;
    color: #150a05;
    text-decoration: none;
    border-radius: 50px;
    border: 3px solid #150a05;
    font-weight: 700;
    box-shadow: 0px 5px 0px #150a05;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    display: inline-block;
}
.secondary-hero-btn:hover {
    transform: translateY(-4px) rotate(2deg);
    box-shadow: 0px 9px 0px #150a05;
}
.secondary-hero-btn:active {
    transform: translateY(4px) rotate(-1deg) !important;
    box-shadow: 0px 1px 0px #150a05 !important;
}

.hero-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-doodle {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 0;
}
.doodle-1 { top: 10%; left: 2%; animation: float 6s ease-in-out infinite; transform: rotate(-15deg); width: 70px; height: 70px; }
.doodle-2 { top: 15%; right: 2%; animation: float 5s ease-in-out infinite 1s; width: 60px; height: 60px; }
.doodle-3 { top: 40%; left: 5%; animation: float 7s ease-in-out infinite 2s; transform: rotate(10deg); width: 80px; height: 80px; }
.doodle-4 { top: 45%; right: 8%; animation: float 4s ease-in-out infinite 0.5s; transform: rotate(-10deg); width: 90px; height: 90px; }

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 4px dashed #150a05;
    padding-top: 3rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}
.stat-card {
    text-align: center;
    background: #fff;
    border: 3px solid #150a05;
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 5px 5px 0px #150a05;
    transform: rotate(-1deg);
}
.stat-card:nth-child(even) {
    transform: rotate(2deg);
}
.stat-number {
    font-size: 3.5rem;
    font-family: 'Caveat', cursive;
    color: #f472b6;
    margin-bottom: 0px;
    text-shadow: 2px 2px 0px #150a05;
}
.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections Global */
.services-section, .case-studies-section, .estimator-section, .process-section, .contact-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 3px 3px 0px #150a05, -1px -1px 0 #150a05, 1px -1px 0 #150a05, -1px 1px 0 #150a05, 1px 1px 0 #150a05;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 10px 20px;
    border: 3px solid #150a05;
    border-radius: 10px;
    box-shadow: 4px 4px 0px #150a05;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}
.service-card {
    background: #fff;
    border: 4px solid #150a05;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 8px 8px 0px #150a05;
    transition: transform 0.2s;
}
.service-card:hover {
    transform: translateY(-5px) rotate(-2deg);
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #150a05;
    box-shadow: 3px 3px 0px #150a05;
}
.service-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.service-features {
    list-style: none;
}
.service-features li {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #150a05;
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    gap: 4rem;
}
.case-card {
    display: flex;
    background: #fff;
    border: 4px solid #150a05;
    border-radius: 25px;
    box-shadow: 10px 10px 0px #150a05;
    overflow: hidden;
}
.case-image-container {
    width: 45%;
    position: relative;
    background: #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    border-right: 4px solid #150a05;
}
.case-avatar {
    width: 80%;
    max-height: 120%;
    object-fit: contain;
    transform: translateY(20px);
}
.case-mockup-graphic {
    position: absolute;
    top: 20px;
    left: -20px;
    background: #fcd34d;
    color: #150a05;
    padding: 15px 25px;
    border-radius: 12px;
    border: 3px solid #150a05;
    box-shadow: 4px 4px 0px #150a05;
    transform: rotate(-5deg);
    font-family: 'Caveat', cursive;
}
.mock-badge {
    font-weight: 800;
    font-size: 1.5rem;
    display: block;
}
.mock-price-tag {
    color: #f472b6;
    font-size: 1.2rem;
    font-weight: 700;
}
.case-content {
    width: 55%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.case-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    font-weight: 800;
    color: #150a05;
    background: #4ade80;
    padding: 8px 16px;
    border-radius: 20px;
    border: 3px solid #150a05;
    box-shadow: 4px 4px 0px #150a05;
    transform: rotate(3deg);
}
.case-content h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.case-problem, .case-solution {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px dashed #150a05;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.case-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.metric {
    display: flex;
    flex-direction: column;
    background: #fcd34d;
    padding: 10px 20px;
    border-radius: 15px;
    border: 3px solid #150a05;
    box-shadow: 4px 4px 0px #150a05;
    transform: rotate(-2deg);
}
.metric-val {
    font-size: 2.5rem;
    font-family: 'Caveat', cursive;
    font-weight: 800;
    color: #150a05;
}

/* Estimator */
.estimator-container {
    background: #fff;
    border: 4px solid #150a05;
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 12px 12px 0px #150a05;
    position: relative;
}
.step-label {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: #150a05;
    margin-bottom: 1.5rem;
}
.opt-card {
    background: #f8f9fa;
    border: 3px solid #150a05;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 4px 4px 0px #150a05;
}
.opt-card:hover {
    transform: translateY(-3px);
    box-shadow: 7px 7px 0px #150a05;
}
.opt-card.active {
    background: #fcd34d;
    transform: scale(1.05);
}
.opt-card h4 {
    font-size: 1.8rem;
}
.feature-chip {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    border: 3px solid #150a05;
    box-shadow: 4px 4px 0px #150a05;
    transition: all 0.2s;
}
.feature-chip.active {
    background: #4ade80;
}
.feature-chip input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #150a05;
    border: 2px solid #150a05;
}
.feature-chip span {
    font-weight: 700;
    color: #150a05;
}
.estimator-summary {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    border: 4px dashed #150a05;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}
.sum-title {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #150a05;
}
.sum-price, .sum-time {
    font-size: 3rem;
    font-family: 'Caveat', cursive;
    font-weight: 800;
    color: #f472b6;
    text-shadow: 2px 2px 0px #fff;
}
.claim-estimate-btn {
    background: #38bdf8 !important;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}
.process-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 4px solid #150a05;
    box-shadow: 6px 6px 0px #150a05;
    position: relative;
    transform: rotate(1deg);
}
.process-card:nth-child(even) {
    transform: rotate(-1deg);
    background: #f8f9fa;
}
.step-num {
    position: absolute;
    top: -25px;
    left: -20px;
    font-size: 3.5rem;
    font-family: 'Caveat', cursive;
    font-weight: 900;
    color: #fff;
    background: #f472b6;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #150a05;
    box-shadow: 3px 3px 0px #150a05;
}
.process-card h3 {
    font-size: 2rem;
    margin-top: 1rem;
}

/* Contact */
.contact-card-box {
    display: flex;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    border: 4px solid #150a05;
    box-shadow: 12px 12px 0px #150a05;
}
.contact-info {
    width: 40%;
    background: #fcd34d;
    padding: 4rem;
    border-right: 4px solid #150a05;
}
.contact-info h2 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 0px #fff;
}
.contact-meta {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #150a05;
    box-shadow: 4px 4px 0px #150a05;
}
.contact-form {
    width: 60%;
    padding: 4rem;
    background: #f8f9fa;
}
.form-group label {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #150a05;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: #fff;
    border: 3px solid #150a05;
    border-radius: 10px;
    padding: 12px 16px;
    color: #150a05;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 3px 3px 0px #150a05;
    margin-bottom: 10px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px #150a05;
}
.submit-btn {
    background: #4ade80 !important;
}

/* Footer */
.home-footer {
    background: transparent;
    padding: 4rem 5% 2rem;
    border-top: 4px solid #150a05;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
}
.footer-brand .logo-text {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 900;
}
.footer-brand p {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: #150a05;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: #150a05;
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}
.footer-links a:hover {
    color: #f472b6;
    transform: rotate(-5deg) scale(1.1);
}
.footer-copy {
    width: 100%;
    border-top: 3px dashed #150a05;
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    text-align: center;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* About Us Section */
.about-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}
.about-content {
    flex: 1;
    min-width: 300px;
}
.about-content h2 {
    font-size: 3.5rem;
    font-family: 'Caveat', cursive;
    margin-bottom: 1.5rem;
    color: #150a05;
}
.about-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.about-image {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border: 4px solid #150a05;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 6px 6px 0px #150a05;
    transform: rotate(2deg);
    position: relative;
    text-align: center;
}
.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 5%;
    max-width: 900px;
    margin: 0 auto;
}
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.faq-item {
    background: #fff;
    border: 3px solid #150a05;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 4px 4px 0px #150a05;
    transition: transform 0.2s;
}
.faq-item:hover {
    transform: translateX(5px);
}
.faq-question {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f472b6;
}
.faq-answer {
    font-family: sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 600;
}

/* Final CTA Section */
.cta-section {
    padding: 40px 5% 80px;
    max-width: 1000px;
    margin: 0 auto;
}
.cta-banner {
    background: #fcd34d;
    border: 4px dashed #150a05;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 8px 8px 0px #150a05;
    transform: rotate(-1deg);
}
.cta-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Caveat', cursive;
}
.cta-banner p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .case-card { flex-direction: column; }
    .case-image-container { width: 100%; height: 300px; border-right: none; border-bottom: 4px solid #150a05; }
    .case-content { width: 100%; padding: 2rem; }
    .estimator-container { padding: 2rem; }
    .estimator-summary { flex-direction: column; gap: 2rem; text-align: center; }
    .contact-card-box { flex-direction: column; }
    .contact-info, .contact-form { width: 100%; padding: 2rem; border-right: none; }
}
