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

/* ============================================
   GLOBAL
   ============================================ */
html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #020617;
  color: #e5e7eb;
  line-height: 1.6;
}

/* ============================================
   NAVBAR  —  logo far left, links far right
   ============================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 40px;
  background: rgba(2, 6, 23, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #3b82f6;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  width: 100%;
  padding: 120px 40px;
  text-align: center;
  background: radial-gradient(ellipse at top center, #0f172a 0%, #020617 70%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1.2;
}

.hero p {
  margin-top: 15px;
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SECTION
   ============================================ */
.section {
  width: 100%;
  padding: 80px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  color: #ffffff;
}

.section-header p {
  color: #94a3b8;
  margin-top: 10px;
}

/* ============================================
   CONTAINER  (optional inner centering)
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   GRID
   ============================================ */
.grid {
  display: grid;
  gap: 30px;
  width: 100%;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   CARD
   ============================================ */
.card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.image-wrapper {
  height: 180px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover img {
  transform: scale(1.08);
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: #ffffff;
}

.card-content p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* ============================================
   TAG
   ============================================ */
.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  font-size: 0.75rem;
  background: #2563eb;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  width: 100%;
  text-align: center;
  padding: 30px 40px;
  color: #94a3b8;
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 80px 20px;
  }

  .section {
    padding: 60px 20px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}
