/*
* wanaiporn.site - Main Stylesheet
* Modern, responsive design with blue/teal color scheme
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary color palette - blue/teal gradient theme (different from previous sites) */
  --primary-start: #3498DB;
  --primary-end: #16A085;
  --accent: #2980B9;
  --dark: #2c3e50;
  --light: #ffffff;
  --background: #f9f9f9;
  --text: #333;
  --text-light: #777;
  --gradient: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

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

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

section {
  padding: 80px 0;
  position: relative;
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

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

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

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

.logo h1 {
  font-size: 1.4rem;
  margin: 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links li a {
  color: var(--dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.nav-links li a:hover {
  color: var(--primary-start);
}

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

.nav-links li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark);
  transition: all 0.3s ease;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(41, 128, 185, 0.4);
  color: white;
}

.btn-primary.large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  border: 2px solid var(--primary-start);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(52, 152, 219, 0.1);
  color: var(--primary-start);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(41, 128, 185, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
  }
}

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: 100px;
  background: linear-gradient(170deg, #f0f9ff 0%, #e8f8f5 100%);
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  flex: 1;
  max-width: 600px;
  padding-right: 20px;
}

.hero-content h2 {
  font-size: 3.2rem;
  text-align: left;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content h2::after {
  left: 0;
  transform: none;
}

.hero-content h2 span {
  color: var(--primary-start);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

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

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

/* Features Section */
.features {
  background-color: var(--light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

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

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

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

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-light);
}

/* Gallery Section */
.gallery {
  background-color: var(--background);
}

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

.gallery-item {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.gallery-item h3 {
  padding: 20px;
  margin: 0;
}

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

/* How it Works Section */
.how-it-works {
  background: linear-gradient(170deg, #ffffff 0%, #e8f8f5 100%);
}

.steps {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin: 50px 0;
}

.step {
  text-align: center;
  max-width: 300px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--gradient);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.step h3 {
  margin-bottom: 15px;
}

.step p {
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light);
}

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

.testimonial {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}

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

.stars {
  color: #f1c40f;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-light);
}

.user {
  font-weight: 600;
  text-align: right;
  color: var(--primary-start);
}

/* Pricing Section */
.pricing {
  background: linear-gradient(170deg, #ffffff 0%, #e8f8f5 100%);
}

.pricing-options {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pricing-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.pricing-card.highlighted {
  box-shadow: 0 10px 30px rgba(41, 128, 185, 0.2);
  border: 2px solid var(--primary-start);
  transform: scale(1.05);
}

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

.pricing-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-start);
  margin-bottom: 30px;
}

.features-list {
  margin-bottom: 30px;
}

.features-list li {
  margin-bottom: 15px;
  color: var(--text-light);
}

/* CTA Section */
.cta {
  background: var(--gradient);
  text-align: center;
  color: white;
  padding: 80px 0;
}

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

.cta h2::after {
  background: rgba(255, 255, 255, 0.3);
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: white;
  color: var(--primary-start);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 20px;
}

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

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

.site-info {
  margin-left: 15px;
}

.site-name {
  display: block;
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
}

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

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

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

.footer-col h4::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--primary-start);
  bottom: -8px;
  left: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

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

.footer-col ul li a:hover {
  color: white;
  padding-left: 5px;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .steps {
    flex-wrap: wrap;
  }
  
  .step {
    flex-basis: 45%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  header .container {
    height: 70px;
  }
  
  .menu-toggle {
    display: block;
    z-index: 999;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    flex-direction: column;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .hero-content h2 {
    text-align: center;
    font-size: 2.5rem;
  }
  
  .hero-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .gallery-grid,
  .feature-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .pricing-card {
    padding: 30px 20px;
  }
}
