:root {
    --primary: #f89ba8;
    --primary-light: #fff2f4;
    --primary-dark: #e07a8a;
    --text-main: #0f172a;
    /* Modern dark navy */
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #f1dfdf;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.8);

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

    --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Apple-like easing */
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Elegant Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= HEADER ================= */
.header {
    position: absolute;
    /* Trở lại absolute để đè lên Hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-dark);
    /* Màu tối sang trọng */
    padding: 40px 0;
    /* Padding lớn hơn cho form cũ */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    position: fixed;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    position: fixed;
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.header .logo-first {
    color: #ffffff;
}

.header .logo-second {
    color: var(--primary);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    /* Căn giữa Logo tuyệt đối */
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    line-height: 1;
    letter-spacing: 3px;
    text-align: center;
}

.logo-first {
    font-size: 5rem;
    /* Phóng to x2 (từ 2.5rem) */
    font-weight: 700;
    color: #ffffff;
}

.logo-second {
    font-size: 1.4rem;
    /* Phóng to x2 (từ 0.7rem) */
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 12px;
    /* Tăng giãn chữ cho sang trọng với size lớn */
    display: block;
    margin-top: 10px;
}

.nav-links {
    display: none !important;
    /* Ẩn menu chính để dồn sự chú ý vào Logo */
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-switch a {
    color: var(--text-muted);
}

.lang-switch a.active {
    color: var(--primary);
}

.lang-switch a:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-dropdown {
    display: none;
    background: #fff;
    padding: 20px;
    border-top: 1px solid #eee;
    flex-direction: column;
    gap: 15px;
}

.mobile-dropdown.active {
    display: flex;
}

/* ================= BADGE ================= */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #e8ccce;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.badge-dark {
    border-color: rgba(255, 255, 255, 0.2);
    color: #aaa;
}

.badge-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 80vh;
    /* Reduced from 100vh */
    min-height: 600px;
    /* Reduced from 800px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../assets/hero_banner.png') center/cover no-repeat;
    margin-top: 0;
    /* Reset margin */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

/* Mesh Gradient Effect */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 0% 0%, rgba(248, 155, 168, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(148, 163, 184, 0.2) 0px, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px);
    margin-bottom: 30px !important;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 25px;
    color: #ffffff;
    /* Trở lại màu trắng */
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 55px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transition: 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(248, 155, 168, 0.4);
}

/* ================= GLOBAL SECTION STYLES ================= */
.section-padding {
    padding: 100px 30px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ================= ANNOUNCEMENT BANNER ================= */
.announcement-banner {
    position: relative;
    background: linear-gradient(180deg, #fff8f8 0%, #fff2f4 60%, #fff8f8 100%);
    padding: 60px 30px;
    text-align: center;
    overflow: hidden;
}

#floating-flowers-announcement {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.announcement-content {
    position: relative;
    z-index: 2;
}

.announcement-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: #8b3a4a;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.announcement-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.announcement-divider {
    width: 40px;
    height: 1.5px;
    background: linear-gradient(to right, transparent, #e8a0ab, transparent);
    margin: 0 auto;
}

/* ================= CATEGORIES SECTION ================= */
.categories {
    background-color: var(--bg-main);
    max-width: 1400px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    transition: var(--transition);
}

.card-img-wrapper {
    width: 200px;
    height: 200px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background-color: #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover .card-img-wrapper {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(248, 155, 168, 0.2);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .card-img {
    transform: scale(1.1);
}

.card-title {
    margin-top: 20px;
    padding: 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    text-align: center;
    letter-spacing: 0;
}

/* ================= FEATURES SECTION ================= */
.features {
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
    padding: 150px 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    padding: 60px 30px;
    background: #fff;
    border-radius: 20px;
    /* Bo góc nhẹ hơn theo mẫu */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(248, 155, 168, 0.1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: #fff0f3;
    /* Màu hồng cực nhạt */
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Tròn trịa theo mẫu */
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.feature-flower {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary);
    opacity: 0.2;
    font-size: 1.2rem;
    pointer-events: none;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* ================= FOOTER ================= */
.footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 80px 30px 30px;
    position: relative;
    overflow: hidden;
}

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

.text-center {
    text-align: center;
}

.footer-center {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-desc {
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

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

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1e293b;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: #334155;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
}

.footer-brand {
    font-weight: 700;
    color: #fff;
}

.footer-copy {
    color: #64748b;
}

/* ================= ANIMATIONS & EFFECTS ================= */
.relative-z {
    position: relative;
    z-index: 5;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.slide-up .hero-content {
    animation: slideUp 1s ease forwards;
    animation-delay: 0.2s;
}

.slide-up .hero-overlay {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* FLOATING FLOWERS CONTAINERS */
#floating-flowers-hero,
#floating-flowers-features,
#floating-flowers-footer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.flower-petal {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    animation: fall linear infinite;
    will-change: transform;
    /* Hint for browser to optimize GPU */
    pointer-events: none;
}

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

    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* ================= MEDIA QUERIES & MOBILE UX OPTIMIZATION ================= */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

@media (max-width: 768px) {

    /* 2-column layouts for mobile as per reference */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
        padding: 0 15px;
    }

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

    .card-img-wrapper {
        width: 130px;
        height: 130px;
    }

    .card-title {
        font-size: 1rem;
    }

    /* Optimize Logo for Mobile (Scales down from 2x desktop size) */
    .logo-first {
        font-size: 2.5rem;
        /* Reduced from 5rem */
    }

    .logo-second {
        font-size: 0.8rem;
        /* Reduced from 1.4rem */
        letter-spacing: 6px;
        /* Reduced from 12px to prevent overflow */
        margin-top: 5px;
    }

    .header-container {
        padding: 20px;
    }

    .hero-title {
        font-size: 3rem;
        /* Reduced from 5rem */
    }

    .section-title {
        font-size: 2.2rem;
        /* Reduced from 3rem */
    }

    .footer-title {
        font-size: 2.5rem;
        /* Reduced from 3.5rem */
    }

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

    /* Optimize Spacing & Padding for Space Efficiency */
    .hero {
        padding: 100px 20px 60px;
        min-height: 80vh;
        /* Reduced height on mobile */
    }

    .section-padding {
        padding: 60px 0;
        /* Reduced vertical padding */
    }

    .features {
        padding: 80px 15px;
    }

    /* Optimize Touch Targets for Links & Buttons (Min 44px) */
    .nav-links a {
        padding: 12px 15px;
        /* Minimum 44px height hit area */
    }

    .social-links-center a {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        /* Better stacked buttons on mobile footer */
        box-sizing: border-box;
    }

    .btn {
        padding: 15px 35px;
        /* Thicker button for easy tapping */
    }

    /* Miscellaneous Adjustments */
    .badge {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
}