/* === Global Reset === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Base Styles === */
body {
  margin-top: clamp(6vh, 10vh, 12vh);
  background: radial-gradient(circle at center, #576f82 0.545%, #253d4f 92.182%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.4;
}

/* === Header === */
header {
  position:absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.5rem, 1vw, 1.5rem) clamp(1rem, 3vw, 3rem);
  background: rgba(37, 61, 79, 0);
  transition: background 0.4s ease;
  z-index: 10;
}

header:hover {
  background: rgba(37, 61, 79, 0.8);
}

h1 a {
  color: #d6b376;
  font-size:
    clamp(1.2rem, 1.8vw, 2rem);
  font-weight: 600;
  text-decoration: none;
}

h1 a:hover {
  color: #ddd;
}

nav a {
  color: #d6b376;
  margin-left: 1.5rem;
  text-decoration: none;
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
}

nav a:hover {
  color: #ddd;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  stroke: #d6b376;
}

.menu-toggle svg {
  width: 2rem;
  height: 2rem;
}

/* Mobile nav */
@media (max-width:800px) {
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    background: rgba(37, 61, 79, 0.8);
    padding: 1rem 2rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }
  header{
    position: fixed;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }
}

/* === Category Section === */
.category {
  width: 100%;

  margin-bottom: 5vh;
  display: flex;
  flex-direction: column;
}

.category h2 {
  color: #d6b376;
  font-weight: 400;
  font-size: 2.5rem;
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

/* === Category Grid === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 0 1rem 1rem 1rem;
}

/* === Project Cards === */
.project {
  position: relative;
  cursor: pointer;
  box-shadow: #000000da 1px 1px 5px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: 4px;

  transition: transform 0.3s ease;
}

.project img,
.project video {
  width: 100%;
  height: 100%;
  
  object-fit: cover;
  display: block;
}

.project .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 61, 79, 0);
  display: flex;
  box-shadow: #000000da 1px 1px 5px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.project .overlay p {
  color: #d6b376;
  font-size: 3rem;
  font-weight: 200;
  text-align: center;
  opacity: 0;
  transform: translateY(1vh);
  transition: 0.3s;
}

.project:hover .overlay {
  background: rgba(37, 61, 79, 0.8);
  opacity: 1;
  
}

.project:hover{
  box-shadow: #d6b376 0px 0px 3px 0.25px;
  transition: box-shadow 0.5s ease delay 0.2s;
}

.project:hover .overlay p {
  opacity: 1;
  transform: translateY(0);
}

.project.about-trigger {
  display: none ;
}
/* === "Me" Category Styling === */
#me {
  background: radial-gradient(circle at center, #2c3d4e 0%, #1c2935 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 0;
}

#me .category-gallery {
  justify-content: center;
}

#me .project {
  width: clamp(40vw, 60vw, 600px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#me .project img {
  object-fit: cover;
  transition: transform 0.4s ease;
}

#me .project:hover img {
  transform: scale(1.05);
}

#me .project:hover {
  box-shadow: 0 0 25px rgba(214,179,118,0.5);
}

#me h2 {
  text-align: center;
  margin-bottom: 4vh;
}




.hero-socials {
  background: rgba(0,0,0,0);
  text-align: center;
  padding: 10vh 0;
  color: #eee;
}

.hero-name {
  color: #d6b376;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.hero-name:hover {
  color: #ddd;
}


.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  color: #d6b376;
  text-decoration: none;
  font-size: 1rem;
  
  
 
  transition: all 0.3s ease;
}

.social-links a:hover {
  
  color: #ddd;
}



/* === Lightbox Modal === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(37, 61, 79, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-inner {
  display: flex;
  gap: 1rem;
  width: 90vw;
  max-width: 100%;
  max-height: 85vh;
}

.lightbox-media {
  flex: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.lightbox-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #ddd;
}

.lightbox-media img,
.lightbox-media video,
.lightbox-media iframe {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;

  box-shadow: #d6b376 0px 0px 3px 0.5px;
  object-fit: contain;
}

.lightbox-title {
  font-size: 1.8rem;
  color: #d6b376;
  font-weight: 600;
}

.lightbox-meta {
  font-size: 0.95rem;
  color: #ffffff70;
}

.lightbox-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: #dddddd;
}

.lightbox-link {
  color: #d6b376;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1vh;
  transition: 0.2s ease;
}

.lightbox-link:hover {
  color: #ddd;
}

.lightbox .close {
  position: absolute;
  top: 2vh;
  right: 3vw;
  font-size: 3rem;
  cursor: pointer;
  color: #d6b376;
}

/* Mobile Lightbox */
/* Mobile Lightbox */
/* Mobile Lightbox */
@media (max-width: 800px) {
  .lightbox-inner {
    flex-direction: column;
    width: 95vw;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    height: 90vh; /* ensures the lightbox fits neatly on screen */
  }

  

  .lightbox-media {
    flex: 0 0 auto;
    width: 100%;
    max-height: 45vh; /* reserves some space for info */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .lightbox-media img,
  .lightbox-media video {
    max-width: 90vw;
    max-height: 45vh; /* scaled down further for portrait images */
    object-fit: contain;
    align-items: center;
  }

  .lightbox-info {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
    max-height: 60vh; /* ensures info fits on-screen */
    
  }

  .lightbox-desc {
  font-size: 1rem;
  line-height: 1.2;
  color: #ddd;
}

  .lightbox .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    
    border-radius: 50%;
    font-size: 2rem;
    padding: 0.2em 0.4em;
    z-index: 10;
  }

  .project .overlay p {
    font-size: 2.5rem;
  }
}

/* Fix iframe centering on mobile */
@media (max-width: 800px) {
  .lightbox-media > div {
    /* Target the ratioBox wrapper created for iframes */
    position: relative;
    width: 90vw;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* centers horizontally */
  }

  .lightbox-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}


@media (max-width: 800px) {
  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* space between icons */
  }

  .social-links a {
    display: block;
  }
}

.contact-section {
  text-align: center;
  padding: 5rem 2rem;
  
  color: #d6b376;
}

.contact-section h2 {
  font-size: 2rem;
  color: #d6b376;
  margin-bottom: 2rem;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #d6b376;
  color: #ddd;
  border-radius: 6px;
  padding: 0.8rem;
  font-family: inherit;
  font-size: 16px;
  resize: none;
}

.contact-form button {
  background: #d6b376;
  color: #576f82;
  border: none;
  border-radius: 6px;
  padding: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.contact-form button:hover {
  background: #c19e63;
  color:#253d4f;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #576f82; /* or whatever muted gold/tan tone matches your design */
  opacity: 1; /* Ensures consistent color in all browsers */
}

.contact-success {
  opacity: 0;
  transition: opacity 0.6s ease;
  font-size: 1rem;
  color: #d6b376;
}


/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: clamp(0.8rem, 1vw, 1rem);
  color: #bbb;
}

footer a {
  text-decoration: none;
  color: #d6b376;
  
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ddd;
}