/* 
   AINudeGeneratorVN.pw - CSS chính
   Bảng màu lấy cảm hứng từ cờ Việt Nam: đỏ (#DA251D), vàng (#FFCD00)
*/

:root {
  --primary: #DA251D;     /* Đỏ từ cờ Việt Nam */
  --secondary: #FFCD00;   /* Vàng từ cờ Việt Nam */
  --accent: #007F3E;      /* Xanh lá đậm cho điểm nhấn */
  --light: #FFFFFF;
  --dark: #222222;
  --gray: #777777;
  --gradient: linear-gradient(120deg, var(--primary) 0%, #B8000B 100%);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s ease;
  --radius: 6px;
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f9f9f9;
  overflow-x: hidden;
}

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

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

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

/* Nút */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--light);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 8px rgba(218, 37, 29, 0.3);
}

.btn:hover {
  background-color: #B8000B;
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(184, 0, 11, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
  box-shadow: 0 4px 8px rgba(255, 205, 0, 0.3);
}

.btn-secondary:hover {
  background-color: #E6B800;
  color: var(--dark);
  box-shadow: 0 6px 12px rgba(230, 184, 0, 0.4);
}

.btn-large {
  padding: 16px 36px;
  font-size: 18px;
}

/* Header và Thanh điều hướng */
header {
  background-color: var(--light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.logo svg {
  margin-right: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

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

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

/* Phần Hero */
.hero {
  background: var(--gradient);
  padding: 100px 0 80px;
  text-align: center;
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 0L100 50L50 100L0 50Z' fill='%23ffffff' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.hero-stats {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

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

.hero-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
}

.hero-stat-text {
  font-size: 14px;
  opacity: 0.9;
}

/* Phần Tính Năng */
.features {
  padding: 80px 0;
  background-color: var(--light);
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  position: relative;
  color: var(--dark);
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

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

.feature-card {
  background-color: var(--light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-top: 3px solid var(--primary);
}

.feature-icon {
  background: rgba(218, 37, 29, 0.1);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
}

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

/* Phần Cách Hoạt Động */
.how-it-works {
  padding: 80px 0;
  background-color: #f3f3f3;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: var(--secondary);
  opacity: 0.05;
  border-radius: 50% 0 0 50%;
}

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

.step {
  text-align: center;
  max-width: 280px;
  background-color: var(--light);
  border-radius: var(--radius);
  padding: 30px 20px;
  box-shadow: var(--shadow);
}

.step-number {
  background-color: var(--secondary);
  color: var(--dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

/* Phần Giới Thiệu */
.about {
  padding: 80px 0;
  background-color: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  color: var(--dark);
  margin-bottom: 25px;
  font-size: 32px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-text .btn {
  margin-top: 15px;
}

.about-image svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Phần CTA */
.cta {
  padding: 80px 0;
  background: var(--gradient);
  text-align: center;
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--secondary);
  opacity: 0.1;
  border-radius: 50%;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.cta .btn {
  background-color: var(--secondary);
  color: var(--dark);
  font-weight: 700;
}

.cta .btn:hover {
  background-color: #E6B800;
}

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

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

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
  color: var(--secondary);
}

.footer-column h3:after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary);
  position: absolute;
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
}

.footer-links a:hover {
  color: var(--light);
}

.footer-favicon {
  display: block;
  margin-top: 20px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #aaa;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .about-image svg {
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--light);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hero h1 {
    font-size: 30px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
}
