/* 
* Main Stylesheet for hottestaiporn.love
* Optimized for SEO and responsive design
* Author: Cascade
* Date: 2025-07-22
*/

/* CSS Reset and Base Styles */
:root {
  --primary-color: #e91e63;
  --secondary-color: #7c4dff;
  --accent-color: #ff9800;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #1a1a2e;
  --light-bg: #f8f9fa;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 10px = 1rem */
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
}

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

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Header */
header {
  background-color: var(--dark-bg);
  color: var(--light-text);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

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

.logo-svg {
  margin-right: 1rem;
}

.logo h1 {
  font-size: 2.2rem;
  margin-bottom: 0;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 2.5rem;
}

nav ul li a {
  font-weight: 600;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

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

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--light-text);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 18rem 0 10rem;
  text-align: center;
  background: var(--gradient);
  color: var(--light-text);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h2 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
}

.hero p {
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* CTA Buttons */
.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text);
  font-size: 1.8rem;
  font-weight: 600;
  padding: 1.5rem 3rem;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.cta-button.secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.cta-button.large {
  font-size: 2rem;
  padding: 1.8rem 4rem;
}

/* Features Section */
.features {
  padding: 10rem 0;
  background-color: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

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

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* About Section */
.about {
  padding: 10rem 0;
  background-color: var(--dark-bg);
  color: var(--light-text);
  text-align: center;
}

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

.about p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

/* Testimonials Section */
.testimonials {
  padding: 10rem 0;
  background-color: #fff;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.testimonial {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 3rem;
  max-width: 350px;
  box-shadow: var(--box-shadow);
}

.testimonial p {
  font-style: italic;
  position: relative;
}

.testimonial p::before {
  content: '"';
  font-size: 5rem;
  position: absolute;
  top: -2rem;
  left: -1rem;
  opacity: 0.2;
  color: var(--primary-color);
}

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

/* CTA Section */
.cta-section {
  padding: 10rem 0;
  text-align: center;
  background: var(--gradient);
  color: var(--light-text);
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

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

.footer-logo svg {
  margin-right: 1rem;
}

.footer-logo span {
  font-size: 2rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 5rem;
}

.footer-column h4 {
  margin-bottom: 2rem;
  position: relative;
}

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

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

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 1.4rem;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
  html {
    font-size: 60%;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 57.5%;
  }
  
  .hero {
    padding: 15rem 0 8rem;
  }
  
  .hero h2 {
    font-size: 4rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    margin-top: 3rem;
    gap: 3rem;
  }
}

@media screen and (max-width: 576px) {
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--dark-bg);
    transition: var(--transition);
    z-index: 999;
    padding-top: 8rem;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 1.5rem 0;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1000;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero h2 {
    font-size: 3.2rem;
  }
  
  .hero p {
    font-size: 1.8rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 3rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility Improvements */
:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
