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

:root {
  --bg-gradient: linear-gradient(-45deg, #09090b, #111827, #0f172a, #064e3b);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --accent-cyan: #00f2fe;
  --accent-pink: #fe0979;
  --text-main: #ffffff;
  --text-sub: #94a3b8;
}

/* Base Resets for Mobile Stability */
*, *::before, *::after {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* Prevents side-scrolling on mobile */
  font-family: 'Outfit', sans-serif;
  background: var(--bg-gradient);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* High-End Glassmorphism Header */
header {
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky; 
  top: 0; 
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 1.2rem 2rem;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

/* The New Minimalist Logo */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.logo span {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px var(--accent-cyan);
}

nav ul { 
  display: flex; 
  list-style: none; 
  gap: 2.5rem; 
}

nav a {
  color: var(--text-sub); 
  text-decoration: none; 
  font-weight: 400;
  font-size: 1.05rem;
  transition: all 0.3s ease; 
  position: relative;
}

nav a::after {
  content: ''; 
  position: absolute; 
  width: 0; 
  height: 1px;
  bottom: -4px; 
  left: 0; 
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

main { 
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 4rem 2rem; 
  flex: 1; 
}

/* Hero Section */
.hero { 
  text-align: center; 
  animation: floatUp 1s cubic-bezier(0.16, 1, 0.3, 1); 
}

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

.badge {
  display: inline-block; 
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 30px; 
  font-size: 0.85rem; 
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem; 
  color: var(--text-sub);
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 4.5rem; 
  line-height: 1.1; 
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--text-sub));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-container {
  font-size: 1.4rem; 
  color: var(--accent-cyan); 
  margin-bottom: 2rem;
  font-family: 'Space Grotesk', monospace;
  font-weight: 300;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.hero p {
  color: var(--text-sub); 
  font-size: 1.15rem; 
  max-width: 650px; 
  margin: 0 auto 3rem; 
  line-height: 1.7;
}

/* Upgraded Glass Cards */
.grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 2rem;
  width: 100%;
}

.card {
  background: var(--glass-bg); 
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-highlight); /* Creates top-light reflection */
  border-left: 1px solid var(--glass-highlight);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px; 
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative; 
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 242, 254, 0.05);
}

.card h3 { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 1.5rem; 
  margin-bottom: 1rem; 
  color: #fff; 
}

.card p { 
  color: var(--text-sub); 
  line-height: 1.7; 
  margin-bottom: 2rem; 
  font-size: 1rem;
}

/* Refined Neon Buttons */
.btn {
  display: inline-block; 
  padding: 0.8rem 2rem;
  background: rgba(0, 242, 254, 0.05); 
  color: #fff; 
  text-decoration: none;
  font-weight: 400; 
  letter-spacing: 1px;
  border-radius: 8px;
  border: 1px solid rgba(0, 242, 254, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent-cyan); 
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

footer { 
  text-align: center; 
  padding: 2rem; 
  color: var(--text-sub); 
  border-top: 1px solid var(--glass-border); 
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* =========================================
   BULLETPROOF MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  
  nav ul {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .typing-container {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 2rem 1.5rem;
  }
  
  h1[style*="font-size: 3rem"] {
    font-size: 2.2rem !important;
  }
}
