* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(48, 54, 61, 0.2);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #58a6ff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #7c3aed;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: #8b949e;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

.nav-cta {
    background: linear-gradient(135deg, #58a6ff, #7c3aed);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.nav-cta:hover {
    background: linear-gradient(135deg, #4493f8, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: #58a6ff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #58a6ff, #ffffff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #8b949e;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #58a6ff, #7c3aed);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(88, 166, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.3);
}

.btn-secondary:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.5);
    color: #58a6ff;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
    position: relative;
    z-index: 2;
    animation: floating 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-10px) scale(1.05);
    /* box-shadow: 0 30px 60px rgba(88, 166, 255, 0.2); */
}

.hero-bg-element {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: floating-reverse 8s ease-in-out infinite;
}

/* Floating Animations */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floating-reverse {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(15px) scale(1.1);
    }
}

/* Additional floating elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(124, 58, 237, 0.1));
    animation: floating-slow 10s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
    animation-delay: -2s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 10%;
    animation-delay: -4s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: -6s;
}

@keyframes floating-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Pulse animation for visual enhancement */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;  /* Giảm từ 600px */
    height: 400px; /* Giảm từ 600px */
    background: radial-gradient(circle, rgba(88, 166, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-bg 4s ease-in-out infinite;
    z-index: 0;
    border: none;
    outline: none;
    pointer-events: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 1rem;
        overflow-x: hidden; /* Ngăn overflow horizontal */
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
        overflow: hidden; /* Ngăn overflow */
    }

    .hero-visual {
        order: -1;
        max-width: 100%;
        overflow: hidden;
        padding: 0 1rem;
    }

    .hero-visual::before {
        width: 300px;  /* Nhỏ hơn nữa trên mobile */
        height: 300px;
    }

    .hero-image {
        max-width: 90%; /* Giảm kích thước ảnh */
    }

    .floating-element {
        display: none; /* Ẩn floating elements trên mobile */
    }

    .hero-bg-element {
        width: 200px;  /* Giảm background element */
        height: 200px;
    }
}

@keyframes pulse-bg {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
}

/* Stats Section */
.stats {
    background: rgba(22, 27, 34, 0.6);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(48, 54, 61, 0.2);
    border-bottom: 1px solid rgba(48, 54, 61, 0.2);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #58a6ff;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #8b949e;
    font-size: 1rem;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #58a6ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #8b949e;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.4);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 166, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #58a6ff, #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 1rem;
}

.feature-description {
    color: #8b949e;
    line-height: 1.6;
}

/* Services Preview Section */
.services-preview {
    background: rgba(22, 27, 34, 0.4);
    padding: 5rem 2rem;
    border-top: 1px solid rgba(48, 54, 61, 0.2);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #58a6ff, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 166, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: #58a6ff;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 1rem;
}

.service-description {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: #4493f8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 1200px;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f0f6fc;
}

.cta-subtitle {
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(13, 17, 23, 0.9);
    border-top: 1px solid rgba(48, 54, 61, 0.3);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #f0f6fc;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: #8b949e;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #58a6ff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(48, 54, 61, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(88, 166, 255, 0.2);
    color: #58a6ff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(48, 54, 61, 0.3);
    color: #6e7681;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: #58a6ff;
    font-size: 1.5rem;
}

.footer-logo span {
    color: #f0f6fc;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Mobile Responsive */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}