/* CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-y:hidden;
}

body, html {
  width: 100%;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden; /* Prevents horizontal scrolling on small screens */
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Main Frame Container */
.frame {
  position: relative;
  width: 100%;
  gap: 20px;
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* Main Background Image */
.bg-main {
  position: absolute;
  inset: 0; /* Stretches background to all 4 edges seamlessly */
  z-index: -1;
  pointer-events: none; /* Prevents background from capturing scroll events */
}

.bg-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Initial hidden state */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Triggered state when scrolled into view */
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-10 { transition-delay: 0.10s; }
.delay-20 { transition-delay: 0.20s; }
.delay-30 { transition-delay: 0.30s; }
.delay-40 { transition-delay: 0.40s; }
.delay-50 { transition-delay: 0.50s; }

/* =========================================





   Navigation





   ========================================= */

/* Navigation Container */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 5%;
}

/* Unstuck State: Converts fixed positioning to absolute so it scrolls away */
.navigation.unstick {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 5%; /* Fluid percentage-based padding */
  flex-shrink: 0;
}

.nav-blur-wrapper {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%; 
  max-width: 1300px; /* Caps out on ultra-wide screens */
  height: 100px;
  border-radius: 20px;
  pointer-events: none;
}

.nav-blur-bg, .nav-blur-shadow {
  position: absolute;
  inset: 0;
  border-radius: 17px;
  pointer-events: none;
}

.nav-blur-bg {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 0, 0, 0));
}

.nav-blur-shadow {
  box-shadow: inset 3px 3px 17.6px 0px rgba(255,255,255,0);
}

.nav-desktop {
  position: relative;
  width: 100%;
  max-width: 1231px;
  height: auto;
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Spreads logo and nav items naturally */
  gap: 20px;
  flex-wrap: wrap; /* Allows wrapping on mobile screens */
}

.nav-desktop-blur {
  position: absolute;
  inset: -15px 0 0 0; /* Attaches blur properly to the container */
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  pointer-events: none; /* FIX: Added pointer-events none */
}

.nav-desktop-blur-inner {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  background-color: rgba(255,255,255,0);
  backdrop-filter: blur(4.05px);
  -webkit-backdrop-filter: blur(4.05px);
  transform: scaleY(-1) translateZ(0); /* FIX: Forced GPU hardware acceleration */
  will-change: transform;
}

.logo-link {
  display: block;
  position: relative;
  width: 107px;
  height: 54px;
  flex-shrink: 0;
  cursor: pointer;
}

.logo-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation Items */
.nav-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 3vw, 36px); /* Fluid spacing that shrinks on smaller screens */
  flex-shrink: 1;
  color: #5f6700;
  font-size: clamp(16px, 1.5vw, 20px); /* Fluid typography */
  flex-wrap: wrap;
}

.nav-link, .nav-email {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}

.nav-email {
  font-weight: 500;
}

/* Button */
.btn-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 161px;
  height: 49px;
  border-radius: 17px;
  background: linear-gradient(to bottom, #fc0, #ff9600);
  box-shadow: 0px 7px 4.4px rgba(0,0,0,0.17);
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 10px; /* spacing if it wraps on mobile */
}

.btn-connect:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0px 9px 6px rgba(0, 0, 0, 0.1));
}

.btn-connect:active {
  transform: scale(0.9);
}

.btn-connect a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}
/* =========================================





   Main Body





   ========================================= */
/* =========================================
   TITLE
   ========================================= */

.my-works-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  word-break: break-word;
  font-family: 'Belanosima', sans-serif;
  font-style: normal;
  line-height: 1.2; /* Fixed line-height so text lines don't overlap at 0 */
  color: #ff9b00;
  font-size: clamp(80px, 8vw, 96px); /* Scales fluidly between 48px and 96px based on width */
  text-align: center;
  position: relative;
  padding-bottom: 60px;
  padding-top: 60px;
}

.my-works-subcontainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  word-break: break-word;
  font-family: 'Belanosima', sans-serif;
  font-style: normal;
  line-height: 1.2; /* Fixed line-height */
  color: #ff9b00;
  font-size: clamp(56px, 6vw, 78px); /* Scales fluidly between 36px and 78px based on width */
  text-align: center;
  position: relative;
}

.my-works-container p {
  line-height: normal;
}


/* =========================================
   PORTFOLIO CONTAINER
   ========================================= */
/* CSS Styles for Horizontal Scroll Showcase Layout */
.portfolio-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  overflow: visible; /* Keeps outer elements from being clipped */
}

.portfolio-scroll-track {
  display: flex;
  flex-direction: row;
  align-items: center; /* Vertically centers the cards and titles */
  gap: 30px;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: none;
  padding: 40px clamp(40px, calc((100% - 1300px) / 2), 75px);
  width: 100%;
  box-sizing: border-box;
  z-index: 5;
  position: relative;
  justify-content: safe center; /* Centers items relative to resolution width when they fit, safely avoids left-clipping on overflow */
  scrollbar-width: thin;
}

.portfolio-item-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.portfolio-category-title {
  font-family: 'Belanosima', sans-serif;
  color: #ff9b00;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  white-space: nowrap;
}

.grid-card {
  width: min(400px, 80vw); /* Scales down on smaller screens so it fits inside the viewport */
  height: min(400px, 80vw);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #1e1e1e;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 auto;
}

.grid-card:hover {
  transform: translateY(-6px);
}

.grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure video fits perfectly inside the gallery card */
.gridcard-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Fills the card without distorting proportions */
  background-color: transparent;
  display: block;
  outline: 0px solid transparent;
  transform: scale(1.005); /* Fixes encoded odd-pixel borders */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Lightbox video responsiveness */
#gridcard-lightbox-video {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain; /* Shows full video in lightbox without cropping */
  background-color: transparent; /* Fixes letterbox black background */
  outline: 0px solid transparent;
  display: block;
  margin: auto;
}

.bg-glass-overlay,
.outer-shadow-overlay {
  pointer-events: none;
}

/* =========================================
   ADDITIONAL INFORMATION
   ========================================= */
.addtl-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px);
  box-sizing: border-box;
  position: relative;
  padding-bottom: clamp(12px, 4vw, 24px);
  /* Creates space between content and the line */
}

/* Headline */
.what-i-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px) 0;
  width: 100%;
}

.what-i-offer h2 {
  font-family: 'IM Fell Great Primer', serif;
  font-size: clamp(30px, 4.5vw, 60px);
  color: #5f6700;
  text-align: center;
  margin: 0;
  word-break: break-word;
  line-height: 1.2;
  font-weight: 400;
}

/* Button */
.btn-lets-connect {
  margin-top: -24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  min-height: 52px;
  height: clamp(52px, 6vw, 63px);
  padding: 12px;
  border-radius: 17px;
  background: linear-gradient(180deg, #ffcc00 0%, #ff9600 100%);
  filter: drop-shadow(0px 7px 4.4px rgba(0, 0, 0, 0.17));
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-lets-connect:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0px 9px 6px rgba(0, 0, 0, 0.22));
}

.btn-lets-connect:active {
  transform: scale(0.9);
}

.btn-lets-connect span {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 2vw, 20px);
  color: #ffffff;
  text-align: center;
}

/* Contact Info Section */
.contact-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
  width: 100%;
  color: #5f6700;
  text-align: center;
}

.contact-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  flex: 1 1 auto;
}

.contact-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 1.5vw, 15px);
  letter-spacing: -0.5px;
}

.contact-value {
  font-family: 'Belanosima', sans-serif;
  font-size: clamp(20px, 3.5vw, 36px);
  color: inherit;
  text-decoration: none;
  margin: 0;
  word-break: break-all;
  font-weight: normal;
}

/* Footer Link Columns Frame - Fixed 3-Column Layout */
.footer-links-frame {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: clamp(8px, 2vw, 24px); /* Scales spacing tightly on narrow screens */
  font-family: 'IM Fell Great Primer', serif;
  color: #5f6700;
  text-align: center;
  margin-top: 12px;
  
}

.footer-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1; /* Keeps all 3 columns evenly sized */
  min-width: 0; /* Prevents overflow pushing columns into new lines */
}

/* Fluid Resizing for Headers & Links */
.footer-index h3 {
  /* Scales down to 18px on small mobile while maintaining max 36px desktop size */
  font-size: clamp(18px, 2.8vw, 36px); 
  line-height: 1;
  margin: 0 0 clamp(4px, 1vw, 10px) 0;
  font-weight: normal;
  white-space: nowrap;
}

.footer-index span,
.footer-index button {
  font-family: inherit;
  /* Scales down to 12px on small mobile so longer items fit easily */
  font-size: clamp(12px, 1.6vw, 20px); 
  color: inherit;
  background: none;
  border: none;
  padding: 2px 0;
  margin: 1px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer-index button:hover {
  opacity: 0.7;
}

.footer-index span {
  cursor: default;
}

/* =========================================
   SHOW MORE BUTTON
   ========================================= */
.frame-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(15px, 3vw, 20px);
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 10px;
}

/* "Not Enough?" Button */
.not-enough-btn {
  background: none;
  border: none;
  cursor: pointer;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  height: auto;
  min-height: 57px;
  justify-content: center;
  line-height: 0;
  font-style: normal;
  position: relative;
  flex-shrink: 0;
  color: #0055ab;
  font-size: clamp(28px, 5vw, 40px);
  text-align: left;
  width: auto;
  max-width: 100%;
}

.not-enough-btn p {
  line-height: normal;
}

/* Show More Button (Anchor Tag) */
.show-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  height: 57px;
  width: 202px;
  padding: 8px 20px 7px 21px;
  border-radius: 15px;
  text-decoration: none;
  word-break: break-word;
  filter: drop-shadow(0px 4px 2px rgba(0, 126, 134, 0.23));
  transition: transform 0.3s ease;
}

.show-more-button:hover {
  transform: scale(1.08);
  z-index: 50; /* Higher z-index brings hovered card above neighbors */
}

/* Backdrop blur & White Background Layer */
.show-more-button .bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 15px;
  background-color: white;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 1;
}

/* Solid Border Layer (rgba(255,155,0,0.48)) */
.show-more-button .border-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 15px;
  border: 3px solid rgba(255, 155, 0, 0.48);
  z-index: 3;
}

/* SHOW MORE Text Element */
.show-more-button .button-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0;
  font-style: normal;
  position: relative;
  flex-shrink: 0;
  color: #0055ab;
  font-size: 24px;
  text-align: center;
  white-space: nowrap;
  z-index: 4;
}

.show-more-button .button-text p {
  line-height: normal;
}

/* Inset Shadow Layer */
.show-more-button .shadow-inset-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.25);
  z-index: 2;
}

/* Media Query for Smaller Screens (Mobile view stacking) */
@media (max-width: 520px) {
  .frame-container {
    flex-direction: column;
    text-align: center;
  }
  
  .not-enough-btn {
    text-align: center;
  }
}

/* =========================================





   Footer





   ========================================= */

.copyrights {
  position: relative;
  width: 100%;
  min-height: 69px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 5%;
  flex-shrink: 0;
  pointer-events: none; /* FIX: Prevents footer area from locking scroll focus */
}

.copyrights a, .copyrights button, .footer-content {
  pointer-events: auto; /* Restores clicks specifically to footer links */
}

.copyrights-bg, .copyrights-bg img, .copyrights-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.copyrights-overlay {
  width: 100%;
  height: 25px;
  background-color: rgba(0, 126, 134, 1); 
  
  -webkit-mask-image: url('images/Shde.png');
  mask-image: url('images/Shde.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
  max-width: 1200px;
}

.footer-logo {
  position: relative;
  width: 69px;
  height: 35px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #68a6bb;
  
  -webkit-mask-image: url('images/Jeku\ Logo.png');
  mask-image: url('images/Jeku\ Logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;

  pointer-events: none;
}

.footer-text {
  color: #68a6bb;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

/* =========================================
   Privacy Policy Modal
   ========================================= */
/* Modal Overlay (Dark Backdrop) */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Active Class to Display Modal */
.modal-overlay.active {
  display: flex;
}

/* Modal Content Box (Centered) */
.modal-box {
  background-color: #ffffff;
  color: #333333;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.close-btn:hover {
  color: #000;
}

/* Modal Typography */
.modal-box h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.modal-box h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.modal-box p, .modal-box ul {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.modal-box ul {
  padding-left: 20px;
}

/* Grid Box Modal------------- */

/* GridCard Portfolio Modal Overlay */
.gridcard-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gridcard-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gridcard-modal-container {
  background: transparent;
  border: none;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
}

/* Top Action Bar */
.gridcard-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 20px;
  background: transparent;
  border-bottom: none;
}

.gridcard-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}

.gridcard-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.gridcard-content {
  padding: 10px 0 60px 0;
  overflow-y: auto;
  flex-grow: 1;
}

.gridcard-header-info {
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.gridcard-header-info h2 {
  font-size: 38px;
  margin-bottom: 12px;
  font-weight: 700;
}

.gridcard-header-info p {
  color: #a1a1aa;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.gridcard-gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
}

.gridcard-gallery-item {
  position: relative;
  width: 100%;
  max-width: 1300px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  border: none;
}

.gridcard-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Lightbox Fullscreen View */
.gridcard-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gridcard-lightbox img {
  max-width: 92%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
}

#gridcard-lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 45px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-placeholder,
.gridcard-gallery-item video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Grid Box Modal---------------- */
/* remove open in new tab---------------- */

img {
    -webkit-user-drag: none;
    user-select: none;
}

a:has(img) {
    pointer-events: none;
}
/* remove open in new tab---------------- */

@media (max-width: 850px) {
  .nav-desktop {
    justify-content: center; /* Centers all wrapped navigation items */
    gap: 15px;
  }

  .btn-connect {
    margin: 10px auto 0 auto; /* Keeps the button perfectly centered when wrapped */
  }
}

@media (max-width: 768px) {
  .footer-divider {
    display: none;
  }
}