/* --- RESET & BIẾN TOÀN CỤC --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066ff;
    --secondary-color: #7f00ff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #7f00ff 100%);
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(127, 0, 255, 0.1), 0 10px 10px -5px rgba(0, 102, 255, 0.04);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NÚT BẤM (BUTTONS) --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(127, 0, 255, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 0, 255, 0.4);
}

.btn-sm {
    padding: 8px 22px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- THANH MENU ĐẦU TRANG (HEADER) --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    gap: 5px;
}

.logo-tho { color: var(--primary-color); }
.logo-web { color: var(--secondary-color); }

.logo-svg-mesh {
    margin-left: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

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

/* --- BANNER CHÍNH (HERO) --- */
.hero-section {
    position: relative;
    padding: 180px 0 100px 0;
    background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%);
}

.hero-bg-decor .circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    pointer-events: none;
}

.circle-1 { width: 450px; height: 450px; background: var(--primary-color); top: -80px; right: -50px; }
.circle-2 { width: 350px; height: 350px; background: var(--secondary-color); bottom: 0; left: -100px; }

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* --- BROWSER MOCKUP --- */
.browser-mockup {
    width: 100%;
    max-width: 520px;
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.browser-header {
    height: 44px;
    background-color: #f1f5f9;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.browser-header .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.browser-search {
    margin-left: 20px;
    background-color: white;
    border-radius: 6px;
    flex: 1;
    font-size: 13px;
    padding: 3px 16px;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
}

.browser-body {
    padding: 24px;
    height: 290px;
}

.mock-layout { display: flex; height: 100%; gap: 16px; }
.mock-sidebar { width: 25%; background-color: #f8fafc; border-radius: 8px; }
.mock-main { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.mock-banner { height: 45%; background: linear-gradient(90deg, #f1f5f9, #e2e8f0); border-radius: 8px; }
.mock-grid { display: flex; gap: 12px; flex: 1; }
.mock-card { flex: 1; background-color: #f8fafc; border-radius: 8px; }

/* HUY HIỆU BAY (FLOATING BADGES) */
.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: floatingEffect 4s ease-in-out infinite;
}

.badge-responsive { top: 30px; left: -30px; color: #0066ff; animation-delay: 0s; }
.badge-seo { right: -25px; top: 120px; color: #27c93f; animation-delay: 1s; }
.badge-creative { bottom: -10px; left: 50px; color: #7f00ff; animation-delay: 2s; }

@keyframes floatingEffect {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* --- GIÁ TRỊ CỐT LÕI (VALUES) --- */
.values-section {
    padding: 50px 0;
    background-color: #fcfdfe;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.values-container {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.value-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    font-size: 24px;
    color: var(--secondary-color);
    background: rgba(127, 0, 255, 0.06);
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-text h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.5px; }
.value-text p { font-size: 14px; color: var(--text-muted); }

/* --- TIÊU ĐỀ CHUNG CHO CÁC PHẦN --- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 34px; font-weight: 800; color: var(--text-main); }
.section-underline { width: 50px; height: 5px; background: var(--gradient-primary); margin: 12px auto 0 auto; border-radius: 5px; }

/* --- DỊCH VỤ (SERVICES) --- */
.services-section { padding: 100px 0; }
.services-grid { display: flex; gap: 32px; }

.service-card {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 44px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2f7;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.15);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 28px;
}

.icon-blue { background: rgba(0, 102, 255, 0.06); color: #0066ff; }
.icon-purple { background: rgba(127, 0, 255, 0.06); color: #7f00ff; }
.icon-cyan { background: rgba(0, 204, 204, 0.06); color: #00cccc; }

.service-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.service-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.service-link { text-decoration: none; color: var(--primary-color); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.service-link:hover { gap: 10px; color: var(--secondary-color); }

/* --- QUY TRÌNH (PROCESS) --- */
.process-section { padding: 100px 0; background-color: var(--bg-light); }
.process-steps { display: flex; justify-content: space-between; gap: 24px; }

.step-card {
    flex: 1;
    background: white;
    padding: 36px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-num {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: -58px auto 24px auto;
    border: 4px solid var(--bg-light);
}

.step-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* --- DỰ ÁN (PORTFOLIO) --- */
.portfolio-section { padding: 100px 0; }
.portfolio-grid { display: flex; gap: 32px; }
.portfolio-item { flex: 1; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #edf2f7; transition: var(--transition); }
.portfolio-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.portfolio-img { height: 230px; display: flex; align-items: center; justify-content: center; color: white; font-size: 52px; }

.bg-grad-1 { background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); }
.bg-grad-2 { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.bg-grad-3 { background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%); }

.portfolio-info { padding: 24px; background: white; }
.portfolio-info h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.portfolio-info p { font-size: 14px; color: var(--text-muted); }

/* --- ĐĂNG KÝ LIÊN HỆ (CONTACT FORM) --- */
.contact-section { padding: 100px 0; background: linear-gradient(135deg, #fdfbf7 0%, #f4f7fc 100%); }
.contact-container { display: flex; gap: 64px; align-items: center; }
.contact-info { flex: 1; }
.contact-info h2 { font-size: 38px; font-weight: 800; margin-bottom: 24px; }
.contact-info p { color: var(--text-muted); font-size: 16px; margin-bottom: 40px; }
.contact-meta { display: flex; flex-direction: column; gap: 24px; }
.meta-item { display: flex; align-items: center; gap: 16px; }

.meta-item i {
    font-size: 18px; color: var(--primary-color); background: white; width: 44px; height: 44px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.meta-item span { font-weight: 600; font-size: 15px; }

.contact-form-wrapper { flex: 1; background: white; padding: 44px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.contact-form .form-group { margin-bottom: 24px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--text-main); }
.contact-form input, .contact-form select {
    width: 100%; padding: 14px 18px; border: 1px solid #e2e8f0; border-radius: 10px;
    font-family: var(--font-family); font-size: 15px; transition: var(--transition);
}
.contact-form input:focus, .contact-form select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1); }

/* --- CHÂN TRANG (FOOTER) --- */
.site-footer { background-color: #1a202c; color: white; padding: 48px 0; }
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-size: 26px; font-weight: 800; }
.slogan-footer { font-size: 13px; color: #a0aec0; font-weight: 400; margin-top: 6px; letter-spacing: 0.5px; }
.footer-copy { font-size: 14px; color: #a0aec0; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: #a0aec0; font-size: 22px; transition: var(--transition); }
.footer-socials a:hover { color: white; }

/* --- RESPONSIVE MÀN HÌNH DI ĐỘNG --- */
@media (max-width: 992px) {
    .hero-container, .contact-container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .values-container, .services-grid, .process-steps, .portfolio-grid { flex-direction: column; gap: 48px; }
    .process-steps { padding-top: 24px; }
    .contact-meta { align-items: center; }
}

@media (max-width: 768px) {
    .main-nav, .header-cta { display: none; } /* Tối giản bớt cho màn hình nhỏ */
    .footer-container { flex-direction: column; gap: 24px; text-align: center; }
    .hero-title { font-size: 34px; }
}