/* ===== SMART PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(120, 206, 255, 0.5);
  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: "adobe-arabic", sans-serif;
  font-weight: bold;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fafafa;
}
html, body {
  min-height: 100%;
  width: 100%;
  min-width: 97vw;
  overflow-x: hidden;
  background: var(--bg5);
   margin: 0;
  padding: 0;
  
  
}

main h1,h2 {text-align: center; color: var(--brand);}
footer {
	background: var(--bg2)
}
/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, li { font-family: "otta-arabic", sans-serif; }
p {font-family: "adobe-arabic", sans-serif; }
h1 {
  font-size: 30px;
  color: var(--accent);
  font-weight: bold;
  text-align: right;
  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: right;
  margin: 0;
  text-shadow:var(--shadow);
}
h3 {
  font-size: 23px;
  color: var(--brand);
  font-weight: medium;
  text-align: right;
  margin: 15px;
  text-shadow:var(--shadow);
}

p, li {
  font-size: 18px;
  color: var(--text);
  font-weight: 550;
  text-align: right;
  margin: 15px;
  text-shadow:var(--shadow);
  font-style:normal;
}

li { color: #0a66c2; }


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

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



/* ========================================
   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: rgb(0, 30, 70); /* 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: "otta-arabic", sans-serif;
  font-weight: bold;
  font-size: 50px;
  color: var(--bg0);
  margin: 0;
  transform: scaleY(0.85); /*because of the differences between arabic and english font-size, modifications in height or width required*/
  line-height:1.4;
}

.header-text h2 {
  font-family: "otta-arabic", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 22px;
  color: #39B54A;
  margin: 0.3rem 0 0;
  transform: scaleX(1.07);/*because of the differences between arabic and english font-size, modifications in height or width required*/
}

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


/* Top row — languages */
.language-switch {
  display: flex;
  justify-content: end;
  gap: 0.25rem;
  margin-left:0.25rem;
}
.language-switch a {
  color: var(--bg0);
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: "Calibri", sans-serif;
font-weight: bold;
font-style: normal;
}

.language-switch a:hover { color: #39B54A; }

/* Bottom row — contact icons */
.contact-icons {
  display: flex;
  justify-content: end;
  gap: 1.2rem;
}
.contact-icons a {
  color: var(--bg0);
  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;
  padding: 0;
  max-width: auto;
  margin-bottom: 0 !important;
  padding-bottom: 0.2rem !important;
  overflow-x: visible;
  display: block; 
  background: linear-gradient(
     rgba(36, 34, 76, 0.8),
     rgba(36, 34, 76, 0.8)
),
url("../images/LanguagesSummary.webp");
  
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 180% 180%;
  animation: mainGradientShift 50s ease-in-out infinite;

}


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

.slogan {text-align: right; padding-top: 4rem; 
margin-right: 7rem; line-height:2.5rem; transform: scaleX(1.07); }
.slogan h1 { font-size: 2.5vw !important; }
  .slogan h2 { font-size: 1.8vw !important; }

/* ---------- languages Pages Styling ---------- */


.languages-page-section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 24px 80px;
  position: relative;
  z-index:2;
  
}

.languages-page-section h3{
 color:var(--accent);
 font-weight:700;
 font-size:30px;
 margin:0;
 font-family: "otta-arabic", sans-serif;
}

.languages-page-section h2{
 color: rgba(120, 206, 255, 0.8);
 font-weight:450;
 font-size: 23px;
 font-family: "otta-arabic", sans-serif;
 
}

/* each is a separate panel */
.languages {
  margin: 0 0 34px;
  
   background: linear-gradient(
    to left,
    rgba(0,255,130,0.40) 10%,
    rgba(0,255,130,0.50) 20%,
    rgba(0,255,130,0.35) 35%,
    rgba(0,255,130,0.15) 45%,
    rgba(0,255,130,0) 60%
    );
  overflow: visible;
  border-radius: 6px;
}


/* ========================================
   SUMMARY / TITLE BAR
======================================== */

.languages-title {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 60px 18px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--brand);
  font-family: "casablanca-urw", sans-serif;
  
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  user-select: none;
  
}

.languages-title::-webkit-details-marker {
  display: none;
}

.languages-title::marker {
  display: none;
}

.languages-title::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  transition: color 0.25s ease;
  
}

.languages:hover .languages-title {
  color: var(--bg5);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.05);
}

.languages[open] .languages-title {
  color: var(--brand);
  border-color: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}

.languages[open] .languages-title::after {
  content: "−";
  color: var(--bg5);
  
 
}

/* ========================================
   EXPANDED PANEL
======================================== */

.languages-body {
  position: relative;
  min-height: 240px;
  padding: 40px;
  border-radius: 12px;
  overflow: hidden;
  animation: industryFade 0.3s ease;
  display: flex;
  align-items: stretch;
}

/* overlay */
.languages-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
  
     background: linear-gradient(
    -90deg,
  rgba(120, 206, 255, 0.6) 0%, 
  rgba(80, 160, 220, 0.45) 38%,
  rgba(0, 0, 0, 0.25) 100% 
 
  );
  
}


/* ========================================
   TEXT AREA
======================================== */

.languages-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-start;
  
}

.languages-content p {
  margin: 0;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--bg5);
  font-family: "otta-arabic", sans-serif;
  max-width: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  
}

/* ========================================
   ANIMATION
======================================== */

@keyframes industryFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mainGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/* ========================================
   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: 14px;
	display: block;
  width: 100vw;
  margin-right: 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: 0 !important;
  padding-bottom:0.5rem;
}

.contact-section h3{
  
  text-align: center;
  font-weight:500;
  margin: 0 0 0;
  font-size: 23px;
  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:23px;
  font-family: "otta-arabic", sans-serif;
}

.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;
  font-size: 19px;
  font-family: "adobe-arabic", sans-serif;
}

.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 ;
    color:var(--bg0);
     
}
.quote .links a {
    color:var(--bg0);
    background: rgb(0, 30, 70);
    margin-top: 2rem;
    
}

.quote .links a:hover {
    background:rgba(70, 160, 290, 0.3);
  
  
}

.links a i {
  margin-left: 8px;
  font-size: 20px;
  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;
  left: 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;
  left: 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);
}

