/*
 * anadearmasaiporn.love - Main Stylesheet
 * Modern, responsive design with unique styling
 */

/* Base styles & Reset */
:root {
  --primary: #ff6b6b;
  --secondary: #6b66ff;
  --dark: #2d3436;
  --light: #f9f9f9;
  --accent: #00cec9;
  --text: #444;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  font-size: 16px;
}

.page-container {
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style-type: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--dark);
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

p {
  margin-bottom: 1.5rem;
}

/* Header styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-logo {
  width: 40px;
  height: 40px;
}

.site-branding h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--dark);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

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

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

.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1001;
}

.menu-button span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: 0.25s ease-in-out;
}

.menu-button span:nth-child(1) {
  top: 0;
}

.menu-button span:nth-child(2) {
  top: 9px;
}

.menu-button span:nth-child(3) {
  bottom: 0;
}

/* Intro section */
.intro-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 100px 5% 50px;
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(255,107,107,0.03) 25%, transparent 25%, 
                    transparent 50%, rgba(255,107,107,0.03) 50%, rgba(255,107,107,0.03) 75%, 
                    transparent 75%, transparent);
  background-size: 20px 20px;
  z-index: -1;
}

.intro-content {
  max-width: 600px;
  padding-right: 2rem;
}

.intro-content h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.intro-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.intro-decoration {
  position: relative;
  flex: 1;
  height: 400px;
}

.deco-circle, .deco-polygon {
  position: absolute;
  width: 300px;
  height: 300px;
  color: var(--primary);
  opacity: 0.6;
}

.deco-circle {
  top: 0;
  right: 10%;
  animation: float 8s infinite ease-in-out;
}

.deco-polygon {
  bottom: 0;
  right: 30%;
  color: var(--secondary);
  animation: spin 20s infinite linear;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.primary-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.primary-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Showcase section */
.showcase-section {
  padding: 100px 5%;
  text-align: center;
  background-color: white;
}

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

.showcase-item {
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.showcase-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.showcase-placeholder {
  width: 80%;
  height: 160px;
  margin: 0 auto 1.5rem;
  color: var(--primary);
}

.showcase-item h3 {
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.showcase-item p {
  color: #777;
  margin-bottom: 0;
}

.showcase-cta {
  margin-top: 3rem;
}

/* Features section */
.features-section {
  padding: 100px 5%;
  background-color: var(--light);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, rgba(107,102,255,0) 0%, rgba(107,102,255,0.05) 100%);
  z-index: 0;
}

.features-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.features-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.feature-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-block:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  min-width: 60px;
  color: var(--primary);
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 50%;
}

.feature-content h3 {
  margin-bottom: 0.5rem;
}

.feature-content p {
  margin-bottom: 0;
  color: #666;
}

/* Access section */
.access-section {
  padding: 100px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

.access-content {
  max-width: 550px;
}

.access-content h2 {
  margin-bottom: 1.5rem;
}

.access-content p {
  margin-bottom: 2rem;
}

.access-decoration {
  position: relative;
  width: 300px;
  height: 300px;
}

.access-graphic {
  width: 100%;
  height: 100%;
  color: var(--secondary);
  opacity: 0.6;
  animation: pulse 4s infinite alternate ease-in-out;
}

@keyframes pulse {
  from { opacity: 0.3; transform: scale(0.95); }
  to { opacity: 0.6; transform: scale(1.05); }
}

/* Footer styles */
footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 5% 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  color: white;
}

.footer-nav ul {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: white;
}

.footer-middle {
  margin-bottom: 3rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: var(--accent);
}

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

.footer-bottom p:first-child {
  margin-bottom: 0.5rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .intro-decoration {
    height: 350px;
  }
  
  .deco-circle, .deco-polygon {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.8rem;
  }
  
  .menu-button {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .intro-section {
    flex-direction: column;
    text-align: center;
  }
  
  .intro-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .intro-content h2 {
    font-size: 2.2rem;
  }
  
  .intro-decoration {
    height: 250px;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .access-section {
    flex-direction: column;
    text-align: center;
  }
  
  .access-content {
    margin-bottom: 3rem;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem;
  }
  
  .site-branding h1 {
    font-size: 1.2rem;
  }
  
  .intro-content h2 {
    font-size: 1.8rem;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-block {
    flex-direction: column;
    padding: 1.5rem;
  }
  
  .feature-icon {
    margin-bottom: 1rem;
  }
  
  .footer-nav ul {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
}
