:root {
  --primary: #7c5cfc;
  --secondary: #00d4ff;
  --bg: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --accent: #f43f5e;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --radius: 20px;
  --line-green: #06C755;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Kanit', sans-serif;
  background-color: #030712;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Advanced Background Grid & Mesh */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(124, 92, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 252, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.1) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  z-index: -1;
  filter: blur(120px);
  animation: float 25s infinite alternate ease-in-out;
}

.bg-glow-2 {
  position: fixed;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  bottom: -10%;
  left: -10%;
  z-index: -1;
  filter: blur(100px);
  animation: float-2 20s infinite alternate ease-in-out;
}

.bg-glow-3 {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.08) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  z-index: -1;
  filter: blur(100px);
  animation: float-3 25s infinite alternate ease-in-out;
}

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

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero */
.hero {
  padding: 100px 8% 180px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 84px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -3px;
  line-height: 1;
  color: #fff;
}

.hero h1 span {
  background: linear-gradient(to right, #fff 20%, #7c5cfc 50%, #00d4ff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-text 5s linear infinite;
}

@keyframes shine-text {
  to { background-position: 200% center; }
}

.hero p {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta-btn {
  background: var(--grad);
  color: white;
  padding: 18px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 10px 30px rgba(124, 92, 252, 0.3);
  transition: var(--transition);
  display: inline-block;
  animation: floating-button 3s infinite ease-in-out;
}

@keyframes floating-button {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(124, 92, 252, 0.4);
}

/* Features */
.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-title .line {
  width: 80px;
  height: 4px;
  background: var(--grad);
  margin: 0 auto;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  padding: 0 8%;
  margin-bottom: 150px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(124, 92, 252, 0.4);
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: 0.5s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.1), rgba(0, 212, 255, 0.05));
  border-radius: 14px;
  margin-bottom: 24px;
  color: var(--primary);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 15px rgba(124, 92, 252, 0.2);
}

.feature-card:hover i {
  background: var(--grad);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(124, 92, 252, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.feature-card i svg {
  width: 26px;
  height: 26px;
  transition: var(--transition);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
}

/* Gallery */
.gallery {
  padding: 0 8%;
  margin-bottom: 150px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

/* Pricing */
.pricing {
  padding: 100px 8%;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto 150px;
}

.price-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
  transition: all 0.5s var(--transition);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: rgba(124, 92, 252, 0.05);
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(124, 92, 252, 0.1);
}

.price-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.price-card.featured:hover {
  transform: translateY(-15px) scale(1.06);
}

.save-badge {
  position: absolute;
  top: 20px;
  right: -10px;
  background: var(--grad);
  color: white;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(124, 92, 252, 0.3);
}

.save-badge.best {
  background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.3);
}

.plan-name {
  font-size: 20px;
  color: var(--text-dim);
  margin-bottom: 15px;
  font-weight: 600;
}

.price {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 35px;
  color: #fff;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 45px;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-dim);
}

.plan-features li svg {
  color: var(--line-green);
  flex-shrink: 0;
}

.price-btn {
  display: block;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-btn:hover, .price-btn.active {
  background: var(--grad);
  border-color: transparent;
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(124, 92, 252, 0.3);
}

.featured-btn {
  background: var(--grad) !important;
  box-shadow: 0 10px 30px rgba(124, 92, 252, 0.4);
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  cursor: pointer;
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

/* Contact */
.contact-section {
  background: var(--grad);
  padding: 100px 8%;
  text-align: center;
  border-radius: 40px 40px 0 0;
}

.contact-section h2 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 24px;
}

.contact-section p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.contact-btn {
  background: var(--line-green);
  color: white;
  padding: 18px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(6, 199, 85, 0.3);
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(6, 199, 85, 0.5);
  background: #05b14c;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Utilities */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

footer {
  padding: 40px 8%;
  text-align: center;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 16px 5%; }
  .nav-links { display: none; } /* Hide heavy nav on mobile for clean look */
  
  .hero { padding: 60px 5% 100px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  
  .section-title { margin-bottom: 40px; }
  .section-title h2 { font-size: 32px; }
  
  .features-grid { 
    grid-template-columns: 1fr; 
    padding: 0 5%;
    margin-bottom: 80px;
  }
  
  .feature-card { padding: 30px; }
  
  .gallery { padding: 0 5%; margin-bottom: 80px; }
  .gallery-grid { 
    grid-template-columns: 1fr; 
    gap: 15px;
  }
  
  .contact-section { padding: 60px 5%; }
  .contact-section h2 { font-size: 32px; }
  .contact-section p { font-size: 16px; }
  .contact-btn { width: 100%; padding: 16px; font-size: 18px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .logo { font-size: 20px; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex !important;
  opacity: 1;
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 85%;
  max-width: 1200px;
  border-radius: var(--radius);
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from {transform:scale(0.8)} 
  to {transform:scale(1)}
}

.close-lightbox {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 60px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close-lightbox:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Floating Animations for Background */
.bg-glow, .bg-glow-2 {
  animation: float 20s infinite alternate ease-in-out;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
  100% { transform: translate(-5%, 2%) scale(1); }
}

.floating-blob {
  position: fixed;
  width: 300px;
  height: 300px;
  background: var(--grad);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.05;
  z-index: -1;
  animation: moveAround 30s infinite linear;
}

@keyframes moveAround {
  0% { top: 10%; left: 10%; }
  25% { top: 20%; left: 60%; }
  50% { top: 60%; left: 70%; }
  75% { top: 70%; left: 20%; }
  100% { top: 10%; left: 10%; }
}

/* Particles & Noise Overlay */
.particles-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 100;
}

/* Floating Chat Button */
.floating-chat {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: rgba(6, 199, 85, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  color: white;
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(6, 199, 85, 0.3);
  z-index: 1500;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: floating-chat 4s infinite ease-in-out;
}

@keyframes floating-chat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

.floating-chat:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 30px 60px rgba(6, 199, 85, 0.5);
  background: var(--line-green);
}

.chat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chat-icon::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.chat-text {
  font-weight: 600;
  font-size: 16px;
}

@media (max-width: 768px) {
  .floating-chat {
    bottom: 20px;
    right: 20px;
    padding: 12px;
  }
  .chat-text { display: none; }
}
