/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

:root {
    /* Color Palette */
    --primary-color: #D4A574;
    --primary-dark: #B8885A;
    --secondary-color: #8B6F47;
    --accent-color: #F5E6D3;
    --text-dark: #2C2416;
    --text-light: #5C5346;
    --white: #FFFFFF;
    --light-bg: #FAF8F5;
    --border-color: #E8DFD3;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max-width: 1200px;

    /* Effects */
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.nav-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.5)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* ===================================
   Sections
   =================================== */

.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   Product Intro Section
   =================================== */

.product-intro {
    background-color: var(--light-bg);
}

/* ===================================
   Features Section
   =================================== */

.features {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   Product Details Section
   =================================== */

.product-details {
    background-color: var(--accent-color);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-item {
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 1rem;
}

.detail-item strong {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* ===================================
   Pricing Section
   =================================== */

.pricing {
    background-color: var(--white);
}

.pricing-subtitle {
    text-align: center;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--accent-color) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: 3px solid var(--secondary-color);
}

.pricing-card-featured .pricing-option-title,
.pricing-card-featured .pricing-description {
    color: var(--white);
}

.pricing-card-featured .amount {
    color: var(--white);
}

.pricing-card-featured .currency {
    color: var(--accent-color);
}

.best-value-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.pricing-option-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.pricing-description {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 2rem;
    color: var(--primary-color);
    align-self: flex-start;
    margin-top: 10px;
}

.amount {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ===================================
   How to Order Section
   =================================== */

.how-to-order {
    background-color: var(--light-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-text {
    color: var(--text-light);
    max-width: 300px;
    margin: 0 auto;
}

/* ===================================
   About Us Section
   =================================== */

.about-us {
    background-color: var(--white);
}

.about-text {
    font-size: 1.15rem;
}

/* ===================================
   Coming Soon Section
   =================================== */

.coming-soon {
    background-color: var(--light-bg);
}

.cakes-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.cake-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    aspect-ratio: 4 / 3;
}

.cake-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cake-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================
   Games Section
   =================================== */

.games-section {
    background-color: var(--white);
}

.games-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.game-card {
    display: block;
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--accent-color) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.game-card-active {
    cursor: pointer;
}

.game-card-active:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.game-card-active:hover .game-title,
.game-card-active:hover .game-description {
    color: var(--white);
}

.game-card-placeholder {
    opacity: 0.7;
    cursor: default;
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.game-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    transition: var(--transition);
}

.game-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.game-badge-inactive {
    background-color: var(--text-light);
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
    justify-items: center;
}

.contact-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 12px;
    transition: var(--transition);
    width: 100%;
    max-width: 300px;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-dark);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-separator {
    color: var(--primary-color);
    margin: 0 5px;
}

/* ===================================
   Tablet Styles (768px and up)
   =================================== */

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .cakes-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .games-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ===================================
   Desktop Styles (1024px and up)
   =================================== */

@media (min-width: 1024px) {
    :root {
        --section-padding: 100px 20px;
    }

    .hero {
        min-height: 700px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cakes-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .games-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   Animations
   =================================== */

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* ===================================
   Waitlist Modal
   =================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--accent-color) 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-title {
        font-size: 1.6rem;
    }
}
