/* 
 * sayamaaiporn.love CSS
 * Unique purple/orange gradient design
 */

:root {
  /* Color scheme - completely different from previous sites */
  --primary: #8E44AD;
  --secondary: #D35400;
  --accent: #9B59B6;
  --dark: #2C3E50;
  --light: #ECF0F1;
  --gray: #7F8C8D;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

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

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

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f8f5fb;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

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

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

h2 span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 8px;
  background: var(--gradient);
  bottom: 5px;
  left: 0;
  z-index: -1;
  opacity: 0.3;
}

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

img {
  max-width: 100%;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.primary-btn {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(142, 68, 173, 0.4);
}

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

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

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

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

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

.logo svg {
  width: 40px;
  height: 40px;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  transition: color 0.3s ease;
  padding: var(--space-xs) 0;
  position: relative;
}

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

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.mobile-toggle span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  transition: all 0.3s ease;
  left: 0;
}

.mobile-toggle span:nth-child(1) {
  top: 0;
}

.mobile-toggle span:nth-child(2) {
  top: 10px;
}

.mobile-toggle span:nth-child(3) {
  top: 20px;
}

.mobile-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 150px 0 80px;
  background: linear-gradient(to bottom right, rgba(142, 68, 173, 0.05), rgba(211, 84, 0, 0.05));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(142, 68, 173, 0.1), transparent 70%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(211, 84, 0, 0.1), transparent 70%);
  z-index: 0;
}

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

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto var(--space-md);
  color: var(--gray);
}

.buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* Features Section */
.features {
  padding: var(--space-xl) 0;
  background: white;
}

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

.feature {
  text-align: center;
  padding: var(--space-md);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin: 0 auto var(--space-md);
  width: 80px;
  height: 80px;
}

.feature h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.feature p {
  color: var(--gray);
  margin-bottom: 0;
}

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

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section h2 span {
  color: white;
}

.cta-section h2 span::after {
  background: white;
  opacity: 0.3;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.cta-section .primary-btn {
  background: white;
  color: var(--primary);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

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

/* Footer */
.site-footer {
  padding: var(--space-lg) 0;
  background: var(--dark);
  color: white;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

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

.footer-info h3 {
  margin: 0;
  font-size: 1.5rem;
}

.footer-info p {
  margin: var(--space-xs) 0 0;
  opacity: 0.7;
}

.footer-nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

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

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media screen and (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .main-nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    flex-direction: column;
    background: white;
    padding: 100px var(--space-md);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 90;
    gap: var(--space-lg);
    align-items: center;
  }
  
  .main-nav ul.active {
    right: 0;
  }
  
  .footer-top {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
  
  .footer-nav ul {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-logo {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
