/* Global Reset and Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', Trebuchet MS, sans-serif;
}

/* Body Layout */
body {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding-top: 40px; /* Adjust padding to account for fixed header */
}

/* Fixed Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* .navbar {
    --header-height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
} */


/* Flex Layout for Navbar */
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* .logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
} */

.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none; /* removes underline */
  color: inherit;        /* keeps same text color */
  cursor: pointer;
}



/* Optional: adjust h1 styling */
.site-title {
  font-size: 24px;
  margin: 0;
  color: white;
  text-align: left;
}

/* Logo Container (Left) */
.icon-container {
    flex: 0 0 auto;
    margin-right: 20px;
}

.top-left-icon {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Centered Title */
.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 24px;
    white-space: nowrap;
}

/* Nav Links (Right) */
.navbar-links {
    flex: 0 0 auto;
    display: flex;
    gap: 20px;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s;
}

.navbar-links a:hover {
    opacity: 0.75;
}

/* Hero + Content Sections */
.hero,
.content {
    padding: 50px 20px;
    background-color: #000000;
}

/* Footer */
footer {
    background-color: #000000;
    color: white;
    padding: 10px;
    margin-top: 20px;
}

/* Button Styles */
button {
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
button:hover {
    background-color: #0056b3;
}

/* Vertical Centering Container */
.vertical-align {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Overlay Container for Text on Hover */
.overlay-container {
    position: relative;
    display: inline-block;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.overlay-container:hover .overlay-text {
    opacity: 1;
}

/* Shorts Embed (YouTube) */
.shorts-container {
    text-align: center;
    margin: 20px 0;
}

.shorts-container iframe {
    width: 100%;
    max-width: 315px;
    height: 560px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Lazy Loading */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.lazy-image.loaded {
    opacity: 1;
}

/* Active Link Style */
.active-link {
    font-weight: bold;
}

/* Gallery Grid */
/* .gallery { */
  /* margin-top: 10px; */
  /* display: grid; */
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
   /* grid-template-columns: repeat(2, 1fr); ✅ Forces 2 equal-width columns */
  /* gap: 20px; */
  /* max-width: 1000px; */
  /* margin-left: auto; */
  /* margin-right: auto; */
  /* padding: 1px; */
/* } */

/* .gallery {
  display: grid;
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
  padding: 30px 0;
} */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
}

/* Image container */
.gallery-item {
  width: 100%;
  height: 250px;              /* ✅ same height for all */
  border-radius: 15px;
  overflow: hidden;           /* ✅ clip zoom neatly with rounded corners */
  position: relative;
  transition: transform 0.3s ease;
  background: #111;           /* backdrop for transparent images */
}

/* Image itself */
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* ✅ consistent height, fills frame */
  border-radius: 0;           /* corners handled by container */
  transition: transform 0.3s ease;
  display: block;
}

/* Gentle zoom on hover */
.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* Overlay setup */
.overlay-container {
  position: relative;
  display: inline-block;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Show overlay text on hover */
.overlay-container:hover .overlay-text {
  opacity: 1;
}

.gallery-masonry {
  column-count: 3;                /* ✅ how many columns on desktop */
  column-gap: 15px;               /* spacing between columns */
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
}

.gallery-img {
  width: 100%;
  height: auto;                   /* ✅ preserve natural aspect ratio */
  margin-bottom: 15px;
  border-radius: 15px;
  display: block;
  transition: transform 0.3s ease;
}

/* hover zoom */
.gallery-img:hover {
  transform: scale(1.05);
  z-index: 2;
  position: relative;
}

/* Responsive column adjustments */
@media (max-width: 900px) {
  .gallery-masonry { column-count: 2; }
}
@media (max-width: 600px) {
  .gallery-masonry { column-count: 1; }
}








/* .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
} */

/* .gallery-img {
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  display: block;
  margin: auto;
} */

/* .gallery-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 15px;
  transition: transform 0.3s ease;
  cursor: pointer;
} */

/* .gallery-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

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

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
}

.overlay-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
} */


/* .gallery-img { */
  /* width: 100%; */
  /* height: auto; */
  /* aspect-ratio: 16 / 9;   */
  /* object-fit: cover;  */
  /* border-radius: 20px; */
  /* cursor: pointer; */
  /* transition: transform 0.2s ease-in-out; */
/* } */
/* .gallery-img:hover { */
  /* transform: scale(1.03); */
/* } */

/* .gallery-img:hover {
  transform: scale(1.03);
} */

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
}
.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr; /* Single column on narrow screens */
  }
}

.page-title {
  margin-top: 40px;  /* or whatever your header height is + spacing */
  font-size: 32px;
  color: white;
  text-align: center;
}

.splash {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: white;
  overflow: hidden;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(40px);
  z-index: 0;
}

.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 2;
}

.splash h1 {
  font-size: 3rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
}

.splash p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #ddd;
}

.enter-button {
  padding: 12px 24px;
  font-size: 1rem;
  border: 2px solid white;
  border-radius: 30px;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 180px; /* 🔥 All buttons exactly this wide */
  text-align: center;
}
.enter-button:hover {
  background: white;
  color: black;
}

.main-site {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.hero-section {
  position: relative;
  margin-top: 10px;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* .hero-section .bg-slide:first-child {
  opacity: 1;              
  animation-delay: 0s;    
  z-index: 2;                
} */

.hero-section .bg-slide {
  position: absolute;
  inset: 0;
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
  background-color: black;
  opacity: 0;
  animation: fadeBackground 29s linear infinite;
}


.hero-section .bg-slide:nth-child(1) { animation-delay: 0s; }
.hero-section .bg-slide:nth-child(2) { animation-delay: 5s; }
.hero-section .bg-slide:nth-child(3) { animation-delay: 10s; }
.hero-section .bg-slide:nth-child(4) { animation-delay: 15s; }
.hero-section .bg-slide:nth-child(5) { animation-delay: 20s; }
.hero-section .bg-slide:nth-child(6) { animation-delay: 25s; }

@keyframes fadeBackground {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Dark overlay over slideshow for better text contrast */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);  /* adjust alpha (0.3–0.6) for brightness */
  z-index: 1;                       /* sits above slideshow */
}


/* Overlayed text and buttons */
.hero-content {
  position: relative;
  z-index: 2;              /* sits above slideshow */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

/* Title text */
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

/* Subtitle text */
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ddd;
}

.hero-buttons {
  display: flex;
  flex-direction: row;   /* ✅ ensures buttons go horizontally */
  justify-content: center; /* ✅ centers them horizontally */
  align-items: center;
  gap: 20px;             /* spacing between buttons */
  flex-wrap: wrap;       /* allows wrapping on small screens */
}

.hero-btn {
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  color: white;
  width: 180px;          /* ✅ same width for all buttons */
  text-align: center;    /* ✅ keep text centered */
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
}

.hero-btn:hover {
  background-color: white;
  color: black;
}




.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.project-link {
  text-decoration: none;
  color: inherit;
}

.project-section {
  text-align: center;
}

/* --- image styling --- */
.project-thumbnail {
  max-height: 200px;
  width: 100%;
  object-fit: contain;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 10px auto 0;
}

.project-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

/* --- text styling --- */
.project-section h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: white;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.project-section h2:hover {
  /* color: #9f9f9f; */
  /* text-shadow: 0 0 10px rgba(102, 170, 255, 0.5); */
  opacity: 0.75; /* ✅ same as navbar hover */
}
