/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: #000;
  color: #f0f0f0;
  overflow-x: hidden;
  position: relative;
}

/* Interactive Spline Background */
.spline-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.7;
}

.spline-container spline-viewer {
  width: 100%;
  height: 100%;
}

/* Animated Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  /* increased height to accommodate a larger logo */
  height: 130px;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.12rem; /* make image and text adjacent (reduced) */
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #00ffff;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  letter-spacing: 2px;
}

/* Clickable logo image (left of site name) */
.logo-img-link { display: inline-flex; align-items: center; justify-content: center; margin-right: 0.6rem; }
.logo-img {
  width: 200px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  display: inline-block;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.logo-img-link:focus { outline: 3px solid rgba(0,255,255,0.12); outline-offset: 4px; border-radius: 6px; }
.logo-img-link:hover .logo-img,
.logo-img-link:focus .logo-img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 40px rgba(0,255,255,0.12), 0 0 22px rgba(0,255,255,0.06) inset;
  opacity: 1;
}

.logo-text-wrap { display:flex; align-items:center; }
.logo-text-link { text-decoration: none; color: inherit; }
.logo-text { font-size: 1.05rem; letter-spacing: 1px; font-weight:700; }

.logo-text-link:hover .logo-text { color: #eaffff; text-shadow: 0 0 8px rgba(0,255,255,0.06); }
.logo-icon {
  font-size: 1.8rem;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #00ffff;
  color: #00ffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(0, 255, 255, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: #bbb;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #00ff88);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #00ffff;
}

.nav-link:hover::before {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10rem 2rem 4rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.5);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff0000;
  animation: pulse 2s ease-in-out infinite;
}

/* Mission Statement */
.mission-statement {
  margin-bottom: 1.5rem;
}

.mission-typing {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d1d1d1;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin: 0;
  min-height: 2.4rem;
}

.mission-typing::after {
  content: '|';
  color: #00ffff;
  animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #ff0000;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cyber-text {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  color: #888;
  letter-spacing: 3px;
}

.highlight-text {
  background: linear-gradient(90deg, #00ffff, #00ff88, #00ffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  text-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 3rem;
  color: #aaa;
  font-weight: 300;
  letter-spacing: 2px;
  min-height: 2rem;
}

.typing-effect::after {
  content: '|';
  animation: blink 0.7s infinite;
}

/* Stats Row */
.stats-row {
  display: flex;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #00ffff;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
  border-color: rgba(0, 255, 255, 0.35);
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #00ffff, #00ff88);
  color: #000;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-secondary {
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
}

.btn-secondary:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.6;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid #00ffff;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 3px;
  height: 8px;
  background: #00ffff;
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #00ffff;
}

/* Floating Elements */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  color: rgba(0, 255, 255, 0.15);
  font-weight: bold;
  animation: float 6s ease-in-out infinite;
}

.float-item:nth-child(2) {
  animation-delay: 1s;
  animation-duration: 7s;
}

.float-item:nth-child(3) {
  animation-delay: 2s;
  animation-duration: 8s;
}

.float-item:nth-child(4) {
  animation-delay: 3s;
  animation-duration: 5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .mission-typing {
    font-size: 1.1rem;
    letter-spacing: 0.3px;
  }

  nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  }

  nav.active {
    display: block;
    top: 98px;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 100px;
    min-height: 100vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .cyber-text {
    font-size: 1rem;
  }

  .highlight-text {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-buttons .btn {
    width: 90%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }
}

/* Tablet screens (481px - 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
  .cta-buttons {
    gap: 1.2rem;
  }

  .cta-buttons .btn {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
  
  /* Stack buttons in 2+1 layout on smaller tablets */
  @media (max-width: 768px) {
    .cta-buttons {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
    
    .cta-buttons .btn {
      width: 85%;
      max-width: 400px;
      justify-content: center;
    }
  }
}

/* Responsive logo sizes */
@media (max-width: 1024px) {
  /* slightly smaller on tablet landscape */
  .logo-img { width: 160px; height: 68px; }
  .logo-text { font-size: 0.95rem; }
}

@media (max-width: 768px) {
  /* tablet & large mobile */
  .logo-img { width: 140px; height: 56px; }
  header { height: 98px; }
}

@media (max-width: 480px) {
  /* small phones */
  .logo-img { width: 110px; height: 44px; }
  header { height: 84px; }
}