* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.back-to-portfolio-btn {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: inline-block;
  padding: 0.7rem 1.1rem;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.back-to-portfolio-btn:hover {
  transform: translateY(-2px);
  background: #1e293b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #222222;
  background-color: #fafafa;
}

header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #555555;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #000000;
}

.hero {
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: #f0f0f0;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  color: #666666;
  font-size: 1.1rem;
}

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #777777;
  margin-bottom: 2rem;
}


.about-container {
  max-width: 700px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.about-text p {
  margin-bottom: 1rem;
  color: #444444;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}


.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  background: #ffffff;
  border-radius: 8px;
  max-width: 650px;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.lightbox-caption {
  padding: 1.2rem;
}

.lightbox-caption h3 {
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  color: #666666;
  font-size: 0.95rem;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
}


#contact p {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.contact-form {
  max-width: 500px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.submit-btn {
  background-color: #222222;
  color: #ffffff;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background-color: #444444;
}


.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: #ffffff;
}

.social-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}


.social-btn.facebook {
  background-color: #1877f2;
}


.social-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}


footer {
  text-align: center;
  padding: 2rem;
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
  color: #888888;
  font-size: 0.9rem;
}


@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 0.8rem;
  }
}