/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #000000;
  background: #000000;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Film grain texture overlay */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

/* Subtle Starfield Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 60px 70px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 90px 10px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 150px 120px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 30px 150px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 110px 40px, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(2px 2px at 170px 90px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 10px 100px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 180px 160px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 75px 180px, rgba(255, 255, 255, 0.25), transparent);
  background-size: 200px 200px;
  background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 20px 180px, 160px 30px, 90px 140px, 45px 90px, 120px 200px, 180px 120px, 60px 160px;
  animation: stars 120s linear infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}


@keyframes stars {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand:hover {
  transform: translateY(-2px);
}

.nav-brand:hover .logo-main {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.logo-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.logo-icon:hover {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  flex: 1;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  animation: float 35s ease-in-out infinite;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 70%);
  top: -20%;
  left: -15%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 40%, transparent 70%);
  top: 30%;
  right: -15%;
  animation-delay: 10s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 70%);
  bottom: -10%;
  left: 20%;
  animation-delay: 20s;
}

@keyframes float {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
    opacity: 0.3;
  }
  25% { 
    transform: translate(40px, -60px) scale(1.1); 
    opacity: 0.4;
  }
  50% { 
    transform: translate(-20px, 40px) scale(0.9); 
    opacity: 0.25;
  }
  75% { 
    transform: translate(60px, 20px) scale(1.05); 
    opacity: 0.35;
  }
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 20s infinite ease-in-out;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  will-change: transform, opacity;
}

.particle:nth-child(1) { 
  left: 10%; 
  top: 20%; 
  animation-delay: 0s; 
  animation-duration: 18s;
}
.particle:nth-child(2) { 
  left: 80%; 
  top: 40%; 
  animation-delay: 3s; 
  animation-duration: 22s;
  width: 3px;
  height: 3px;
}
.particle:nth-child(3) { 
  left: 30%; 
  top: 70%; 
  animation-delay: 6s; 
  animation-duration: 20s;
}
.particle:nth-child(4) { 
  left: 70%; 
  top: 80%; 
  animation-delay: 9s; 
  animation-duration: 19s;
  width: 2.5px;
  height: 2.5px;
}
.particle:nth-child(5) { 
  left: 50%; 
  top: 30%; 
  animation-delay: 12s; 
  animation-duration: 21s;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -3px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gradient-text {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 25%, #ffffff 50%, #e0e0e0 75%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  background-size: 300% 300%;
  position: relative;
}

.gradient-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(20px);
}

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

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.75;
  line-height: 1.8;
  letter-spacing: 0.3px;
}


/* Footer */
.footer {
  background: #000000;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.footer-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.github-link {
  position: absolute;
  right: 2rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.github-link:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.github-link svg {
  width: 24px;
  height: 24px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero {
    min-height: calc(100vh - 70px);
  }
}

@media (max-width: 768px) {
  .navbar .container {
    padding: 0.75rem 1.5rem;
  }
  
  .logo-main {
    font-size: 1.3rem;
  }
  
  .logo-sub {
    font-size: 0.7rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    min-height: calc(100vh - 65px);
    padding: 2rem 0;
  }
  
  .footer {
    padding: 1.5rem 0;
  }
  
  .github-link {
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar .container {
    padding: 0.5rem 1rem;
  }
  
  .logo-main {
    font-size: 1.2rem;
  }
  
  .logo-sub {
    font-size: 0.65rem;
  }
  
  .hero-title {
    font-size: 2rem;
    letter-spacing: -1.5px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero {
    min-height: calc(100vh - 60px);
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .github-link {
    right: 1rem;
  }
  
  .github-link svg {
    width: 20px;
    height: 20px;
  }
}
