/* Reset and Base Styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    overflow-x: hidden; 
    font-family: 'Fredoka One', cursive;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fcc12a 0%, #ffdd66 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-logo {
    font-size: 48px;
    color: #2d4628;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Navigation Styles */
.nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.navbar {
    background-color: #2d4628;
    height: 60px;
    width: 90vw;
    max-width: 800px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    color: white;
    padding: 0 20px;
}

.navbar.shrink {
    width: 180px;
    justify-content: center;
    cursor: pointer;
}

.logo {
    font-size: clamp(18px, 4vw, 24px);
    transition: all 0.5s ease;
}

.nav-items {
    display: flex;
    gap: 30px;
    transition: all 1.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    align-items: center;
}

.nav-item {
    font-size: clamp(12px, 2.5vw, 16px);
    cursor: pointer;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover { 
    transform: scale(1.1); 
}

.nav-items.hidden {
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none;
}

#navbar.shrink .navbar-container {
    width: 180px;
    justify-content: center;
    cursor: pointer;
}

#navbar.shrink .nav-items {
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none;
}

#navbar.shrink .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 1 !important;
}

@media (max-width: 768px) {
    #navbar.shrink .navbar-container {
        width: 160px;
    }
}

/* Ticker Styles */
.ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

.ticker-container.hide {
    transform: translateY(100px);
    opacity: 0;
}

.ticker-line {
    width: 100%;
    height: 2px;
    background: #2d4628;
    transform: scaleX(0);
    transform-origin: left;
    animation: drawLine 1s ease-out 1s forwards;
}

.ticker-text {
    background: #2d4628;
    color: #fcc12a;
    padding: 8px 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
}

.ticker-scroll {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

@keyframes drawLine {
    to { transform: scaleX(1); }
}

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

/* Container and Page Layout Styles */
.container {
    width: 100%;
    height: 300vh;
}

.page {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.centered-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 75vh);
    height: auto;
    z-index: 2;
    max-width: 1400px;
    min-width: 400px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Product Showcase Styles */
.product-showcase {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    z-index: 2;
}

.showcase-bg {
    background: radial-gradient(ellipse at center, #fcc12a 0%, #ffdd66 40%, #fcc12a 100%);
    border-radius: 80px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    border: 8px solid #2d4628;
    box-shadow: 0 30px 60px rgba(45, 70, 40, 0.3);
    width: 100%;
}

.showcase-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(45, 70, 40, 0.03) 20px,
        rgba(45, 70, 40, 0.03) 40px
    );
}
 
.mascot {
    position: absolute;
    left: -30px; 
    top: 50%;
    width: 350px;
    height: auto;
    z-index: 1;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-50%) translateX(0px); }
    50% { transform: translateY(-50%) translateX(10px); }
}

.products-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.product-card {
    text-align: center;
    position: relative;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.product-card::before,
.product-card::after {
    display: none !important;
}

.product-image {
    width: 280px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-name {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    color: #2d4628;
    margin-bottom: 8px;
    width: 100%;
}

.product-flavor {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: rgba(45, 70, 40, 0.8);
    margin-bottom: 15px;
    width: 100%;
}

.flavor-description {
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    color: #2d4628;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    width: auto;
    display: inline-block;
}

/* Sparkle Animation */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fcc12a;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 60%; right: 10%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 1s; }
.sparkle:nth-child(4) { top: 40%; right: 25%; animation-delay: 1.5s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Wave and Footer Styles */
.page-3 {
    position: relative;
    overflow: hidden;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    overflow: hidden;
}

.wave-svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.wave-line {
    fill: none;
    stroke: #2d4628;
    stroke-width: 4;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.wave-line.animate {
    animation: drawWaveLine 1.5s ease-out forwards;
}

.wave-fill {
    fill: #2d4628;
    opacity: 0;
}

.wave-fill.animate {
    animation: fillWave 1s ease-out 1.5s forwards;
}

@keyframes drawWaveLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fillWave {
    to { opacity: 1; }
}

/* Footer Styles */
.footer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 100px 50px 40px;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
}

.footer-content.animate {
    animation: fadeInUp 1s ease-out 3.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.footer-main {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-section {
    max-width: 300px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #fcc12a;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #fcc12a;
    opacity: 0.9;
}

.footer-section li {
    font-size: 15px;
    line-height: 2;
    color: #fcc12a;
    opacity: 0.95;
}

.footer-section li i {
    margin-right: 8px;
    width: 18px;
    display: inline-block;
}

.newsletter-section {
    width: 300px;
    flex-shrink: 0;
}

.newsletter-box {
    background: rgba(252, 193, 42, 0.1);
    border: 2px solid #fcc12a;
    border-radius: 20px;
    padding: 25px;
}

.newsletter-title {
    font-size: 22px;
    color: #fcc12a;
    margin-bottom: 10px;
}

.newsletter-subtitle {
    font-size: 14px;
    color: #fcc12a;
    opacity: 0.8;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d4628;
    font-size: 14px;
    text-align: center;
}

.newsletter-input::placeholder {
    color: #2d4628;
    opacity: 0.7;
}

.newsletter-btn {
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: #fcc12a;
    color: #2d4628;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #e6ad24;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    color: #fcc12a;
    font-size: 12px;
    opacity: 0.7;
    padding-top: 20px;
    border-top: 1px solid rgba(252, 193, 42, 0.3);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* Popcorn Animation Styles */
#popcorn-anim-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    pointer-events: none;
    z-index: 3;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.popcorn-anim {
    position: absolute;
    width: 48px;
    height: 48px;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 3;
}

/* Mobile Footer Styles */
.mobile-footer {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2d4628;
    padding: 40px 20px 20px;
    text-align: center;
}

.mobile-footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.mobile-newsletter {
    background: rgba(252, 193, 42, 0.1);
    border: 2px solid #fcc12a;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.mobile-newsletter-title {
    color: #fcc12a;
    font-size: 20px;
    margin-bottom: 8px;
}

.mobile-newsletter-subtitle {
    color: #fcc12a;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.mobile-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-newsletter-input {
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d4628;
    font-size: 14px;
    text-align: center;
}

.mobile-newsletter-btn {
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: #fcc12a;
    color: #2d4628;
    font-size: 14px;
    cursor: pointer;
}

.mobile-social {
    margin-bottom: 25px;
    color: #fcc12a;
}

.mobile-social-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 24px;
}

.mobile-social-links a {
    transition: transform 0.2s ease;
}

.mobile-social-links a:hover {
    transform: scale(1.2);
}

.mobile-contact {
    color: #fcc12a;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 2;
    opacity: 0.95;
}

.mobile-contact i {
    margin-right: 6px;
    width: 16px;
    display: inline-block;
}

.mobile-footer-bottom {
    color: #fcc12a;
    font-size: 11px;
    opacity: 0.8;
    padding-top: 20px;
    border-top: 1px solid rgba(252, 193, 42, 0.3);
    line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-container { 
        top: 15px;
    }
    
    .navbar {
        width: 95vw;
        height: 50px;
        border-radius: 25px;
        padding: 0 15px;
    }

    .logo {
        font-size: 18px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .navbar.shrink .logo {
        opacity: 1;
    }

    .nav-items {
        display: flex;
        gap: 15px;
        font-size: 12px;
    }

    .nav-item {
        white-space: nowrap;
    }

    .hamburger {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Smaller mobile styles (existing media query styles) */
    /* ... rest of the existing media query styles ... */
}

@media (max-width: 380px) {
    /* Smallest mobile styles (existing media query styles) */
    /* ... rest of the existing media query styles ... */
}

@media (max-height: 500px) and (orientation: landscape) {
    /* Landscape mobile styles (existing media query styles) */
    /* ... rest of the existing media query styles ... */
}

@media (min-width: 1200px) {
    /* Large screen styles (existing media query styles) */
    /* ... rest of the existing media query styles ... */
}

@media (min-width: 1600px) {
    /* Extra large screen styles (existing media query styles) */
    /* ... rest of the existing media query styles ... */
}

@media (max-width: 1200px) {
    .product-card {
        width: calc(50% - 30px);
    }

    .mascot {
        width: 150px;
    }
}

@media (max-width: 992px) {
    .showcase-bg {
        padding: 30px 15px;
    }

    .products-container {
        gap: 20px;
    }

    .product-card {
        width: calc(50% - 20px);
        min-width: 220px;
    }

    .mascot {
        width: 130px;
        left: -15px;
    }
}

@media (max-width: 768px) {
    .showcase-bg {
        padding: 50px 10px 100px;
        border-radius: 30px;
        overflow: visible;
        position: relative;
        min-height: 600px;
    }

    .mascot {
        width: 80px;
        left: 15px;
        top: 15px;
        transform: none;
        z-index: 5;
    }

    .products-container {
        position: relative;
        height: 500px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 30px;
        perspective: 1200px;
    }

    .product-card {
        position: absolute;
        width: 90%;
        max-width: 360px;
        height: 520px;
        padding: 40px 20px 30px;
        background: transparent;
        border-radius: 40px;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .product-card:nth-child(1) {
        transform: translateX(-120px) scale(0.75) rotateY(25deg);
        opacity: 0.4;
        filter: blur(3px);
        z-index: 1;
    }

    .product-card:nth-child(2) {
        transform: translateX(0) scale(1) rotateY(0deg);
        opacity: 1;
        filter: blur(0) !important;
        z-index: 3;
        box-shadow: none;
    }

    .product-card:nth-child(3) {
        transform: translateX(120px) scale(0.75) rotateY(-25deg);
        opacity: 0.4;
        filter: blur(3px);
        z-index: 1;
    }

    .product-card.moving-left {
        transform: translateX(-120px) scale(0.75) rotateY(25deg) !important;
        opacity: 0.4 !important;
        filter: blur(3px) !important;
        z-index: 1 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .product-card.moving-center {
        transform: translateX(0) scale(1) rotateY(0deg) !important;
        opacity: 1 !important;
        filter: blur(0) !important;
        z-index: 3 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .product-card.moving-right {
        transform: translateX(120px) scale(0.75) rotateY(-25deg) !important;
        opacity: 0.4 !important;
        filter: blur(3px) !important;
        z-index: 1 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .product-image {
        width: 260px;
        margin-bottom: 25px;
        transition: all 0.6s ease;
    }

    .product-name {
        font-size: 28px;
        margin-bottom: 10px;
        transition: all 0.4s ease;
    }

    .product-flavor {
        font-size: 18px;
        margin-bottom: 15px;
        transition: all 0.4s ease;
    }

    .flavor-description {
        font-size: 14px;
        padding: 10px 18px;
        background: transparent;
        border-radius: 20px;
        text-align: center;
        transition: all 0.4s ease;
        line-height: 1.5;
    }

    .product-card:nth-child(1) .product-name,
    .product-card:nth-child(1) .product-flavor,
    .product-card:nth-child(1) .flavor-description,
    .product-card:nth-child(3) .product-name,
    .product-card:nth-child(3) .product-flavor,
    .product-card:nth-child(3) .flavor-description {
        opacity: 0.2;
    }

    .product-card:nth-child(1) .product-image,
    .product-card:nth-child(3) .product-image {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .showcase-bg {
        padding: 25px 10px;
        border-radius: 25px;
    }

    .mascot {
        width: 80px;
        left: 10px;
        top: 10px;
    }

    .product-card {
        width: 100%;
        max-width: 280px;
        margin: 12px 0;
        padding: 18px;
    }

    .product-image {
        width: 180px;
    }

    .product-name {
        font-size: 22px;
    }

    .product-flavor {
        font-size: 15px;
    }

    .flavor-description {
        font-size: 12px;
        padding: 7px 14px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .showcase-bg {
        padding: 20px 10px;
    }

    .mascot {
        width: 80px;
        left: -5px;
    }

    .product-card {
        min-width: 180px;
        padding: 5px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-flavor {
        font-size: 13px;
    }

    .flavor-description {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Utility Classes */
.desktop-only {
    display: block;
}

.mobile-footer {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-footer {
        display: block;
    }
}

/* Active Navigation Item */
.nav-item.active {
    color: #fcc12a;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .centered-logo {
        width: min(85vw, 65vh);
        min-width: 300px;
        max-width: 1000px;
    }
}

@media (max-width: 480px) {
    .centered-logo {
        width: min(90vw, 70vh);
        min-width: 280px;
        max-width: 900px;
    }
}

@media (max-width: 380px) {
    .centered-logo {
        width: min(95vw, 75vh);
        min-width: 250px;
        max-width: 800px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .centered-logo {
        width: min(50vw, 70vh);
        min-width: 140px;
    }
}

@media (min-width: 1200px) {
    .centered-logo {
        width: min(85vw, 80vh);
        max-width: 1600px;
        min-width: 600px;
    }
}

@media (min-width: 1600px) {
    .centered-logo {
        width: min(75vw, 85vh);
        max-width: 1800px;
        min-width: 700px;
    }
}
                                                                            