/* ผลงานออกแบบสำหรับเว็บไซต์ undressaipornTH.pw */
/* สีและธีมได้รับแรงบันดาลใจจากธงชาติไทยและศิลปะไทย */

:root {
  --thai-red: #ED1C24;
  --thai-white: #FFFFFF;
  --thai-blue: #241D4F;
  --thai-gold: #F9B104;
  --thai-teal: #00909E;
  --light-gray: #F5F5F5;
  --medium-gray: #888888;
  --dark-gray: #333333;
  --primary-gradient: linear-gradient(135deg, var(--thai-teal), var(--thai-blue));
  --secondary-gradient: linear-gradient(135deg, var(--thai-red), #AA0000);
  --gold-gradient: linear-gradient(45deg, #F9B104, #F5CE62);
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* รีเซ็ตสไตล์ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* องค์ประกอบตกแต่งแบบไทย */
.thai-pattern {
  position: relative;
}

.thai-pattern::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0L22 18L40 20L22 22L20 40L18 22L0 20L18 18L20 0Z' fill='%23F9B104' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.5;
}

/* ส่วนหัวของเว็บไซต์ */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--thai-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 5px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--thai-blue);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo svg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

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

.nav-list {
  display: flex;
}

.nav-item {
  margin-left: 30px;
  position: relative;
}

.nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-gray);
  position: relative;
  padding: 5px 0;
}

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

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

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

.cta-button {
  margin-left: 30px;
}

/* เมนูมือถือ */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--thai-blue);
  z-index: 1001;
}

/* ปุ่มต่างๆ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
}

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

.btn-primary:hover {
  box-shadow: 0 6px 15px rgba(36, 29, 79, 0.25);
  transform: translateY(-3px);
}

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

.btn-secondary:hover {
  background-color: rgba(0, 144, 158, 0.1);
  transform: translateY(-3px);
}

/* ส่วน Hero */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #F5F5F5, #FFFFFF);
  position: relative;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 100%;
  background: var(--gold-gradient);
  opacity: 0.05;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 25px;
  color: var(--dark-gray);
}

.hero-title span {
  color: var(--thai-blue);
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 8px;
  background-color: var(--thai-gold);
  opacity: 0.3;
  bottom: 5px;
  left: 0;
  z-index: -1;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-bottom: 40px;
  max-width: 90%;
}

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

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

.hero-image svg {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* ส่วนคุณสมบัติ */
.features {
  padding: 100px 0;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.features::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--gold-gradient);
  opacity: 0.5;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

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

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--thai-gold);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-top: 20px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--thai-white);
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: var(--primary-gradient);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  color: var(--thai-white);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.feature-description {
  color: var(--medium-gray);
  font-size: 1rem;
}

/* ส่วนวิธีการทำงาน */
.how-it-works {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--thai-red);
  opacity: 0.05;
}

.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 80px;
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
}

.step-number {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: var(--thai-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-gray);
  text-align: center;
}

.step-description {
  text-align: center;
  color: var(--medium-gray);
}

/* ส่วนเกี่ยวกับเรา */
.about {
  padding: 100px 0;
  background-color: var(--light-gray);
  position: relative;
}

.about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--thai-gold), transparent);
  opacity: 0.5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  border: 2px dashed var(--thai-gold);
  top: -15px;
  left: -15px;
  z-index: -1;
  opacity: 0.2;
  border-radius: 10px;
}

.about-image svg {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--dark-gray);
  position: relative;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--thai-gold);
}

.about-content p {
  margin-bottom: 20px;
  color: var(--medium-gray);
  font-size: 1.1rem;
}

.about-content ul {
  margin: 20px 0;
}

.about-content li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.about-content li::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--thai-teal);
  left: 0;
  top: 8px;
  border-radius: 50%;
}

/* ส่วน CTA */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--thai-teal), var(--thai-blue));
  color: var(--thai-white);
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta::before {
  top: -100px;
  right: -100px;
}

.cta::after {
  bottom: -100px;
  left: -100px;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn-cta {
  background: var(--gold-gradient);
  color: var(--dark-gray);
  padding: 15px 40px;
  font-size: 1.1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

/* ส่วนท้าย */
.footer {
  padding: 80px 0 30px;
  background-color: var(--thai-blue);
  color: var(--thai-white);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  color: var(--thai-white);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo svg {
  width: 35px;
  height: 35px;
  margin-right: 10px;
}

.footer-about {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--thai-gold);
  bottom: 0;
  left: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s, padding 0.3s;
}

.footer-links a:hover {
  color: var(--thai-white);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* การตอบสนองสำหรับมือถือ */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    order: 1;
    text-align: center;
  }
  
  .hero-image {
    order: 0;
    margin-bottom: 40px;
  }
  
  .hero-description {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    width: 80%;
    margin-bottom: 50px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--thai-white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 1000;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    margin: 10px 0;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .about-content h2 {
    font-size: 2.2rem;
  }
  
  .cta-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .step {
    width: 100%;
  }
  
  .step-number {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}
