/* ==============================
    Core variables & resets
    ============================== */
:root {
  --brand: #22d3ee;
  --brand-2: #38bdf8;
  --container: 1200px;
  --radius: 16px;
  --shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(0, 0, 0, .08);
}
* {
  box-sizing: border-box
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: #fff
}
img {
  max-width: 100%;
  display: block
}
a {
  color: inherit;
  text-decoration: none
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px
}

/* ==============================
    Header & Navbar
    ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border)
}

.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px
}
.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
}

.nav.open {
    width: 100vw;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .2s
}
.btn--primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #001019;
  font-weight: 700;
  border: none
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 211, 238, .15)
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  position: absolute;
  right: 10px;
}

/* ==============================
    Products Dropdown Menu (NEW)
    ============================== */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown .btn {
  background: none;
  font-weight: normal;
  font-size: 1rem;
  cursor: pointer;
}
.dropdown .btn:hover {
  background-color: var(--bg-2);
  transform: none;
  box-shadow: none;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, .1);
  z-index: 10;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  margin-top: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.dropdown-content a {
  color: var(--text);
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  border-radius: 8px;
}
.dropdown-content a:hover {
  background-color: var(--bg-2);
}
.dropdown:hover .dropdown-content {
  display: block;
}
/* RTL adjustments for dropdown */
[dir="rtl"] .nav {
  justify-self: start;
}
[dir="rtl"] .dropdown-content {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
[dir="rtl"] .dropdown-content a {
  text-align: right;
}
[dir="rtl"] .nav-toggle {
  right: auto;
  left: 10px;
}


/* ==============================
    Language dropdown (desktop center + mobile copy)
    ============================== */
.lang-dropdown {
  position: relative;
  justify-self: center
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .03);
  color: var(--text);
  font-weight: 600
}
.lang-trigger:focus {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px
}
.lang-trigger .chev {
  width: .6rem;
  height: .6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: .75
}
.lang-dropdown.open .lang-trigger .chev {
  transform: rotate(-135deg);
  margin-top: 2px
}

.lang-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
  padding: 6px;
  display: none;
  z-index: 50
}
.lang-dropdown.open .lang-menu {
  display: block
}
.lang-menu li {
  list-style: none
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .6rem;
  border-radius: 10px;
  color: var(--text)
}
.lang-menu a:hover,
.lang-menu a:focus {
  background: rgba(0, 0, 0, .04);
  outline: none
}
.lang-menu [aria-selected="true"] a {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #001019
}

.mobile-only {
  display: none
}

/* ==============================
    Hero
    ============================== */
.hero {
  background: radial-gradient(1200px 600px at 70% -10%, rgba(34, 211, 238, .10), transparent), radial-gradient(900px 500px at -10% 10%, rgba(56, 189, 248, .08), transparent), var(--bg);
  border-bottom: 1px solid var(--border)
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 64px 20px;
}
.eyebrow {
  font-size: .9rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-2);
}
h1 {
  font-size: clamp(2rem, 2.5rem + 1.3vw, 3.2rem);
  line-height: 1.1;
  margin: .4rem 0 1rem
}
.lead {
  color: var(--muted);
  font-size: 1.075rem
}
.stack {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap
}
.hero .media {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.hero .media img {
  border-radius: 16px;
}

/* ==============================
    Sections & cards
    ============================== */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border)
}
.section h2 {
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
  margin: 0 0 12px
}
.muted {
  color: var(--muted)
}
.grid {
  display: grid;
  gap: 20px
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}
.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
  min-height: 100%
}
.card h3 {
  margin: 8px 0
}

/* ==============================
    Footer
    ============================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2)
}
.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 40px 20px;
}
.footer-col h5 {
  margin: .2rem 0 .6rem;
  color: #0f172a
}
.footer-col p {
  color: var(--muted);
  margin: .2rem 0
}
.foot-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  color: #475569;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap
}

/* ==============================
    Image Gallery
    ============================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.tile img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  transition: transform .3s ease;
}

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

/* ==============================
    Utilities
    ============================== */
.chip {
  display: inline-block;
  padding: .8rem .8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #0f172a;
  font-size: .85rem;
  background: #fff;
}

/* ==============================
    Responsive
    ============================== */
@media (max-width:900px) {
  .hero .wrap {
    grid-template-columns: 1fr
  }
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}
@media (max-width:800px) {
  .nav-toggle {
    display: block
  }
  .lang-dropdown[data-role="desktop"] {
    display: none
  }
  .mobile-only {
    display: block;
    width: 100%
  }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--border);
    display: none;
    flex-direction: column;
    padding: 16px;
    gap: .8rem;
    align-items: flex-start;
  }
  .nav.open {
    display: flex;
  }
  .mobile-only .lang-menu {
    position: static;
    transform: none;
    min-width: unset;
    margin-top: 8px;
    width: 100%
  }
  .mobile-only .lang-trigger {
    width: 100%;
    justify-content: space-between
  }
  .dropdown-content {
    transform: translateX(-50%);
    width: 90vw;
  }
  .btn {
    width: 100%;
  }
  .dropdown .btn {
    width: 91vw;
  }
}
@media (max-width:640px) {
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr
  }
}
@media (max-width:1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}
@media (max-width:700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}
@media (max-width:480px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}