/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #07102a;
  color: #ffffff;
  line-height: 1.6;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #07102a;
}
::-webkit-scrollbar-thumb {
  background: #34d399;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8fffcf;
}

/* ===== Decorative Blobs ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #34d399;
  top: 10%;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #0d1b3e;
  bottom: 20%;
  left: -50px;
  animation-delay: -7s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: #34d399;
  top: 50%;
  left: 40%;
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.05); }
}

/* ===== Hero Background ===== */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(13, 27, 62, 0.8) 0%, rgba(7, 16, 42, 0.95) 60%, #07102a 100%);
}

/* ===== Geometric Shapes ===== */
.geo {
  position: absolute;
  pointer-events: none;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(52, 211, 153, 0.08);
  border-radius: 50%;
  bottom: 10%;
  left: -50px;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(52, 211, 153, 0.08);
  top: 30%;
  right: 5%;
  transform: rotate(15deg);
}

.geo-dots {
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(52, 211, 153, 0.3) 1px, transparent 1px);
  background-size: 16px 16px;
  top: 25%;
  right: 15%;
}

.geo-lines {
  width: 200px;
  height: 200px;
  top: 60%;
  left: 5%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(52, 211, 153, 0.05) 10px,
    rgba(52, 211, 153, 0.05) 11px
  );
  transform: rotate(30deg);
}

/* ===== Navigation ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #34d399;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #34d399 !important;
}

/* Mobile Nav Links */
.mobile-nav-link {
  display: block;
}

.mobile-nav-link:hover {
  color: #34d399 !important;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #34d399;
  color: #07102a;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

.btn-primary:hover {
  background: #8fffcf;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: #34d399;
  color: #34d399;
  transform: translateY(-2px);
}

/* ===== Hero Badge Animation ===== */
.hero-badge {
  animation: badgeIn 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(-10px);
}

@keyframes badgeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Category Cards ===== */
.category-card {
  perspective: 1000px;
}

.category-card:hover .category-card-inner {
  transform: translateY(-8px);
}

.category-card:hover img {
  transform: scale(1.1);
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .blob,
  .geo-circle-1,
  .geo-circle-2,
  .geo-triangle {
    animation: none;
  }

  .scroll-reveal[data-reveal] {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== Back to Top ===== */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== Navbar Scrolled State ===== */
#navbar.scrolled {
  background: rgba(7, 16, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-gradient {
    background: linear-gradient(135deg, rgba(7, 16, 42, 0.98) 0%, rgba(13, 27, 62, 0.9) 100%);
  }

  .geo-circle-1,
  .geo-circle-2,
  .geo-triangle,
  .geo-dots,
  .geo-lines {
    display: none;
  }

  .blob {
    opacity: 0.2;
  }
}
