@font-face {
    font-family: 'Cubano';
    src: url('assets/fonts/iCielBCCubano-Normal.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-main: rgba(255, 255, 255, 0.9); /* Làm trong suốt nhẹ để hiện nền hình */
    --bg-alt: #F4EBE1; /* Màu beige nhấn */
    --primary-color: #C82A27; /* Đỏ Boardgame */
    --secondary-color: #1B5E9C; /* Xanh biển */
    --accent-color: #F5BB1B; /* Vàng năng động */
    --logo-color: #7A1B38; /* Đỏ mận (Màu chữ Daquest) */
    --text-main: #2C3E50; /* Xanh đen than */
    --text-muted: #5D6D7E; /* Xám nhạt */
    --font-heading: 'Cubano', sans-serif;
    --font-body: 'Inter', sans-serif;
    --section-title-size: 2.2rem;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Social Colors */
    --fb-color: #1877F2;
    --tt-color: #000000;
    --ig-color: #E4405F;
    --yt-color: #FF0000;
}

/* Rich Design Elements (Scrapbook/Wavy Style) */
.scallop-top {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C 20 0, 30 0, 50 20 C 70 0, 80 0, 100 20 L 100 20 L 0 20 Z' fill='%23FDFBF7'/%3E%3C/svg%3E");
    background-size: 100px 40px;
    z-index: 5;
}

.scallop-bottom {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C 20 20, 30 20, 50 0 C 70 20, 80 20, 100 0 L 100 0 L 0 0 Z' fill='%23FDFBF7'/%3E%3C/svg%3E");
    background-size: 100px 40px;
    z-index: 5;
}

.cloud-deco {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 3rem;
    pointer-events: none;
    z-index: 1;
    animation: floatCloud 8s ease-in-out infinite;
}

.cloud-1 { top: 10%; left: 5%; animation-delay: 0s; }
.cloud-2 { top: 20%; right: 5%; animation-delay: 2s; font-size: 2rem; }

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

/* Artistic Image Frames */
.gallery-img, .blue-framed-img {
    border-radius: 40px;
    border: 8px solid #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.gallery-img:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-image: url('assets/hero_new.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Fix extra space on right */
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: #255c32; }
.section-title { font-size: var(--section-title-size); margin-bottom: 1.5rem; color: #255c32; }
.subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; font-style: italic; font-weight: 500;}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    border-radius: 30px; /* Nút bo tròn cho cảm giác vui tươi, boardgame */
}
.btn-primary { background-color: var(--primary-color); color: #fff; border: 2px solid var(--primary-color); box-shadow: 0 4px 10px rgba(200,42,39,0.3); }
.btn-primary:hover { background-color: transparent; color: var(--primary-color); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background-color: #fff; color: var(--primary-color); }
.btn-large { padding: 1.2rem 3rem; font-size: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Header & Navbar Setup */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.topbar .logo-img {
    height: 70px !important; /* Giảm nhẹ để tránh tràn quá mức */
    margin: -10px 0 !important; 
    filter: invert(1) brightness(2) contrast(1.2) !important; 
    mix-blend-mode: screen !important;
    background: transparent !important;
    transition: var(--transition) !important;
    display: block;
}

.topbar {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    padding: 0.5rem 5% !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    min-height: 50px;
    overflow: hidden; /* Cắt bỏ phần dư thừa gây ra viền đen */
}

.topbar .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.topbar .logo-img {
    height: 70px !important; 
    margin: -10px 0 !important; 
    filter: invert(1) brightness(2) contrast(1.2) !important; 
    mix-blend-mode: screen !important;
    background: transparent !important;
    transition: var(--transition) !important;
}

.topbar .contact-info {
    display: flex !important;
    gap: 2rem !important;
    justify-content: center !important; /* Thông tin dạt giữa */
}

.topbar .social-links {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important; /* Social dạt phải */
}

.navbar {
    background-color: transparent !important;
    backdrop-filter: none !important;
    height: 70px !important; 
    padding: 0 5% !important;
    display: flex !important;
    justify-content: flex-end !important; 
    align-items: center !important;
    box-shadow: none !important;
    position: relative !important;
}

.nav-links a {
    color: #ffffff !important; /* Chuyển sang chữ trắng theo yêu cầu */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-icons i, .nav-icons span {
    color: #ffffff !important;
}

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

.logo-img {
    height: 80px; /* Tăng kích thước thêm để tên nổi bật hơn */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.footer-logo {
    width: 120px;
    height: 120px; /* Thêm height cố định để đảm bảo hình tròn */
    border-radius: 50%; /* Khung tròn như yêu cầu cho chỗ này */
    background-color: var(--bg-main);
    padding: 10px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Desktop Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff !important; /* Đã chuyển sang màu trắng toàn bộ */
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border-bottom: none !important;
    padding: 0.5rem 0.8rem !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Thêm bóng để dễ đọc trên mọi nền */
    white-space: nowrap; /* Chống rớt dòng */
    display: flex;
    align-items: center;
}

.nav-links a:hover { color: var(--secondary-color) !important; }
.nav-links a.active { 
    background-color: var(--secondary-color); 
    color: #fff !important; 
    border-radius: 8px;
}

/* Force hide mobile elements on desktop */
.sidebar-close, .mobile-menu-btn { 
    display: none !important; 
} 

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-icons i { color: var(--text-main) !important; }
.nav-icons img { height: 14px; cursor: pointer; }
.flag-wrap { display: flex; gap: 8px; }

/* Responsive Overrides */
@media (max-width: 992px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.85rem; }
}

@media (max-width: 768px) {
    .topbar { display: none !important; }
    .navbar { height: 70px; }
    .logo-img { width: 70px; height: 70px; }
    
    .mobile-menu-btn { display: block !important; font-size: 1.3rem; cursor: pointer; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #111;
        flex-direction: column;
        padding: 5rem 2rem;
        margin: 0;
        z-index: 9999;
        transition: 0.4s ease-in-out;
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links a { 
        color: #fff !important; 
        padding: 1rem 0 !important; 
        border-bottom: 1px solid rgba(255,255,255,0.1) !important; 
        width: 100%; 
        background: transparent !important;
        border-radius: 0;
    }
    
    .sidebar-close {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 25px;
        color: #fff;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 10000;
    }

    /* Fix Components Grid on Mobile */
    .components-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .components-grid li {
        gap: 1rem !important;
    }

    /* Fix Footer on Mobile */
    footer .container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    footer .footer-social {
        justify-content: center;
    }

    /* Fix Pre-order (Registration) on Mobile */
    #preorder form {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1rem;
    }

    #preorder input {
        width: 100% !important;
        text-align: center;
    }

    #preorder .btn {
        width: 100% !important;
    }

    /* Center everything on Mobile */
    .components-grid,
    #gallery .container > div,
    .story-grid,
    .about-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .about-card {
        text-align: center !important;
        width: 100% !important;
        max-width: 350px;
    }

    .components-grid img, 
    .story-image img,
    #gallery img,
    .about-card img {
        display: block !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        width: auto !important;
        border-radius: 15px !important;
    }

    .fade-up {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* Hero */
.hero {
    height: 100vh;
    padding-top: 100px; /* Offset for fixed header-wrapper (topbar + navbar) */
    display: flex; align-items: center; justify-content: center; text-align: center; position: relative;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 2rem; }
.hero-content h1 { font-size: 5rem; margin-bottom: 1rem; color: #fff; text-shadow: 2px 4px 10px rgba(0,0,0,0.5); font-weight: 800;}
.hero-content p { font-size: 1.25rem; color: #f4ebe1; margin-bottom: 3rem; font-style: italic; font-family: var(--font-heading); text-shadow: 1px 2px 5px rgba(0,0,0,0.5);}

/* Utility classes */
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-alt); }

/* Search Button & Overlay */
.search-btn {
    position: relative; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    background-color: var(--secondary-color); 
    color: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: var(--transition);
    flex-shrink: 0;
}
.search-btn i { font-size: 0.9rem !important; color: #fff !important; }
.search-btn::before {
    content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border: 1.2px dashed var(--secondary-color); border-radius: 50%; transition: var(--transition); pointer-events: none;
}
.search-btn:hover { background-color: #3B5B82; }
.search-btn:hover::before { border-color: #3B5B82; transform: rotate(15deg); }

.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(15, 15, 15, 0.95); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; backdrop-filter: blur(5px);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-close {
    position: absolute; top: 30px; right: 40px; background-color: #fff; color: #333; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; transition: var(--transition);
}
.search-close:hover { background-color: #ff471a; color: #fff; transform: rotate(90deg); }
.search-container {
    width: 60%; max-width: 800px; position: relative; transform: translateY(30px); transition: transform 0.4s ease; transition-delay: 0.1s;
}
.search-overlay.active .search-container { transform: translateY(0); }
.search-input {
    width: 100%; background: transparent; border: 2px solid #8C6239; border-radius: 30px; padding: 1.2rem 2.5rem; font-size: 1.2rem; color: #fff; outline: none; transition: var(--transition); font-family: var(--font-body);
}
.search-input:focus { border-color: #ff471a; box-shadow: 0 0 15px rgba(255, 71, 26, 0.3); }
.search-input::placeholder { color: #999; }
.search-submit {
    position: absolute; right: 25px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 1.2rem; cursor: pointer; transition: var(--transition);
}
.search-submit:hover { color: #ff471a; }

/* Sections */
.section { padding: 6rem 0; }
.story-section { background-color: var(--bg-main); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: flex-start; }
.story-text p { color: var(--text-main); margin-bottom: 1.2rem; font-size: 1rem; line-height: 1.7; }
.story-stats { display: flex; flex-direction: column; gap: 2rem; }
.stat-box { padding: 2.5rem; background-color: var(--bg-alt); border-left: 4px solid var(--accent-color); transition: var(--transition); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.02);}
.stat-box:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.stat-box h3 { font-size: 3.5rem; color: rgba(245, 187, 27, 0.4); margin-bottom: -1rem; font-family: var(--font-heading); font-weight: 800;}
.stat-box h4 { font-size: 1.5rem; margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 700; color: var(--secondary-color);}
.stat-box p { color: var(--text-muted); font-size: 0.95rem; }

.card-link:hover { transform: translateY(-10px) !important; box-shadow: 0 25px 45px rgba(0,0,0,0.15) !important; cursor: pointer; }

/* Scrapbook Gallery Section */
.gallery-section {
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
    border-top: 1px dashed rgba(0,0,0,0.1);
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.gallery-header { text-align: center; margin-bottom: 5rem; }
.scrapbook-layout {
    position: relative;
    min-height: 700px;
}
.polaroid {
    position: absolute;
    background: #fff;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: var(--transition);
    border-radius: 2px;
}
.polaroid:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 20;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}
.polaroid img {
    width: 300px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #eee;
}
.tape {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 90px; height: 30px;
    background-color: rgba(245, 187, 27, 0.8); /* Yellow Tape */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.p-2 .tape { background-color: rgba(27, 94, 156, 0.7); } /* Blue Tape */
.p-3 .tape { background-color: rgba(200, 42, 39, 0.7); } /* Red Tape */

/* Dropdown Styles Desktop */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: transparent; /* Đã chuyển sang trong suốt */
    min-width: 180px;
    box-shadow: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1000;
    border-top: 2px solid #ffffff; /* Viền trắng tinh tế phía trên */
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-menu li {
    width: 100%;
    border: none !important;
}

.dropdown-menu a {
    color: #ffffff !important; /* Chữ trắng cho menu trong suốt */
    padding: 10px 20px !important;
    font-size: 15px !important;
    display: block !important;
    width: 100% !important;
    background: transparent !important; /* Nền trong suốt */
    text-align: left !important;
    font-weight: 500 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    color: var(--accent-color) !important;
    padding-left: 25px !important; /* Hiệu ứng trượt nhẹ khi hover */
}
    transition: 0.3s;
}

.dropdown-menu a:hover {
    background-color: #F8F9FA !important;
    color: var(--secondary-color) !important;
}

.dropdown-menu a i {
    margin-right: 10px;
    color: var(--secondary-color);
}

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

/* Mobile Sidebar Overrides for Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none;
        background-color: rgba(255,255,255,0.05);
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
    }
    .nav-links li:hover .dropdown-menu {
        display: block;
    }
    .dropdown-menu a {
        color: rgba(255,255,255,0.7) !important;
    }
}

/* Positioning Polaroids */
.p-1 { top: 0; left: 0%; transform: rotate(-5deg); }
.p-2 { top: 60px; left: 25%; transform: rotate(3deg); z-index: 2; }
.p-3 { top: 300px; left: 5%; transform: rotate(8deg); }
.p-4 { top: 350px; left: 28%; transform: rotate(-4deg); z-index: 3; }

.scrapbook-text {
    position: absolute;
    top: 150px;
    right: 0%;
    width: 38%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-left: 5px solid var(--primary-color);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
}
.scrapbook-text h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--logo-color); }
.scrapbook-text p { color: var(--text-main); }

/* Components Section */
.components-section { background-color: var(--bg-main); }
.components-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.components-image img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 10px solid #fff;}
.features-list { list-style: none; margin-top: 2rem; }
.features-list li { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.features-list li:last-child { border-bottom: none; }
.features-list strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; color: var(--secondary-color); margin-bottom: 0.5rem; }
.features-list span { color: var(--text-muted); font-size: 0.95rem; }

/* Preorder Section */
.preorder-section {
    background: linear-gradient(to top, var(--bg-alt), transparent);
    padding: 8rem 0 10rem;
}
.price-box { margin: 3rem 0; }
.price { display: block; font-family: var(--font-heading); font-size: 4rem; color: var(--primary-color); margin-bottom: 0.5rem; font-weight: 800;}
.price-note { color: var(--secondary-color); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 700;}

/* Footer */
.footer { 
    background-color: #2C3E50; 
    padding: 4rem 0 2rem; 
    color: #fff;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand p { 
    color: rgba(255,255,255,0.7); 
    margin-bottom: 2rem;
}

.footer-social { 
    display: flex; 
    gap: 1rem; 
    margin: 1.5rem 0; 
    justify-content: flex-start;
}

.footer-social a { 
    width: 40px; 
    height: 40px; 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.3s;
    color: #fff !important;
}

.footer h4 { 
    color: #fff; 
    margin-bottom: 1.5rem; 
    font-family: var(--font-heading);
}

.footer ul { 
    list-style: none; 
    opacity: 0.7;
}

.footer ul li { 
    margin-bottom: 0.8rem;
}

.footer ul li a { 
    color: #fff; 
    text-decoration: none; 
    transition: 0.3s;
}

.footer ul li a:hover { 
    color: var(--accent-color);
}

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: 4rem; 
    padding-top: 2rem; 
    text-align: center; 
    opacity: 0.5; 
    font-size: 0.9rem;
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fade-in { opacity: 0; transition: 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide-in-right { opacity: 0; transform: translateX(50px); transition: 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.visible { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

@media (max-width: 992px) {
    .story-grid, .components-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content h1 { font-size: 3.5rem; }
}
/* Global Social Circle Styles */
.social-links a, .footer-social a {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    color: #fff !important;
    text-decoration: none !important;
    transition: var(--transition);
    border: none !important;
}
.social-links a:hover, .footer-social a:hover { transform: translateY(-3px); filter: brightness(1.1); }

.social-links a:nth-child(1), .footer-social a.fb { background-color: var(--fb-color); }
.social-links a:nth-child(2), .footer-social a.tt { background-color: var(--tt-color); }
.social-links a:nth-child(3), .footer-social a.ig { background-color: var(--ig-color); }
.social-links a:nth-child(4), .footer-social a.yt { background-color: var(--yt-color); }

.footer-social { display: flex; justify-content: center; gap: 1rem; margin: 1.5rem 0; }
.footer-social a { width: 42px; height: 42px; font-size: 1.3rem; }

/* Gallery Image Styles */
.gallery-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid #FFFFFF; /* Viền trắng dày dặn */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-img:hover {
    transform: translateY(-15px) scale(1.02); /* Nổi lên và phóng to nhẹ */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: #FFFFFF;
}

.blue-framed-img {
    width: 100%;
    border-radius: 20px;
    border: 5px solid var(--secondary-color); /* Viền xanh chủ đạo */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
}

.blue-framed-img:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Mascot Styles */
/* Mascot Group Styles - Desktop Only (>1200px) */
.mascot-group {
    display: none; /* Hidden by default */
}

@media (min-width: 1200px) {
    .mascot-group {
        display: flex !important;
        position: absolute;
        bottom: 20px;
        right: 40px;
        gap: 15px;
        z-index: 20;
        pointer-events: none;
        align-items: flex-end;
    }

    .mascot-group img {
        width: 100px;
        height: auto;
        animation: floatGroup 4s ease-in-out infinite;
    }

    /* Stagger the animations and sizes based on user arrangement */
    .mascot-group img:nth-child(1) { animation-delay: 0s; width: 100px; } /* Lion */
    .mascot-group img:nth-child(2) { animation-delay: 0.5s; width: 110px; } /* Dragon */
    .mascot-group img:nth-child(3) { animation-delay: 1s; width: 100px; } /* Monkey */
    .mascot-group img:nth-child(4) { animation-delay: 1.5s; width: 90px; } /* Whale (Dolphin) */
}

@keyframes floatGroup {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Global Responsive / Mobile Overrides */
.mobile-menu-btn { 
    display: block !important; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--text-main); 
    margin-left: 1rem;
    transition: var(--transition);
}
.mobile-menu-btn:hover { color: var(--primary-color); }

@media (max-width: 768px) {
    .nav-links { width: 85%; } /* Sidebar covers more screen on mobile */
    
    /* Header & Topbar Optimization */
    .topbar { display: none !important; } 
    
    .header-wrapper {
        background-color: rgba(253, 251, 247, 0.98) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    .navbar { 
        padding: 0.5rem 3% !important; 
        height: 65px !important; 
    }

    .logo-img { 
        width: 65px !important; 
        height: 65px !important; 
    }

    .nav-icons { 
        gap: 0.8rem !important; 
    }
    
    .nav-icons > div:first-child { display: none !important; }

    /* Hero & Video Optimization */
    .hero {
        height: 60vh !important;
        padding-top: 65px !important;
        overflow: hidden;
    }

    .hero-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }
    ...
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 26, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 71, 26, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 26, 0); }
}

.footer h4 { color: #fff !important; }

/* Cute Dragon Animation */
@keyframes floatDragon {
    0% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
    100% { transform: translateY(0) rotate(-5deg); }
}
.dragon-float {
    animation: floatDragon 3s ease-in-out infinite;
    mix-blend-mode: multiply;
    z-index: 10;
}

/* Running Monkey Animation (Left to Right) */
@keyframes runMonkey {
    from { left: -150px; }
    to { left: 100%; }
}
.monkey-runner {
    position: absolute;
    bottom: -45px; /* Sit exactly on the section boundary */
    width: 90px;
    animation: runMonkey 15s linear infinite;
    z-index: 100; /* Ensure it's above both sections */
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: scaleX(-1); /* Flip to face right */
}


