/* 
   aifutanariporn.pw Stylesheet
   Modern, responsive design optimized for SEO with dark theme aesthetic
*/

/* === Base Styles & Variables === */
:root {
  --primary: #8E24AA;
  --secondary: #FF4081;
  --dark: #1A0933;
  --darker: #0A051A;
  --light: #F0F2F5;
  --text: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1200px;
}

/* === Reset & Global === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--darker);
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.highlight {
  color: var(--secondary);
  font-weight: 700;
}

.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(142, 36, 170, 0.15), transparent 70%),
              radial-gradient(circle at bottom left, rgba(255, 64, 129, 0.1), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

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

h1 {
  font-size: 4.8rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 3.6rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

/* === Header & Navigation === */
header {
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 5, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.logo a {
  display: flex;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 700;
}

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

.dot-pw {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links a {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 3rem;
  height: 2.4rem;
  position: relative;
  z-index: 1001;
}

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

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

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

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

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: auto;
  top: 50%;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 12rem 0 6rem;
  overflow: hidden;
}

.hero-content {
  max-width: 60rem;
  margin-bottom: 5rem;
}

.hero h1 {
  margin-bottom: 2.5rem;
}

.hero p {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
}

.cta-wrapper {
  display: flex;
  gap: 2rem;
}

.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 5px 15px rgba(142, 36, 170, 0.4);
}

.btn-large {
  padding: 1.8rem 4rem;
  font-size: 1.8rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(142, 36, 170, 0.6);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 64, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
  }
}

.hero-visual {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  z-index: -1;
}

.wave-pattern {
  width: 100%;
  height: auto;
}

/* === About Section === */
.about {
  padding: 12rem 0;
  background-color: rgba(10, 5, 26, 0.7);
}

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

.about-card {
  background: rgba(26, 9, 51, 0.7);
  border-radius: var(--radius);
  padding: 3rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid rgba(142, 36, 170, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(142, 36, 170, 0.4);
}

.icon-wrapper {
  margin-bottom: 2rem;
}

.about-card h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* === Technology Section === */
.technology {
  padding: 12rem 0;
}

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

.tech-info h3 {
  margin-bottom: 2rem;
  color: var(--secondary);
}

.feature-list {
  margin: 2rem 0;
}

.feature-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 3rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1rem;
  height: 1rem;
  background: var(--gradient);
  border-radius: 50%;
}

.tech-highlight {
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.8rem;
  line-height: 1.4;
}

.tech-diagram {
  max-width: 100%;
}

.orbit-dots circle {
  animation: orbitAnimation 10s linear infinite;
}

@keyframes orbitAnimation {
  0% {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(120px) rotate(-360deg);
  }
}

/* === Access Section === */
.access {
  padding: 12rem 0;
  background: rgba(10, 5, 26, 0.7);
  text-align: center;
}

.access-lead {
  font-size: 2.2rem;
  max-width: 70rem;
  margin: 0 auto 4rem;
}

.access-cta {
  margin-bottom: 5rem;
}

.access-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  max-width: 80rem;
  margin: 0 auto;
}

.access-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

/* === Footer === */
footer {
  background-color: var(--dark);
  padding: 6rem 0 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
}

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

.footer-logo-text h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.footer-logo-text p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1.4rem;
}

.footer-nav h4, .footer-legal h4 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.footer-nav ul, .footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav a, .footer-legal a {
  color: var(--text-secondary);
}

.footer-nav a:hover, .footer-legal a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.4rem;
}

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

/* === Responsive === */
@media (max-width: 992px) {
  html {
    font-size: 56.25%;
  }
  
  .tech-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 40rem;
    height: 100vh;
    background-color: var(--dark);
    padding: 10rem 3rem 3rem;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .access-features {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  .hero {
    padding-top: 10rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .cta-wrapper {
    flex-direction: column;
  }
}
