/* 
nudefyVN.pw - Trang web AI Cởi Đồ Việt Nam
Màu sắc: #DA251C (Đỏ Việt Nam), #FFFF00 (Vàng Việt Nam)
Font chữ: 'Montserrat' cho tiêu đề, 'Raleway' cho nội dung
*/

:root {
    --primary-color: #DA251C;
    --secondary-color: #FFFF00;
    --light-color: #F8F9FA;
    --dark-color: #333333;
    --text-color: #4A4A4A;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Raleway', sans-serif;
}

/* Reset và style chung */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

h2 span {
    color: var(--primary-color);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-color);
}

ul {
    list-style: none;
}

section {
    padding: 70px 0;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Nút bấm */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: var(--heading-font);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(218, 37, 28, 0.25);
}

.primary:hover {
    background-color: #c0211a;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(218, 37, 28, 0.35);
    color: white;
}

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

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

.cta-center {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.cta-left {
    margin-top: 20px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    align-items: center;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero section */
.hero {
    position: relative;
    padding: 60px 0;
    background-color: var(--light-color);
    background-image: radial-gradient(#DA251C 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0;
    background-blend-mode: soft-light;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 0 0 55%;
}

.subheading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 0 0 40%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* How It Works section */
.how-it-works {
    background-color: #FFFFFF;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 0 0 25%;
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}

.step-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 10%;
}

/* Features section */
.features {
    background-color: var(--light-color);
}

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

.feature-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

/* About section */
.about {
    background-color: #FFFFFF;
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-content {
    flex: 0 0 55%;
}

.about-image {
    flex: 0 0 40%;
}

.about h2 {
    text-align: left;
}

/* Footer */
footer {
    background-color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.footer-favicon {
    margin-left: 15px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 160px;
    margin-bottom: 25px;
    padding: 0 15px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 991px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        flex: 0 0 100%;
    }
    
    .hero-image {
        margin-top: 30px;
        order: 2;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .about-content, .about-image {
        flex: 0 0 100%;
    }
    
    .about-image {
        margin-top: 30px;
        order: -1;
    }
    
    .about h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        max-height: 300px;
        padding: 20px 0;
    }
    
    .menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        flex: 0 0 100%;
        max-width: 300px;
    }
    
    .step-connector {
        transform: rotate(90deg);
        margin: -15px 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .stats {
        justify-content: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
}
