/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body { /* Mobile */
  font-size: 18px; /* Base font size */
  height: 100%;
  margin: 0;
}

@media (min-width: 768px) { /* Desktop */
  html, body  {
    font-size: 24px; /* Base font size */
  }
}

body {
  padding-top: 90px; /* compensate for fixed nav menu */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background-color: #fdfdfd;
  color: #222;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
}



/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header and Navigation */
header { /* Mobile */
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #111;
  color: #fff;
  padding: 1rem 0.5rem 1rem 0.5rem; /* top right bottom left */
  z-index: 1000;
}

@media (min-width: 768px) { /* Desktop */
  header {
  padding: 1rem 1rem 1rem 1rem; /* top right bottom left */
  }
}

nav { /* Mobile */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) { /* Desktop */
  nav {
  max-width: 95%;
  }
}

.logo a {
  color: #0ff; /* #0ff (cyan), #66ff66 (green), #66ff66 (orange), #ff66cc (pink) */
  transition: color 0.2s ease;
  font-family: monospace;
  font-weight: normal; /* bold */
  font-size: 1.3rem;
}
.logo a:hover {
  color: #fff;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  display: none;
  cursor: pointer;
  margin-top: -0.25rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transform: translateY(5px);  /* Nudges only the menu items down */
}

.nav-links li a {
  color: #fff;
  padding: 0.25rem 0.5rem 0.25rem 0.5rem; /* top right bottom left */
  transition: background 0.2s ease;
}
.nav-links li a:hover {
  background: #333;
  border-radius: 4px;
}

/* Responsive nav */
@media (max-width: 1000px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

}

/* Main layout */
main { /* Mobile */
  flex: 1;
  width: 100%;
  max-width: 90%;
  margin: 2rem 0rem 2rem 0.75rem; /* top right bottom left */
  padding: 0rem 2rem 0rem 2rem; /* top right bottom left */
}

@media (min-width: 768px) { /* Desktop */
  main {
    margin: 2rem 0rem 2rem 4rem; /* top right bottom left */
    padding: 0rem 2rem 0rem 0rem; /* top right bottom left */
  }
}

section { /* Mobile */
  margin: 0rem 0rem 3rem 0rem; /* top right bottom left */
}

@media (min-width: 768px) { /* Desktop */
  section {
    margin: 0rem 3rem 3rem 0rem; /* top right bottom left */
  }
}

section h2 {
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.25rem;
  font-size: 1.6rem;
}

.icon {
  display: inline-block;
  margin-right: 0.6rem;
}

.about-section { /* Mobile */
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10rem;
  flex-direction: row-reverse; /* this flips image to the right */
  padding: 0rem 0rem 0rem 0rem; /* top right bottom left */
}

@media (min-width: 768px) { /* Desktop */
  .about-section {
  padding: 0rem 0rem 0rem 0rem; /* top right bottom left */
  }
}

.profile-photo { /* Mobile */
  width: 300px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 0rem; /* tweak as needed */
  margin-bottom: -90px;
  padding-bottom: 0rem;
}

@media (min-width: 768px) { /* Desktop */
  .profile-photo {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  }
}

.project-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 0px;
}

/* Responsive picture */
@media (max-width: 1000px) {
  .about-section {
    flex-direction: column;
    align-items: center; /* optional: center image and text on small screens */
  }

  .profile-photo {
    margin-top: 1rem;
  }
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  align-items: flex-start; /* key line to avoid vertical stretching */
}

.image-gallery img {
  width: 100%;
  height: auto; /* 200px, auto */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Desktop and up */
@media (min-width: 768px) {
  .image-gallery img {
    width: calc(25% - 1rem); /* 4 per row */
  }
}

.about-text {
  flex: 1;
  min-width: 240px;
}

/* Centered layout for home page */
.centered-home {
  text-align: center;
  padding: 5rem 1rem;
}
.centered-home h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.centered-home p {
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #e0e0e0;
  color: #222;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  transition: background 0.2s;
}

.button:hover {
  background: #ccc;
}


.button-download {
  text-decoration: underline;
  color: #0066cc;
  font-weight: normal;
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
}

.button-download:hover {
  background: #ccc;
}




/* Footer */
footer {
  height: 60px;
  text-align: right;
  line-height: 60px;
  padding-right: 0.75rem;
  background-color: #000;
  color: #aaa;
  font-size: 0.8rem;
  margin-top: auto;
}
