/* 
 * Morwiss Modern CSS Design System
 * Vanilla CSS - No Dependencies
 * BEM Methodology
 */

:root {
    /* Refined HSL Color Palette */
    --primary-h: 30;
    --primary-s: 75%;
    --primary-l: 53%;
    --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-hover: hsl(var(--primary-h), var(--primary-s), 45%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);

    --secondary-h: 220;
    --secondary-s: 85%;
    --secondary-l: 10%;
    --secondary-color: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));

    --bg-dark: hsl(var(--secondary-h), var(--secondary-s), 5%);
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;

    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-light: #ffffff;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* Sidebar Navigation - Premium Glass Effect */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: hsl(0deg 0% 0%);
    color: var(--text-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar__logo {
    text-align: left;
    margin-bottom: 50px;
}

.sidebar__logo img {
    max-width: 180px;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav__link {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 0.05em;
}

.nav__link::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-light);
    transform: translateX(10px);
}

.nav__link:hover::before,
.nav__link.active::before {
    width: 15px;
}

.sidebar__bottom {
    margin-top: 10px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.social__link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.social__link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 10%;
    background-color: var(--secondary-color);
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(4, 18, 48, 0.8) 0%, rgba(4, 18, 48, 0.4) 50%, rgba(4, 18, 48, 0.2) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 800px;
}

.hero__title {
    font-size: 4.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
    color: #fff;
    font-weight: 800;
}

.hero__title-sub {
    color: var(--primary-color);
    display: inline-block;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
}

.hero__typing {
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--primary-color);
    margin-left: 8px;
    vertical-align: middle;
    animation: blink 0.7s infinite;
}

/* Section Styling */
.section {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.section__title {
    margin-bottom: 80px;
    max-width: 700px;
}

.section__title h3 {
    font-size: 3rem;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section__title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Grid System */
.grid {
    display: grid;
    gap: 40px;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--6 {
    grid-template-columns: repeat(6, 1fr);
}

/* About & Why Us */
.about__image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.about__desc h4 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.about__desc p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Feature Cards - Glassmorphism */
.feature-card {
    padding: 50px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Brands */
.brands {
    padding: 45px 0;
}

.brand-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.brand-item img {
    max-width: 100px;
    opacity: 1;
    transition: var(--transition-smooth);
}

.brand-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.brand-item:hover img {
    transform: scale(1.05);
}

/* Clickable brand card extras */
.brand-item--clickable {
    cursor: pointer;
}

.brand-item--clickable:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.brand-item__hint {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.7);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(227, 135, 45, 0.4);
}

/* Service Cards for What We Do */
.service-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.service-card__title {
    font-size: 1.35rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}

.service-card__desc p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.service-card__list {
    margin: 15px 0 25px;
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

.service-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-card__list li i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.service-card__footer {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    opacity: 0.8;
}

.wwd-sustainability {
    transition: var(--transition-smooth);
}

.wwd-sustainability:hover {
    transform: scale(1.01);
    background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.08) !important;
}

/* ─── What We Do Intro Box ─────────────────────────── */
.wwd-intro-box {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 50px 40px;
    background: #fff;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.wwd-intro-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.wwd-intro__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.wwd-intro__text:last-of-type {
    margin-bottom: 25px;
}

.wwd-intro__highlight {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.brand-item--clickable:hover .brand-item__hint {
    opacity: 1;
    transform: scale(1);
}

/* ─── Brand Modal ─────────────────────────────────────── */
.brand-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 18, 48, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.brand-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.brand-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 620px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.brand-modal-overlay.active .brand-modal {
    transform: scale(1) translateY(0);
}

.brand-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    z-index: 2;
}

.brand-modal__close:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

.brand-modal__header {
    background: linear-gradient(135deg, hsl(30, 75%, 96%) 0%, hsl(220, 85%, 97%) 100%);
    padding: 50px 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-modal__logo {
    max-width: 220px;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
}

.brand-modal__body {
    padding: 40px;
}

/* Modal content typography */
.bm-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.bm-intro {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

.bm-subtitle {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.bm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

.bm-list li i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Modal responsive */
@media (max-width: 640px) {
    .brand-modal__header {
        padding: 40px 24px 30px;
    }

    .brand-modal__body {
        padding: 28px 24px;
    }

    .bm-title {
        font-size: 1.3rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(227, 135, 45, 0.2);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(227, 135, 45, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn--outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Contact Section */
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.contact__form {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 18px;
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    height: var(--header-height);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--text-light);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--text-light);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--bg-alt);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
/* Language Switcher - Premium Design */
.lang-switcher {
    position: relative;
    font-family: var(--font-heading);
}

.lang-switcher__btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.lang-switcher__btn:hover {
    background: rgba(227, 135, 45, 0.15);
    border-color: var(--primary-color);
}

.lang-switcher__dropdown {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 20, 40, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.lang-switcher.active .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-switcher__header {
    padding: 15px 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-switcher__item {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.lang-switcher__item:hover,
.lang-switcher__item.active {
    background: var(--primary-color);
    color: #fff;
    padding-left: 25px;
}

/* Mobile-only elements hide by default */
.mobile-nav,
.mobile-header {
    display: none;
}

/* Mobile Specific Switcher */
.lang-switcher--mobile .lang-switcher__btn {
    background: rgba(0, 0, 0, 0.03);
    color: var(--secondary-color);
    border-color: rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
}

.lang-switcher--mobile .lang-switcher__dropdown {
    bottom: auto;
    top: calc(100% + 15px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.lang-switcher--mobile .lang-switcher__header {
    color: var(--text-muted);
}

.lang-switcher--mobile .lang-switcher__item {
    color: var(--text-main);
}

/* RTL Adjustments */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}

[dir="rtl"] .lang-switcher__btn i {
    margin-right: 0;
    margin-left: 0;
}

@media (max-width: 1040px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .mobile-header__logo img {
        height: 30px;
        width: auto;
    }

    .mobile-header__right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* Full-Screen Mobile Navigation Overlay */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 20, 40, 0.98);
        -webkit-backdrop-filter: blur(40px);
        backdrop-filter: blur(40px);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 80px 40px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: var(--transition-smooth);
        overflow-y: auto;
    }

    .mobile-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-nav__top {
        margin-bottom: 30px;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Language Switcher Fix for Mobile Overlay */
    .lang-switcher--mobile-overlay {
        z-index: 2200;
        position: relative;
    }

    .lang-switcher--mobile-overlay .lang-switcher__dropdown {
        bottom: auto;
        top: calc(100% + 10px);
        z-index: 2300;
        transform: translateX(-50%) translateY(-10px);
        background: rgba(255, 255, 255, 1);
        /* Opaque background for clarity in mobile */
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }

    .lang-switcher--mobile-overlay .lang-switcher__header {
        color: var(--text-muted);
        border-bottom-color: #eee;
    }

    .lang-switcher--mobile-overlay .lang-switcher__item {
        color: var(--text-main);
        border-bottom: 1px solid #f5f5f5;
    }

    .lang-switcher--mobile-overlay.active .lang-switcher__dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .mobile-nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 40px;
        flex-shrink: 0;
    }

    .mobile-nav__link {
        font-family: var(--font-heading);
        font-size: 1.09rem;
        font-weight: 700;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: var(--transition-smooth);
        padding: 5px 0;
    }

    .mobile-nav__link:hover {
        color: var(--primary-color);
        transform: scale(1.03);
    }

    .mobile-nav__social {
        display: flex;
        gap: 30px;
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.5);
        margin-top: auto;
        padding-bottom: 20px;
        flex-shrink: 0;
    }

    .mobile-nav__social a:hover {
        color: var(--primary-color);
    }

    /* Hide redundant elements in mobile */
    .sidebar,
    .lang-switcher--mobile {
        display: none !important;
    }

    .sidebar.active {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .hero {
        padding-left: 40px;
        text-align: center;
        padding-right: 40px;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 80px 0;
    }

    .section__title h3 {
        font-size: 2.2rem;
    }

    .contact__form {
        padding: 30px;
    }

    [dir="rtl"] .main-content {
        margin-right: 0;
    }

    [dir="rtl"] .sidebar {
        transform: translateX(100%);
    }

    [dir="rtl"] .sidebar.active {
        transform: translateX(0);
    }
}

@media (min-width: 600px) and (max-width: 1040px) {

    .grid--2,
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}