@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #f1f5f9;
  background-color: #0f172a;
  overflow-x: hidden;
}

/* Navbar */
header {
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #38bdf8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  background: #e2e8f0;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  border-radius: 2px;
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f8fafc;
  background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(15,23,42,0.7), rgba(30,41,59,0.8));
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  color: #38bdf8;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #cbd5e1;
}

.hero button {
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  background-color: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.hero button:hover {
  background-color: #7dd3fc;
  transform: translateY(-2px);
}

/* Content sections */
.content-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.content-section h2 {
  margin-bottom: 1rem;
  color: #38bdf8;
  font-size: 2rem;
}

.content-section p {
  color: #cbd5e1;
  max-width: 800px;
  margin: auto;
  font-size: 1.05rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  display: block;
  background-color: #1e293b;
}

.card h3 {
  margin-top: 1rem;
  color: #38bdf8;
}

.card p {
  color: #cbd5e1;
  padding: 0.5rem 1rem 1.5rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.15);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: #1e293b;
  text-align: center;
  padding: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #1e293b;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-links a {
    display: inline-block;
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-links.active {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* === STATUS PAGE === */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.status-card {
  background-color: #1e293b;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-card:hover {
  transform: translateY(-5px);
}

.status-card h3 {
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.status-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-indicator {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.2);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-up .status-dot {
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.status-down .status-dot {
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.status-pending .status-dot {
  background-color: #facc15;
  box-shadow: 0 0 10px #facc15;
}