:root {
  --bg: #070B10;            /* Deep slate */
  --card: #10161F;          /* Glassy dark panels */
  --text: #EDF1F7;          /* Soft white */
  --muted: #8F9BB2;         /* Muted blue-grey */
  --accent: #3BA7FF;        /* Bright but soft blue */
  --accent-light: #A9D6FF;  /* Pale blue hover */

  --border: #1F2835;        /* Card borders */
  --header: #0D131C;        /* Solid header */
  --header_border: #222C3C; /* Divider line */

  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  font-family: Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- HEADER & NAV ---------- */

.header {
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--header_border);
  position: sticky;
  top: 0;
  background: var(--header);
  backdrop-filter: blur(20px);
  z-index: 10;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}

/* Hamburger button */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.3rem;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

/* Nav links (mobile default: hidden) */
.nav-links {
  list-style: none;
  position: absolute;
  top: 56px;
  right: 1rem;
  background: var(--card);
  border: 5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

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

.nav-links a:hover {
  color: var(--accent-light);
}

/* Show menu when nav has .open */
.nav.open .nav-links {
  display: flex;
}

/* ---------- HERO ---------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 10rem;
  max-width: 1100px;
  margin: auto;
}

.hero-content {
  flex: 1;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
}

.hero span {
  color: var(--accent);
}

.hero p {
  color: var(--muted);
  max-width: 450px;
  margin: 1rem 0;
}

.socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.2rem;
}

.socials a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.socials a:hover {
  color: var(--accent-light);
}

/* Right-side image */
.hero-image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--text);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hero-image {
  flex-shrink: 0;
}

/* ---------- PROJECTS ---------- */

.projects {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: auto;
}

.projects h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.project-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 3px solid var(--border);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-card a {
  color: var(--accent);
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

/* ---------- GALLERY (PICTURES) ---------- */

.gallery {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: auto;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.gallery-note {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-item {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------- ABOUT / CONTACT / FOOTER ---------- */

.about,
.contact {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.about p,
.contact p {
  color: var(--muted);
}

.email-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  margin-top: 3rem;
}

/* ---------- RESPONSIVE ---------- */

@media (min-width: 700px) {
  /* Desktop: show links inline, hide hamburger */
  .menu-toggle {
    display: none;
  }

  .nav {
    align-items: center;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    background: none;
    border: none;
    padding: 0;
  }

  .projects .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 699px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  /* hide the photo on mobile */
  .hero-image {
    display: none;
  }
}