/* 
 * AINudeGeneratorUS.pw
 * Main Stylesheet
 * American-themed design with navy blue and red
 */

:root {
  /* American flag inspired colors */
  --primary: #0A3161;    /* Navy blue */
  --secondary: #B22234;  /* Red */
  --accent: #FFFFFF;     /* White */
  --dark: #111111;
  --light: #F8F9FA;
  --gray: #7A7A7A;
  --light-gray: #E9ECEF;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border radius */
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--accent);
}

.page-wrapper {
  overflow: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

h1 {
  font-size: 2.75rem;
}

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

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* Header styles */
.main-header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-md);
  position: relative;
}

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

.logo svg {
  margin-right: 0.75rem;
}

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

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

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

.main-nav li {
  margin-left: var(--spacing-md);
}

.main-nav a {
  font-weight: 500;
  position: relative;
}

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

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

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--accent);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero section */
.hero-section {
  padding: var(--spacing-xl) 0;
  position: relative;
  background-color: var(--light);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 49, 97, 0.05) 0%, rgba(178, 34, 52, 0.05) 100%);
  z-index: 0;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  flex: 0 0 450px;
}

.age-alert {
  display: flex;
  align-items: center;
  background-color: rgba(178, 34, 52, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.age-alert svg {
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.age-alert span {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* Features section */
.features-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--accent);
}

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

.feature-card {
  padding: var(--spacing-md);
  background-color: var(--light);
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: rgba(10, 49, 97, 0.1);
}

.feature-icon {
  margin-bottom: var(--spacing-sm);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* Process section */
.process-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--light);
  position: relative;
}

.process-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, var(--accent) 25%, transparent 25%, transparent 75%, var(--accent) 75%, var(--accent)), 
                    linear-gradient(45deg, var(--accent) 25%, transparent 25%, transparent 75%, var(--accent) 75%, var(--accent));
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  opacity: 0.3;
  z-index: 0;
}

.process-section .container {
  position: relative;
  z-index: 1;
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--accent);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.process-step:not(:last-child) .step-marker::after {
  content: "";
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 1.5rem);
  background-color: var(--primary);
  opacity: 0.3;
}

.step-details {
  flex: 1;
  padding-top: 0.5rem;
}

.step-details h3 {
  margin-bottom: 0.5rem;
}

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

.cta-container {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 1rem;
}

/* FAQ section */
.faq-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--accent);
}

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

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background-color: var(--light);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  border-bottom: 1px solid var(--light-gray);
}

.faq-question span {
  flex: 1;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .arrow-icon {
  transform: rotate(180deg);
}

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

.faq-answer p {
  padding: 1.25rem 0;
  color: var(--gray);
}

/* Footer */
.main-footer {
  background-color: var(--primary);
  color: var(--accent);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-brand {
  flex: 1;
  min-width: 240px;
}

.footer-brand svg {
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: var(--spacing-xl);
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

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

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--accent);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent);
}

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

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.keywords {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section .container {
    flex-direction: column;
  }
  
  .hero-content {
    margin-bottom: var(--spacing-lg);
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    flex: 0 0 auto;
    max-width: 100%;
  }
  
  .process-step {
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 101;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--accent);
    padding-top: 70px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
  }
  
  .main-nav li {
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .main-nav li:last-child {
    border-bottom: none;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content, .feature-card, .process-step, .faq-item {
  animation: fadeIn 0.6s ease forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.6s;
}

.process-step:nth-child(2) {
  animation-delay: 0.3s;
}

.process-step:nth-child(3) {
  animation-delay: 0.6s;
}

.faq-item:nth-child(2) {
  animation-delay: 0.2s;
}

.faq-item:nth-child(3) {
  animation-delay: 0.4s;
}

.faq-item:nth-child(4) {
  animation-delay: 0.6s;
}
