/* Modern CSS for aiphotoeditor.site with variables for easy theme changes */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-text: #ffffff;
  --background: #f5f7fa;
  --card-bg: #ffffff;
  --section-bg: #eef2f7;
  --gradient: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
  --transition: all 0.25s ease;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
}

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

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

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

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--light-text);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--light-text);
}

/* Header */
header {
  background: var(--secondary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  color: var(--light-text);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style-type: none;
  gap: 1.5rem;
}

.nav-menu li a {
  color: var(--light-text);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-menu li a:hover, 
.nav-menu li a.active {
  background: rgba(255,255,255,0.1);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  position: relative;
  background: var(--gradient);
  color: var(--light-text);
  padding: 6rem 0;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.1)' fill-opacity='1' d='M0,160L48,170.7C96,181,192,203,288,192C384,181,480,139,576,138.7C672,139,768,181,864,197.3C960,213,1056,203,1152,176C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

/* Features section */
.features {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature-box {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.feature-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.feature-box p {
  color: #666;
}

/* How It Works section */
.how-it-works {
  background: var(--section-bg);
  padding: 5rem 0;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

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

.step h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* CTA section */
.cta {
  background: var(--gradient);
  color: var(--light-text);
  padding: 5rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta .btn {
  background: white;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 15px 40px;
}

.cta .btn:hover {
  background: rgba(255,255,255,0.9);
  color: var(--accent-color);
}

/* Footer */
footer {
  background: var(--secondary-color);
  color: var(--light-text);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-about .logo {
  margin-bottom: 1rem;
}

.footer-about p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

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

.footer-links a:hover {
  color: var(--light-text);
  padding-left: 5px;
}

.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive styles */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease;
  }
  
  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .features-container {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-box {
    width: 100%;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
