/* ==========================================
   LEI-LO - Final Professional Black Version
   ========================================== */

:root {
    --primary-black: #1a1a1a;
    --sakura-pink: #FFB7C5;
    --sakura-deep: #000000;
    --gold: #D4AF37;
    --navy: #1a1a2e;
    --cream: #FAF9F6;
    --text-dark: #1a1a1a;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text-dark); background: var(--cream); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Sakura Petals */
.sakura-petals { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.petal { position: absolute; top: -20px; width: 15px; height: 15px; background: var(--sakura-pink); border-radius: 50% 0 50% 0; opacity: 0.6; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 0.6; } 100% { transform: translateY(100vh) rotate(360deg); opacity: 0; } }

/* Navigation */
#navbar { position: fixed; top: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
#navbar.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary-black); letter-spacing: 2px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-link { color: var(--text-dark); text-decoration: none; font-weight: 500; position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-black); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary-black); }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-menu-toggle span { width: 25px; height: 3px; background: var(--primary-black); transition: all 0.3s ease; }

/* Hero */
.hero-section { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-carousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,183,197,0.7), rgba(255,105,180,0.5)); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; color: white; }
.hero-title { font-size: 5rem; font-weight: 700; letter-spacing: 8px; margin-bottom: 1rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.8rem; margin-bottom: 0.5rem; font-weight: 300; letter-spacing: 3px; }
.hero-korean { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.hero-description { font-size: 1.1rem; max-width: 600px; margin: 0 auto 3rem; line-height: 1.8; }
.cta-button { display: inline-block; padding: 1rem 3rem; background: white; color: var(--primary-black); text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 1.1rem; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }

/* Carousel Controls (Hero) */
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 2rem; color: var(--primary-black); cursor: pointer; z-index: 10; transition: all 0.3s ease; }
.carousel-arrow:hover { background: white; transform: translateY(-50%) scale(1.1); }
.carousel-arrow.prev { left: 2rem; }
.carousel-arrow.next { right: 2rem; }
.carousel-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.dot.active { background: white; transform: scale(1.3); }

/* Sections */
.section { padding: 6rem 0; position: relative; z-index: 2; }
.section-alt { background: white; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; color: var(--primary-black); margin-bottom: 0.5rem; }
.section-korean { font-size: 1.2rem; color: var(--text-dark); opacity: 0.7; }
.about-text { max-width: 900px; margin: 0 auto 4rem; text-align: center; font-size: 1.2rem; }

/* About Features */
.about-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.feature-item { text-align: center; padding: 2.5rem; background: white; border-radius: 16px; box-shadow: var(--shadow); transition: transform 0.3s ease; }
.feature-item:hover { transform: translateY(-10px); }
.feature-icon { font-size: 3.8rem; margin-bottom: 1.5rem; }
.feature-item h3 { font-size: 1.5rem; color: var(--primary-black); margin-bottom: 1rem; }

/* Products - FIXED STATIC 5-COLUMN GRID */
.products-grid { 
    display: grid;
    /* Force 5 columns, allowing them to take equal space */
    grid-template-columns: repeat(5, 1fr); 
    gap: 1.5rem; 
    margin-top: 3rem;
    padding: 0;
    overflow-x: hidden; /* Ensure no horizontal scrollbar */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card { 
    position: relative;
    background: #f0f8ff; 
    border: 8px solid white; 
    border-radius: 15px; 
    /* Remove fixed width and min-width to allow grid to size it */
    width: auto;
    min-width: 0;
    flex-shrink: 0;
    overflow: hidden; 
    box-shadow: 0 12px 36px rgba(255,182,193,0.25); 
    transition: all 0.3s ease; 
    cursor: default; 
    /* Remove staggered/rotation transforms */
    transform: none !important; 
    margin-top: 0 !important;
}

.product-card:hover { transform: translateY(-10px) !important; box-shadow: 0 20px 50px rgba(255,182,193,0.4); }
.product-image { height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; background: linear-gradient(135deg, #fff0f5, #f0f8ff); }
.flower-icon { width: 120px; height: auto; margin-bottom: 1rem; border-radius: 50%; box-shadow: 0 4px 12px rgba(255,105,180,0.2); }
.product-label { font-family: Georgia, serif; font-size: 1.8rem; color: var(--primary-black); font-weight: 600; }
.product-info { padding: 0.5rem 1rem 1.5rem; position: relative; }
.product-info h3 { font-size: 1.3rem; color: var(--primary-black); margin: 0.5rem 0 0.2rem; text-align: center; }
.product-info p { font-size: 0.95rem; text-align: center; color: #555; margin-bottom: 0.5rem; }

/* Removed .products-carousel-wrapper and .products-grid-scroll styles */
/* Removed .product-arrow styles */
/* Removed .staggered-grid, .staggered-1, .staggered-2, .staggered-3 styles */


/* Projects Grid */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.project-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.4s ease; }
.project-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.project-card img { width: 100%; height: 240px; object-fit: cover; }
.project-info { padding: 1.8rem; }
.project-info h3 { font-size: 1.4rem; color: var(--primary-black); margin-bottom: 0.5rem; font-weight: 600; }
.project-info p:first-of-type { color: #666; font-size: 0.95rem; margin-bottom: 0.8rem; }
.project-info p:last-of-type { color: #444; line-height: 1.6; }

/* Contact Section - FIXED */
.contact-content { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; font-size: 1.1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1.2rem; }
.contact-icon { font-size: 2.4rem; min-width: 50px; }
.contact-item strong { display: block; color: var(--primary-black); margin-bottom: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { color: var(--primary-black); font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { padding: 1rem; border: 2px solid #e0e0e0; border-radius: 10px; font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-black); box-shadow: 0 0 0 3px rgba(26,26,26,0.1); }
.required { color: #e74c3c; }
.contact-form { background: white; padding: 2.5rem; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.submit-btn { padding: 1rem 2rem; background: var(--primary-black); color: white; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-top: 1rem; }
.submit-btn:hover { background: #333; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

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

/* Animations */
.scroll-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1200px) {
    /* Switch to auto-fit grid for product cards when space is tight */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links { position: fixed; top: 70px; left: -100%; flex-direction: column; background: white; width: 100%; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: left 0.3s ease; }
    .nav-links.mobile-active { left: 0; }
    .mobile-menu-toggle { display: flex; }
    .hero-title { font-size: 3rem; }
    .contact-content, .form-row { grid-template-columns: 1fr; }
    /* On small screens, use 2 columns for products, or 1 if needed */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .contact-form { padding: 2rem; }
}

/* Pink overlay restored – beautiful & back! */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,183,197,0.65), rgba(255,105,180,0.55));
    z-index: 2;
    pointer-events: none;
}

/* ——— MOBILE FIXES ONLY (add to end of your current style.css) ——— */

/* Fix 100vh jump on iPhone/Android */
.hero-section { height: 100dvh; }

/* Better hero text on small phones */
@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem !important; letter-spacing: 4px; }
    .hero-subtitle { font-size: 1.3rem !important; }
    .hero-description { font-size: 1rem !important; }
}

/* Hamburger → X animation */
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Bigger tap targets */
@media (max-width: 768px) {
    .nav-link { padding: 1.2rem 0; font-size: 1.1rem; }
    .cta-button, .submit-btn { min-height: 54px; padding: 1rem 2rem !important; }
    .carousel-arrow { width: 50px; height: 50px; }
}
