/* =======================
   CSS Variables (High-end SaaS aesthetics)
   ======================= */
:root {
    --navy: #0A1128; /* Deep Navy */
    --gold: #D4AF37; /* Premium Gold */
    --gold-bright: #e5ae2d;
    --blue-accent: #2563eb; /* Royal Blue */
    --success: #10b981;
    
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    
    --font-sans: 'Inter', 'Be Vietnam Pro', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =======================
   Bilingual Logic
   ======================= */
body[data-current-lang="vi"] [data-lang="en"],
body[data-current-lang="vi"] option[data-lang="en"] {
    display: none !important;
}

body[data-current-lang="en"] [data-lang="vi"],
body[data-current-lang="en"] option[data-lang="vi"] {
    display: none !important;
}

/* Base Styles */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

a { text-decoration: none; transition: var(--transition); }

/* Typography Utilities */
.highlight { position: relative; z-index: 1; }
.highlight::after {
    content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 8px;
    background: rgba(229, 174, 45, 0.3); z-index: -1; border-radius: 4px;
}
.text-gold { color: var(--gold-bright) !important; }
.text-blue { color: var(--blue-accent) !important; }
.text-success { color: var(--success) !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--navy); color: white; }
.relative { position: relative; }

/* Grid System */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-md-5 { width: 41.66%; padding: 0 15px; }
.col-md-7 { width: 58.33%; padding: 0 15px; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.py-section { padding: 100px 0; }

/* =======================
   Buttons
   ======================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer;
    transition: var(--transition); border: none; font-family: inherit; font-size: 1rem;
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--navy); color: white;
    box-shadow: 0 4px 10px rgba(10, 17, 40, 0.2);
}
.btn-primary:hover {
    background: #152243; transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 17, 40, 0.3); color: white;
}
.btn-outline {
    background: transparent; border: 2px solid var(--text-primary); color: var(--text-primary);
}
.btn-outline:hover {
    background: rgba(0,0,0,0.05); transform: translateY(-2px);
}

/* =======================
   Navbar
   ======================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05); transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; }
.company-logo { max-height: 50px; mix-blend-mode: multiply; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-item { font-weight: 500; color: var(--text-primary); font-size: 0.95rem; }
.nav-item:hover { color: var(--gold-bright); }

.nav-controls { display: flex; align-items: center; gap: 20px; }
.lang-switcher {
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.04); padding: 4px 8px; border-radius: 20px;
}
.lang-btn {
    background: none; border: none; font-size: 0.85rem; font-weight: 700;
    color: var(--text-secondary); cursor: pointer; padding: 4px 8px; border-radius: 12px;
    transition: var(--transition);
}
.lang-btn.active { background: white; color: var(--navy); box-shadow: var(--shadow-sm); }
.lang-divider { color: #cbd5e1; font-size: 0.8rem; }

.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; }

/* =======================
   Hero Section
   ======================= */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-top: 80px; overflow: hidden; background: #fff;
}
.hero-bg-gradient {
    position: absolute; top: -20%; left: -10%; width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(229,174,45,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}
.hero-container {
    position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
}
.hero-content { flex: 1; max-width: 600px; padding-right: 40px; }

.badge {
    display: inline-block; padding: 6px 16px; background: rgba(37, 99, 235, 0.08);
    color: var(--blue-accent); border-radius: 30px; font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 24px;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 24px; letter-spacing: -1.2px; line-height: 1.1; }
.hero-desc { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 40px; line-height: 1.8; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image-container { flex: 1; display: flex; justify-content: flex-end; perspective: 1000px; }
.glass-hero-card {
    width: 100%; max-width: 450px; background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-glass);
    transform: rotateY(-5deg) rotateX(5deg); transition: transform 0.5s ease;
}
.glass-hero-card:hover { transform: rotateY(0) rotateX(0) translateY(-10px); }

.glass-header { padding: 15px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.glass-dots span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; margin-right: 6px; }
.glass-dots span:nth-child(1) { background: #ef4444; } .glass-dots span:nth-child(2) { background: #f59e0b; } .glass-dots span:nth-child(3) { background: #10b981; }

.glass-body { padding: 20px; }
.glass-item {
    display: flex; align-items: center; gap: 15px; padding: 15px; background: white;
    border-radius: var(--radius-md); margin-bottom: 15px; box-shadow: var(--shadow-sm);
}
.glass-item:last-child { margin-bottom: 0; }
.glass-item i:first-child { font-size: 1.5rem; width: 30px; text-align: center; }
.glass-item h5 { font-size: 0.95rem; margin-bottom: 2px; }
.glass-item span { font-size: 0.8rem; color: var(--text-secondary); }
.glass-item i.text-success { margin-left: auto; }

/* =======================
   Trust Bar
   ======================= */
.trust-bar { padding: 40px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.trust-title { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }
.trust-logos { display: flex; justify-content: center; gap: 60px; font-size: 2rem; color: #cbd5e1; flex-wrap: wrap; }

/* =======================
   Section Headers
   ======================= */
.section-header { margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.subtitle {
    display: inline-block; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue-accent); margin-bottom: 12px;
}
.section-title { font-size: 2.5rem; letter-spacing: -0.5px; }

/* =======================
   Problems vs Solutions
   ======================= */
.pain-solution-grid { display: flex; flex-direction: column; gap: 30px; }
.pain-solution-card {
    display: flex; background: white; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.05);
}
.pain-side, .solution-side { padding: 40px; flex: 1; }
.pain-side { background: #fffcfc; border-right: 1px solid rgba(0,0,0,0.05); }
.solution-side { background: #f0fdf4; }

.icon-box {
    width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 20px;
}
.icon-box.pain { background: #fee2e2; color: #ef4444; }
.icon-box.solution { background: #dcfce7; color: #10b981; }

.pain-side h4, .solution-side h4 { font-size: 1.2rem; margin-bottom: 10px; }
.pain-side p, .solution-side p { font-size: 0.95rem; color: var(--text-secondary); margin: 0; }

/* =======================
   Services Grid
   ======================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background: white; padding: 40px 30px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid rgba(0,0,0,0.05);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-bright); }
.service-icon {
    width: 60px; height: 60px; background: rgba(212, 175, 55, 0.1); color: var(--gold-bright);
    border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 24px;
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 20px; }
.service-card ul { list-style: none; }
.service-card ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-secondary); margin-bottom: 12px; font-size: 0.95rem; }
.service-card ul li i { color: var(--gold-bright); margin-top: 4px; font-size: 0.8rem; }

/* =======================
   Process Timeline
   ======================= */
.timeline-container { position: relative; padding-left: 30px; }
.timeline-container::before {
    content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: #e2e8f0;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item .dot {
    position: absolute; left: -45px; top: 0; width: 30px; height: 30px; border-radius: 50%;
    background: white; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; box-shadow: 0 0 0 5px var(--bg-main);
}
.timeline-item h5 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline-item p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }

/* =======================
   Why Us
   ======================= */
.why-us h2 { color: white; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 30px; border-radius: var(--radius-lg); }
.why-card i { font-size: 2rem; color: var(--blue-accent); margin-bottom: 20px; }
.why-card h4 { color: white; margin-bottom: 12px; font-size: 1.1rem; }
.why-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.highlight-card { background: rgba(229,174,45,0.1); border-color: rgba(229,174,45,0.3); }

/* =======================
   Contact Form
   ======================= */
.contact-wrapper {
    display: flex; background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.05);
}
.contact-info { width: 40%; padding: 60px 40px; background: var(--navy); color: white; }
.contact-info h3 { color: white; font-size: 2rem; margin-bottom: 16px; }
.contact-list { list-style: none; margin-top: 40px; }
.contact-list li { display: flex; gap: 15px; margin-bottom: 20px; font-size: 1rem; color: rgba(255,255,255,0.8); align-items: center; }
.contact-list li i { font-size: 1.2rem; color: var(--gold-bright); width: 24px; text-align: center; }

.contact-form-container { width: 60%; padding: 60px 50px; }
.form-group { margin-bottom: 24px; }
.form-row { display: flex; gap: 20px; }
.form-group.half { width: 50%; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 1rem; background: #f8fafc; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); background: white;
}

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

/* =======================
   Responsive
   ======================= */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { padding-right: 0; margin-bottom: 40px; }
    .hero-cta { justify-content: center; }
    .pain-solution-card { flex-direction: column; }
    .pain-side { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .contact-wrapper { flex-direction: column; }
    .contact-info, .contact-form-container { width: 100%; padding: 40px 20px; }
    .col-md-5, .col-md-7 { width: 100%; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%;
        background: white; border-bottom: 1px solid #e2e8f0; padding: 20px; gap: 15px; box-shadow: var(--shadow-md);
    }
    .nav-links.active { display: flex; }
    .nav-links .btn { display: inline-flex; width: 100%; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .form-row { flex-direction: column; gap: 0; }
    .form-group.half { width: 100%; }
}
