/* 
  nudeifyTH.pw - Main Stylesheet
  Thai colors theme: Gold/Yellow (#F1C40F) and Dark Green (#00695C)
*/

:root {
  --primary-color: #F1C40F;
  --secondary-color: #00695C;
  --primary-gradient: linear-gradient(135deg, #F1C40F 0%, #00695C 100%);
  --text-color: #333;
  --light-text: #666;
  --bg-color: #fff;
  --light-bg: #f8f8f8;
  --border-color: #e0e0e0;
  --header-height: 70px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

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

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

ul {
  list-style: none;
}

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

section {
  padding: 4rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

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

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

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--light-text);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: var(--header-height);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 900;
}

.menu {
  display: flex;
}

.menu li {
  margin-left: 2rem;
}

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

.bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 6px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300695C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: -1;
}

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

.hero-content {
  flex: 1 0 60%;
  max-width: 600px;
}

.hero-image {
  flex: 1 0 40%;
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin-top: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

/* How It Works */
.how-it-works {
  background-color: var(--bg-color);
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 2rem 0;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  padding: 1.5rem;
  max-width: 250px;
  margin: 0 auto;
}

.step-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.step-connector {
  height: 3px;
  background: var(--primary-gradient);
  flex-grow: 0.15;
  margin-top: 50px;
}

.cta-center {
  text-align: center;
  margin-top: 2.5rem;
}

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

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

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

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

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

/* About */
.about .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.about-content {
  flex: 1 0 50%;
}

.about-image {
  flex: 1 0 40%;
  display: flex;
  justify-content: center;
}

.cta-left {
  margin-top: 2rem;
}

/* Footer */
footer {
  background-color: #f5f5f5;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-branding {
  flex: 1 0 300px;
}

.footer-logo {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.footer-nav {
  flex: 1 0 300px;
  display: flex;
  justify-content: space-between;
}

.footer-column h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--light-text);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 250px;
    height: calc(100vh - var(--header-height));
    background-color: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 900;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu li {
    margin: 1.5rem 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 6px);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -6px);
  }
  
  .hero .container,
  .about .container {
    flex-direction: column;
  }
  
  .hero-content,
  .hero-image,
  .about-content,
  .about-image {
    flex: 1 0 100%;
    max-width: 100%;
    text-align: center;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .stats {
    justify-content: center;
  }
  
  .step-connector {
    display: none;
  }
  
  .steps {
    flex-direction: column;
    gap: 2rem;
  }
  
  .step {
    max-width: 100%;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 1.5rem;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 1rem);
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}
