/* 
* Main Stylesheet for undressaiapp.ai
* Modern, responsive design with focus on performance and aesthetics
*/

/* CSS Reset and Base Styles */
:root {
  --primary: #6200EA;
  --primary-light: #B721FF;
  --secondary: #3D5AFE;
  --dark: #1A1A2E;
  --dark-light: #2D2D42;
  --light: #F8F9FA;
  --gray: #6c757d;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Arial', sans-serif;
  --border-radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 16px rgba(0,0,0,.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

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

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

a:hover, a:focus {
  color: var(--primary-light);
  text-decoration: none;
}

ul {
  list-style: none;
}

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

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

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

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

/* Header Styles */
header {
  background-color: var(--light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

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

.logo-icon {
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--border-radius);
}

.nav-links a:hover {
  background-color: rgba(98, 0, 234, 0.08);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  position: absolute;
  left: 0;
  transition: var(--transition);
  border-radius: 3px;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(98, 0, 234, 0.05) 0%, rgba(183, 33, 255, 0.1) 100%);
  padding: 80px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content h1 {
  color: var(--dark);
  margin-bottom: 20px;
  font-size: 3rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gray);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 12px rgba(98, 0, 234, 0.3);
}

.cta-button:hover {
  box-shadow: 0 6px 16px rgba(98, 0, 234, 0.4);
  transform: translateY(-2px);
  color: white;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  color: var(--primary);
  margin-bottom: 20px;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
  background-color: rgba(98, 0, 234, 0.03);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.step {
  position: relative;
  text-align: center;
  padding: 20px;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

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

.cta-block p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.benefit-item {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background-color: rgba(98, 0, 234, 0.03);
}

.faq-items {
  margin-top: 40px;
}

.faq-item {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 25px;
  margin-bottom: 15px;
}

.faq-item h3 {
  cursor: pointer;
  position: relative;
  font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
}

.cta-section h2:after {
  background: white;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-section .cta-button {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-button:hover {
  background: white;
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--dark);
  padding: 60px 0 30px;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo svg {
  margin-bottom: 10px;
}

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

.footer-column h4 {
  color: white;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h4:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

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

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
    align-items: center;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-links {
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    flex-direction: column;
    background-color: white;
    box-shadow: var(--shadow-md);
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    gap: 15px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

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

.feature-card, .step, .benefit-item, .faq-item {
  animation: fadeIn 0.6s ease-out forwards;
}

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

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

/* Accessibility improvements */
:focus {
  outline: 3px solid rgba(98, 0, 234, 0.5);
  outline-offset: 2px;
}

/* Additional SEO OG Image */
.og-image-svg {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
