/*
 * aiphotoeditor.love - Main Stylesheet
 * Unique blue and orange color scheme with modern tech design
 */

:root {
  /* Primary color scheme */
  --primary: #1565C0;       /* Blue */
  --secondary: #FF5722;     /* Orange */
  --accent: #03A9F4;        /* Light Blue accent */
  --dark: #263238;          /* Dark background */
  --light: #FAFAFA;         /* Light background */
  --text-dark: #263238;     /* Dark text */
  --text-light: #FFFFFF;    /* Light text */
  --text-muted: #78909C;    /* Muted text */
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  
  /* Gradient variations */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-horizontal: linear-gradient(90deg, var(--primary), var(--secondary));
  --gradient-dark: linear-gradient(135deg, var(--dark), #37474F);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  /* Fonts */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-secondary);
  color: var(--text-dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  text-align: center;
}

h2 span {
  color: var(--secondary);
  position: relative;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
}

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

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

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

ul {
  list-style: none;
}

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

section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: #0D47A1; /* Darker shade */
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

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

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--light);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  background: var(--gradient-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-family: var(--font-primary);
  padding: 0.5rem 0;
  position: relative;
}

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

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

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.nav-cta {
  color: var(--secondary);
  font-weight: 600;
}

.nav-cta:hover {
  color: var(--secondary);
}

.nav-cta::after {
  background-color: var(--secondary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: var(--radius-full);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  background-color: var(--light);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: var(--gray-100);
  z-index: -1;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
}

.hero-content h2 {
  font-size: 3.2rem;
  text-align: left;
  margin-bottom: var(--space-sm);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

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

.hero-visual svg {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(var(--shadow-md));
}

/* Features Section */
.features {
  background-color: var(--gray-100);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(21, 101, 192, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 87, 34, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.feature-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.feature-card:nth-child(odd):hover {
  border-bottom: 3px solid var(--primary);
}

.feature-card:nth-child(even):hover {
  border-bottom: 3px solid var(--secondary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gray-300);
  z-index: 0;
}

.step {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: var(--text-light);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto var(--space-sm);
}

.step h3 {
  margin-bottom: var(--space-xs);
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Examples Section */
.examples {
  background-color: var(--gray-100);
  padding-bottom: var(--space-xl);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.example-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background-color: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.example-before, .example-after {
  position: relative;
  width: 100%;
}

.example-before svg, .example-after svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.example-before span, .example-after span {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.example-arrow {
  width: 50px;
  height: 30px;
}

.examples-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* Get Started Section */
.get-started {
  background: var(--gradient-primary);
  color: var(--text-light);
  text-align: center;
  padding: var(--space-lg) 0;
}

.get-started h2, .get-started h2 span {
  color: var(--text-light);
}

.cta-text {
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  margin-bottom: var(--space-md);
}

.get-started .btn-primary {
  background-color: var(--text-light);
  color: var(--primary);
}

.get-started .btn-primary:hover {
  background-color: var(--gray-100);
}

.note {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--gray-300);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand-text h3 {
  color: var(--text-light);
  margin: 0;
  font-size: 1.2rem;
}

.footer-brand-text p {
  color: var(--secondary);
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.footer-nav h4, .footer-legal h4 {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.footer-nav ul, .footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

footer a {
  color: var(--gray-300);
}

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

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

/* Responsive styles */
@media (max-width: 992px) {
  :root {
    --space-xl: 4rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-content h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 2.4rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  nav.active ul {
    right: 0;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero::before {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  }
  
  .hero-content h2, .hero-content p {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .steps::before {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .footer-brand {
    justify-content: center;
    margin-bottom: var(--space-md);
  }
  
  .footer-links {
    text-align: center;
  }
}

@media (max-width: 576px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .feature-card {
    padding: var(--space-sm);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}
