/* Modern, SEO-optimized CSS for aocaiporn.love */
:root {
  --primary: #00c9a7;
  --secondary: #9b59b6;
  --accent: #f39c12;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --text: #34495e;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --transition: all 0.3s ease-in-out;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.3;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--gradient);
  color: white;
  border-radius: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:hover::before {
  opacity: 1;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(44, 62, 80, 0.8);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
  padding: 0.6rem 0;
  background: rgba(44, 62, 80, 0.95);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  height: 2.5rem;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: white;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

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

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  z-index: -2;
}

.hero::after {
  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' width='80' height='80' viewBox='0 0 100 100'%3E%3Crect x='0' y='0' width='5' height='5' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.5;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  color: white;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image svg {
  width: 100%;
  max-width: 450px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Features Section */
.features {
  padding: 8rem 0;
  background: white;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: -5rem;
  left: 0;
  width: 100%;
  height: 5rem;
  background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

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

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  display: inline-block;
  position: relative;
  margin-bottom: 1.5rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 30%;
  width: 40%;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text);
  opacity: 0.8;
}

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

.feature-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  border-image: var(--gradient);
  border-image-slice: 1;
}

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

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
  fill: white;
}

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

/* How It Works */
.how-it-works {
  padding: 8rem 0;
  background: #f9f9f9;
}

.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps::before {
  content: '';
  position: absolute;
  top: 3rem;
  left: 1.5rem;
  width: calc(100% - 3rem);
  height: 4px;
  background: var(--gradient);
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 30%;
}

.step-number {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  box-shadow: 0 0 0 8px white, 0 0 0 10px rgba(155, 89, 182, 0.3);
}

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

/* Testimonials */
.testimonials {
  padding: 8rem 0;
  background: var(--dark);
  color: white;
  position: relative;
}

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

.testimonial {
  text-align: center;
}

.testimonial-text {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  line-height: 0;
}

.testimonial-text::before {
  top: 0.5rem;
  left: -1rem;
}

.testimonial-text::after {
  bottom: -1rem;
  right: -1rem;
  transform: rotate(180deg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-image {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background: var(--gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::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' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' stroke='rgba(255,255,255,0.1)' stroke-width='8' fill='none'/%3E%3C/svg%3E");
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

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

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

.btn-light {
  background: white;
  color: var(--primary);
}

/* Footer */
.footer {
  padding: 5rem 0 2rem;
  background: var(--dark);
  color: white;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 2rem;
  height: 2rem;
}

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

.footer-links h4 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.2rem;
  position: relative;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

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

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

.footer-links a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero-text p {
    margin: 0 auto 2rem;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  
  .steps::before {
    width: 4px;
    height: calc(100% - 3rem);
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .step {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 4rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 4rem);
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-list.active {
    transform: translateX(0);
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-in-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
