@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --neon-white: #ffffff;
  --neon-glow: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --bg-dark: #0a0a0a;
  --accent: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.6);
  --transition-speed: 0.6s;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--neon-white);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Dynamic Mesh Gradient Background */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  filter: blur(90px);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: aurora-morph 25s infinite alternate linear;
  mix-blend-mode: screen;
}

.bg-blob:nth-child(1) { top: -20%; left: -10%; background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%); animation-delay: 0s; }
.bg-blob:nth-child(2) { bottom: -20%; right: -10%; background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%); animation-delay: -7s; }
.bg-blob:nth-child(3) { top: 30%; left: 40%; width: 80vw; height: 80vw; background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 65%); animation-delay: -14s; }

@keyframes aurora-morph {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  33% {
    transform: translate(5vw, 10vh) scale(1.05) rotate(120deg);
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
  }
  66% {
    transform: translate(-10vw, 5vh) scale(0.95) rotate(240deg);
    border-radius: 50% 50% 60% 40% / 70% 40% 50% 60%;
  }
  100% {
    transform: translate(0vw, -5vh) scale(1.1) rotate(360deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* Navigation */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: var(--transition-speed);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a.active {
  color: var(--neon-white);
  text-shadow: 0 0 10px var(--neon-glow);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--neon-glow);
}

/* SPA Page Transitions */
.page-container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  pointer-events: none;
  filter: blur(10px);
  transform: translateY(20px);
  transition: 
    opacity 0.5s ease-out,
    filter 0.5s ease-out,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.page.active {
  opacity: 1;
  pointer-events: all;
  filter: blur(0);
  transform: translateY(0);
  z-index: 10;
}

/* Staggered Content Animation */
.page.active > * {
  animation: content-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page.active h1, .page.active .hero-title { animation-delay: 0.1s; }
.page.active p { animation-delay: 0.2s; }
.page.active .cta-button, 
.page.active .features-grid, 
.page.active .info-container, 
.page.active .contact-card { 
  animation-delay: 0.3s; 
}

@keyframes content-reveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Content Styles */
/* Hero Title Enhancement */
.hero-title {
  position: relative;
  font-size: clamp(3rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 25px;
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  padding: 10px 20px;
  animation: pulse-glow 4s infinite ease-in-out;
  z-index: 1;
  opacity: 0;
  border-right: 3px solid rgba(255, 255, 255, 0.75);
  transition: opacity 0.3s ease;
}

.hero-title.typing-active {
  border-right-color: transparent;
  animation: pulse-glow 4s infinite ease-in-out, blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
  from, to { border-color: transparent }
  50% { border-color: rgba(255, 255, 255, 0.75); }
}

.hero-title::after {
  content: attr(data-text);
  position: absolute;
  top: 10px;
  left: 20px;
  width: 100%;
  height: 100%;
  z-index: -1;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  mask-image: linear-gradient(90deg, transparent, #fff, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff, transparent);
  mask-size: 30% 100%;
  -webkit-mask-size: 30% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  animation: text-sweep 8s linear infinite;
  opacity: 0.4;
}

@keyframes text-sweep {
  0% { mask-position: -100% 0; -webkit-mask-position: -100% 0; }
  100% { mask-position: 200% 0; -webkit-mask-position: 200% 0; }
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    opacity: 0.95;
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    opacity: 1;
  }
}

#home p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Features Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  width: 100%;
}

.feature-card {
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.05);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-shadow: 0 0 5px var(--neon-glow);
}

.feature-card p {
  color: var(--text-dim);
  line-height: 1.6;
}

/* Info Section */
.info-container {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  align-items: center;
  text-align: left;
}

.info-text {
  flex: 1;
}

.info-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--neon-glow);
}

.info-stats {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  padding: 15px 25px;
}

.stat-item span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon-white);
}

.stat-item label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Contact Section */
.contact-card {
  width: 100%;
  max-width: 600px;
  padding: 50px;
}

.contact-card h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Button UI */
.cta-button {
  padding: 18px 45px;
  background: var(--neon-white);
  color: #000;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-speed);
  box-shadow: 0 0 20px var(--neon-glow);
  cursor: pointer;
  border: none;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 40px var(--neon-glow);
}

@media (max-width: 768px) {
  nav { width: 95%; padding: 15px 20px; }
  .nav-links { display: none; }
  .info-container { flex-direction: column; text-align: center; }
  .hero-title { font-size: 3rem; padding: 10px; }
  #home p { font-size: 1rem; }
}
