/* 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: 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





   ========================================= */
/* =========================================
   CONTACT SECTION
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

/* Outer Section Container */
.contact-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 40px) clamp(1rem, 3vw, 20px);
}

/* Glassmorphism Background Handler */
.contact-bg {
  position: absolute;
  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;
}

.card-container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  /* Center items inside grid tracks vertically & horizontally */
  align-items: center; 
  justify-items: center;
}

.info-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-aligned on wide screens */
  width: 100%;
  max-width: 420px; /* Prevents text lines from getting too long */
  transition: align-items 0.3s ease, text-align 0.3s ease;
}

.envelope-icon {
  width: clamp(70px, 10vw, 100px);
  height: auto;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.inquiry-title {
  color: #4f5a11;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.email-link {
  color: #ff9b00;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  word-break: break-word;
  transition: opacity 0.2s ease;
}

.email-link:hover {
  opacity: 0.85;
}

.sub-text {
  color: #4f5a11;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.form-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 500px;
  padding: 2rem; /* Creates breathing room around form items inside the inner box */
  border-radius: 18px;
  z-index: 1;
}

.inner-form-box {
  position: absolute;
  inset: 0; /* Stretches to cover the whole .form-side area */
  background: rgba(255, 255, 255, 0.45); /* Semi-transparent white card */
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: -1; /* Guarantees it stays behind form fields, text, & buttons */
}

.form-title {
  color: #ff9b00;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.input-row {
  width: 100%;
}

.split-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.input-group label {
  color: #4f5a11;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #000000;
  background: transparent;
  padding: 0.35rem 0;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-bottom-color: #ff9b00;
}

.input-group textarea {
  resize: vertical;
}

/* Submit Button */
.submit-btn {
  align-self: flex-start;
  width: 132px;
  height: 43px;
  background: linear-gradient(180deg, #ffcc00 0%, #ff9600 100%);
  border: none;
  border-radius: 17px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 4.4px rgba(0, 0, 0, 0.17);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-title,
.input-row,
.submit-btn {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  /* Center overall section alignment */
  .services-section {
    text-align: center;
  }

  /* Center left side content & icon */
  .info-side {
    align-items: center;
    text-align: center;
  }

  .envelope-icon {
    margin-left: auto;
    margin-right: auto;
  }

  /* Center form elements & submit button */
  .form-side {
    align-items: center;
    text-align: center;
  }

  .form-title {
    text-align: center;
  }

  .input-group label {
    text-align: center;
  }

  .input-group input,
  .input-group textarea {
    text-align: center; /* Centers typed text & placeholders */
  }

  .submit-btn {
    align-self: center; /* Overrides left alignment for button */
  }
}

/* =========================================
   ADDITIONAL INFORMATION
   ========================================= */
.addtl-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 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, 3vw, 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: -20px;
  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;
  }
}