/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-image {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-image svg {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Tính năng */
.features-section {
    padding: 6rem 0;
    background: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--accent-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: background 0.3s, box-shadow 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--accent-gradient);
    box-shadow: 0 10px 30px rgba(255, 179, 71, 0.3);
}

.feature-icon--secondary {
    background: linear-gradient(45deg, var(--secondary-accent) 0%, #d946ef 100%);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.feature-card:hover .feature-icon--secondary {
    background: var(--primary-gradient);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}


.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Cách hoạt động */
.steps-section {
    padding: 6rem 0;
    background: var(--background-light);
}

.step {
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    background: white;
}

.step:hover {
    transform: translateY(-10px);
    border: 1px solid var(--secondary-accent);
    background: rgba(236, 72, 153, 0.05);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.2);
}

.step h3 {
    color: var(--text-primary);
    margin: 1rem 0;
    font-weight: 700;
}

.step p {
    color: var(--text-secondary);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 179, 71, 0.4);
    transition: all 0.3s ease;
}

.step-number--secondary {
    background: linear-gradient(45deg, var(--secondary-accent) 0%, #d946ef 100%);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 179, 71, 0.6);
}

.step:hover .step-number--secondary {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.6);
}

/* Kêu gọi hành động */
.cta-section {
    padding: 6rem 0;
    background: var(--primary-gradient);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
        min-height: auto;
        /* Allow height to adjust */
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-image svg {
        max-width: 400px;
    }

    .features-section,
    .steps-section,
    .cta-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .feature-card,
    .step {
        padding: 2rem;
    }

    .feature-icon,
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-card h3,
    .step h3 {
        font-size: 1.3rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .feature-card,
    .step {
        padding: 1.5rem;
    }

    .feature-icon,
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .feature-card h3,
    .step h3 {
        font-size: 1.2rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }
}