/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700&display=swap');
/* Font Awesome for Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* CSS Variables */
:root {
  --primary-blue: #2374ac; /* Cyan/Blue from swatch */
  --dark-blue: #3E4B89; /* Dark Blue from swatch */
  --accent-yellow: #FFC822; /* Yellow from swatch */
  --white: #ffffff;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset / Core Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: 0; /* padding removed for sticky header */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark-blue);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-yellow);
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--accent-yellow);
  color: var(--dark-blue);
}

.btn-secondary:hover {
  background-color: #E3B420;
  color: var(--dark-blue);
  box-shadow: var(--shadow);
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px; /* Increased to accommodate larger logo */
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-blue);
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 100px; /* Logo bigger than the name/text */
  width: auto;
  border-radius: 50%;
  object-fit: contain;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

.logo span {
  color: var(--primary-blue);
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

nav a:hover, nav a.active {
  color: var(--primary-blue);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-blue);
  background: none;
  border: none;
}

/* Footer */
footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-yellow);
}

.footer-col p, .footer-col li {
  color: #CBD5E1;
  margin-bottom: 10px;
}

.footer-col a {
  color: #CBD5E1;
}

.footer-col a:hover {
  color: var(--accent-yellow);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
}

.social-links a:hover {
  background-color: var(--primary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 0.9rem;
}

/* Page Header (for inner pages) */
.page-header {
  background: linear-gradient(to right, rgba(7, 31, 78, 0.9), rgba(11, 60, 145, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80') center/cover;
  padding: 100px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
}

.breadcrumb a {
  color: var(--accent-yellow);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  left: 40px; /* Moved to left to avoid overlapping back-to-top if we add one */
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: #FFF;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-blue);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(11, 60, 145, 0.1);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- New Feedback UI Components --- */

/* Top Bar */
.top-bar {
  background-color: var(--dark-blue);
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 8px 0;
  position: relative;
  width: 100%;
  z-index: 1001;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.top-bar-contact i {
  color: var(--accent-yellow);
  margin-right: 5px;
}

.top-bar-contact span {
  display: inline-flex;
  align-items: center;
  word-break: break-word;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Professional Language Selector */
.custom-lang-selector {
  position: relative;
  display: inline-block;
  user-select: none;
}

.lang-selector-btn {
  background: transparent;
  border: 1px solid rgba(11, 60, 145, 0.25);
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
}

.top-bar .lang-selector-btn {
  border-color: rgba(255, 255, 255, 0.25);
  color: #CBD5E1;
  font-size: 0.82rem;
  padding: 4px 10px;
}

.lang-selector-btn:hover,
.custom-lang-selector:hover .lang-selector-btn,
.custom-lang-selector.active .lang-selector-btn {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background-color: rgba(11, 60, 145, 0.05);
}

.top-bar .lang-selector-btn:hover,
.top-bar .custom-lang-selector:hover .lang-selector-btn,
.top-bar .custom-lang-selector.active .lang-selector-btn {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  background-color: rgba(255, 255, 255, 0.08);
}

.lang-chevron {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.custom-lang-selector:hover .lang-chevron,
.custom-lang-selector.active .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 6px 0;
  min-width: 145px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

/* Desktop hover */
@media (min-width: 769px) {
  .custom-lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Tap/click interaction */
.custom-lang-selector.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-dropdown .lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.lang-dropdown .lang-item:hover,
.lang-dropdown .lang-item:focus {
  background-color: var(--light-bg);
  color: var(--primary-blue);
}

.lang-dropdown .lang-item.selected {
  background-color: rgba(11, 60, 145, 0.08);
  color: var(--primary-blue);
  font-weight: 600;
}

/* Mobile Nav Language Item */
.lang-nav-item {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .lang-nav-item .custom-lang-selector {
    width: 100%;
    text-align: center;
  }
  .lang-nav-item .lang-selector-btn {
    width: auto;
    margin: 0 auto;
    font-size: 1rem;
    padding: 8px 16px;
  }
  .lang-nav-item .lang-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(6px);
  }
  .lang-nav-item .custom-lang-selector.active .lang-dropdown {
    transform: translateX(-50%) translateY(0);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 998;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--dark-blue);
  color: var(--accent-yellow);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 85px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

/* RTL Support for Arabic */
[dir="rtl"],
body.rtl {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .top-bar-contact i,
body.rtl .top-bar-contact i {
  margin-right: 0;
  margin-left: 5px;
}

[dir="rtl"] .top-bar-container,
body.rtl .top-bar-container {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-container,
body.rtl .header-container {
  flex-direction: row-reverse;
}

[dir="rtl"] nav ul,
body.rtl nav ul {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  [dir="rtl"] nav,
  body.rtl nav {
    left: auto;
    right: -100%;
    transition: right 0.3s ease;
  }
  [dir="rtl"] nav.active,
  body.rtl nav.active {
    left: auto;
    right: 0;
  }
  [dir="rtl"] nav ul,
  body.rtl nav ul {
    flex-direction: column;
  }
}

[dir="rtl"] .lang-dropdown,
body.rtl .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-dropdown .lang-item,
body.rtl .lang-dropdown .lang-item {
  text-align: right;
}

[dir="rtl"] .footer-container,
body.rtl .footer-container {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .footer-col ul li i,
body.rtl .footer-col ul li i {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .testimonial-card i.fa-quote-left,
body.rtl .testimonial-card i.fa-quote-left {
  left: auto;
  right: 20px;
  transform: scaleX(-1);
}

[dir="rtl"] .breadcrumb span,
body.rtl .breadcrumb span {
  margin: 0 8px;
}

[dir="rtl"] .back-to-top,
body.rtl .back-to-top {
  right: auto;
  left: 30px;
}

[dir="rtl"] .whatsapp-float,
body.rtl .whatsapp-float {
  right: auto;
  left: 30px;
}

@media (max-width: 768px) {
  [dir="rtl"] .back-to-top,
  body.rtl .back-to-top {
    right: auto;
    left: 20px;
  }
  [dir="rtl"] .whatsapp-float,
  body.rtl .whatsapp-float {
    right: auto;
    left: 20px;
  }
}

[dir="rtl"] .faq-question,
body.rtl .faq-question {
  text-align: right;
}

[dir="rtl"] .faq-question i,
body.rtl .faq-question i {
  float: left;
}

[dir="rtl"] .btn i,
body.rtl .btn i {
  margin-left: 0;
  margin-right: 8px;
}

[dir="rtl"] .section-title,
body.rtl .section-title {
  text-align: center;
}

/* Hide Google Translate Banner and Native Dropdown */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
body {
  top: 0px !important; 
}
#google_translate_element {
  position: absolute !important;
  opacity: 0 !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background: var(--light-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark-blue);
  transition: var(--transition);
}

.faq-question:hover {
  background: #f1f5f9;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--white);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--accent-yellow);
  position: relative;
  height: 100%;
}

.testimonial-card i.fa-quote-left {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: rgba(244, 196, 48, 0.2);
}

/* Client Logos */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
  margin-top: 30px;
}

.client-logo-grid img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.client-logo-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .top-bar { display: none; }
  header { top: 0 !important; }
  body { padding-top: 80px !important; }
  
  .header-container {
    padding: 0 15px;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    padding: 40px 20px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
}

/* Lightbox / Modal for Certificates */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  max-height: 85vh;
  object-fit: contain;
  border: 5px solid var(--white);
  border-radius: 8px;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {transform: scale(0.1)} 
  to {transform: scale(1)}
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent-yellow);
  text-decoration: none;
  cursor: pointer;
}

.certificate-item {
  transition: transform 0.3s ease;
  text-align: center;
}

.certificate-item:hover {
  transform: translateY(-10px);
}

.certificate-item h3,
.certificate-item h4 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--dark-blue);
}

@media only screen and (max-width: 700px){
  .lightbox-content {
    width: 100%;
  }
}

