/* 
 * Main Stylesheet for aianalporn.love
 * Modern, responsive design with dark theme
 */

/* Base styles and CSS reset */
:root {
  --primary-color: #ff2a6d;
  --secondary-color: #05d9e8;
  --accent-color: #d1f7ff;
  --dark-bg: #1a1a2e;
  --darker-bg: #16213e;
  --light-text: #f5f5f5;
  --dark-text: #333;
  --gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

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

p {
  margin-bottom: 1rem;
}

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

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

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

/* Header */
header {
  background-color: var(--darker-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
}

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

.logo {
  max-width: 200px;
}

.logo-svg {
  width: 100%;
  height: auto;
}

nav ul {
  display: flex;
  list-style: none;
}

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

nav ul li a {
  color: var(--light-text);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

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

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

/* Hero Section */
.hero {
  background: var(--darker-bg);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--gradient);
  color: var(--light-text);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  color: var(--light-text);
}

/* Featured Section */
.featured {
  padding: 5rem 0;
  background-color: var(--dark-bg);
}

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

.content-card {
  background-color: var(--darker-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

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

.content-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-card h3 {
  padding: 1rem 1.5rem 0;
  color: var(--primary-color);
}

.content-card p {
  padding: 0 1.5rem;
}

.content-link {
  display: block;
  text-align: center;
  padding: 1rem;
  background: var(--darker-bg);
  margin-top: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.content-link:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Categories Section */
.categories {
  padding: 5rem 0;
  background-color: var(--darker-bg);
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.category-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--dark-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.category-item:hover {
  transform: scale(1.05);
}

.category-item svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.category-item h3 {
  color: var(--accent-color);
}

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

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

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

.about-visual {
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.about-visual svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Footer */
footer {
  background-color: var(--darker-bg);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-logo svg {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

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

.footer-links ul {
  list-style: none;
}

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

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

.footer-bottom p {
  margin-bottom: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 1.5rem;
  }
  
  nav ul li {
    margin: 0 1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-visual {
    order: -1;
  }
}

@media (max-width: 576px) {
  .content-grid,
  .category-list {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .featured,
  .categories,
  .about {
    padding: 3rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
