/* ============================================
   DATA LINE — Company Website Styles
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand palette */
  --green-primary: #1a6e3a;
  --green-light: #28a856;
  --green-dark: #0f4a26;
  --gold: #b8953e;
  --gold-light: #d4af5a;
  --charcoal: #2c2c2c;
  --off-white: #f5f4f0;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e8e8e8;
  --gray-300: #cccccc;
  --gray-600: #666666;
  --gray-800: #333333;

  /* Typography */
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 100px 0;
  --container-width: 1140px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
  transition: direction 0.3s var(--ease);
}

/* Arabic direction */
body[dir="rtl"] {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Fade-in animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body[dir="rtl"] .lang-toggle {
  right: auto;
  left: 24px;
}

.lang-toggle button {
  border: none;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--gray-600);
  transition: all 0.3s var(--ease);
  letter-spacing: 0.5px;
}

.lang-toggle button.active {
  background: var(--green-primary);
  color: var(--white);
}

.lang-toggle button:hover:not(.active) {
  color: var(--green-primary);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

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


.navbar-links {
  display: flex;
  gap: 32px;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.navbar.scrolled .navbar-links a {
  color: var(--charcoal);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

body[dir="rtl"] .navbar-links a::after {
  left: auto;
  right: 0;
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-links a:hover {
  color: var(--gold-light);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.navbar.scrolled .mobile-menu-btn span {
  background: var(--charcoal);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--charcoal) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(26, 110, 58, 0.2) 0%, transparent 70%);
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-logo {
  width: 140px;
  margin: 0 auto 32px;
  animation: fadeInDown 1s var(--ease) forwards;
  opacity: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeIn 1s 0.3s var(--ease) forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeIn 1s 0.5s var(--ease) forwards;
  opacity: 0;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  animation: fadeIn 1s 0.7s var(--ease) forwards;
  opacity: 0;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeIn 1s 0.9s var(--ease) forwards;
  opacity: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}

.hero-badge:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}




@keyframes scrollDot {

  0%,
  100% {
    top: 6px;
    opacity: 1;
  }

  50% {
    top: 20px;
    opacity: 0.3;
  }
}

/* ---------- Section Title ---------- */
.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
}

.section-title .divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--gold));
  margin: 16px auto 0;
  border-radius: 3px;
}

/* ---------- About Section ---------- */
.about {
  padding: var(--section-pad);
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--green-primary);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.3;
}

body[dir="rtl"] .about-image::after {
  left: auto;
  right: -16px;
}

.about-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-text p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.9;
}

/* ---------- Vision & Mission ---------- */
.vision-mission {
  padding: var(--section-pad);
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--charcoal) 100%);
  position: relative;
  overflow: hidden;
}

.vision-mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect fill="none" width="60" height="60"/><path d="M0 30h60M30 0v60" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
  pointer-events: none;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.vm-card {
  padding: 48px 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease);
}

.vm-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.vm-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.vm-card .icon svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.vm-card .card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.vm-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.4;
}

.vm-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

/* ---------- Services Section ---------- */
.services {
  padding: var(--section-pad);
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

body[dir="rtl"] .service-card::before {
  transform-origin: right;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.service-card .service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(26, 110, 58, 0.1), rgba(26, 110, 58, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card .service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--green-primary);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-card ul {
  padding: 0;
}

.service-card ul li {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

body[dir="rtl"] .service-card ul li {
  padding-left: 0;
  padding-right: 20px;
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
}

body[dir="rtl"] .service-card ul li::before {
  left: auto;
  right: 0;
}

/* ---------- Sectors Section ---------- */
.sectors {
  padding: var(--section-pad);
  background: var(--white);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sector-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  background: var(--gray-100);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

.sector-item:hover {
  background: var(--white);
  border-color: var(--green-primary);
  box-shadow: 0 8px 30px rgba(26, 110, 58, 0.08);
  transform: translateY(-2px);
}

.sector-item .sector-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
}

.sector-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* ---------- Why Choose Us ---------- */
.why-us {
  padding: var(--section-pad);
  background: var(--gray-100);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  gap: 20px;
  padding: 32px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease);
}

.why-item:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.why-item .why-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- Standards Banner ---------- */
.standards {
  padding: 60px 0;
  background: linear-gradient(90deg, var(--green-dark), var(--green-primary));
  text-align: center;
}

.standards-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.standard-badge {
  padding: 12px 32px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.3s var(--ease);
}

.standard-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: scale(1.05);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}



.footer-motto {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.footer-motto span {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sectors-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-content {
    padding: 0 20px;
  }
}

/* Phone */
@media (max-width: 768px) {
  :root {
    --section-pad: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Nav */
  .navbar {
    padding: 12px 0;
  }

  .navbar-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 74, 38, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    font-size: 1.3rem;
    color: var(--white) !important;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1000;
  }

  /* Language toggle — move below navbar so it doesn't overlap hamburger */
  .lang-toggle {
    top: auto;
    bottom: 20px;
    right: 20px;
    top: unset;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  body[dir="rtl"] .lang-toggle {
    right: auto;
    left: 20px;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-top: 80px;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-logo {
    width: 100px;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .hero-tagline {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-badge {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  /* Section titles */
  .section-title {
    margin-bottom: 40px;
  }

  .section-title .label {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image img {
    border-radius: 12px;
    max-height: 300px;
    object-fit: cover;
    width: 100%;
  }

  .about-image::after {
    display: none;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .about-text p {
    font-size: 0.9rem;
  }

  /* Vision & Mission */
  .vm-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vm-card {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .vm-card h3 {
    font-size: 1.2rem;
  }

  .vm-card p {
    font-size: 0.88rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 28px 22px;
    border-radius: 12px;
  }

  .service-card .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin-bottom: 18px;
  }

  .service-card .service-icon svg {
    width: 26px;
    height: 26px;
  }

  .service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .service-card p {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  .service-card ul li {
    font-size: 0.8rem;
    padding: 5px 0;
    padding-left: 16px;
  }

  body[dir="rtl"] .service-card ul li {
    padding-left: 0;
    padding-right: 16px;
  }

  /* Sectors */
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sector-item {
    padding: 18px 16px;
    border-radius: 10px;
    gap: 12px;
  }

  .sector-item span {
    font-size: 0.88rem;
  }

  /* Why Us */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-item {
    padding: 24px 20px;
    gap: 16px;
  }

  .why-item .why-num {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.8rem;
  }

  .why-item p {
    font-size: 0.88rem;
  }

  /* Standards */
  .standards {
    padding: 40px 0;
  }

  .standards-inner {
    gap: 16px;
  }

  .standard-badge {
    font-size: 0.8rem;
    padding: 8px 18px;
    letter-spacing: 1px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 0;
  }

  .footer-top {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }


  .footer-motto {
    font-size: 1rem;
    letter-spacing: 2px;

  }

  .footer-bottom {
    padding: 18px 0;
    font-size: 0.78rem;
  }
}

/* Small phones (375px and below) */
@media (max-width: 400px) {
  .container {
    padding: 0 14px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 0.72rem;
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .service-card {
    padding: 24px 18px;
  }

  .vm-card {
    padding: 28px 20px;
  }

  .why-item {
    padding: 20px 16px;
  }

  .standard-badge {
    font-size: 0.75rem;
    padding: 7px 14px;
  }

  .standards-inner {
    gap: 10px;
  }

  .footer-motto {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }
}