/* ===== SMART PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(1, 90, 180, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

/* show only when needed */
#preloader.active {
  opacity: 1;
  visibility: visible;
}

/* icon animation */
.preloader-icon {
  width: 80px;
  height: auto;
  opacity: 0;
  animation: fadePulse 3s ease-in-out infinite;
}

/* breathing effect */
@keyframes fadePulse {
  0% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

/* fade out smoothly */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* ========================================
   BASE & THEME
======================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg0: #F1F2F2 ;
  --bg1: #e5e7eb;
  --bg2: #464a4f;
  --bg3: #e1f0e4;
  --bg4: #d3d5db;
  --bg5: #fff;
  --bg6: #223140;
  --bg7: #06260a;
  --bg8: #67a86f;
  --bg9: #2f487a;
  --bg10: #9d9ea8;
  --text: #24224C;
  --accent: #39B54A;
  --brand: #24224C;
  --list: #0a66c2;
  --muted: #6b7280;
  --card: #e1f0e4;
  --hr: #e1f0e4;
  --shadow: 0 14px 30px rgba(0,0,0,.08);
}
header {background: var(--bg4);line-height: 1;}
body {
  min-width: 680px;
  max-width: none !important;
  color: var(--text);
  font-family: "Calibri", sans-serif;
  font-weight: bold;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body {
  min-height: 100%;
  width: 100%;
  min-width: 97vw;
  overflow-x: hidden;
  background: var(--bg4);
   margin: 0;
  padding: 0;
  
  
}

main h1,h2 {text-align: center; color: var(--brand);}
footer {
	background: var(--bg2)
}
/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, li { font-family: "casablanca-urw", sans-serif; }
p {font-family: "calibri", sans-serif; }
h1 {
  font-size: 30px;
  color: var(--accent);
  font-weight: bold;
  text-align: left;
  margin-left: 0;
  margin-bottom: 0.1rem;
  margin-top: 0.5rem;
  text-shadow:var(--shadow);

}

h2 {
  font-size: 27px;
  color: var(--brand);
  font-weight: medium;
  text-align: left;
  margin: 0;
  text-shadow:var(--shadow);
}
h3 {
  font-size: 23px;
  color: var(--brand);
  font-weight: medium;
  text-align: left;
  margin: 15px;
  text-shadow:var(--shadow);
}

p, li {
  font-size: 18px;
  color: var(--text);
  font-weight: 510;
  text-align: left;
  margin: 15px;
  text-shadow:var(--shadow);
  
}

li { color: #0a66c2; }


::selection {
  background: #24224C !important;     /* your green brand color */
  color: #F1F2F2 !important;          /* text color during selection */
}

::-moz-selection {
  background: #24224C !important;
  color: #F1F2F2 !important;
}

.ai-card h3 {
  color: var(--accent);
  font-family: "casablanca-urw", sans-serif;
  font-size: 27px;
  margin-left: 2rem;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.ai-card p {
  color: var(--bg0);
  font-weight: 450;
  font-family: "casablanca-urw", sans-serif;
  font-size: 21px;
  margin-right: 1rem;
  line-height:1.7rem;
}

.mission-card h2{
  font-size:28px; 
  color:var(--bg9);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  text-align: center;
}
.mission-card p {font-size: 22px; color:var(--bg9); font-weight:449; text-shadow: 0 2px 6px rgba(0,0,0,0.4) ;font-family: "casablanca-urw", sans-serif;}

.box h3{
  font-size: 25px;  
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);text-align:center;
  }
.box p {color: #e1f0e4; font-size: 16px; text-shadow: 0 2px 6px rgba(0,0,0,0.2);}

.founder-wrapper p{font-size: 16px; font-weight: 499; 
 text-height: 0.5rem; font-style:normal;text-shadow: 0 2px 6px rgba(0,0,0,0.4);}

/* ========================================
   HEADER
======================================== */
.header-image {
  position: relative;          /* ✅ scrolls with the page */
  width: 120px;                /* full width edge to edge */
  height: auto;    /* adjusts automatically to image proportions */
  max-height: 150px;
  display: block;
  object-position: center; 
  margin-right: 2rem;
  margin-top: 1rem;
  background-color: transparent;
  object-fit: contain;
  
}
  

header.site { margin: 0; padding: 0;  }

/* ================================
   HEADER SPLIT LAYOUT
================================ */
.header-frame {
  position: relative;
  display: block;
  border-top: 7px solid var(--brand);
  border-bottom: 7px solid var(--brand);
  width: 100%;
  box-sizing: border-box;
  background-color:var(--bg5); /* or transparent if you prefer */
  padding: 0.3rem 1rem;
  height:100px;
  background-size: cover;          /* Stretch to fill screen */
  background-position: 75% 25%;     /* Keep centered */
  background-repeat: no-repeat;
  background-image: url("../images/LogoZ-background.webp"); 
}

.header-frame::before {
  content: "";
  position: absolute;
  inset: -3px 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  pointer-events: none;
}

/* inner content — split into two halves */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: 100%; /* allows wrapping on small screens */
}

/* left side — image + text inline */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}



.header-text h1 {
  font-family: "casablanca-urw", sans-serif;
  font-weight: bold;
  font-size: 53px;
  color: #24224C;
  margin: 0;
  
  
}

.header-text h2 {
  font-family: "casablanca-urw", sans-serif;
  font-weight: bold;
  font-size: 20.5px;
  color: #39B54A;
  margin: 0.3rem 0 0;

}

/* ===== HEADER RIGHT: pinned horizontally to top & bottom ===== */
.header-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom:0;               
  width: 40%;              /* adjust as needed */
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* top and bottom pinned */
  align-items: flex-end;            /* align content to the right edge */
  padding: 0.4rem 1rem;
  box-sizing: border-box;
  height: auto;
  gap:0.4rem;
  transition: all 0.4s ease;
}


/* Top row — languages */
.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-right:0.25rem;
}
.language-switch a {
  color: #24224C;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  
}
.language-switch a:hover { color: #39B54A; }

/* Bottom row — contact icons */
.contact-icons {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
}
.contact-icons a {
  color: #24224C;
  font-size: 18px;
  transition: color 0.3s ease;
}
.contact-icons a:hover { color: #39B54A; }

/* Hide mobile slide-in menu by default */
.mobile-menu {
    display: none;
}

/* ========================================
   MAIN CONTENT 
======================================== */
main { 
  margin: 0.5rem 0.5rem;   /* centers horizontally */
  padding:0;     /* safe side padding */
  max-width: auto;   /* or match your homepage width */
  margin-bottom: 0 !important;
  padding-bottom: 0.2rem !important; /* keeps footer from clipping */
  overflow-x: visible;
  display: block; 
  
  
  
}

main h1 {
	color: var(--accent);
	line-height: 2rem; 
	text-align: left;
	}
main h2 {
	color: var(--brand); 
	font-size: 35px; 
	text-align: left;
	}
main h3 {color:var(--accent);
}

.h3-image {width:2%;position:block;}

.slogan {text-align: left; padding-top: 4rem; 
margin-left: 4rem; line-height:2rem;  }
.slogan h1 { font-size: 2.5vw !important; }
  .slogan h2 { font-size: 2.2vw !important; }

/* ========================================
   STRUCTURE & CARDS
======================================== */
.container { 
  max-width: 1390px; 
  margin:  auto; 
  padding: auto;
}

.brand.container { margin: 10px ; background: rgba(1, 90, 180, 0.2);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px); /* Required for Safari */; /* Required for Safari */ }
.brand.container h3{color: var(--bg9); border-bottom: 3px solid var(--bg8);}
.brand.container p { font-size: 22px; font-weight: 500; font-family: "casablanca-urw", sans-serif; }



/* ===========================================
      AI WINDOW – DESKTOP (default)
   =========================================== */

.ai-window {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow:hidden;
  margin-left: calc(-50vw + 50%);
  margin: clamp(1rem, 2vw, 3rem) auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg6);
}


.ai-bg {
  position: absolute;
  inset: 0;

  background-image: url("../images/headerbgr.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* WINDOW EFFECT */
  z-index: 1;
}

.ai-foreground {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  
  
  margin:2rem;
}

.ai-wrapper {
  width: 90%;
  justify-content: center; 
  max-width: 900px;
  
  

}

.ai-card {
   width: 100%;
  background: rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 1rem 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  
}



/* =======two-column-wrap ====*/

.two-column-wrap {
  display: grid;
  grid-template-columns: 1.75fr 1.25fr; /* perfect ratio */
  gap: 2rem;
  width: 100%;
  
  margin: 1rem auto 3rem 1rem;
  padding: 0 1rem;
 
}

/* These ensure everything shrinks with the grid */
.left-side, 
.right-side {
  min-width: 0;     /* ⭐ prevents overflow & hidden content */
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  
}
.quote-line-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem; /* spacing between line and text */
}


.vertical-line {
  width: 1.7px;                /* thickness */
    flex-shrink: 0;            /* prevents the line from shrinking */
  min-height: 100%;          /* keeps it proportional */
  background: var(--bg8); 
  background-position:center;
}

.h3-image {width:1%;position:block;}
.h3-image2 {width:35%;position: block; margin-left:10rem; }

/* =====================================================
   MISSION WINDOW — DESKTOP (BASE)
===================================================== */

.mission-window {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow:hidden;
  margin-right: calc(-50vw + 50%);
  margin: clamp(1rem, 2vw, 3rem) auto;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--bg7);
}

.mission-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/mission.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* WINDOW EFFECT */
  z-index: 1;
}

.mission-foreground {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mission-wrapper {
  width: 90%;
  max-width: 1000px;
  transform: translateY(60%);
  
  
  
}

.mission-card {
  width: 115%;
  padding: 2rem 2rem;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px); /* Required for Safari */
  background: rgba(11,156,49,0.4);
  border-radius: 12px;
  
}


/* ===========================================
      CORE VALUES – DESKTOP (default)
   =========================================== */

.corevalues-window {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-right: calc(-50vw + 50%);
  margin: clamp(1rem, 2vw, 3rem) auto;
  overflow:hidden;
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--bg6);
}

.corevalues-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/corevalues-newZS.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* WINDOW EFFECT */
  z-index: 1;
}

.corevalues-foreground {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.corevalues-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 1.2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible !important;
  
  
}

.box {
  height: 280px;
  border-radius: 12px;
  
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* FRONT */
.box .front {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 90, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); /* Required for Safari */
  display: flex;
  justify-content: center;
  align-items: center;
}

.box .front h3 {
  color: var(--accent);
  font-size: 1.3rem;
  text-align: center;
}


/* BACK */
.box .back {
  position: absolute;
  inset: 0;
  background: rgba(240, 248, 255, 0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px); /* Required for Safari */
  padding: 1rem;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease-in-out;
}
.box .back p{ 
  color: var(--brand);
  font-size: 1rem; 
  text-align: left;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: opacity 0.2s ease-in-out;
  
}

/* Hover expansion and reveal */
.box:hover {
  transform: scale(1.05);
}
.box:hover .front { opacity: 0; }
.box:hover  .back{ opacity: 1; }
.box:hover p { opacity: 1; }

.corevalues-wrapper .box.opened:hover .front {
  opacity: 0 !important; /* keep front visible unless JS opens it */
}

.corevalues-wrapper .box.opened:hover .back {
  opacity: 1 !important; /* allow small hover but no sticky effect */
}


/* Hide by default */
.mobile-more {
  display: none;
}

/* ============================================
   FOUNDER WINDOW — DESKTOP -Default (original logic)
============================================ */

.founder-window {
  position: relative;
  width: 100vw;
  margin-right: calc(-50vw + 50%);
  min-height: 100vh;
  overflow:hidden;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background-color: var(--bg9);
}

.founder-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/founder2.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  z-index: 1;
}

.founder-wrapper {
  position: absolute;
  bottom: 1rem;
  top: 1rem;
  left: 55%;
  transform: translateX(-50%);
  width: 75%;
  max-width: 1200px;
  height: auto;
 
  background: rgba(115, 156, 235, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); /* Required for Safari */
  
  border-radius: 12px;

  padding: 1.5rem 3rem;
  z-index: 2;

  overflow: visible !important;
}

.image-wrap {
  float: left;
  width: 50%;        
  max-width: 200px;  
  min-width: 150px;
  margin: 0 0 1rem 1.5rem;
}

.founder-image {
  width: 50%;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  
}

.caption {
  margin-top: 0.5rem;
  margin-right:0.7rem;
  font-size: clamp(0.75rem, 0.9vw, 1rem);
  color: var(--brand);
  font-style: normal;
  font-weight: 1000;
  text-align: left;
  font-family: "casablanca-urw", sans-serif;
}

.founder-wrapper p {
  font-size: 1.05rem;
  font-weight:450;
  line-height: 1.4;
  color: var(--brand);
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}



/* ========================================
   FOOTER
======================================== */

.footer-scale {
    transform-origin: top center;
    transform: scale(1);
    width: 100%;
}

footer {
	width: 100%;
	text-align: center;
	font-size: 15px; 
	color: #F1F2F2 ;
	margin-top: 1rem !important;   /* gives breathing space above */
    padding-top: 0.5rem; 
	margin-bottom:0; 
	padding-bottom:0; 
	display: block;
	
    
	}

.site-credit {
    text-align: center;
    font-size: 0.6rem;
    color: var(--bg10); /* or white if dark footer */
    margin-top: 8px;
    line-height: 1.4;
}
	
.footer-image {
  position: relative;          /* ✅ scrolls with the page */
  object-position: center;
  width: 4%  ;
}
.legal-links {
    text-align: center;
    margin-top: 21px;
	color: var(--bg8)!important;
	border-top: 5px solid #24224C;   /* decorative divider */
	border-bottom: 5px solid #24224C;   /* decorative divider */
    font-weight: bold;
	font-size: 16px;
	display: block;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}
.legal-links a {
    color: var(--bg8); 
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: none;
    color: var(--bg0);
	
}


/*CONTACT / GET IN TOUCH*/

.contact-section {
  background-size: cover;          /* ensures any background image fits */
  background-position: center;     /* centers it visually */
  background-repeat: no-repeat;
  background-attachment: fixed;    /* keeps it static while scrolling */
  padding: 0 0;                  /* resets padding shorthand */
  color: #F1F2F2  ;                 /* text color */
  text-align: center;              /* aligns footer text */
  position: relative;              /* allows inner elements to be positioned safely */
  
  padding-top: 1rem !important;  /* ✅ adds gentle spacing above to prevent the “push” */
  margin-top: 0.5rem !important;     /* ✅ cancels the double-margin overlap with <main> */
  margin-bottom: 0rem !important;
  padding-bottom:0.5rem;
}

.contact-section h3{
  
  text-align: center;
  font-weight:500;
  margin: 0 0 0;
  font-size: 28px;
  color: #24224C;
  padding:0.5rem;
  }
  



/* ===== 3-COLUMN FOOTER LAYOUT ====== */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 1rem auto;
  text-align: center;
 
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.footer-col h3 {
  margin-bottom: 1rem;
  color: #F1F2F2 ;
  font-weight:500;
  font-size:21px;

}

.links a {
  display: inline-block;
  margin: 8px 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  
}

.links a:hover {
  background: #39B54A;
  color: #24224C;
}

.quote {
    	border-top: 5px solid #24224C;   /* decorative divider */
    
}
.quote h3{ 
    font-size:25px; 
    padding:  0 7rem; 
    margin: 0 ;
}
.quote .links a {
    color:var(--bg9); 
    background: rgba(115, 156, 235, 0.5);
    margin-top: 2rem;
}

.quote .links a:hover {
    background:#ffff;
  
}

.links a i {
  margin-right: 8px;
  font-size: 25px;
  background: none;
  color: var(--accent);
  padding: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}


/* Hover for icons only */
.links a i:hover {
  color: var(--brand);
  transform: scale(1.15);
}

.footer-col:last-child .links a {
  background: none;
  padding: 0;
  margin: 0 6px;
  font-size: 1.5rem;
}

.footer-col:last-child .links a i{
 
  font-size: 2rem;
}


.footer-col:last-child .links a:hover {
  background: none;
  transform: scale(1.15);
  color: #24224C;
  font-weight:bold;
  
}


/* CONTACT BUTTONS ONLY (cols 1 & 2) */
.footer-col:not(:last-child) .links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.footer-col:not(:last-child) .links a i {
  color: inherit;
}

/* Ensure icons follow the text color on hover */
.footer-col:not(:last-child) .links a:hover {
  background: var(--accent);
  color: var(--brand);
  transform: translateY(-1px);
}


/* ========================================
   REVEAL + BACK TO TOP + BACK TO BOTTOM
======================================== */
.reveal-init { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal-init.visible { opacity: 1; transform: translateY(0); }


/* ===== BACK TO TOP (Universal Version) ===== */
#backToTop {
  position: fixed;
  right: 10px;
  bottom: 90px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: none;
  background-color: rgba(36, 34, 76, 0.7);
  color: var(--bg0);
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 9996;
  overflow: hidden;
  transform: none !important;
  scale: 1 !important;
  border-bottom: none !important;
  padding: 0 !important;

}
#backToTop i {
  font-size: 20px !important;
  line-height: 1 !important;
}

#backToTop.show {
  opacity: 1;
  pointer-events: all;
}

#backToTop:hover {
  transform: scale(1.08);
  background-color: var(--accent);
}
body {
  transform: none !important;
}

/*========BACK TO BOTTOM==========*/

#backToBottom {
  position: fixed;
  right: 10px;
  bottom: 10px; /* slightly above the chat icon */
  background-color: rgba(36, 34, 76, 0.7);
  color: var(--bg0);
  border: none;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: none !important;
  scale: 1 !important;
  border-bottom: none !important;
  padding: 0 !important;
  isolation: isolate;
}

#backToBottom.show {
  opacity: 1;
  pointer-events: all;
}

#backToBottom:hover {
  transform: translateY(-3px);
  background-color: var(--accent);
}


