*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* RTL for languages needing it */
html:lang(ar),
html:lang(he),
html:lang(fa),
html:lang(ur) {
  direction: rtl;
}

html {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--tertiary-color);
}

.lang-toggle {
  all: unset; /* remove all button styles */
}

.btn.btn-small {
  padding-block: 0.4rem;
  padding-inline: 0.7rem;
  font-size: 0.8rem;
  border-radius: 999px;
  gap: 0rem;
}


.lang-toggle.btn.btn-small {
  padding-block: 0.4rem;
  padding-inline: 0.7rem;
  font-size: 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-dropdown {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 1000;
}

.lang-menu {
  display: none;
  margin: 0.3rem 0 0 0;
  padding: 0.2rem 0;
  list-style: none;
  background: color-mix(in srgb, #ffffff 6%, var(--primary-color));
  border-radius: 0.4rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: max-content;
}

.lang-dropdown:has(:focus-within) .lang-menu {
  display: block;
}

.lang-menu li a {
  display: block;
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
}

.lang-menu li a:hover,
.lang-menu li a:focus-visible {
  background: rgba(0,0,0,0.08);
  opacity: 1;
}

.lang-menu li a.active {
  font-weight: 600;
  pointer-events: none;
  opacity: 1;
}

.hero {
    background-color: var(--primary-color);
    color: #ffffff;
    padding-block: 2rem;
    padding-inline: 1rem;
}

.hero-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: space-between;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin-inline: auto;
}

.hero-logo {
    flex-grow: 0;
    flex-shrink: 1;
    text-align: center;
}

.hero-logo img {
    max-width: 180px;
}

.hero-content {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 300px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 10vw, 3rem);
    color: var(--secondary-color);
}

.hero-content .motto {
    font-size: clamp(1rem, 5vw, 1.7rem);
    opacity: 0.9;
}

.hero-content .description {
    opacity: 0.6;
    margin-block: 2rem;
}

.hero .actions, .feature .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3em;
    width: 100%;
}

.btn {
    text-align: center;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    padding-block: 0.75rem;
    padding-inline: 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition-property: transform, background-color, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    cursor: pointer;
}

.actions .btn {
    @media (max-width: 600px) {
        width: 100%;
    }
}

.btn img {
    height: 20px;
    width: 20px;
    margin-inline-end: 10px;
    display: inline-block;
}
.btn span {
    display: inline-block;
}

.btn {
    background-color: rgba(255,255,255,0.15);
    color: #ffffff;
}

.btn:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.feature .actions {
    justify-content: flex-end;
    padding-inline: 2rem;
}

.features {
    display: flex;
    flex-direction: column;
}

.feature {
    width: 100%;
    @media (max-width: 768px) {
        flex-direction: column;
        text-align: center;
    }
}

.feature:nth-child(even) .feature-inner {
    flex-direction: row;
}
.feature:nth-child(even) {
    background-color: var(--primary-color);
    color: var(--tertiary-color);
    h2 {
        color: var(--secondary-color);
    }
}


.feature:nth-child(odd) .feature-inner {
    flex-direction: row-reverse;
}

.feature:nth-child(odd) {
    background-color: var(--background-color);
    color: var(--tertiary-color);
    h2 {
        color: var(--secondary-color);
    }
}

.feature-inner {
    max-width: 80rem;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-items: top;
    gap: 2rem;
    padding: 3rem 1rem;
}

.feature-image {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    max-height: 400px;
    max-width: 100%;
    height: auto;
}

.feature-content {
    flex: 2 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}


footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

