/* ------------------------------
   Base Reset & Typography
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: #222;
  background: #f7f7f7;
  line-height: 1.6;
}

/* Fluid typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

/* ------------------------------
   Layout Helpers
------------------------------ */
.container {
  width: min(1200px, 90%);
  margin: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

/* ------------------------------
   Navigation
------------------------------ */
nav {
  background: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

nav a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #0077ff;
}

/* ------------------------------
   Buttons
------------------------------ */
button,
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: #0077ff;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

button:hover,
.btn:hover {
  background: #005fcc;
}

/* ------------------------------
   Cards
------------------------------ */
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ------------------------------
   Forms
------------------------------ */
input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0,119,255,0.2);
}

/* ------------------------------
   Footer
------------------------------ */
footer {
  text-align: center;
  padding: 2rem 0;
  color: #666;
  font-size: 0.9rem;
}

/* ------------------------------
   Responsive Tweaks
------------------------------ */
@media (max-width: 768px) {
  nav .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
}

