:root {
  --color-bg-dark: #0f172a;
  --color-bg-light: #020617;
  --color-primary: #38bdf8;
  --color-secondary: #22c55e;
  --color-text-main: #e5e7eb;
  --color-text-muted: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background: linear-gradient(180deg, var(--color-bg-dark), var(--color-bg-light));
  color: var(--color-text-main);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Navigation ===== */
nav {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav li:hover {
  color: var(--color-primary);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.hero p {
  max-width: 600px;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.cta-button {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #020617;
  border-radius: 999px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.5);
}

/* ===== Features Section ===== */
.features {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.features h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
}

.card h3 {
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== Gallery ===== */
.gallery-container {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
}

.gallery-container h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.gallery-item {
  width: 300px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item img {
  width: 100%;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

.caption {
  padding: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background-color: rgba(2, 6, 23, 0.8);
}

/* ===== Footer ===== */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}
