/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}



.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2951b5;
}

    .logo i {
        margin-right: 0.5rem;
        font-size: 1.8rem;
        background: linear-gradient(135deg, #2951b5, #7c3aed);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }


/* Hero Section */
.hero {
    min-height: 100vh;
    background: #2951b5;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
    }

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd89b, #19547b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.cta-button {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
    }

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .secondary-button:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.6);
    }

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.quiz-card {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.question-mark {
    font-size: 8rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-icons {
    position: absolute;
}

    .floating-icons i {
        position: absolute;
        color: rgba(255, 255, 255, 0.8);
        font-size: 2rem;
        animation: float-icon 4s ease-in-out infinite;
    }

        .floating-icons i:nth-child(1) {
            top: -50px;
            left: -30px;
            animation-delay: -1s;
        }

        .floating-icons i:nth-child(2) {
            top: -30px;
            right: -40px;
            animation-delay: -2s;
        }

        .floating-icons i:nth-child(3) {
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            animation-delay: -3s;
        }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, #2951b5, #7c3aed);
    }

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2951b5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-demo {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #475569;
    border-left: 4px solid #2951b5;
}

/* Demo Section */
.demo-section {
    padding: 6rem 0;
    background: white;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.demo-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.demo-content p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.demo-mockup {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

    .mockup-dot:nth-child(1) {
        background: #ef4444;
    }

    .mockup-dot:nth-child(2) {
        background: #f59e0b;
    }

    .mockup-dot:nth-child(3) {
        background: #10b981;
    }

.mockup-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
}

.question-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .question-item:hover {
        border-color: #2951b5;
        box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
    }

.question-text {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.answer-options {
    display: grid;
    gap: 0.5rem;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .answer-option:hover {
        background: #f1f5f9;
    }

    .answer-option input[type="radio"] {
        accent-color: #2951b5;
    }

/* User Types Section */
.user-types {
    padding: 6rem 0;
    background: #f8fafc;
}

.user-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.user-type-card {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .user-type-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.1), transparent);
        transform: rotate(45deg);
        transition: all 0.5s ease;
        opacity: 0;
    }

    .user-type-card:hover::before {
        opacity: 1;
        animation: shimmer 1.5s ease-in-out;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.user-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.user-type-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2951b5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.5rem;
}

.user-type-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.user-benefits {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

    .user-benefits li {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        color: #475569;
    }

    .user-benefits i {
        color: #10b981;
        margin-right: 1rem;
        font-size: 1.2rem;
    }

/* Register Section */
.register-section {
    padding: 6rem 0;
    background: #2951b5;
    position: relative;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.register-info {
    color: white;
}

    .register-info h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .register-info p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

.benefits-list {
    list-style: none;
}

    .benefits-list li {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .benefits-list i {
        color: #10b981;
        margin-right: 1rem;
        font-size: 1.2rem;
    }

.register-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.register-form h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #1e293b;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #374151;
    }

    .form-group input, .form-group select {
        width: 100%;
        padding: 1rem;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

        .form-group input:focus, .form-group select:focus {
            outline: none;
            border-color: #2951b5;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .checkbox-group input[type="checkbox"] {
        width: auto;
    }

.terms-link {
    color: #2951b5;
    text-decoration: none;
}

    .terms-link:hover {
        text-decoration: underline;
    }

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #2951b5, #7c3aed);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    }

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}


@keyframes glow {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

    .stat-item::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #2951b5, #7c3aed);
        border-radius: 2px;
    }

    .stat-item h5 {
        font-size: 3rem;
        font-weight: 800;
        background: linear-gradient(135deg, #2951b5, #7c3aed);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 0.5rem;
        text-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
    }

    .stat-item p {
        color: #cbd5e1;
        font-size: 1.1rem;
        font-weight: 500;
    }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

    .social-links a {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #334155, #475569);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .social-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #2951b5, #7c3aed);
            transition: all 0.3s ease;
        }

        .social-links a:hover::before {
            left: 0;
        }

        .social-links a i {
            position: relative;
            z-index: 1;
            font-size: 1.5rem;
        }

        .social-links a:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
        }

/* Newsletter Subscription */
.newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .newsletter h4 {
        margin-bottom: 1rem;
        color: #f1f5f9;
    }

    .newsletter p {
        color: #cbd5e1;
        margin-bottom: 1.5rem;
    }

.newsletter-form {
    display: flex;
    gap: 1rem;
}

    .newsletter-form input {
        flex: 1;
        padding: 1rem;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 1rem;
    }

        .newsletter-form input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .newsletter-form input:focus {
            outline: none;
            border-color: #2951b5;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
        }

    .newsletter-form button {
        padding: 1rem 2rem;
        background: linear-gradient(135deg, #2951b5, #7c3aed);
        color: white;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .newsletter-form button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
        }


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
}

    .close:hover {
        color: #ef4444;
    }

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    color: #64748b;
}

    .form-footer a {
        color: #2951b5;
        text-decoration: none;
    }

        .form-footer a:hover {
            text-decoration: underline;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        margin-top: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .register-container, .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .register-info {
        text-align: center;
    }

    .quiz-card {
        width: 250px;
        height: 250px;
        margin-top: 70px;
        margin-bottom: 100px;
    }

    .question-mark {
        font-size: 6rem;
    }

    .user-types-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .register-form-container {
        padding: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button, .secondary-button {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
