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

body {
  background-color: rgb(30, 30, 30);
  color: #f5f5dc;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 2rem;
}

header {
  background: linear-gradient(90deg, #404040, #606060);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.2rem 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  display: inline-flex;
  gap: 2rem;
}

nav a {
  color: #f5f5dc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #909090;
}

a {
  color: #606060;
}

a:visited {
  color: #f5f5dc;
}

main {
  margin-top: 20px;
}

#hero {
  background: linear-gradient(90deg, #404040, #606060);
  padding: 3rem 2rem;
  text-align: center;
  color: #89b9c9;
  text-shadow: rgba(0, 0, 0, 0.4) 0px 0px 3px;
}

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

.tagline {
  font-size: 1.5rem;
  opacity: 0.9;
  font-weight: 300;
}

section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #707070;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #f5f5dc;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

div.container > p {
  text-align: start;
}

hr {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(204, 85, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(204, 85, 0, 0.2);
}

.project-card h3 {
  margin-bottom: 1rem;
  color: #707070;
}

.project-screenshot {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(204, 85, 0, 0.2);
}

.project-screenshot:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(204, 85, 0, 0.3);
}

.project-card p {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link.website {
  background-color: #707070;
  color: white;
}

.project-link.website:hover {
  background-color: #505050;
}

.project-link.github {
  background-color: transparent;
  color: #f5f5dc;
  border: 1px solid rgba(245, 245, 220, 0.3);
}

.project-link.github:hover {
  background-color: rgba(245, 245, 220, 0.1);
  border-color: #f5f5dc;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.photo-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(45deg, #707070, #404040);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.photo-placeholder:hover {
  transform: scale(1.05);
}

.photo-item {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.photo-item:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Fullscreen Modal Styles */
.fullscreen-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#fullscreen-image {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: #f5f5dc;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #707070;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-link {
  background-color: #707070;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background-color: #505050;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(204, 85, 0, 0.3);
}

.contact-link:visited {
  color: #dedede;
}

.photo-links {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.photo-link {
  background-color: #707070;
  color: white;
  padding: 1rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  margin-left: 1rem;
  margin-right: 1rem;
}

.photo-link:hover {
  background-color: #505050;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(204, 85, 0, 0.3);
}

.photo-link:visited {
  color: #dedede;
}

footer {
  background-color: #1a1a1a;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  opacity: 0.7;
  margin: 0;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  nav ul {
    gap: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  #hero {
    padding: 2rem 1rem;
  }

  section {
    padding: 3rem 0;
  }

  h2 {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-link {
    width: 200px;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

  nav ul {
    gap: 0.5rem;
  }

  nav a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}
