/* 
 * Thiết kế CSS cho nudeifyVN.site
 * Màu chính: Hồng (#E91E63) và Tím (#9C27B0)
 */

:root {
    --primary: #E91E63;
    --secondary: #9C27B0;
    --dark: #212121;
    --light: #FAFAFA;
    --gray: #757575;
    --light-gray: #F5F5F5;
    --success: #4CAF50;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 5px 20px rgba(233, 30, 99, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* Reset và thiết lập cơ bản */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Noto Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Banner trên cùng */
.banner {
    background-color: var(--secondary);
    color: white;
    padding: 10px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.banner-badge {
    background-color: white;
    color: var(--secondary);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.banner-text {
    font-size: 0.9rem;
}

/* Header và Navigation */
.site-header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-accent {
    color: var(--primary);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 2;
}

.nav-toggle-label span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle-label span:nth-child(1) { top: 0; }
.nav-toggle-label span:nth-child(2) { top: 10px; }
.nav-toggle-label span:nth-child(3) { top: 20px; }

.site-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.site-nav a {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.site-nav a:not(.nav-button) {
    color: var(--dark);
}

.site-nav a:not(.nav-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.site-nav a:not(.nav-button):hover {
    color: var(--primary);
}

.site-nav a:not(.nav-button):hover::after {
    width: 100%;
}

.nav-button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.nav-button:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* Hero Section */
.hero {
    padding: 70px 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.08), transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.08), transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.text-accent {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.button.large {
    padding: 14px 30px;
    font-size: 1.1rem;
}

.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(233, 30, 99, 0.2);
}

.feature-icon {
    margin: 0 auto 20px;
}

.feature-card h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: white;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 60px auto 40px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.step-icon {
    position: relative;
    flex-shrink: 0;
}

.step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-weight: 700;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-content p {
    color: var(--gray);
}

.section-action {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--dark);
    transition: var(--transition);
}

.faq-question:hover h3 {
    color: var(--primary);
}

.faq-toggle {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-toggle span {
    position: absolute;
    background-color: var(--primary);
    transition: var(--transition);
}

.faq-toggle span:first-child {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-toggle span:last-child {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.active .faq-toggle span:last-child {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 300px;
}

.faq-answer p {
    color: var(--gray);
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-branding {
    text-align: center;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-domain {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-nav h4,
.footer-legal h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-nav h4::after,
.footer-legal h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-nav ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

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

@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1;
        transition: var(--transition);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-toggle:checked ~ .site-nav {
        right: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        top: 10px;
        transform: rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        top: 10px;
        transform: rotate(-45deg);
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .footer-nav h4::after,
    .footer-legal h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

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

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-icon {
        margin-bottom: 15px;
    }

    .step-content h3 {
        text-align: center;
    }
}
