html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  transition: 0.3s;
}

body {
  background: #111;
  color: #fff;
}

body {
  font-family: 'Libre Baskerville', serif;
  background-color: #0e0e0e;
  color: #ffffff;
}

body.rtl {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
}


body.rtl {
  direction: rtl;
  text-align: right;
}

/* Navbar */


nav a:hover {
  color: #f0a500;
}

/* Language switch */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #f0a500;
  border: none;
  padding: 6px 10px;          /* smaller */
  font-size: 0.75rem;         /* smaller text */
  font-weight: 600;
  cursor: pointer;
  z-index: 20;
  border-radius: 4px;
  line-height: 1;
}


/* Sections */
section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
#hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
 filter: brightness(1.151) contrast(1.)
}





#hero h1 {
  font-size: 4rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}


/* Subtle vignette */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 150px rgba(0,0,0,0.8);
  z-index: 1;
}

/* Section colors */
#about { background: #1a1a1a; }
#vision { background: #222; }
#services { background: #1a1a1a; }
#brands { background: #222; }

section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

section p {
  max-width: 800px;
  margin: auto;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
}

/* Brands grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.grid div {
  background: #333;
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
}

.grid div:hover {
  transform: scale(1.1);
  background: #f0a500;
}

@media (max-width: 768px) {

  nav {
    gap: 15px;
    padding: 10px;
    font-size: 0.9rem;
    flex-wrap: wrap;
  }

  .lang-switch {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  section {
    padding: 30px 20px;
    height: auto;
    min-height: 100vh;
  }

  section h2 {
    font-size: 2.2rem;
  }

  section p {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  #hero {
    min-height: 100vh;
  }

  #hero h1 {
    text-align: center;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .hero-bg {
    filter: brightness(0.9) contrast(1.05);
  }
}

#brands {
  background: #222;
  padding-bottom: 80px; /* gives space before next section */
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 30px;
  justify-items: center;
  align-items: center;
  margin: 40px auto 0;
  max-width: 600px;
}


.brand-card {
  background: #1c1c1c;
  padding: 30px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
  max-width: 220px;  /* keeps cards uniform */
}

.brand-card img {
  max-width: 160px;
  max-height: 90px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.brand-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}


.brand-card:hover img {
  filter: grayscale(0%) brightness(1.2);
  transform: scale(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  width: 140px;
  max-width: 40vw;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
}


.hero-logo {
  animation: logoFade 1.5s ease forwards;
}

@keyframes logoFade {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-logo img {
  height: 34px;
  cursor: pointer;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-logo img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* FORCE navbar links styling */
nav a,
nav a:visited {
  color: #ffffff;
  text-decoration: none;
}

nav a:hover {
  color: #f0a500;
  text-decoration: none;
}

nav a:active,
nav a:focus {
  color: #ffffff;
  text-decoration: none;
  outline: none;
}
