/* 
   myimgai.site CSS - Modern, SEO-optimized design
   Color scheme: Red/Orange gradient with dark accents
*/

:root {
  --primary-gradient-start: #FF3366;
  --primary-gradient-end: #FF9933;
  --accent-color: #3366FF;
  --text-color: #333333;
  --light-text: #FFFFFF;
  --dark-bg: #222222;
  --light-bg: #F8F8F8;
  --card-bg: #FFFFFF;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  font-size: 16px;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.2rem;
  display: inline-block;
  position: relative;
  margin-bottom: 1.5rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  border-radius: 2px;
}

.center-underline h2:after {
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-gradient-end);
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-bg);
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 15px 0;
}

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

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

.logo-text {
  margin-left: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--light-text);
}

.logo-highlight {
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, var(--primary-gradient-start), var(--primary-gradient-end));
  z-index: -1;
}

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

.hero-content {
  color: var(--light-text);
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
}

.hero-frame {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 35px;
  font-weight: 600;
  border-radius: 50px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--light-text);
  box-shadow: 0 5px 15px rgba(51, 102, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(51, 102, 255, 0.5);
  color: var(--light-text);
}

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

.btn-outline:hover {
  background-color: var(--light-text);
  color: var(--primary-gradient-start);
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.feature-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: transform var(--transition-speed) ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-gradient-start), var(--primary-gradient-end));
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  margin-bottom: 20px;
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
  background: var(--dark-bg);
  color: var(--light-text);
  position: relative;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 51, 102, 0.1) 0%, rgba(34, 34, 34, 0) 70%);
  z-index: 0;
}

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

.step {
  position: relative;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Testimonial */
.testimonial {
  padding: 100px 0;
  background: var(--light-bg);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  padding: 40px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: """;
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-size: 8rem;
  color: rgba(255, 51, 102, 0.1);
  font-family: Georgia, serif;
  line-height: 0;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-name {
  font-weight: 700;
  color: var(--primary-gradient-start);
}

.author-position {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: var(--light-text);
  text-align: center;
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 2px, transparent 2px);
  background-size: 30px 30px;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 20px;
}

.cta h2:after {
  background: var(--light-text);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

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

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-logo {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-logo-text {
  margin-left: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light-text);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--primary-gradient-end);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 150px 0 80px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    display: none;
  }
  
  .features, .how-it-works, .testimonial, .cta {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 12px 30px;
  }
  
  .feature-card {
    padding: 30px 20px;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 130px 0 60px;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
  
  .cta {
    padding: 80px 0;
  }
}

/* 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);
}
