/* 
   Main Stylesheet for aisayamaporn.love
   Author: AI Developer
   Created: 2025-07-11
   Description: Mobile-responsive, SEO-optimized styles with magenta-purple gradient theme
*/

/* Base Styles and CSS Reset */
:root {
  --primary-color: #ff3d71;
  --secondary-color: #9f007e;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --dark-bg: #1a1a2e;
  --darker-bg: #0f0f1b;
  --card-bg: #252543;
  --light-text: #ffffff;
  --light-gray: #e2e8f0;
  --mid-gray: #a0aec0;
  --dark-text: #2d3748;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--light-text);
  background-color: var(--dark-bg);
  overflow-x: hidden;
}

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

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

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 2.4rem;
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

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

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--mid-gray);
}

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

ul {
  list-style: none;
}

section {
  padding: 5rem 0;
}

/* Header Styles */
header {
  background-color: rgba(26, 26, 46, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 61, 113, 0.1);
}

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

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

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

nav ul {
  display: flex;
  gap: 2rem;
}

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

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

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

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

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

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--light-text);
  margin: 4px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
  background-color: var(--darker-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(255, 61, 113, 0.1) 0%, rgba(159, 0, 126, 0) 70%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-content h2::after {
  left: 0;
  transform: none;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient);
  color: var(--light-text);
  box-shadow: 0 4px 15px rgba(255, 61, 113, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--light-text);
  border: 2px solid var(--primary-color);
  padding: calc(0.8rem - 2px) calc(2rem - 2px);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 61, 113, 0.4);
  color: var(--light-text);
}

.btn-outline:hover {
  background: rgba(255, 61, 113, 0.1);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* Features Section */
.features {
  background-color: var(--dark-bg);
  padding: 6rem 0;
  position: relative;
}

.features::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

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

.feature-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 61, 113, 0.1);
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 61, 113, 0.15);
  border-color: rgba(255, 61, 113, 0.3);
}

.feature-icon {
  margin: 0 auto 1.5rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Section */
.content-section {
  padding: 6rem 0;
  background-color: var(--darker-bg);
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.video-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(255, 61, 113, 0.1);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 61, 113, 0.15);
  border-color: rgba(255, 61, 113, 0.3);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.video-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(26, 26, 46, 0.8));
}

.video-card h3 {
  padding: 1rem 1.5rem 0;
  font-size: 1.2rem;
}

.video-card p {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.video-card .btn {
  margin: 0 1.5rem 1.5rem;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background-color: var(--dark-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

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

/* Newsletter Section */
.newsletter {
  padding: 4rem 0;
  background: var(--gradient);
  text-align: center;
}

.newsletter h2 {
  color: white;
}

.newsletter h2::after {
  background: white;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.form-group {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.form-group input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.newsletter .btn-primary {
  background: var(--dark-bg);
  border: none;
}

.newsletter .btn-primary:hover {
  background: var(--darker-bg);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--darker-bg);
  padding-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo svg {
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--mid-gray);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.link-group h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.link-group ul li {
  margin-bottom: 0.8rem;
}

.link-group ul li a {
  color: var(--mid-gray);
}

.link-group ul li a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-text {
    order: 2;
  }
  
  .about-visual {
    order: 1;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--darker-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
  
  nav ul.active {
    right: 0;
  }
  
  nav ul li {
    margin: 1.5rem 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-logo {
    align-items: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .form-group input,
  .form-group .btn {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-group {
    flex-direction: column;
  }
}

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

@media print {
  body {
    background-color: white;
    color: black;
  }
  
  .hero::before,
  header,
  footer,
  .btn {
    display: none;
  }
}
