/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
  --bg: #0f172a;          /* Main background */
  --surface: #1e293b;     /* Cards / sections */
  --primary: #3b82f6;     /* Accent colour */
  --text: #f1f5f9;        /* Main text */
  --muted: #94a3b8;       /* Secondary text */
  --border: #334155;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

section {
  padding: 90px 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Navbar ===== */
nav {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: var(--muted);
  font-weight: 500;
  transition: 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: white;
}

/* ===== Mobile Nav ===== */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 20px;
    background: var(--surface);
    position: absolute;
    top: 70px;
    right: 5%;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 140px 0;
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 60%);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 30px;
}

/* ===== Buttons ===== */
.button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* ===== Cards ===== */
.grid {
  display: grid;
  gap: 40px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  padding: 35px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.card h3 {
  margin-bottom: 10px;
}

/* ===== Contact Section ===== */
#contact {
  background: var(--surface);
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

input, textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--text);
  font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 70px 0;
  }
}