/* ========================================= */
/* DEVELOPER TRẦN TẤN PHÁT*/
/* ZALO: 0946743849*/
/* TELEGRAM: @useriamtp*/
/* ========================================= */
:root {
    --bg-dark: #0f0f1a;
    --bg-light-glass: rgba(38, 43, 63, 0.5);
    --bg-card: #1b1f3a;
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --text-primary: #FFFFFF;
    --text-secondary: #a9a9b3;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --container-width: 1140px;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

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


h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }
h1 { font-size: 3.5rem; font-weight: 900; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); transition: 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
section { padding: 6rem 0; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }


.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 1.5rem; position: relative; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--primary-color); margin: 0.5rem auto 0; border-radius: 2px;
}
.section-subtitle { text-align: center; margin-bottom: 3rem; color: var(--text-secondary); }


.btn {
    display: inline-block; padding: 0.8rem 2rem; border-radius: 50px;
    font-weight: 600; text-transform: uppercase; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer;
}
.btn-primary {
    background: var(--primary-color); color: white; box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}
.btn-primary:hover {
    background: var(--secondary-color); color: var(--bg-dark); transform: translateY(-3px);
}
.btn-secondary { border-color: var(--secondary-color); color: var(--secondary-color); }
.btn-secondary:hover { background: var(--secondary-color); color: var(--bg-dark); }


.header {
    width: 100%; position: fixed; top: 0; z-index: 1000;
    background: rgba(15, 15, 26, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }


.logo {
    font-size: 1.8rem; 
    font-weight: 900;
    font-family: var(--font-heading);
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #fff; 
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    
    
    background: linear-gradient(to right, #fff 20%, var(--primary-color) 50%, var(--secondary-color) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite; 
}


.logo:hover {
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.6); 
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.nav-menu { display: flex; gap: 2rem; }
.nav-menu a { color: var(--text-secondary); font-weight: 500; position: relative; padding: 0.5rem 0; }
.nav-menu a:hover { color: var(--text-primary); }
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background: var(--primary-color); transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }


.mobile-menu-container {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: var(--bg-card); box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    z-index: 9999; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 20px; display: flex; flex-direction: column;
}
.mobile-menu-container.active { right: 0; }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px;
}
.close-menu-btn { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
.mobile-nav-links li { margin-bottom: 15px; }
.mobile-nav-links .m-link {
    font-size: 1.1rem; color: var(--text-secondary); display: block; padding: 5px 0; transition: 0.3s;
}
.mobile-nav-links .m-link:hover { color: var(--primary-color); padding-left: 10px; }
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }


.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(rgba(15, 15, 26, 0.9), rgba(15, 15, 26, 0.95));
    padding-top: 80px; position: relative; overflow: hidden;
}
#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; }

.hero-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem;
    position: relative; z-index: 2; width: 100%;
}
.hero-content-new { text-align: left; }
.hero-content-new h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
.animate-text { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; } .delay-3 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }


.hero-visuals {
    position: relative; width: 100%; max-width: 550px; height: 500px;
    display: flex; justify-content: center; align-items: center; margin: 0 auto;
}
.glow-circle {
    position: absolute; width: 350px; height: 350px; background: var(--primary-color);
    border-radius: 50%; filter: blur(100px); opacity: 0.2; z-index: 1; animation: pulse 4s infinite alternate;
}
.main-3d-img {
    position: relative; z-index: 2; width: 360px; height: auto;
    border-radius: 24px; 
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    animation: floatMain 6s ease-in-out infinite; object-fit: cover;
}

.float-item {
    position: absolute; width: 70px; height: 70px;
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; z-index: 3; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: floatItem 5s ease-in-out infinite;
}
.item-1 { top: 10%; left: 0; animation-delay: 0s; }
.item-2 { top: 15%; right: 0; animation-delay: 1s; }
.item-3 { bottom: 15%; left: 20px; animation-delay: 0.5s; font-size: 1.8rem; }
.item-4 { bottom: 5%; right: 30px; animation-delay: 1.5s; }

@keyframes floatMain { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes floatItem { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(5deg); } }
@keyframes pulse { from { transform: scale(0.8); opacity: 0.2; } to { transform: scale(1.2); opacity: 0.4; } }
.typing-effect { color: var(--secondary-color); border-right: 2px solid var(--secondary-color); }


.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-item { background: var(--bg-light-glass); padding: 2rem; border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.1); }
.stat-number { font-size: 3rem; font-weight: 900; color: var(--secondary-color); }


.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.tech-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem; padding: 1.5rem;
    background: rgba(27, 31, 58, 0.6); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; width: 130px; position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tech-item:hover {
    transform: translateY(-10px) scale(1.05); border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}
.tech-item i { font-size: 3.5rem; transition: 0.4s; }
.tech-item:hover i { transform: rotateY(180deg); filter: drop-shadow(0 0 10px var(--primary-color)); }
.tech-item span { color: var(--text-secondary); font-weight: 500; }


.services { background: var(--bg-dark); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.service-card {
    background: var(--bg-card); padding: 2.5rem; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05); position: relative; overflow: hidden;
    transition: all 0.4s ease;
}
.service-card::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s; z-index: 0;
}
.service-card:hover {
    transform: translateY(-15px); border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.service-card:hover::after { left: 100%; }
.service-card i {
    font-size: 3.5rem; color: var(--primary-color); margin-bottom: 1.5rem; display: inline-block;
    transition: 0.4s; position: relative; z-index: 1;
}
.service-card:hover i { transform: scale(1.2); color: var(--secondary-color); text-shadow: 0 0 20px var(--secondary-color); }
.service-card h3, .service-card p { position: relative; z-index: 1; }


.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.project-card {
    background: var(--bg-card); border-radius: var(--border-radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform 0.3s ease;
}
.project-card:hover { transform: translateY(-10px); }
.project-card img { width: 100%; height: 220px; object-fit: cover; transition: 0.4s; }
.project-card:hover img { transform: scale(1.05); }
.project-info { padding: 1.5rem; }
.btn-project { color: var(--primary-color); font-weight: 600; }


.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
.process-step { padding: 2rem; position: relative; }
.process-icon {
    width: 90px; height: 90px; line-height: 90px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; margin: 0 auto 1.5rem;
    font-size: 2.5rem; color: var(--primary-color); transition: 0.5s; position: relative;
}
.process-icon::after {
    content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%; border: 2px dashed var(--secondary-color);
    opacity: 0; transform: scale(0.8) rotate(0deg); transition: 0.5s;
}
.process-step:hover .process-icon {
    background: var(--primary-color); color: #fff; transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}
.process-step:hover .process-icon::after { opacity: 1; transform: scale(1.1) rotate(180deg); }


.faq-accordion details {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px; margin-bottom: 1rem; transition: 0.3s;
}
.faq-accordion summary {
    display: flex; justify-content: space-between; padding: 1.5rem; cursor: pointer;
    font-weight: 600; list-style: none; transition: 0.3s;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion details[open] {
    background: rgba(74, 144, 226, 0.1); border-color: var(--primary-color);
}
.faq-accordion details[open] summary i { transform: rotate(180deg); color: var(--secondary-color); }
.faq-accordion details p { padding: 0 1.5rem 1.5rem; color: var(--text-secondary); }


.cta-section {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    text-align: center; padding: 4rem 2rem;
}
.cta-section h2, .cta-section p { color: var(--bg-dark); }
.cta-section .btn-primary { background: #fff; color: var(--bg-dark); box-shadow: none; }


.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.5fr;
    background: rgba(27, 31, 58, 0.6); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px;
    overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}


.contact-info-box {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(0, 0, 0, 0));
    padding: 3rem; display: flex; flex-direction: column; justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-info-box h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.info-item { display: flex; align-items: center; gap: 15px; color: var(--text-primary); transition: 0.3s; }
.icon-box {
    width: 50px; height: 50px; background: rgba(255, 255, 255, 0.05);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1.2rem; border: 1px solid rgba(255,255,255,0.1); transition: 0.4s;
}
.info-item:hover .icon-box {
    background: var(--primary-color); color: #fff; transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}
.info-list li { margin-bottom: 1.5rem; }


.contact-form-box { padding: 3rem; }
.contact-form-box h3 { margin-bottom: 2rem; }
.input-group { position: relative; margin-bottom: 2rem; }
.input-group input, .input-group textarea {
    width: 100%; padding: 10px 0; font-size: 1rem; color: #fff;
    background: transparent; border: none; border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    outline: none; transition: 0.3s;
}
.input-group label {
    position: absolute; top: 10px; left: 0; color: var(--text-secondary);
    pointer-events: none; transition: 0.3s ease all;
}
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
    top: -20px; font-size: 0.85rem; color: var(--secondary-color); font-weight: 600;
}
.input-group .line {
    position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--secondary-color); transition: 0.4s;
}
.input-group input:focus ~ .line, .input-group textarea:focus ~ .line { width: 100%; box-shadow: 0 0 10px var(--secondary-color); }

.btn-submit { width: 100%; padding: 1rem; font-size: 1.1rem; border-radius: 12px; background: linear-gradient(90deg, var(--primary-color), #3a7bd5); }


.footer { text-align: center; padding: 2rem; background: #0a0a10; border-top: 1px solid rgba(255,255,255,0.1); color: var(--text-secondary); }


.stagger-container { opacity: 1; }
.reveal-child { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000); }
.child-visible { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.reveal-fade.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .nav-menu { display: none; } .hamburger { display: block; }
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; margin-top: 2rem; }
    .hero-content-new { text-align: center; margin-bottom: 2rem; }
    .hero-buttons { justify-content: center; }
    
    .hero-visuals { height: 400px; max-width: 100%; }
    .main-3d-img { width: 280px; }
    .float-item { width: 55px; height: 55px; font-size: 1.5rem; }
    .item-1 { left: 5%; } .item-2 { right: 5%; } .item-3 { left: 10%; bottom: 10%; } .item-4 { right: 10%; bottom: 5%; }

    .stats-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info-box { padding: 2rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .contact-form-box { padding: 2rem; }
}
