/* Biến toàn cục */
:root {
    --primary: #2a5298;
    --primary-dark: #1e3c72;
    --secondary: #6e8efb;
    --accent: #a777e3;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --light: #f8f9fa;
    --dark: #212529;
    --text: #333;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header mới với gradient và shadow */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 24px;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a:hover {
    color: var(--primary);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
} 

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn.login {
    background: var(--light-gray);
    color: var(--text);
} */

.btn.login:hover {
    background: var(--primary);
    color: rgb(255, 255, 255);
} 

.btn.register {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
} 

 .btn.register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
}

.mobile-menu-btn {
   display: none;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Hero Section */
.hero-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-container .logo {
    text-align: center;
    margin-bottom: 30px;
}

.hero-container .logo img {
    height: 120px;
    margin-bottom: 15px;
}

.hero-container .logo-text {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-left: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-tagline {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-title {
   font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.4s both;
    text-align: left;
    letter-spacing: -0.5px;
}

.hero-subtitle {
   font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--gray);
    animation: fadeInUp 1s ease-out 0.6s both;
    text-align: left;
    line-height: 1.6;
    font-weight: 400;
    max-width: 90%;
}

.services {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.service-btn {
     padding: 15px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.service-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background: var(--primary);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 15px 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 15px 30px;
    font-weight: 600;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.floating-cards {
    position: relative;
    height: 400px;
}

.card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 280px;
    transition: all 0.3s ease;
}

.card:nth-child(1) {
    top: 0;
    left: 0;
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite;
}

.card:nth-child(2) {
    top: 50px;
    right: 0;
    transform: rotate(3deg);
    animation: float 7s ease-in-out infinite 1s;
}

.card:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    animation: float 8s ease-in-out infinite 2s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.card-content {
    color: var(--gray);
    font-size: 15px;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: white;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    color: var(--gray);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-item p {
    color: var(--gray);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: white;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--light-gray);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.pricing-features i {
    color: var(--success);
}

.pricing-btn {
    display: block;
    text-align: center;
    padding: 15px;
    background: var(--gradient);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
    transform: translateY(-3px);
}

.custom-plan {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 15px;
}

.custom-plan a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.custom-plan a:hover {
    text-decoration: underline;
}

/* Web Showcase */
.web-showcase {
    padding: 100px 0;
    background: var(--light-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.portfolio-info p {
    color: var(--gray);
    margin-bottom: 15px;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-tag {
    background: var(--light-gray);
    color: var(--gray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Web Services */
.web-services {
    padding: 100px 0;
    background: white;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 28px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-card .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.service-card .price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray);
}

/* PC Features */
.pc-features {
    padding: 100px 0;
    background: var(--light-gray);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--light-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.author-info span {
    font-size: 14px;
    color: var(--gray);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light-gray);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn.primary {
    background: var(--gradient);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn.primary:hover {
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
    transform: translateY(-3px);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.info-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.info-content p {
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo a {
    color: white;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 15px 20px;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 450px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Nút liên hệ và chat box */
.dg-contact-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dg-contact-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dg-contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dg-contact-chat {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.dg-contact-zalo {
    background: #0068ff;
}

.dg-contact-messenger {
    background: #0084ff;
}

.dg-contact-telegram {
    background: #0088cc;
}

.dg-contact-tooltip {
    position: absolute;
    left: 70px;
    background: white;
    color: var(--text);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dg-contact-button:hover .dg-contact-tooltip {
    opacity: 1;
    visibility: visible;
    left: 80px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.dg-chat-box {
    position: fixed;
    bottom: 260px;
    right: 90px;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dg-chat-box.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.dg-chat-header {
    background: var(--gradient);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dg-chat-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dg-chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.dg-chat-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    background: #f5f7fa;
}

.dg-chat-message {
    margin-bottom: 15px;
    display: flex;
}

.dg-chat-message.received {
    justify-content: flex-start;
}

.dg-chat-message.sent {
    justify-content: flex-end;
}

.dg-message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 14px;
}

.dg-chat-message.received .dg-message-content {
    background: white;
    color: var(--text);
    border-top-left-radius: 5px;
}

.dg-chat-message.sent .dg-message-content {
    background: var(--primary);
    color: white;
    border-top-right-radius: 5px;
}

.dg-chat-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: white;
    border-top: 1px solid var(--light-gray);
}

.dg-chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.dg-chat-send {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dg-chat-send:hover {
    background: var(--primary-dark);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(-5deg);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-5deg);
    }
    20% {
        transform: rotateZ(4deg);
    }
    25% {
        transform: rotateZ(-4deg);
    }
    30% {
        transform: rotateZ(3deg);
    }
    35% {
        transform: rotateZ(-2deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

.wiggle {
    animation: wiggle 5s linear infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 42px;
    }
    
    .floating-cards {
        height: 380px;
    }
    
    .card {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: all 0.4s ease;
        z-index: 999;
        padding: 40px 20px;
        backdrop-filter: blur(10px);
        overflow-y: auto;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
    }
    
    .navbar a {
        font-size: 18px;
        padding: 10px 0;
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .services, .cta-buttons {
        justify-content: center;
    }
    
    .floating-cards {
        height: 350px;
        margin-top: 50px;
    }
    
    .card {
        width: 220px;
        padding: 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
     .service-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    
    .logo span {
        font-size: 20px;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
         font-size: 1.1rem;
        text-align: center;
        max-width: 100%;
    }
    
    .service-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-cards {
        height: 300px;
    }
    
    .card {
        width: 180px;
        padding: 15px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-content {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .stat-item p {
        font-size: 16px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .dg-chat-box {
        width: 300px;
        left: 15px;
        bottom: 110px;
    }
    
    .dg-contact-wrapper {
        right: 15px;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .services {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-container .logo img {
        height: 80px;
    }
    
    .hero-container .logo-text {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .services {
        flex-direction: column;
        align-items: center;
    }
    
    .service-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .floating-cards {
        display: none;
    }
    
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid, .pricing-cards, .portfolio-grid, .service-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .dg-chat-box {
        width: calc(100% - 30px);
        left: 15px;
    }
}


/* Thêm vào file CSS */
.header-background-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.header-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 82, 152, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-weight: 600;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}






/* Biến toàn cục */
:root {
    --primary: #2a5298;
    --primary-dark: #1e3c72;
    --secondary: #6e8efb;
    --accent: #a777e3;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-reverse: linear-gradient(135deg, var(--accent), var(--primary));
    --light: #f8f9fa;
    --dark: #212529;
    --text: #333;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header mới với hiệu ứng đẹp */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(16px);
}

.header.hidden {
    transform: translateY(-100%);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 24px;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
    color: var(--accent);
}

.logo img {
    height: 40px;
    margin-right: 12px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.logo a:hover img {
    transform: rotate(5deg);
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar li {
    position: relative;
}

.navbar a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    display: block;
}

.navbar a:hover {
    color: var(--primary);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 10px;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a.active {
    color: var(--primary);
    font-weight: 600;
}

.navbar a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn.login {
    background: var(--light-gray);
    color: var(--text);
    border: 1px solid transparent;
}

.btn.login:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(42, 82, 152, 0.2);
}

.btn.register {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.btn.register:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.4);
    background: var(--gradient-reverse);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Hero Section với hiệu ứng mới */
.hero-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 150px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
     font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(42, 82, 152, 0.1);
    border-radius: 30px;
    animation: fadeIn 1s ease-out 0.2s both;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--gray);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.services {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.service-btn {
    padding: 15px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.service-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background: var(--primary);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.service-btn i {
    transition: all 0.3s ease;
}

.service-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s both;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 16px 32px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(42, 82, 152, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    font-weight: 600;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.2);
}

.hero-visual {
    flex: 1;
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.floating-cards {
    position: relative;
    height: 400px;
}

.card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.card:nth-child(1) {
    top: 0;
    left: 0;
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.card:nth-child(2) {
    top: 50px;
    right: 0;
    transform: rotate(3deg);
    animation: float 7s ease-in-out infinite 1s;
    z-index: 2;
}

.card:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    animation: float 8s ease-in-out infinite 2s;
    z-index: 1;
}

.card:hover {
    transform: translateY(-15px) rotate(0deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
    border-radius: 50%;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.card-content {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(-5deg);
    }
}

/* Các phần còn lại của CSS giữ nguyên */
.stats {
    padding: 80px 0;
    background: white;
}

/* ... (giữ nguyên các phần CSS khác của bạn) ... */

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .floating-cards {
        height: 380px;
    }
    
    .card {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .header .container {
        padding: 0 20px;
    }
    
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: all 0.4s ease;
        z-index: 999;
        padding: 40px 20px;
        backdrop-filter: blur(10px);
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 25px;
    }
    
    .navbar a {
        font-size: 18px;
        padding: 12px 0;
        display: block;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        flex: 1;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
    text-align: left;
    }
    
    .services, .cta-buttons {
        justify-content: center;
    }
    
    .floating-cards {
        height: 350px;
        margin-top: 50px;
    }
    
    .card {
        width: 250px;
        padding: 25px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    
    .logo span {
        font-size: 20px;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .service-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-cards {
        height: 300px;
    }
    
    .card {
        width: 220px;
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-content {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-container {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .services {
        flex-direction: column;
        align-items: center;
    }
    
    .service-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .floating-cards {
        display: none;
    }
}


/* ===== FONT CHỮ ĐẸP CHO PHẦN HERO ===== */

/* Import các font chữ đẹp từ Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* Phần tagline */
.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(42, 82, 152, 0.1);
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tiêu đề chính */
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

/* Hiệu ứng gradient cho tiêu đề (tuỳ chọn) */
.hero-title.gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Phần mô tả phụ */
.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray);
    line-height: 1.6;
    max-width: 90%;
}

/* Hiệu ứng animation cho chữ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Responsive cho mobile */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-tagline {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 14px;
        padding: 6px 15px;
    }
}

/* Hiệu ứng hover cho phần tagline */
.hero-tagline:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.2);
    transition: all 0.3s ease;
}


/* Hiệu ứng loading khi chuyển trang */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

.loading-logo {
    width: 80px;
    height: 80px;
    animation: rotateAndPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(42, 82, 152, 0.3));
}

@keyframes rotateAndPulse {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.7;
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}


/* ===== MOBILE MENU FIXES ===== */
@media (max-width: 992px) {
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: all 0.4s ease;
        z-index: 999;
        padding: 40px 20px;
        overflow-y: auto;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 25px;
        padding: 0;
    }
    
    .navbar a {
        font-size: 18px;
        padding: 12px 0;
        display: block;
        text-align: center;
        color: var(--text) !important;
    }
    
    .navbar a::after {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        z-index: 1001;
    }
    
    /* Đảm bảo header không bị ẩn trên mobile */
    .header {
        padding: 12px 0 !important;
    }
    
    .header.hidden {
        transform: translateY(0) !important;
    }
    
    /* Điều chỉnh logo trên mobile */
    .logo span {
        font-size: 20px;
    }
    
    /* Ẩn nút auth trên mobile */
    .auth-buttons {
        display: none;
    }
}

/* Điều chỉnh cho màn hình rất nhỏ */
@media (max-width: 576px) {
    .navbar {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .navbar ul {
        gap: 20px;
    }
    
    .navbar a {
        font-size: 16px;
    }
}

/* Hiệu ứng cho menu items khi mở */
.navbar.active li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar.active li:nth-child(1) { transition-delay: 0.1s; }
.navbar.active li:nth-child(2) { transition-delay: 0.15s; }
.navbar.active li:nth-child(3) { transition-delay: 0.2s; }
.navbar.active li:nth-child(4) { transition-delay: 0.25s; }
.navbar.active li:nth-child(5) { transition-delay: 0.3s; }

.navbar.active.show-items li {
    opacity: 1;
    transform: translateX(0);
}

/* Nút menu mobile */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    border: none;
    font-size: 24px;
    color: var(--text);
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Đảm bảo nút hiển thị trên mobile */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}