:root {
  /* Color Palette */
  --bg-dark: #050b14;
  --bg-nav: rgba(5, 11, 20, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --text-main: #f0f4f8;
  --text-muted: #9ba3af;
  
  --neon-yellow: #facc15;
  --neon-yellow-glow: rgba(250, 204, 21, 0.4);
  --accent-blue: #3b82f6;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Base Interactions & Particles */
.bg-glow {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.bg-glow.highlight {
  top: 50%;
  right: -20%;
  left: auto;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, transparent 70%);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(250,204,21,0.06) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998; /* Below splash, above app */
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* Background Wave Effect */
.wave-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  min-height: 100px;
  max-height: 150px;
  z-index: -2;
}

.waves {
  width: 100%;
  height: 100%;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
  0% { transform: translate3d(-90px,0,0); }
  100% { transform: translate3d(85px,0,0); }
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.text-highlight { color: var(--neon-yellow); }
.text-center { text-align: center; }
.m-0 { margin: 0 !important; }

/* Base Components Structure */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Buttons and Ripple logic */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--neon-yellow);
  color: var(--bg-dark);
}

.btn-primary.glow-btn:hover {
  background: linear-gradient(135deg, var(--neon-yellow) 0%, #f59e0b 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px var(--neon-yellow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-gradient {
  background: linear-gradient(135deg, var(--neon-yellow), #f59e0b);
  color: var(--bg-dark);
}

.btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.btn-block {
  display: block;
  width: 100%;
}

.ripple-span {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 20px 0;
}

.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-neon {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 10px var(--neon-yellow-glow);
  letter-spacing: 1px;
}

.logo-neon.sm { font-size: 1.4rem; }
.logo { text-decoration: none; }

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-yellow);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--neon-yellow);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-card {
  padding: 50px 40px;
  transform: translateY(0);
}

.hero-card h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.neon-title {
  font-size: clamp(4rem, 8vw, 6rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--neon-yellow);
  text-shadow: 0 0 20px var(--neon-yellow-glow);
  margin-bottom: 20px;
  opacity: 0.8;
}

.blink {
  animation: blink 4s infinite alternate;
}

.hero-headline {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-main);
  border-left: 4px solid var(--neon-yellow);
  padding-left: 20px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--neon-yellow);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

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

/* Services */
.services-section {
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(10, 20, 35, 0.5);
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid var(--glass-border);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-yellow-glow) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 0;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  opacity: 0.1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px solid var(--glass-border);
}

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-blue);
}

.service-card:hover .service-icon {
  color: var(--neon-yellow);
  animation: pulse 1s ease infinite;
}

.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); }

/* Service Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 650px;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active .modal-content {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-btn:hover {
  color: var(--neon-yellow);
}

.modal-features {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-feature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-feature i {
  color: var(--neon-yellow);
}

.modal-feature h4 {
  font-size: 1rem;
  color: var(--text-main);
}

/* Why Choose Us */
.why-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.why-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
  background: var(--glass-bg);
  padding: 20px 25px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.why-list li:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(10px);
}

.why-icon {
  color: var(--neon-yellow);
  flex-shrink: 0;
}

/* Contact Section */
.contact-container {
  max-width: 800px;
}

.contact-card {
  padding: 50px 60px;
}

.contact-form {
  margin-top: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #ccc;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-yellow);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.1);
}

.form-msg {
  text-align: center;
  margin-top: 15px;
  font-size: 1rem;
  display: none;
}
.form-msg.success { color: #4ade80; display: block; }
.form-msg.error { color: #f87171; display: block; }

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  background: rgba(2, 5, 10, 0.8);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--neon-yellow);
  color: var(--bg-dark);
  border-color: var(--neon-yellow);
}

/* Animations */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.splash-loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--neon-yellow);
  border-radius: 50%;
  animation: loadSpin 1s linear infinite;
}

@keyframes loadSpin {
  to { transform: rotate(360deg); }
}

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

.floating {
  animation: floatY 6s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  visibility: hidden;
}

.reveal.active {
  opacity: 1;
  visibility: visible;
}

.fade-up {
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.active {
  transform: translateY(0);
}

.slide-right {
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right.active {
  transform: translateX(0);
}

/* Delays for intersection observer */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@keyframes blink {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px var(--neon-yellow-glow); }
  50% { opacity: 0.6; text-shadow: 0 0 10px var(--neon-yellow-glow); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left, .hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons { justify-content: center; }
  .hero-headline {
    border-left: none;
    border-top: 4px solid var(--neon-yellow);
    padding-left: 0;
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease-in-out;
    z-index: -1;
  }
  .nav-menu.active { top: 0; }
  .nav-link { font-size: 1.5rem; }
  .nav-right .btn-gradient { display: none; }

  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .contact-card { padding: 30px 20px; }
  .footer-container { justify-content: center; flex-direction: column; text-align: center; }
  .modal-features { grid-template-columns: 1fr; }
  .cursor-glow { display: none; } /* Disable custom cursor on mobile */
}