/* =========================
   RESET + VARIABLES
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

:root {
  --bg: #0f172a;
  --bg-2: #020617;
  --card: #0b1220;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --border: #1e293b;
  --radius: 16px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

/* =========================
   BODY LAYOUT
========================= */
body.dark {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  cursor: default; /* no hover link effect */
}

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

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 5rem 0 4rem;
}

.hero-inner {
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  max-width: 650px;
  line-height: 1.8;
}

/* =========================
   PORTFOLIO GRID
========================= */
.portfolio {
  padding: 4rem 0 6rem;
}

.grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* =========================
   CARD
========================= */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card-content {
  padding: 1.8rem;
}

.card-content h3 {
  margin-bottom: 0.8rem;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   VIEW MY WORK CARD
========================= */
.portfolio-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 3rem 2rem;
}

.portfolio-item strong {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.portfolio-item p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* =========================
   BUTTONS
========================= */
.project-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn.primary {
  background: var(--accent);
  color: #020617;
  border-color: var(--accent);
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: #020617;
}

.footer-inner {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================
   RESPONSIVE / MOBILE MENU
========================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #020617;
    border-bottom: 1px solid var(--border);
    z-index: 90;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    display: none; /* hidden by default */
    padding: 1rem;
  }

  .site-nav.open ul {
    display: flex; /* show when open */
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4rem 0 2rem;
  }
}
/* =========================
   RESET + VARIABLES
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

:root {
  --bg: #0f172a;
  --bg-2: #020617;
  --card: #0b1220;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --border: #1e293b;
  --radius: 16px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

/* =========================
   BODY LAYOUT
========================= */
body.dark {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  cursor: default; /* no hover link effect */
}

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

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 5rem 0 4rem;
}

.hero-inner {
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  max-width: 650px;
  line-height: 1.8;
}

/* =========================
   PORTFOLIO GRID
========================= */
.portfolio {
  padding: 4rem 0 6rem;
}

.grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* =========================
   CARD
========================= */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card-content {
  padding: 1.8rem;
}

.card-content h3 {
  margin-bottom: 0.8rem;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   VIEW MY WORK CARD
========================= */
.portfolio-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 3rem 2rem;
}

.portfolio-item strong {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.portfolio-item p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* =========================
   BUTTONS
========================= */
.project-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn.primary {
  background: var(--accent);
  color: #020617;
  border-color: var(--accent);
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: #020617;
}

.footer-inner {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================
   RESPONSIVE / MOBILE MENU
========================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #020617;
    border-bottom: 1px solid var(--border);
    z-index: 90;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    display: none; /* hidden by default */
    padding: 1rem;
  }

  .site-nav.open ul {
    display: flex; /* show when open */
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4rem 0 2rem;
  }
}
