/* 
   aiueharaporn.pw Styles
   A unique design with purples, pinks and dark backgrounds
   Completely different from previous sites
*/

:root {
  --primary: #5352ED;     /* Purple - primary color */
  --secondary: #FF6B81;   /* Pink - secondary color */
  --accent: #1DD1A1;      /* Teal accent - completely different from previous sites */
  --dark: #1E272E;        /* Dark blue-gray background */
  --darker: #0F1618;      /* Darker background */
  --light: #ffffff;
  --gray: #a4b0be;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow: 0 10px 30px rgba(83, 82, 237, 0.2);
  --border-radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--light);
  background-color: var(--darker);
  line-height: 1.6;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.highlight {
  color: var(--secondary);
  position: relative;
}

/* Header Styles */
header {
  background-color: rgba(30, 39, 46, 0.95);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.domain {
  opacity: 0.5;
  font-weight: 400;
}

.main-nav {
  position: relative;
}

.menu {
  display: flex;
  gap: 2rem;
}

.menu li a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

.menu li a:hover::after {
  width: 100%;
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--light);
  position: absolute;
  transition: all 0.3s ease;
}

.bar:nth-child(1) {
  top: 0;
}

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

.bar:nth-child(3) {
  bottom: 0;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(83, 82, 237, 0.1) 0%, rgba(15, 22, 24, 0) 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 107, 129, 0.1) 0%, rgba(15, 22, 24, 0) 70%);
  border-radius: 50%;
}

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

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

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 90%;
}

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

.hero-image {
  max-width: 100%;
  display: flex;
  justify-content: center;
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--darker);
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

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

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature {
  padding: 1.5rem;
  background-color: rgba(30, 39, 46, 0.6);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: var(--light);
}

.feature p {
  color: var(--gray);
  font-size: 0.95rem;
}

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

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

.category {
  background-color: rgba(15, 22, 24, 0.8);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.category h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

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

.link-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  background: var(--gradient);
  color: var(--light);
  font-weight: 500;
  transition: all 0.3s ease;
}

.link-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 107, 129, 0.3);
}

/* Technology Section */
.technology {
  padding: 6rem 0;
  background-color: var(--darker);
}

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

.tech-item {
  background-color: rgba(30, 39, 46, 0.6);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
}

.tech-item h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--primary);
}

.tech-item p {
  color: var(--gray);
}

.tech-diagram {
  max-width: 800px;
  margin: 0 auto;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(83, 82, 237, 0.1), rgba(255, 107, 129, 0.1));
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--light);
  box-shadow: 0 5px 15px rgba(83, 82, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(83, 82, 237, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--light);
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--dark);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

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

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

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer {
  color: #576574;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.copyright {
  color: #485460;
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h2 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--dark);
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  #menu-toggle:checked ~ .menu {
    max-height: 300px;
  }
  
  .menu li {
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .menu li:last-child {
    border-bottom: none;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content p {
    max-width: 100%;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content h2 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .tech-grid,
  .video-categories {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
}
