/* =================================
   GLOBAL PAGE STYLING
================================= */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

/* =================================
   NAVIGATION BAR (Flexbox)
================================= */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e293b;
  padding: 14px 24px;
  border-bottom: 2px solid #10b981;
}

nav .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #10b981;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #10b981;
}

/* =================================
   GRID LAYOUT
================================= */

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px 24px;
}

/* =================================
   GRID ITEMS WITH HOVER EFFECTS
================================= */

.item {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  color: #e2e8f0;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.item:hover {
  transform: translateY(-5px);
  background: #263548;
  border-color: #10b981;
}

/* =================================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 900px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    margin-top: 4px;
  }

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