﻿:root {
    --bg: #000000;
    --accent: #FFD600;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: #0d0d0d;
    --glass: rgba(255, 255, 255, 0.03);
}

.glass-bg {
    background: rgba(255,255,255,0.1); /* mờ nền */
    backdrop-filter: blur(10px); /* mờ nền phía sau */
    padding: 20px;
    display: inline-block;
    border-radius: 15px;
}

.glass-text {
    font-size: 60px;
    font-weight: bold;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
}
body {
    background-color: var(--bg);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    margin: 0;
    scroll-behavior: smooth;
}

/* --- 1. Hero Cinematic Video --- */
.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -2;
    filter: brightness(0.4) contrast(1.2);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}



/* --- 2. Buttons Style --- */
.btn-premium {
    background: #fff;
    color: #000;
    padding: 18px 45px;
    border-radius: 100px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    border: none;
}

.btn-premium:hover {
    transform: scale(1.05);
    background: var(--accent);
    box-shadow: 0 0 30px rgba(255, 214, 0, 0.4);
}

.btn-store {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    color: #fff;
    padding: 12px 28px;
    border-radius: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.4s;
    border: 4px solid var(--border);
    min-width: 170px;
}

.btn-store:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
    color: #fff;
}

.btn-ios-hero { background: #fff; color: #000; border: none; }
.btn-ios-hero:hover { background: #f0f0f0; color: #000; }

/* --- 3. Interactive Widget Section --- */
.widget-demo-container {
    padding: 120px 0;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.iphone-frame {
    width: 300px;
    height: 620px;
    background: #000;
    border: 12px solid #1a1a1a;
    border-radius: 54px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    overflow: hidden;
}

.widget-mock {
    position: absolute;
    top: 50px; left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: var(--card-bg);
    border-radius: 42px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.widget-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.widget-mock:hover .widget-img { transform: scale(1.1); }

/* --- 4. Swiper Slider --- */
.swiper { width: 100%; padding: 80px 0; }
.swiper-slide { width: 280px; filter: grayscale(100%); transition: 0.5s; }
.swiper-slide-active { filter: grayscale(0%); transform: scale(1.1); }
.ss-card { border-radius: 35px; overflow: hidden; border: 4px solid #1a1a1a; }

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

.reveal { animation: fadeInUp 1.2s ease forwards; }
.parallax-element { will-change: transform; }

.navbar { transition: 0.4s; backdrop-filter: blur(2px); }
.navbar.scrolled { background: rgba(0,0,0,0.85); padding: 15px 0; border-bottom: 1px solid var(--border); }


/* --- Language Selector --- */
.lang-selector-wrapper {
    position: relative;
    z-index: 1000;
}

.lang-current {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 190px;
    max-height: min(420px, calc(100vh - 110px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px;
    display: none; /* Sẽ điều khiển bằng GSAP */
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 214, 0, 0.55) rgba(255, 255, 255, 0.08);
}

.lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 214, 0, 0.55);
    border-radius: 999px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 214, 0, 0.8);
}

.lang-item {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    color: rgba(255,255,255,0.7);
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.lang-item.active {
    background: rgba(255, 214, 0, 0.1);
    color: var(--accent);
    font-weight: 600;
}

.lang-item img {
    width: 18px;
    border-radius: 2px;
}
