/* 
Styles for AIpornGeneratorVN.site
Vietnamese color palette:
- Red: #DA251D (Vietnamese flag red)
- Yellow: #FFFF00 (Vietnamese flag yellow)
- Jade Green: #006C3C (Traditional Vietnamese color)
- Royal Purple: #39144F (Traditional Vietnamese color)
- White: #FFFFFF
*/

/* CSS Variables */
:root {
    --vietnam-red: #DA251D;
    --vietnam-yellow: #FFFF00;
    --vietnam-jade: #006C3C;
    --vietnam-purple: #39144F;
    --vietnam-orange: #F76E11;
    --white: #FFFFFF;
    --black: #121212;
    --light-grey: #F8F8F8;
    --dark-grey: #333333;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Be Vietnam Pro', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--light-grey);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 3rem;
}

/* Vietnamese Banner */
.vietnam-banner {
    background-color: var(--vietnam-red);
    color: var(--white);
    padding: 8px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vietnam-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20L30 10M20 20L10 10M20 20L30 30M20 20L10 30' stroke='%23FFFF00' stroke-width='1' opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.vietnam-banner .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Header */
.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-img {
    width: 50px;
    height: 50px;
}

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

.logo-text span {
    color: var(--vietnam-jade);
    display: block;
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--vietnam-red);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.nav-link {
    color: var(--dark-grey);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--vietnam-red);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--vietnam-red);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-button {
    background-color: var(--vietnam-red);
    color: var(--white);
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(218, 37, 29, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.nav-button:hover {
    background-color: var(--vietnam-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(57, 20, 79, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(45deg, rgba(218, 37, 29, 0.05) 0%, rgba(255, 255, 0, 0.05) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 20L35 30H25L30 20Z' fill='%23DA251D' fill-opacity='0.05'/%3E%3C/svg%3E");
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--vietnam-red);
    line-height: 1.2;
}

.hero-title span {
    color: var(--vietnam-purple);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 0, 0.5);
    z-index: -1;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-feature svg {
    width: 18px;
    height: 18px;
    color: var(--vietnam-red);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--vietnam-red);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(218, 37, 29, 0.3);
}

.btn-primary:hover {
    background-color: var(--vietnam-purple);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(57, 20, 79, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--vietnam-red);
    color: var(--white);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

/* Main Sections */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    color: var(--vietnam-red);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    background-color: var(--white);
}

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

.feature-card {
    background-color: var(--light-grey);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--vietnam-red);
}

.feature-icon {
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
}

.feature-title {
    font-size: 1.3rem;
    color: var(--vietnam-purple);
    margin-bottom: 15px;
}

.feature-description {
    color: var(--dark-grey);
    font-size: 1rem;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(135deg, rgba(0, 108, 60, 0.05) 0%, rgba(218, 37, 29, 0.05) 100%);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.step {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--vietnam-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-title {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--vietnam-purple);
}

.step-description {
    color: var(--dark-grey);
}

/* Testimonials */
.testimonials {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(218, 37, 29, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial {
    background-color: var(--light-grey);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: var(--vietnam-yellow);
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-content {
    color: var(--dark-grey);
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(218, 37, 29, 0.1);
    position: absolute;
    top: -30px;
    left: -10px;
    z-index: -1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--vietnam-purple);
}

.author-location {
    font-size: 0.9rem;
    color: var(--dark-grey);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--vietnam-red), var(--vietnam-purple));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30L45 15M30 30L15 15M30 30L45 45M30 30L15 45' stroke='%23FFFFFF' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E");
}

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

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.btn-cta {
    background-color: var(--white);
    color: var(--vietnam-red);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    background-color: var(--vietnam-yellow);
    color: var(--vietnam-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--vietnam-red);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--vietnam-yellow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

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

.footer-logo-img {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--white);
}

.social-link svg {
    width: 18px;
    height: 18px;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover svg {
    color: var(--vietnam-red);
}

.footer-links-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--vietnam-yellow);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-link:hover {
    color: var(--white);
    padding-left: 5px;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero-feature {
        width: 100%;
    }
    
    .hero-features {
        flex-direction: column;
    }
}
