/* =========================================
   1. HỆ THỐNG BIẾN SỐ (CSS VARIABLES)
========================================= */
:root {
    /* DEFAULT (DARK THEME - ÁP DỤNG TRANG CHỦ) */
    --bg-deep: #030303;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --text-main: #ffffff;
    --text-muted: #ffffff;
    --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);

    --nav-bg: rgba(3, 3, 3, 0.8);
    --nav-shadow: none;

    --hero-grad-1: rgba(3, 3, 3, 0.1);
    --hero-grad-2: rgba(3, 3, 3, 0.6);
    --hero-grad-3: #030303;

    --btn-text-color: #030303;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    --glass-gold-bg: rgba(212, 175, 55, 0.02);
    --glass-gold-border: rgba(212, 175, 55, 0.15);
    --glass-gold-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    --card-hover-bg: rgba(255, 215, 0, 0.02);
    --card-hover-shadow: 0 20px 40px rgba(212, 175, 55, 0.05);
    --card-feat-grad: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(0,0,0,0) 100%);
    
    --feedback-hover-shadow: none;
    --overlay-bg: rgba(3, 3, 3, 0.85);
}

/* OVERRIDE (LIGHT THEME - ÁP DỤNG TRANG DỊCH VỤ) */
body.light-theme {
    --bg-deep: #f8f9fa;
    --bg-card: #ffffff;
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-main: #111111;
    --text-muted: #555555;

    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-shadow: 0 4px 10px rgba(0,0,0,0.03);

    --hero-grad-1: rgba(248, 249, 250, 0.1);
    --hero-grad-2: rgba(248, 249, 250, 0.7);
    --hero-grad-3: #f8f9fa;

    --btn-text-color: #ffffff;

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    --glass-gold-bg: rgba(212, 175, 55, 0.05);
    --glass-gold-border: rgba(212, 175, 55, 0.3);
    --glass-gold-shadow: 0 8px 32px 0 rgba(212, 175, 55, 0.1);

    --card-hover-bg: rgba(255, 255, 255, 0.9);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --card-feat-grad: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(255,255,255,1) 100%);
    
    --feedback-hover-shadow: 0 20px 40px rgba(0,0,0,0.08);
    --overlay-bg: rgba(248, 249, 250, 0.85);
}

/* =========================================
   2. GLOBAL SETUP & CURSOR
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }
body { font-family: 'Inter', sans-serif; background: var(--bg-deep); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
html { scroll-behavior: smooth; }
a { text-decoration: none; }

#cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 9999; }
#cursor-ring { position: fixed; top: 0; left: 0; width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 9998; transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s; }
.hovering #cursor-ring { width: 80px; height: 80px; background: var(--gold-glow); border-color: transparent; }

#preloader { position: fixed; inset: 0; background: var(--bg-deep); z-index: 10000; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s; }
.loader-text { font-size: 2.5rem; font-weight: 900; letter-spacing: 10px; color: var(--text-muted); position: relative; overflow: hidden; }
.loader-text::after { content: '@HANOI.MEDIA'; position: absolute; top: 0; left: 0; color: var(--gold); width: 100%; height: 100%; border-right: 2px solid var(--gold); animation: typing 1.5s steps(12) forwards, blink 0.5s infinite; overflow: hidden; }
@keyframes typing { 0% { width: 0; } 100% { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }

#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 2000; width: 0%; transition: width 0.1s; }

/* =========================================
   3. NAVBAR
========================================= */
nav { position: fixed; top: 0; width: 100%; padding: 30px 6%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: var(--transition); }
nav.scrolled { padding: 15px 6%; background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-glass); box-shadow: var(--nav-shadow); }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; color: var(--text-main); }
.logo span { color: var(--gold); }

.nav-links { display: flex; gap: 40px; margin-left: auto; }
.nav-links a { color: var(--text-main); font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; transition: 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px; background: var(--gold); transition: 0.3s; }
.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a:hover, .nav-links a.active-link { color: var(--gold); }

/* =========================================
   4. HERO SECTION
========================================= */
.hero { min-height: 100vh; padding: 120px 6% 60px; display: flex; align-items: center; position: relative; background-image: url('https://lh3.googleusercontent.com/u/0/d/1BsdBzqNZnJ5BiRU5cm0ka_gjkbYQuosX'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--hero-grad-1) 0%, var(--hero-grad-2) 60%, var(--hero-grad-3) 100%); z-index: 1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; width: 100%; max-width: 1400px; margin: 0 auto; align-items: center; position: relative; z-index: 2; }
.hero-content { opacity: 0; transform: translateY(40px); transition: 1s ease 0.2s forwards; }
.tagline { color: var(--gold); font-size: 0.8rem; font-weight: 900; letter-spacing: 5px; display: block; margin-bottom: 20px; }
.hero-title { font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 30px; color: var(--text-main); }
.hero-title span { -webkit-text-stroke: 1px var(--gold); color: transparent; }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 40px; font-weight: 400; }
.hero-tags span { display: inline-block; padding: 8px 16px; border: 1px solid var(--border-glass); border-radius: 30px; font-size: 0.7rem; color: var(--gold); margin-right: 10px; margin-bottom: 10px; background: rgba(255,255,255,0.05); }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 18px 40px; background: var(--text-main); color: var(--btn-text-color); font-weight: 900; font-size: 0.85rem; letter-spacing: 2px; transition: var(--transition); border-radius: 4px; }
.btn-primary:hover { background: var(--gold); color: var(--btn-text-color); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }

.hero-visual { position: relative; width: 100%; opacity: 0; transform: scale(0.95); transition: 1s ease 0.4s forwards; }
.visual-frame { position: relative; aspect-ratio: 16/9; padding: 15px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.slider { width: 100%; height: 100%; position: relative; overflow: hidden; border-radius: 2px; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: 1.5s ease-in-out; }
.slide.active { opacity: 1; transform: scale(1.05); }
.visual-badge { position: absolute; bottom: -20px; right: 30px; background: var(--gold); color: #fff; padding: 15px 25px; font-weight: 900; font-size: 0.75rem; letter-spacing: 2px; box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }

.hero-overlay { position: absolute; inset: 0; background: var(--overlay-bg); z-index: 1; }

/* =========================================
   5. GLASSMORPHISM CLASSES
========================================= */
.glass-backdrop { background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: 12px; }
.glass-backdrop-gold { background: var(--glass-gold-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid var(--glass-gold-border); box-shadow: var(--glass-gold-shadow); border-radius: 12px; }

/* =========================================
   6. PRICING SECTION
========================================= */
.section-padding { padding: 120px 6%; position: relative; }
.section-header { margin-bottom: 80px; text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: var(--text-main); }
.section-title span { color: var(--gold); }
.pricing-group { margin-bottom: 100px; }
.group-heading { font-size: 1.5rem; font-weight: 800; color: var(--gold); margin-bottom: 40px; display: inline-block; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.p-card { display: flex; flex-direction: column; transition: var(--transition); position: relative; transform: translateY(50px); opacity: 0; padding: 50px 40px; }
.p-card.is-visible { transform: translateY(0); opacity: 1; }
.p-card:hover { border-color: var(--gold); background: var(--card-hover-bg); transform: translateY(-10px); box-shadow: var(--card-hover-shadow); }
.p-card.featured { border-top: 4px solid var(--gold); background: var(--card-feat-grad); }

.p-badge { position: absolute; top: 20px; right: 20px; background: var(--gold); color: #fff; font-size: 0.6rem; font-weight: 900; padding: 6px 12px; letter-spacing: 1px; }
.p-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.p-price { font-size: 3rem; font-weight: 900; margin-bottom: 30px; line-height: 1; color: var(--text-main); }
.p-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.p-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.p-features li { padding: 12px 0; border-bottom: 1px solid var(--border-glass); font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: flex-start; }
.p-features li::before { content: "✦"; color: var(--gold); margin-right: 12px; font-size: 0.8rem; margin-top: 2px; }

.btn-card { display: block; width: 100%; text-align: center; padding: 16px; border: 1px solid var(--border-glass); color: var(--text-main); font-weight: 800; font-size: 0.8rem; letter-spacing: 2px; transition: var(--transition); border-radius: 4px; }
.btn-card.gold { background: var(--gold); border-color: var(--gold); color: var(--btn-text-color); }
.p-card:hover .btn-card:not(.gold) { border-color: var(--gold); color: var(--gold); background: transparent; }

/* =========================================
   7. PORTFOLIO SECTION (FULL MÀU TỰ NHIÊN)
========================================= */
.portfolio-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 60px; }
.filter-btn { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 800; letter-spacing: 2px; padding: 10px 20px; transition: 0.3s; }
.filter-btn.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.port-item { position: relative; aspect-ratio: 16/9; overflow: hidden; opacity: 0; transform: translateY(50px); transition: 0.8s ease; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.port-item.is-visible { opacity: 1; transform: translateY(0); }
.port-item.hide { display: none; }
.port-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.port-item:hover img { transform: scale(1.08); }
@media (min-width: 993px) { .port-item:nth-child(3n + 2) { margin-top: 60px; } }

/* =========================================
   8. FEEDBACK SECTION
========================================= */
.feedback-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.fb-card { padding: 50px; opacity: 0; transform: translateY(50px); transition: 0.8s; }
.fb-card.is-visible { opacity: 1; transform: translateY(0); }
.fb-card:hover { border-color: var(--gold); transform: translateY(-10px); box-shadow: var(--feedback-hover-shadow); }
.quote-icon { color: var(--gold); font-size: 3rem; line-height: 0; margin-bottom: 30px; display: block; font-family: serif; }
.fb-text { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 40px; font-style: italic; }
.fb-client { display: flex; align-items: center; gap: 20px; }
.fb-client img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-glass); }
.fb-info h4 { font-size: 1rem; font-weight: 800; color: var(--text-main); }
.fb-info span { font-size: 0.8rem; color: var(--gold); }

/* =========================================
   9. CONTACT SECTION (FOOTER)
========================================= */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; padding: 60px 50px; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
.info-icon { font-size: 1.8rem; }
.info-item h4 { font-size: 0.9rem; color: var(--gold); margin-bottom: 5px; letter-spacing: 2px; }
.info-item p { color: var(--text-main); font-size: 1.15rem; font-weight: 600; }
.contact-socials h4 { font-size: 0.9rem; color: var(--gold); margin-bottom: 20px; letter-spacing: 2px; }
.social-buttons { display: flex; flex-direction: column; gap: 15px; }
.social-btn { display: inline-block; padding: 16px 25px; border: 1px solid var(--border-glass); border-radius: 8px; color: var(--text-main); font-weight: 800; letter-spacing: 1px; text-align: center; transition: var(--transition); }
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--btn-text-color); transform: translateX(10px); }

/* =========================================
   10. RESPONSIVE DESIGN (MOBILE FIX)
========================================= */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .hero-desc { margin: 0 auto 40px; }
    .hero-title { font-size: 3rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .port-item:nth-child(3n + 2) { margin-top: 0; }
    
    nav { padding: 20px 5%; background: var(--nav-bg); box-shadow: var(--nav-shadow); }
    .nav-links { display: flex; gap: 15px; margin-left: auto; }
    .nav-links a { font-size: 0.65rem; letter-spacing: 1px; color: var(--text-main); }

    #cursor-dot, #cursor-ring { display: none; }
    * { cursor: auto !important; }

    .pricing-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 40px; -ms-overflow-style: none; scrollbar-width: none; }
    .pricing-grid::-webkit-scrollbar { display: none; }
    .p-card { min-width: 85vw; scroll-snap-align: center; transform: translateY(0) !important; opacity: 1 !important; padding: 40px 25px; flex: 0 0 auto; }
    .p-card .btn-card:not(.gold) { border-color: var(--gold); color: var(--gold); }
    
    .contact-container { grid-template-columns: 1fr; padding: 40px 30px; gap: 30px; }
}

/* =========================================
   11. PARTNERS (LOGO MARQUEE)
========================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: 80px;
    align-items: center;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
}

.partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: scale(1.1);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

@media (max-width: 1024px) {
    .partner-logo { height: 35px; }
    .marquee-track { gap: 40px; animation-duration: 20s; }
}

/* =========================================
   12. YOUTUBE VIDEO SECTION
========================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    overflow: hidden;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: auto !important; 
}

.video-info {
    padding: 25px 20px;
    text-align: center;
    background: transparent;
}

.video-info h4 {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.video-info p {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}