body, html {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background-color: #000;
}

.site-nav {
  position: absolute;
  top: 30px;
  left: 0; 
  width: 100%;
  text-align: center;
  z-index: 10;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-family: 'Montserrat', sans-serif;
}

.site-nav a:hover {
  text-decoration: underline;
}

.hero-header {
  height: 60vh; 
  min-height: 500px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, black, black);
  color: #fff;
}

.hero-header h1 {
  font-weight: 300;
  letter-spacing: 0.20em;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem); 
  text-transform: uppercase;
  text-align: center; 
  line-height: 1.2; 
}

.first-name {
  font-size: 0.8em; 
  letter-spacing: 0.35em;
  font-weight: 300; 
}

.last-name {
  font-weight: 700; 
}

.hero-header p {
  margin-top: 10px;
  letter-spacing: 0.15em;
  font-size: 1rem;
}

.portfolio-section {
  height: 60vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.2); 
  background-blend-mode: overlay;
  border-bottom: 1px solid #111;
}

.portfolio-section h2 {
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.view-button {
  border: 1px solid #fff;
  padding: 8px 24px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.view-button:hover {
  background-color: #fff;
  color: #000;
}


.site-footer {
  background-color: #000;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #222;
}

.footer-content p {
  margin: 0 0 20px 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.footer-socials a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.footer-socials a:hover {
  opacity: 0.6;
}

.gallery-page {
  padding-top: 80px; 
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header h1 {
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: 2rem;
}

/* CSS Grid Gallery Setup */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 45px;
  padding: 0 20px 60px 20px;
  max-width: 1600px;
  margin: 0 auto;
  grid-auto-flow: dense; 
}

.grid-item {
  background-color: transparent; 
  overflow: hidden; 
  width: 100%;
  height: 100%;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  transition: transform 0.4s ease;
}

.grid-item:hover img {
  transform: scale(1.03); 
}

/* The class applied by JavaScript to wide images */
.grid-item.span-wide {
  grid-column: span 2;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .grid-item.span-wide {
    grid-column: span 1; 
  }
}

.overlay {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
  }

  .overlay-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 3%;
  }

 .close-button {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 50px;
  font-weight: 400; 
  cursor: pointer;
}

  .close-button:hover {
    color: #bbb;
  }

  .back-link {
  position: absolute;
  left: 50px;
  font-size: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* About Page Styles */
.about-container {
  max-width: 1000px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-text {
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #ccc;
}

.about-text p {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Contact Page Styles */
.contact-container {
  max-width: 1000px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact-info p {
  font-weight: 300;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 25px;
}

.contact-details p {
  margin-bottom: 10px;
  color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #555;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 10px 0;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.submit-button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 40px;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.1em;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.submit-button:hover {
  background-color: #fff;
  color: #000;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
