/* Lighter, Performance-Optimized Design */
/* Reduced animations, simpler gradients, fewer shadows for better performance */

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

:root {
    --color-primary: #FF9933;
    --color-secondary: #FFB84D;
    --color-accent: #FFC850;
    --color-background: #F9FAFB;
    --color-text: #2C3E50;
    --color-white: #FFFFFF;
    --color-light-gray: #F3F4F6;
    --color-border: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Simplified bubbles - static decoration only */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.4;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 153, 51, 0.2), rgba(255, 153, 51, 0.05));
}

.bubble:nth-child(1) { left: 10%; top: 20%; width: 60px; height: 60px; }
.bubble:nth-child(2) { left: 70%; top: 40%; width: 40px; height: 40px; }
.bubble:nth-child(3) { left: 30%; top: 70%; width: 80px; height: 80px; }
.bubble:nth-child(4) { left: 85%; top: 15%; width: 50px; height: 50px; }
.bubble:nth-child(5) { left: 50%; top: 85%; width: 70px; height: 70px; }

/* Construction Banner */
.construction-banner {
    background-color: var(--color-accent);
    color: var(--color-text);
    padding: 0.75rem 2rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

.construction-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.construction-icon {
    font-size: 1.2rem;
}

.construction-text {
    font-size: 1rem;
}

/* Header */
.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 120px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo-image:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

/* Hero Section - Simplified gradient */
.hero {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-animation {
    margin-bottom: 2rem;
    display: inline-block;
}

.printer-icon {
    width: 120px;
    height: auto;
    display: block;
}

.printing-layers {
    display: none; /* Removed complex animation */
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #FFD970;
}

/* Story Section */
.story-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
}

.story-section.story-first {
    padding-top: 3rem;
}

.welcome-intro {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

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

.welcome-title {
    font-size: 3.5rem;
    color: #1B7F8E;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.welcome-tagline {
    font-size: 1.3rem;
    color: #2D6A75;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.story-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1B7F8E;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.story-subtitle-doodle {
    display: flex;
    justify-content: center;
    margin-top: -0.5rem;
}

.underline-doodle {
    width: 200px;
    height: 20px;
    opacity: 0.7;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #2D6A75;
    margin-bottom: 3rem;
}

.story-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-connector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF6B6B;
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.connector-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B 0%, #FFD93D 100%);
    border-radius: 2px;
}

.connector-dot {
    font-size: 1.5rem;
    font-weight: bold;
    animation: pulse 1.5s ease-in-out infinite;
}

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

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

.story-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 3px solid transparent;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    overflow: visible;
}

/* Chapter-specific styling */
.story-card.chapter-1 {
    background: linear-gradient(135deg, #fff 0%, #ffe8f0 100%);
    border-color: #FFB6C1;
}

.story-card.chapter-2 {
    background: linear-gradient(135deg, #fff 0%, #fff8e1 100%);
    border-color: #FFD93D;
}

.story-card.chapter-3 {
    background: linear-gradient(135deg, #fff 0%, #e8f5ff 100%);
    border-color: #6BCF7F;
}

.story-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.story-card.chapter-1:hover { border-color: #FF69B4; }
.story-card.chapter-2:hover { border-color: #FFC700; }
.story-card.chapter-3:hover { border-color: #4CAF50; }

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
}

.story-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.story-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

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

.icon-sparkles {
    position: absolute;
    top: -5px;
    right: -5px;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 1rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    top: -5px;
    right: -5px;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 5px;
    right: -15px;
    animation-delay: 0.7s;
}

.sparkle:nth-child(3) {
    top: -10px;
    right: 10px;
    animation-delay: 1.4s;
}

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

.story-card h3 {
    color: var(--color-secondary);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.story-content {
    position: relative;
    z-index: 1;
}

.story-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2D6A75;
}

.card-doodle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    opacity: 0.3;
    width: 50px;
    height: 50px;
}

.arrow-doodle {
    width: 100%;
    height: 100%;
    color: currentColor;
}

.celebration-stars {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.celebration-stars .star {
    font-size: 1.5rem;
    animation: twinkle 1.5s ease-in-out infinite;
    display: inline-block;
}

.celebration-stars .star:nth-child(1) { animation-delay: 0s; }
.celebration-stars .star:nth-child(2) { animation-delay: 0.5s; }
.celebration-stars .star:nth-child(3) { animation-delay: 1s; }

@keyframes twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.7; }
}

.fun-fact {
    background-color: var(--color-accent);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.1rem;
}

.fun-fact-label {
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Hot Now Section */
.hot-now-section {
    padding: 4rem 2rem;
    background-color: #FFF8F0;
    position: relative;
    z-index: 1;
}

.hot-now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.hot-now-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 2px solid var(--color-border);
    text-align: center;
    position: relative;
    transition: border-color 0.2s ease;
}

.hot-now-card:hover {
    border-color: var(--color-primary);
}

.hot-now-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.hot-now-emoji {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: block;
}

.hot-now-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.hot-now-description {
    color: #666;
    margin-bottom: 1rem;
}

.hot-now-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.hot-now-time {
    font-size: 0.9rem;
    color: #999;
}

/* Products Section */
.products-section {
    padding: 4rem 2rem;
    background: var(--color-light-gray);
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: border-color 0.2s ease;
}

.product-card:hover {
    border-color: var(--color-secondary);
}

.product-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.product-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.product-time {
    font-size: 0.9rem;
    color: #999;
}

.custom-order-banner {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.custom-order-banner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Goals Section */
.goals-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.goals-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-tracker {
    margin-bottom: 3rem;
}

.progress-bar {
    background: var(--color-light-gray);
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35%; /* Set default progress */
}

.progress-text {
    color: var(--color-white);
    font-weight: bold;
}

.goals-list {
    list-style: none;
    margin-bottom: 2rem;
}

.goals-list li {
    background: var(--color-white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.goals-list li::before {
    content: "🎓";
    font-size: 2rem;
}

.motivation-box {
    background-color: var(--color-accent);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.motivation-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.motivation-author {
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    background: var(--color-light-gray);
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.submit-button {
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: #FF8520;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.info-box h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 2rem;
    text-align: center;
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
    }

    .logo-image {
        height: 60px;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

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

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

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

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

    .welcome-title {
        font-size: 2.2rem;
    }

    .welcome-tagline {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .story-timeline {
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline-connector {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .story-card {
        max-width: 100%;
    }

    .story-cards,
    .hot-now-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 0;
    }

    .story-section,
    .hot-now-section,
    .products-section,
    .goals-section,
    .contact-section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .logo-image {
        height: 40px;
    }

    .nav-menu {
        font-size: 0.7rem;
        gap: 0.25rem;
        justify-content: center;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

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

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

    .welcome-title {
        font-size: 1.8rem;
    }

    .welcome-tagline {
        font-size: 1rem;
    }

    .story-section,
    .hot-now-section,
    .products-section,
    .goals-section,
    .contact-section {
        padding: 2.5rem 1rem;
    }

    .bubble {
        display: none; /* Remove on small screens for performance */
    }
}

/* Buy Now Button Styles */
.buy-now-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
    box-shadow: 0 2px 4px rgba(255, 153, 51, 0.2);
}

.buy-now-btn:hover {
    background-color: #FF8520;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(255, 153, 51, 0.3);
}

.buy-now-btn:active {
    transform: translateY(0);
}

.buy-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.buy-now-btn:disabled:hover {
    background-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(255, 153, 51, 0.2);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #FFF8F0 0%, #E8F4FF 100%);
    position: relative;
    z-index: 1;
}

.gallery-carousel {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.carousel-item {
    min-width: calc(100% / 3);
    width: calc(100% / 3);
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1rem;
}

/* Show 2 images on tablets */
@media (max-width: 768px) {
    .carousel-item {
        min-width: calc(100% / 2);
        width: calc(100% / 2);
    }
}

/* Show 1 image on mobile */
@media (max-width: 480px) {
    .carousel-item {
        min-width: 100%;
        width: 100%;
    }
}

.carousel-item img,
.carousel-item video {
    max-width: 100%;
    max-height: 150px !important;
    height: 150px !important;
    width: auto !important;
    object-fit: contain;
    border-radius: 12px;
}

.carousel-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-warm2));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: scale(1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator-dot.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

.indicator-dot:hover {
    background: var(--color-warm2);
    transform: scale(1.2);
}

/* Mobile responsiveness for gallery */
@media (max-width: 768px) {
    .gallery-section {
        padding: 3rem 0;
    }

    .gallery-carousel {
        gap: 0.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-item img,
    .carousel-item video {
        max-height: 150px !important;
        height: 150px !important;
    }

    .indicator-dot {
        width: 10px;
        height: 10px;
    }

    .indicator-dot.active {
        width: 24px;
    }
}
