/* ==========================================================================
   style.css - Premium Light Aesthetics for team.tieuyvanthuat.com
   ========================================================================== */

/* 1. Global Reset & Theme Variables */
:root {
    --bg-pure: #FFFFFF;
    --bg-light: #F8FAFC; /* Slate 50 */
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFBFD;
    
    /* Harmonious colors */
    --primary: #10B981; /* Emerald */
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.15);
    --secondary: #0D9488; /* Teal */
    
    --accent: #D97706; /* Amber/Gold */
    --accent-dark: #B45309;
    
    --text-dark: #0F172A; /* Slate 900 */
    --text-body: #334155; /* Slate 700 */
    --text-muted: #64748B; /* Slate 500 */
    --border-color: #E2E8F0; /* Slate 200 */
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.07), 0 10px 15px -5px rgba(0, 0, 0, 0.03);
}

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

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

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

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

/* Common Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    border-color: #CBD5E1;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-glow:hover {
    box-shadow: 0 0 20px var(--primary-glow);
}

.icon-left {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

/* 2. Navigation Bar (Glassmorphism Light) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.3rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-image {
    height: 2.5rem;
    width: auto;
    margin-right: 0.6rem;
    object-fit: contain;
}

.logo-text {
    color: var(--text-dark);
}

.logo-text .accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

/* 3. Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(217, 119, 6, 0.03) 0%, transparent 50%);
}

.hero-bg-gradients {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.gradient-ball {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.05;
}

.ball-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -50px;
    right: 10%;
}

.ball-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -100px;
    left: 5%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--primary-hover);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-icon {
    display: flex;
    align-items: center;
    margin-right: 0.4rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-large {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
    transition: var(--transition-smooth);
}

.hero-logo-large:hover {
    transform: scale(1.03);
}

/* 4. Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* 5. Guide Steps Section (Installation) */
.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-top: 1rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.step-num {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* 6. Profiles Section */
.profile-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.profile-text-content h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.profile-explain {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.steps-list-wrapper {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.steps-list-wrapper h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.ordered-steps {
    padding-left: 1.2rem;
    color: var(--text-body);
}

.ordered-steps li {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.ordered-steps li:last-child {
    margin-bottom: 0;
}

.ordered-steps li strong {
    color: var(--text-dark);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.card-inner-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.chrome-icon {
    color: #4285F4;
}

.profile-list-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.profile-list-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-body);
}

.bullet-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.yellow-icon { color: var(--accent); }
.green-icon { color: var(--primary); }
.teal-icon { color: var(--secondary); }

/* 7. Feature Guide Boxes */
.guide-feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.guide-feature-box:last-child {
    margin-bottom: 0;
}

.guide-header-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.guide-tag {
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary-hover);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 0.2rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.guide-header-bar h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.guide-body-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2.5rem 2rem;
}

.guide-column h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-hover);
}

.guide-column p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.guide-column ul {
    list-style: none;
}

.guide-column ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-body);
}

.guide-column ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.numeric-list {
    padding-left: 1.2rem;
    color: var(--text-body);
}

.numeric-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 8. FAQ Accordion Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-light);
}

.faq-answer p {
    padding: 1.5rem 2rem;
    color: var(--text-body);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
}

.faq-item.active {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* 9. Download Section */
.download-container {
    text-align: center;
}

.download-card {
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(16, 185, 129, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.download-card h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.download-card p {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.download-card-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.download-actions {
    display: flex;
    justify-content: center;
}

/* 10. Footer Section */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4.5rem 0 2rem 0;
    background: var(--bg-light);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3.5rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links-group {
    display: flex;
    gap: 5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 11. Responsive Breakpoints & Animation */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-logo-large {
        max-height: 220px;
    }

    .profile-layout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .guide-body-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .guide-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .navbar {
        padding: 0.3rem 0;
    }

    .nav-links, .nav-actions {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .download-card h2 {
        font-size: 2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-links-group {
        width: 100%;
        justify-content: space-between;
        gap: 2rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
