/* 
 * Modern, SEO-optimized CSS for kanoaiporn.site
 * Unique design with orange-pink gradient theme
 * Mobile-first responsive design approach
 */

:root {
  --primary: #FF9500;
  --secondary: #FF4081;
  --primary-gradient: linear-gradient(135deg, #FF9500 0%, #FF4081 100%);
  --text-color: #333333;
  --text-light: #666666;
  --background: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: 0 8px 30px rgba(255, 64, 129, 0.1);
  --section-bg: #fefefe;
  --section-alt-bg: #fff5f8;
  --border-radius: 12px;
  --header-height: 70px;
  --max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-color);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

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

img, svg {
  max-width: 100%;
  height: auto;
}

ul {
  list-style-type: none;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 64, 129, 0.2);
  color: white;
}

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

.secondary-btn:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

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

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 64, 129, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
}

/* Header Styles */
.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
}

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

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

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

.main-nav ul {
  display: none;
  margin: 0;
  padding: 0;
}

.main-nav.active ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-sm) 0;
}

.main-nav.active li {
  margin: 0;
  padding: 0;
}

.main-nav.active a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.menu-toggle {
  display: block;
  background: none;
  border: none;
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
}

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

.menu-toggle span:first-child {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 11px;
}

.menu-toggle span:last-child {
  bottom: 0;
}

.menu-toggle.active span:first-child {
  transform: rotate(45deg);
  top: 11px;
}

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

.menu-toggle.active span:last-child {
  transform: rotate(-45deg);
  bottom: 11px;
}

/* Hero Section */
.hero {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.05) 0%, rgba(255, 64, 129, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
}

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

.hero h2:after {
  display: none;
}

.hero h2 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-visual {
  width: 100%;
  max-width: 500px;
}

/* Features Section */
.features {
  padding: var(--spacing-xl) 0;
  background-color: var(--section-bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: all 0.3s ease;
}

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

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.feature-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

/* CTA Banner */
.cta-banner {
  padding: var(--spacing-lg) 0;
  background: var(--primary-gradient);
  color: white;
  text-align: center;
}

.cta-banner h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: white;
}

.cta-banner .btn {
  background: white;
  color: var(--secondary);
}

.cta-banner .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Technology Section */
.technology {
  padding: var(--spacing-xl) 0;
  background-color: var(--section-alt-bg);
}

.tech-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.tech-description {
  flex: 1;
}

.tech-features {
  margin: var(--spacing-md) 0 0 0;
}

.tech-features li {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.tech-features li svg {
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}

.tech-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* FAQ Section */
.faq-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--section-bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

/* About Section */
.about-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--section-alt-bg);
  text-align: center;
}

.about-section .container {
  max-width: 800px;
}

.about-cta {
  margin-top: var(--spacing-lg);
}

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

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

.footer-info .site-title {
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.footer-links {
  margin-top: var(--spacing-sm);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: white;
}

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

/* Media Queries */
@media (min-width: 576px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .main-nav ul {
    display: flex;
    gap: var(--spacing-md);
  }
  
  .menu-toggle {
    display: none;
  }
  
  .hero .container {
    flex-direction: row;
    text-align: left;
  }
  
  .hero-content {
    text-align: left;
    margin-right: var(--spacing-lg);
    margin-bottom: 0;
  }
  
  .tech-content {
    flex-direction: row;
    align-items: center;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-nav {
    flex-direction: row;
    gap: var(--spacing-md);
  }
}

@media (min-width: 992px) {
  h2 {
    font-size: 2.5rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero h2 {
    font-size: 3rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content, .feature-grid, .tech-content, .faq-list {
  animation: fadeIn 0.8s ease-out forwards;
}
