/*
 * bobbialthoffaiporn.love - Main Stylesheet
 * A blue-purple gradient theme different from previous sites
 */

/* === Variables === */
:root {
  /* Core Colors - Blue-Purple Gradient Theme */
  --primary: #6A11CB;
  --secondary: #2575FC;
  --dark: #121429;
  --darker: #090B18;
  --light: #ffffff;
  --gray: #8991A5;
  --light-gray: #E5E7EF;
  
  /* Gradients */
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-hover: linear-gradient(135deg, var(--secondary), var(--primary));
  --gradient-light: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-highlight: 0 0 15px rgba(106, 17, 203, 0.5);
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--dark);
  color: var(--light);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

img {
  max-width: 100%;
  height: auto;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--space-sm);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: var(--space-md);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  margin: 0.5rem auto 0;
  border-radius: var(--radius-full);
}

/* === Header & Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(9, 11, 24, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-icon {
  flex-shrink: 0;
}

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

.logo span {
  color: var(--primary);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav a {
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav a:not(.btn):hover::after {
  width: 100%;
}

.cta-nav {
  margin-left: var(--space-xs);
}

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

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--light);
  border-radius: var(--radius-full);
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

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

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--light);
  box-shadow: var(--shadow-md);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--primary);
}

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

.cta-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(106, 17, 203, 0.2), transparent 70%);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero h2 span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--gray);
}

.hero-graphic {
  flex-shrink: 0;
  animation: float 6s ease-in-out infinite;
}

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

/* === Featured Section === */
.featured {
  padding: var(--space-xl) 0;
  position: relative;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(106, 17, 203, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  color: var(--primary);
}

/* === Gallery Section === */
.gallery {
  padding: var(--space-xl) 0;
  background-color: rgba(9, 11, 24, 0.6);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.gallery-item {
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  opacity: 1;
  transform: scale(1.03);
}

.gallery-cta {
  text-align: center;
}

.gallery-cta p {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

/* === Premium Section === */
.premium {
  padding: var(--space-xl) 0;
  text-align: center;
}

.premium-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: rgba(255, 255, 255, 0.03);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.check-icon {
  color: var(--secondary);
  flex-shrink: 0;
}

.premium-feature p {
  margin-bottom: 0;
  text-align: left;
}

/* === Footer === */
.footer {
  background-color: var(--darker);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.copyright {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Responsive Styles === */
@media (max-width: 992px) {
  h2 {
    font-size: 2.2rem;
  }
  
  .hero h2 {
    font-size: 2.8rem;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-graphic {
    margin-top: var(--space-lg);
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--darker);
    padding: 5rem var(--space-md) var(--space-md);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .cta-nav {
    margin-top: var(--space-md);
    margin-left: 0;
    width: 100%;
  }
  
  .cta-nav a {
    width: 100%;
    display: block;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .premium-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
