/* -------------------------
   RESET + VARIABLES
------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f0f10;
  --fg: #f5f5f5;
  --muted: #b5b5b5;
  --accent: #ff6b3d;
  --card: #18181b;
  --border: rgba(255, 255, 255, 0.12);
}

/* -------------------------
   BASE
------------------------- */
body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #1c1c1f, #0f0f10);
  color: var(--fg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #000;
}

/* -------------------------
   HEADER / NAV
------------------------- */
header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  margin-left: 1.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

nav a:hover {
  opacity: 1;
  color: var(--accent);
}

/* -------------------------
   MAIN / TYPOGRAPHY
------------------------- */
main {
  max-width: 1200px;
  margin: auto;
  padding: 5rem 2rem 3rem;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

/* -------------------------
   PORTFOLIO GRID
------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background: linear-gradient(180deg, #1f1f24, #141418);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 107, 61, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* -------------------------
   FOOTER
------------------------- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 700px) {
  nav {
    width: 100%;
    margin-top: 1.25rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1.25rem;
  }

  main {
    padding-top: 3.5rem;
  }
}
