/* 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





   ========================================= */
/* =========================================
   GRAPHICS
   ========================================= */
.graphic-intro-container {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: auto;
  max-width: 1200px;
  align-items: center;
}

@media (max-width: 1300px) {
  .graphic-intro-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 200px;
  }
}

.main-introduction {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.title-primary {
  font-family: 'Belanosima', sans-serif;
  color: #ff9b00;
  font-size: clamp(3rem, 5vw, 96px);
  line-height: normal;
  margin: 0;
}

.subtitle-text {
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  color: #5f6700;
  font-size: 20px;
  line-height: normal;
  margin: 0;
  max-width: 775px;
}

.features-wrapper {
  margin-top: 0px;
  grid-column: span 2;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.feature-card {
  position: relative;
  border-radius: 15px;
  padding: 24px;
  height: 187px;
  flex: 1;
  min-width: 225px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 155, 0, 0);
  box-shadow: 0px 4px 4px 0px rgba(0, 126, 134, 0.23);
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(32px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.87), rgba(255, 255, 255, 0));
  border-radius: inherit;
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.stat-number {
  font-family: 'Belanosima', sans-serif;
  color: #ff9b00;
  font-size: 48px;
  line-height: normal;
  margin: 0;
}

.stat-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #5f6700;
  font-size: 12px;
  line-height: normal;
  margin: 0;
}

.image-container {
  margin-top: -200px;
  grid-column: span 1;
  width: 100%;
  max-width: 390px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  width: 100%;
  height: auto;
  max-height: 506px;
  object-fit: contain;
  display: block;
}

/* Responsive layout: Image on top and centered text on narrow resolutions */
@media (max-width: 1300px) {
  .graphic-intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image-container {
    order: -1; /* Moves the image to the very top */
    width: 100%;
  }

  .main-introduction {
    order: 0;
    align-items: center;
  }

  .features-wrapper {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .feature-card {
    width: 100%;
    max-width: 423px;
  }
}
/* =========================================
   SCROLL SAMPLE SECTION
   ========================================= */
.carousel-container {
  margin-top: 25px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  max-width: 1280px;
  width: calc(100% - 20px);
  height: 100%;
  border-radius: 15px;
  box-shadow: 0px 4px 4px 0px rgba(0, 126, 134, 0.23);
  backdrop-filter: blur(32px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.87), rgba(255, 255, 255, 0));
  padding: 0 20px; /* Increased inner padding inside the background shape */
  box-sizing: border-box;
  overflow: hidden;
}

/* Inner shadow overlay for container */
.carousel-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.carousel-track {
  display: flex;
  gap: 11px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  height: 100%;
  width: 100%;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.card-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 308px;
  min-width: 190px;
  width: 190px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-family: 'Belanosima', sans-serif;
  color: #ff9b00;
  font-size: 24px;
  text-align: center;
  white-space: nowrap;
  margin: 0;
  line-height: normal;
}

.card-image-wrapper {
  position: relative;
  height: 249px;
  width: 190px;
  border-radius: 13px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  pointer-events: none;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: linear-gradient(to bottom, white 0%, rgba(255, 255, 255, 0) 50.962%);
  pointer-events: none;
}

/* =========================================
   ILLUSTRATION SECTION
   ========================================= */

/* Card Container Box */
.illustration-card {
  margin-top: 25px;
  position: relative;
  max-width: 1285px;
  width: calc(100% - 20px);
  max-height: 600px;
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0px 4px 4px 0px rgba(0, 126, 134, 0.23);
  overflow: hidden;
  box-sizing: border-box;

  display: grid;
  gap: 16px;
}

/* Background image handling */
.card-bg {
  position: absolute;
  inset: 0;
  width: 1300px;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  backdrop-filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}

.inner-shadow {
  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;
}

/* Fluid Content Grid */
.content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}

/* Text Content */
.header-section {
  grid-column: span 5;
}

.main-title {
  color: #ff9b00;
  font-size: clamp(48px, 8vw, 96px);
  font-family: 'Belanosima', sans-serif;
  line-height: 1;
  margin: 0 0 8px 0;
}

.sub-title {
  color: #5f6700;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: bold;
  font-family: 'Inter', sans-serif;
  max-width: 483px;
  line-height: 1.4;
  margin: 0;
}

.sample-section {
  grid-column: span 1;
  grid-row: span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  align-self: start; 
}

.btn-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  height: 44px;
  padding: 0 20px;
  border-radius: 15px;
  color: #0055ab;
  font-weight: bold;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0px 4px 4px 0px rgba(0, 126, 134, 0.23);
  backdrop-filter: blur(32px);
  background-color: rgba(255, 255, 255, 1);
  transition: opacity 0.2s ease;
}

.btn-sample:hover {
  opacity: 0.8;
}

.sample-img {
  width: 132px;
  height: auto;
  flex-shrink: 0;
  transform: rotate(0.83deg);
}

.book-section {
  grid-column: span 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative; /* Acts as the positioning anchor */
  flex-direction: column;
}

.decor-img {
  width: 100px;
  height: auto;
  position: absolute;
  top: -20px;
  left: 0;
  z-index: 0; 
  transform: rotate(10deg);
}

.book-img {
  width: 100%;
  min-width: 500px;
  transform: translateX(100px);
  height: auto;
  position: relative;
  z-index: 0;
}

/* Side Illustration (Rabbit) */
.rabbit-section {
  grid-column: span 1;
  display: flex;
  justify-content: center;
}

.rabbit-img {
  width: 100%;
  min-width: 250px;
  height: auto;
  z-index: 1;
}

/* Tablet & Mobile Media Queries */

@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .decor-img {
    transform: translateX(-10px) translateY(50px) rotate(-50deg);
  }
  .book-img {
    transform: translateX(40px) translateY(-30px) rotate(10deg);
  }

  .sample-img {
    transform: rotate(-20deg) scaleX(-1);
    z-index: 1;
  }

  .header-section {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .decor-img {
    opacity: 0;
  }
}

@media (max-width: 475px) {
  .book-img {
    transform: translateX(-150px) rotate(-5deg);
  }
  .sample-img {
    opacity: 0;
  }
  .header-section {
    grid-column: span 5;
  }
  .sub-title {
  max-width: 250px;
  }
}

   
/* =========================================
   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;
}

/* =========================================





   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;
  }
}