/* =========================
   Reset & Global Styles
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'DentonTextBlack', sans-serif;
  background-color: #242424;
  color: #fff;
  cursor: url("Images/Mouse.svg") 8 8, auto;
  position: relative;
  z-index: -2;
}

/* Font Faces */
@font-face {
  font-family: 'DentonTextBlack';
  src: url('Fonts/DentonTextTest-Black.woff2') format('woff2'),
       url('Fonts/DentonTextTest-Black.woff') format('woff');
}

@font-face {
  font-family: 'DentonCondensed';
  src: url('Fonts/DentonCondensedTest-Regular.woff2') format('woff2'),
       url('Fonts/DentonCondensedTest-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Dexton';
  src: url('Fonts/DentonTextTest-Black.woff2') format('woff2'),
       url('Fonts/DentonTextTest-Black.woff') format('woff');
}

/* =========================
   Header
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 15mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background-color: rgba(0,0,0,0.45); /* always semi-transparent */
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  z-index: 2100; /* above overlay */
}

header.scrolled {
  background-color: rgba(0,0,0,0.6); /* slightly darker when scrolled */
}

.logo img { width: 180px; height: auto; }

.menu-btn {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-btn img { width: 30px; height: auto; }

/* =========================
   Overlay Menu
========================= */
 .overlay {
   position: fixed;
   inset: 0;
   width: 100%;
   height: 100%;
   display: none;
   justify-content: center;
   align-items: center;
   z-index: 2000;
   z-index: 2200; /* must be > header (2100) so overlay appears above header */
   backdrop-filter: blur(18px) brightness(0.85);
   background: rgba(0, 0, 0, 0.6);
 }


.overlay.active { display: flex; }

.overlay-content {
  text-align: center;
  color: #fff;
  font-family: 'DentonTextBlack', sans-serif;
  padding: 24px;
}

.overlay-content a {
  display: block;
  font-size: 60px;
  margin: 24px 0;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.2,.9,.2,1);
}
.overlay-content a:hover {
  opacity: 0.8;
  transform: translateY(-4px);
}

.overlay-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  gap: 40px;
}

.overlay-logos img:first-child { width: 180px; }
.overlay-logos img:last-child { width: 300px; object-fit: contain; display: block; }

.overlay-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2100;
}
.overlay-close-btn img { width: 40px; height: auto; }

.no-scroll {
  overflow: hidden !important;
  height: 100%;
}

/* =========================
   Video Banner
========================= */
.video-banner {
  position: relative;
  width: 100%;
  height: 950px;
  overflow: hidden;
}

.video-banner video {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 1920px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.video-banner .banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  transform: translate(-50%, -50%) translateY(var(--banner-shift, 0px));
  --banner-shift: 0px;
  transition: transform 0.28s ease;
  max-height: 700px;
  width: 90%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.banner-text {
  position: absolute;
  top: 450px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DentonTextBlack', sans-serif;
  font-size: 60pt;
  line-height: 1.2;
  letter-spacing: -0.045em;
  color: #fff;
  text-align: center;
}

@media (max-width: 1200px) {
  .banner-text { font-size: 30pt; top: 330px; }
}

/* =========================
   Slideshow Overlay
========================= */
/* Prevent main page scroll when overlay is open */
.no-scroll {
  overflow: hidden !important;
  height: 100% !important;
}

/* =========================
   Overlay Styles
========================= */
.portfolio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(18px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  z-index: 9999;
}

/* Portfolio overlay content */
.overlay-content {
  margin: 0px auto;
  width: 100%;
  max-width: 1500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay-content img {
  width: 100%;
  height: auto;
  margin-bottom: 0px;
  object-fit: contain;
  loading: lazy;
}

/* Mobile close button for portfolio overlay */
.mobile-close-btn {
  display: none; /* hidden on desktop */
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 10001; /* above overlay content */
}

.mobile-close-btn img {
  width: 28px;
  height: 28px;
}

/* Show mobile close button only on small screens */
@media (max-width: 768px) {
  .mobile-close-btn {
    display: block;
  }
}

/* Hide scrollbar on overlay (use same page scrollbar) */
body.overlay-active {
  overflow: hidden;
}


/* Hide scrollbar on overlay (use same page scrollbar) */
body.overlay-active {
  overflow: hidden;
}


/* =========================
   Sections / Grid
========================= */
.our-services { display: flex; justify-content: center; align-items: center; height: 360px; text-align: center; }
.our-services h2 { font-family: 'Dexton', sans-serif; font-size: 3rem; font-weight: normal; }

.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 0; }
.service-box {
  width: 360px; height: 450px;
  background: linear-gradient(to bottom left,#898989,#5D5D5D);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  color: #242424;
  position: relative;
  padding-top: 20px;
  transition: transform 0.45s cubic-bezier(0.25,1,0.3,1), box-shadow 0.45s cubic-bezier(0.25,1,0.3,1);
}
.service-box:hover { transform: translateY(-12px); box-shadow:0 16px 28px rgba(0,0,0,0.25); }

.service-icon { height:auto; margin-bottom:0; }
.service-box:nth-child(1) .service-icon { width:125px; top:120px; position:absolute; }
.service-box:nth-child(2) .service-icon { width:108px; top:120px; position:absolute; }
.service-box:nth-child(3) .service-icon { width:163px; top:120px; position:absolute; }
.service-box:nth-child(4) .service-icon { width:153px; top:120px; position:absolute; }

.service-title {
  position: absolute;
  top: 335px;
  width: 100%;
  font-size: 27px;
  font-family: 'DentonTextBlack', sans-serif;
  text-align: center;
}

/* Chrome, Edge, Safari */
::selection { background: #ff7200; color: #ffffff; }
/* Firefox */
::-moz-selection { background: #ff7200; color: #ffffff; }

/* =========================
   Portfolio Grid
========================= */
.portfolio-box {
  width: 100%;
  max-width: 1575px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 30px;
  padding: 0 20px;
}

.portfolio-item {
  width: 100%;
  height: 750px;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
}
.portfolio-item:hover img { transform: scale(1.08); }

@media (max-width:920px){ .portfolio-box{grid-template-columns:1fr;} .portfolio-item{height:480px;} }
@media (max-width:480px){ .portfolio-item{height:360px;} }

.project-images { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin:80px 20px; }
.project-images img { width:100%; height:1002px; object-fit:cover; border-radius:9px; }
@media(max-width:768px){ .project-images {grid-template-columns:1fr;} .project-images img {height:300px;} }

.portfolio-description { max-width:1580px; margin:60px auto; padding:0 20px; text-align:left; }
.portfolio-description p { font-size:36px; line-height:1.6; color:#ddd; font-family:'DentonCondensed',sans-serif; }

.slideshow-container {
  display: flex;
  flex-direction: column;
  gap: 20px; /* spacing between overlay images */
}

.portfolio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(18px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: visible; /* <-- changed from auto to visible */
  z-index: 9999;
}


/* =========================
   Footer
========================= */
.collaborate-section { text-align:center; margin:40px auto; padding:20px; }
.collaborate-section h2 { font-size:3rem; font-family:'DentonTextBlack',sans-serif; color:#fff; }

.dummy-boxes {
  display:flex;
  justify-content:space-between;
  max-width:1600px;
  margin:60px auto;
  gap:0;
  padding:0 20px;
}
.dummy-box {
  flex:1;
  min-width:150px;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding-left:10px;
  background-color:transparent;
  border-radius:9px;
}
.dummy-box span { font-size:22px; line-height:1.6; font-family:'DentonCondensed',sans-serif; color:#fff; }
@media(max-width:1400px){ .dummy-boxes{flex-direction:column; gap:30px;} }

.logo-section {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:180px;
  max-width:1200px;
  margin:40px auto;
  padding:0 20px;
  flex-wrap:wrap;
}
.logo-star { width:300px; height:auto; animation:rotateLogo 60s linear infinite; transform-origin:center center; }
@keyframes rotateLogo { from{transform:rotate(0deg);} to{transform:rotate(-360deg);} }
.logo-main { width:600px; height:auto; }

.footer-texts {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:40px;
  margin:40px auto 30px;
  padding:0 20px;
  text-align:center;
}
.footer-texts p { font-size:16px; font-family:'DentonCondensed',sans-serif; color:#fff; margin:0; }

.dummy-box a, footer a { color:#fff !important; text-decoration:none !important; }

/* Mobile close button */
.mobile-close-btn {
  display: none; /* hidden on desktop */
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-close-btn img {
  width: 28px;
  height: 28px;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .mobile-close-btn { display: block; }
}
