:root {
    /* Bảng màu Human-Designer: Sâu, tinh tế, không chói (Obsidian x Emerald Green) */
    --bg-color: #0d1112; 
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #10b981; 
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #059669; 
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

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

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

/* 3D Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
    pointer-events: none;
}

/* Typography */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
}
.section-title span {
    background: linear-gradient(135deg, var(--primary), #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(13, 17, 18, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo span { color: var(--primary); }

nav { display: flex; align-items: center; }
nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}
nav a:hover { color: var(--primary); }

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: 6px; 
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    box-shadow: 0 5px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}
.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}
.btn-large {
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 50px;
    gap: 40px;
}
.hero-content { flex: 1; max-width: 600px; }
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #6ee7b7;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* 3D Creeper Container */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.creeper-container {
    width: 100%;
    min-width: 280px;
    max-width: 500px;
    height: 500px;
    position: relative;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, rgba(0,0,0,0.5) 70%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#creeper-canvas-container { width: 100%; height: 100%; min-height: 400px; }
.drag-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    pointer-events: none;
    border: 1px solid var(--glass-border);
}

/* About Section */
.about { padding: 100px 5%; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px var(--glass-shadow);
}
.glass-panel img { width: 100%; border-radius: 8px; display: block; }
.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}
.stat-item h3 { font-size: 2.5rem; color: var(--primary); }
.stat-item p { font-size: 0.9rem; color: var(--text-muted); }

/* Services Section */
.services { padding: 100px 5%; }
.services h2 { margin-bottom: 60px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.05);
}
.service-img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-main); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.complex-footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--glass-border);
    padding: 80px 5% 30px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-col h3 { font-size: 1.1rem; margin-bottom: 25px; color: var(--primary); }
.footer-desc { color: var(--text-muted); margin: 20px 0; max-width: 90%; }
.social-links { display: flex; gap: 10px; }
.social-btn {
    width: 40px; height: 40px;
    border-radius: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-main); text-decoration: none;
    transition: all 0.3s;
}
.social-btn:hover { background: var(--primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--text-main); }
.contact-list li {
    display: flex; align-items: center; gap: 10px; color: var(--text-muted);
}
.contact-list li a { color: var(--text-muted); text-decoration: none; transition: color 0.3s;}
.contact-list li a:hover { color: var(--primary); }
.newsletter-form {
    display: flex; margin-top: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 4px; overflow: hidden;
}
.newsletter-form input {
    flex: 1; background: rgba(0,0,0,0.2);
    border: none; padding: 12px 15px; color: white; outline: none;
}
.newsletter-form button { border-radius: 0; padding: 12px 20px; }
.footer-bottom {
    text-align: center; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted); font-size: 0.9rem;
}

/* --- Contact Modal --- */
.contact-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.contact-modal.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: rgba(13, 17, 18, 0.9);
    border: 1px solid var(--glass-border);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.contact-modal.active .modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal:hover { color: #fff; }
.modal-content h2 { margin-bottom: 10px; font-size: 1.8rem; }
.modal-content p { color: var(--text-muted); margin-bottom: 30px; }
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--glass-border);
}
.contact-btn.zalo {
    background: linear-gradient(135deg, #0068ff, #0088ff);
    color: #fff;
    border: none;
}
.contact-btn.phone {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
}
.contact-btn.email {
    background: var(--glass-bg);
    color: var(--text-main);
}
.contact-btn:hover {
    transform: scale(1.02);
}
.contact-btn.zalo:hover { box-shadow: 0 5px 15px rgba(0, 104, 255, 0.4); }
.contact-btn.phone:hover { box-shadow: 0 5px 15px var(--primary-glow); }
.contact-btn.email:hover { background: rgba(255,255,255,0.05); }


/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; max-width: 600px; margin: 0 auto; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    header { flex-direction: column; padding: 15px; }
    nav { margin-top: 15px; flex-wrap: wrap; justify-content: center; gap: 10px; }
    nav a { margin: 0 10px; }
    nav a.btn-primary { display: none; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 140px; }
    .hero-actions { justify-content: center; }
    .creeper-container { height: 400px; }
    
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
