/* 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%;
  min-height: 210vh;
  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





   ========================================= */
/* =========================================
   INTRODUCTION
   ========================================= */
.upper-main-title {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Keeps layout tight on wide screens */
  margin: 0 auto; /* Centers container */
  flex-grow: 1; 
  display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 20px; 
  min-height: 700px;
  padding: 00 09%; /* FIX: Reduced from 20% to prevent invisible container clipping */
  box-sizing: border-box;
}

.main-introduction {
  position: relative;
  width: 537px;
  max-width: 100%; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}

.main-introduction p {
  line-height: normal;
}

.intro-greeting {
  color: #5f6700;
  font-size: clamp(40px, 4vw, 60px); 
  font-family: 'IM Fell Great Primer', serif;
}

.intro-name {
  color: #ff9b00;
  font-size: clamp(60px, 6vw, 100px);
  font-family: 'Belanosima', sans-serif;
  font-weight: 700;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 15px; 
}

.intro-desc {
  color: #5f6700;
  font-size: 20px;
  font-family: 'IM Fell Great Primer', serif;
  width: 100%;
  max-width: 446px;
}

.visuals-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  min-width: 500px; /* Stops the visual container from shrinking past 300px */
  z-index: 1;
  pointer-events: none; 
  user-select: none;
}

/* The photo acts as the physical block that gives the container its height */
.photo-1 {
  position: relative;
  width: 100%;
  max-width: 439px;
  min-width: 260px; /* Absolute smallest width the photo can resize to */
  aspect-ratio: 439 / 667;
  z-index: 2;
}

.photo-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-top-right-radius: 32px;
}

/* The brush floats absolutely behind the photo and stays centered */
.brush-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160%;
  max-width: 696px;
  min-width: 416px; /* Keeps the brush proportionally larger than photo min-width */
  aspect-ratio: 696 / 633;
  z-index: 1;
}

.brush-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .upper-main-title {
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: auto;
  }

  .visuals-container {
    order: 1;
    width: 80%;
    margin-bottom: 40px;
  }

  .main-introduction {
    order: 2; 
    align-items: center; 
    text-align: center;
  }

  .intro-desc {
    text-align: center;
  }
}

/* =========================================
   SERVICES
   ========================================= */
.services-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Glassmorphism Background Handler */

.services-bg {
  position: absolute;
  /* Adjust this value to increase or decrease the gap size */
  inset: 10px; 
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.87) 0%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0px 4px 4px rgba(0, 126, 134, 0.23), 
              inset 0px 4px 4px rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 0;
}

/* Header Section */
.what-i-offer {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 30px;
}

.offer-title {
  font-family: 'IM Fell Great Primer', serif;
  font-weight: 400;
  font-size: 60px;
  color: #5f6700;
  line-height: 1.1;
  margin: 0;
}

.services-title {
  font-family: 'Belanosima', sans-serif;
  font-weight: 400;
  font-size: 100px;
  color: #ff9b00;
  line-height: 1;
  margin: 0;
}

/* Cards Frame Section */
.services-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 100%;
  margin-bottom: 40px;
}

/* Individual Cards */
.service-card {
  position: relative;
  width: 332px;
  min-height: 327px;
  padding: 20px 24px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0px 4px 4px rgba(0, 126, 134, 0.23), 
              inset 0px 4px 4px rgba(255, 255, 255, 0.25);
}

.card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #ff9b00;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  margin: 0 0 10px 0;
  word-break: break-word;
}

.card-desc {
  font-family: 'IM Fell Great Primer', serif;
  font-weight: 400;
  font-size: 20px;
  color: #5f6700;
  line-height: 1.25;
  flex-grow: 1;
  margin: 0 0 20px 0;
  word-break: break-word;
}

.show-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 143px;
  height: 34px;
  border: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0px 4px 4px rgba(0, 126, 134, 0.23), 
              inset 0px 4px 4px rgba(255, 255, 255, 0.25);
  color: #0055ab;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.show-more-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  filter: drop-shadow(0px 9px 6px rgba(0, 0, 0, 0.22));
}

.show-more-btn:active {
  transform: scale(0.9);
}

/* Footer Description */
.offer-description {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 806px;
  font-family: 'IM Fell Great Primer', serif;
  color: #5f6700;
  padding: 0 15px;
}

.desc-heading {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 20px 0;
}

.desc-body {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  word-break: break-word;
}
/* =========================================
   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: -50px;
  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;
}

/* =========================================





   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;
}

@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;
  }
}