/*
 * AINudeGeneratorMY.pw - Styles CSS
 * Theme: Malaysian flag colors
 * Date: August 2025
 */

:root {
  /* Malaysian flag colors */
  --navy: #00205b;
  --red: #EF1C27;
  --blue: #00D2EF;
  --yellow: #FFED00;
  --white: #ffffff;
  
  /* Complementary colors */
  --black: #111111;
  --dark-gray: #333333;
  --light-gray: #f8f8f8;
  --medium-gray: #dddddd;
  --dark-blue: #00134d;
  --light-blue: #14dbf9;
  
  /* Effects */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --gradient: linear-gradient(120deg, var(--blue), var(--red));
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--red);
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  color: var(--navy);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--red);
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--dark-gray);
}

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

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

section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header p {
  font-size: 1.1rem;
  margin-top: 15px;
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

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

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

.logo span {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
}

.logo svg {
  transition: transform 0.3s ease;
}

.logo:hover svg {
  transform: rotate(15deg);
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-list li a {
  color: var(--navy);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-list li a:hover {
  color: var(--red);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--red);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, rgba(255, 237, 0, 0.05) 0%, rgba(0, 210, 239, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.adult-tag {
  display: inline-block;
  background-color: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  font-size: 1rem;
  text-align: center;
}

.primary-btn {
  background-color: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

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

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

.hero-visual {
  flex: 1;
  position: relative;
  height: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.warning svg {
  color: var(--red);
  flex-shrink: 0;
}

.warning p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--dark-gray);
}

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

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

.feature-card {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--red);
  transition: var(--transition);
  z-index: -1;
}

.feature-card:nth-child(2)::before {
  background-color: var(--blue);
}

.feature-card:nth-child(3)::before {
  background-color: var(--yellow);
}

.feature-card:nth-child(4)::before {
  background-color: var(--navy);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.feature-icon {
  margin-bottom: 20px;
  color: var(--red);
}

.feature-card:nth-child(2) .feature-icon {
  color: var(--blue);
}

.feature-card:nth-child(3) .feature-icon {
  color: var(--navy);
}

.feature-card:nth-child(4) .feature-icon {
  color: var(--yellow);
}

/* How to Use Section */
.how-to-use {
  background: linear-gradient(135deg, rgba(239, 28, 39, 0.03) 0%, rgba(0, 32, 91, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

.steps-container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
}

.step:nth-child(2) .step-number {
  background-color: var(--blue);
}

.step:nth-child(3) .step-number {
  background-color: var(--yellow);
  color: var(--black);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 10px;
}

.center-cta {
  text-align: center;
  margin-top: 30px;
}

/* Stats Section */
.stats {
  background: linear-gradient(to right, var(--navy), var(--blue));
  padding: 60px 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
}

/* FAQ Section */
.faq {
  background-color: var(--white);
}

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

.faq-item {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

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

.faq-toggle {
  font-size: 1.5rem;
  color: var(--red);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 25px;
}

.faq-answer p {
  padding-bottom: 20px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-question {
  background-color: rgba(239, 28, 39, 0.05);
}

.faq-item.active .faq-question h3 {
  color: var(--red);
}

/* CTA Section */
.cta {
  background: linear-gradient(rgba(0, 32, 91, 0.9), rgba(0, 32, 91, 0.9)), 
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  text-align: center;
  padding: 80px 0;
  color: var(--white);
}

.cta h2 {
  color: var(--white);
  font-size: 2.3rem;
  margin-bottom: 20px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .legal-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 25px;
}

.cta .primary-btn {
  background-color: var(--yellow);
  color: var(--black);
}

.cta .primary-btn:hover {
  background-color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 70px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-info {
  max-width: 450px;
}

.footer-info .logo {
  margin-bottom: 20px;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

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

.link-column h4 {
  color: var(--yellow);
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

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

.link-column ul {
  list-style: none;
}

.link-column li {
  margin-bottom: 12px;
}

.link-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: all 0.2s;
}

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

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

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.keywords {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .warning {
    justify-content: center;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-info {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-info .logo {
    justify-content: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .link-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .link-column {
    text-align: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 75%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 50px 0;
    gap: 40px;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-list li a {
    font-size: 1.2rem;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
  
  .step {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-grid {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .cta h2 {
    font-size: 1.8rem;
  }
  
  .feature-card {
    padding: 20px;
  }
}
