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

:root {
    --brand-dark: #1a252f;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --surface: #ffffff;
    --surface-alt: #f8f9fa;
    --surface-raised: #ffffff;
    --heading-color: #1a252f;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --border-color: rgba(0, 0, 0, 0.06);
    --divider-color: rgba(0, 0, 0, 0.1);
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --input-text: #2c3e50;
    --modal-bg: #ffffff;
    --btn-primary-bg: #ffffff;
    --btn-primary-text: #1a252f;
    --btn-primary-hover: #f8f9fa;
    --primary-color: var(--heading-color);
    --bg-light: var(--surface-alt);
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --border-radius: 12px;
    --border-radius-small: 8px;
    --navbar-height: 96px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --surface: #0f1419;
    --surface-alt: #1a2332;
    --surface-raised: #222d3d;
    --heading-color: #f0f4f8;
    --text-color: #d1d9e6;
    --text-light: #9aa8bc;
    --border-color: rgba(255, 255, 255, 0.08);
    --divider-color: rgba(255, 255, 255, 0.08);
    --input-bg: #1a2332;
    --input-border: #2d3a4d;
    --input-text: #e8ecf1;
    --modal-bg: #1a2332;
    --btn-primary-bg: #3498db;
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #2980b9;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly improvements */
button,
.btn,
.nav-link,
.lang-btn,
.lightbox-prev,
.lightbox-next,
.lightbox-close {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* RTL Support */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: none;
}

.navbar.navbar--scrolled {
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.97) 0%, rgba(34, 52, 72, 0.95) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.18);
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.4) 20%, rgba(52, 152, 219, 0.8) 50%, rgba(52, 152, 219, 0.4) 80%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar.navbar--scrolled::before {
    opacity: 1;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    min-height: auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

.logo img {
    height: 84px;
    width: 84px;
    object-fit: cover;
    display: block;
    vertical-align: top;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 88px;
    }

    .logo img {
        height: 76px;
        width: 76px;
    }
}

@media (max-width: 480px) {
    :root {
        --navbar-height: 80px;
    }

    .logo img {
        height: 68px;
        width: 68px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.nav-link:hover {
    color: #7ec8f7;
}

.nav-link.active {
    color: #7ec8f7;
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.contact-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-small);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: none;
}

.nav-link.contact-btn::after {
    display: none;
}

.nav-link.contact-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.lang-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.35);
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

.theme-switcher {
    margin-left: 0.5rem;
}

.theme-btn {
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.35);
}

[data-theme="dark"] .navbar.navbar--scrolled .theme-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 152, 219, 0.6);
}

html[dir="rtl"] .theme-switcher {
    margin-left: 0;
    margin-right: 0.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
    transform-origin: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/qatar/hero-doha-skyline.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--brand-dark);
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 37, 47, 0.25) 0%, rgba(26, 37, 47, 0.45) 20%, rgba(44, 62, 80, 0.55) 100%);
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.5);
    color: var(--secondary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.92;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-small);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: var(--btn-primary-hover);
}

.hero .btn-primary {
    background: var(--white);
    color: var(--brand-dark);
}

.hero .btn-primary:hover {
    background: #f8f9fa;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 600;
    border-radius: var(--border-radius-small);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider-color), transparent);
}

.section-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #2980b9);
    margin: 0 auto 1rem;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* About Section */
.about {
    background: var(--surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding: 2rem;
    background: var(--surface-alt);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.about-text h3 {
    color: var(--heading-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.about-text ul li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
}

.about-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

html[dir="rtl"] .about-text ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .about-text ul li::before {
    left: auto;
    right: 0;
}

.about-image {
    position: relative;
}

.company-logo {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: contain;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
}

.company-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

    @media (max-width: 768px) {
        .company-logo {
            max-width: 100%;
        }
    }

.image-placeholder {
    background: var(--surface-alt);
    border-radius: 10px;
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--input-border);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: var(--text-light);
}

/* Gallery Section */
.gallery {
    background: var(--surface-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--surface-raised);
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--input-border);
}

.gallery-image-placeholder i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.gallery-image-placeholder p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* FAQ Section */
.faq {
    background: var(--surface-alt);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-raised);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--surface-raised);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    transition: var(--transition);
    font-family: inherit;
}

.faq-question:hover {
    color: var(--secondary-color);
    background: var(--surface-alt);
}

.faq-question span {
    flex: 1;
    text-align: left;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-question:hover {
    color: var(--secondary-color);
    background: var(--surface-alt);
}

.faq-question i {
    color: var(--secondary-color);
    transition: var(--transition);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    padding-top: 1rem;
}

html[dir="rtl"] .faq-question {
    text-align: right;
}

html[dir="rtl"] .faq-question span {
    text-align: right;
}

html[dir="rtl"] .faq-question i {
    margin-left: 0;
    margin-right: 1rem;
}

/* Contact Section */
.contact {
    background: var(--surface);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item > div {
    flex: 1;
    min-width: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.8;
    white-space: normal;
    max-width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--input-border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--input-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1a252f 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link.instagram:hover {
    color: #E4405F;
}

.social-link.tiktok:hover {
    color: #000000;
}

.social-link.snapchat:hover {
    color: #FFFC00;
}

.social-link i {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Success/Error Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    background: var(--modal-bg);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #2980b9);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.modal-icon.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.modal-icon i {
    animation: checkmark 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
    }
    50% {
        transform: scale(1.2) rotate(45deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.modal-message {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-button {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: var(--white);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    min-width: 120px;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, var(--secondary-color) 100%);
}

.modal-button:active {
    transform: translateY(0);
}

/* Modal RTL Support */
.modal-content[dir="rtl"] {
    text-align: center;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
}

.modal-content[dir="rtl"] .modal-message {
    direction: rtl;
    text-align: center;
    line-height: 1.8;
}

.modal-content[dir="rtl"] .modal-title {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
}

.modal-content[dir="rtl"] .modal-button {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
}

/* Also support when entire page is RTL */
html[dir="rtl"] .modal-content {
    text-align: center;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
}

html[dir="rtl"] .modal-message {
    direction: rtl;
    text-align: center;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: 0 15px;
    }

    .modal-content {
        padding: 2.5rem 2rem;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-message {
        font-size: 1rem;
    }

    .modal-button {
        padding: 0.8rem 2rem;
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

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

    .modal-message {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }

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

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* Mobile and Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-wrapper {
        padding: 0.3rem 0;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--navbar-height) + 0.75rem);
        right: 0.75rem;
        left: auto;
        width: min(17.5rem, 82vw);
        max-height: min(28rem, calc(100dvh - var(--navbar-height) - 1.5rem));
        flex-direction: column;
        background: #1a2a3a;
        border: 1px solid rgba(52, 152, 219, 0.35);
        border-radius: 1rem;
        text-align: left;
        padding: 0.75rem 0;
        gap: 0.15rem;
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
        overflow-y: auto;
        z-index: 1001;
        transform: translateX(calc(100% + 1rem));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu .nav-link {
        color: #f0f4f8;
        text-shadow: none;
        padding: 0.75rem 1.25rem;
        display: block;
        width: 100%;
        text-align: left;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: #5dade2;
        background: rgba(52, 152, 219, 0.12);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu .nav-link.contact-btn {
        margin: 0.5rem 1.25rem;
        width: calc(100% - 2.5rem);
        min-width: 0;
        text-align: center;
    }

    .nav-menu .lang-btn,
    .nav-menu .theme-btn {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(52, 152, 219, 0.5);
        color: #f0f4f8;
        text-shadow: none;
    }

    .nav-menu .language-switcher,
    .nav-menu .theme-switcher {
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0.5rem 1.25rem;
    }

    .nav-menu .theme-btn {
        margin: 0;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: 500px;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .about-text {
        padding: 0 10px;
    }

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

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

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        gap: 1rem;
    }

    .contact-item i {
        font-size: 1.3rem;
    }

    .contact-form {
        gap: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .faq-question {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .faq-answer.active {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        align-items: center;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.5rem;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 85%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .nav-wrapper {
        padding: 0.25rem 0;
    }

    .nav-menu {
        top: calc(var(--navbar-height) + 0.5rem);
        right: 0.5rem;
        width: min(16rem, 88vw);
    }

    .hero {
        min-height: 450px;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        max-width: 100%;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
    }

    section {
        padding: 3rem 0;
    }

    .about-text {
        padding: 1.2rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .contact-item {
        padding: 1.2rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .title-underline {
        width: 60px;
        height: 3px;
    }

    .about-text h3 {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.8rem;
    }

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

    .gallery-grid {
        gap: 0.8rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .contact-item i {
        margin-top: 0;
    }

    .contact-item > div {
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.4rem;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 1.8rem;
    }

    .lightbox img {
        max-width: 98%;
        max-height: 80%;
    }
}

/* RTL Specific Styles */
html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-wrapper {
    flex-direction: row-reverse;
}

html[dir="rtl"] .about-content {
    direction: rtl;
}

html[dir="rtl"] .contact-content {
    direction: rtl;
}

html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lightbox-prev {
    left: auto;
    right: 30px;
}

html[dir="rtl"] .lightbox-next {
    right: auto;
    left: 30px;
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: 40px;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .social-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .social-link:hover {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    html[dir="rtl"] .nav-menu {
        flex-direction: column;
        right: auto;
        left: 0.75rem;
        transform: translateX(calc(-100% - 1rem));
        text-align: right;
    }

    html[dir="rtl"] .nav-menu.active {
        transform: translateX(0);
    }

    html[dir="rtl"] .nav-menu .nav-link {
        text-align: right;
    }

    html[dir="rtl"] .lightbox-prev {
        left: auto;
        right: 10px;
    }

    html[dir="rtl"] .lightbox-next {
        right: auto;
        left: 10px;
    }

    html[dir="rtl"] .lightbox-close {
        right: auto;
        left: 20px;
    }
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #2c3e50 100%);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
    margin-top: -2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: var(--white);
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-number small {
    font-size: 1rem;
    font-weight: 500;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
}

/* Qatar Landscape */
.qatar-landscape {
    background: var(--surface);
}

.qatar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.qatar-card {
    background: var(--surface-raised);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.qatar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.qatar-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.qatar-card-body {
    padding: 1.5rem;
}

.qatar-card-body h3 {
    color: var(--heading-color);
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.qatar-card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.portals-strip {
    background: var(--surface-alt);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.portals-strip h3 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.portals-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.portals-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-raised);
    color: var(--heading-color);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.portals-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.portals-links a i {
    color: var(--secondary-color);
    transition: var(--transition);
}

.portals-links a:hover i {
    color: var(--white);
}

/* Services Grid */
.services-section {
    background: var(--surface-alt);
}

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

.service-card {
    background: var(--surface-raised);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card-body {
    padding: 1.5rem;
    position: relative;
}

.service-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.service-card-body h3 {
    color: var(--heading-color);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.service-card-body p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Process Timeline */
.process-section {
    background: var(--surface);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--surface-alt);
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.process-step:hover {
    background: var(--surface-raised);
    box-shadow: var(--shadow-hover);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.process-step img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius-small);
    margin-bottom: 1rem;
}

.process-step h3 {
    color: var(--heading-color);
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Showcase */
.showcase-section {
    background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.showcase-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0;
}

.showcase-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.showcase-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 28, 46, 0.9));
    color: var(--white);
    padding: 2rem 1.2rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.showcase-item--wide img {
    height: 280px;
}

/* Videos */
.videos-section {
    background: var(--primary-color);
    color: var(--white);
}

.videos-section .section-title {
    color: var(--white);
}

.videos-section .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

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

.video-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.video-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    font-size: 1.05rem;
    color: var(--white);
}

.video-card p {
    padding: 0 1.2rem 1.2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* About caption */
.about-image-caption {
    margin-top: 1rem;
    text-align: center;
}

.about-image-caption p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive - New Sections */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .showcase-item--wide {
        grid-column: span 2;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .qatar-grid,
    .services-grid,
    .process-timeline,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-item--wide {
        grid-column: span 1;
    }

    .portals-links {
        flex-direction: column;
        align-items: stretch;
    }

    .portals-links a {
        justify-content: center;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.6rem;
    }
}

/* Multi-page layout */
.page-banner {
    position: relative;
    min-height: calc(520px + var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    padding-top: var(--navbar-height);
    background-image: url('../images/qatar/hero-doha-skyline.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--white);
}

.page-banner--qatar { background-image: url('../images/qatar/west-bay-night.jpg'); }
.page-banner--services { background-image: url('../images/qatar/skyscrapers-modern.jpg'); }
.page-banner--process { background-image: url('../images/qatar/doha-dusk-skyline.jpg'); }
.page-banner--videos { background-image: url('../images/qatar/sunset-corniche.jpg'); }
.page-banner--faq { background-image: url('../images/qatar/national-museum.jpg'); }
.page-banner--contact { background-image: url('../images/qatar/corniche-waterfront.jpg'); }

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 37, 47, 0.2) 0%, rgba(26, 37, 47, 0.45) 35%, rgba(44, 62, 80, 0.6) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

.page-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.page-banner-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-main .page-section {
    padding: 5rem 0;
}

.page-section--dark {
    background: var(--brand-dark);
}

.page-cta {
    text-align: center;
    margin-top: 3rem;
}

.page-cta p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Home page cards */
.home-intro {
    padding: 5rem 0;
    background: var(--surface);
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.home-card {
    display: block;
    background: var(--surface-alt);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.home-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
    background: var(--surface-raised);
}

.home-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.home-card h3 {
    color: var(--heading-color);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.home-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-cta {
    text-align: center;
}

@media (max-width: 1024px) {
    .home-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-banner {
        min-height: calc(420px + var(--navbar-height));
    }

    .page-banner-content {
        padding: 2rem 0;
    }

    .page-main .page-section,
    .home-intro {
        padding: 4rem 0;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 1rem;
    }

    .stat-label {
        font-size: 0.82rem;
    }

    .portals-strip {
        padding: 1.5rem;
    }

    .home-card {
        padding: 1.5rem;
    }

    .page-cta .btn {
        width: 100%;
        max-width: 320px;
    }

    .showcase-item img,
    .showcase-item--wide img {
        height: 220px;
    }

    html[dir="rtl"] .hero-buttons {
        flex-direction: column;
    }

    .page-banner-title {
        font-size: 2rem;
    }

    .page-banner-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .home-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-main .page-section,
    .home-intro {
        padding: 3rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }

    .home-card h3 {
        font-size: 1.1rem;
    }

    .home-card p {
        font-size: 0.9rem;
    }

    .qatar-card-body,
    .service-card-body {
        padding: 1.25rem;
    }

    .process-step {
        padding: 1.25rem 1rem;
    }

    .page-banner {
        min-height: calc(360px + var(--navbar-height));
    }

    .page-banner-title {
        font-size: 1.75rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator i {
        font-size: 1.5rem;
    }
}

/* Touch devices — avoid hover shift on tap */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .home-card:hover,
    .gallery-item:hover,
    .qatar-card:hover,
    .showcase-item:hover img,
    .company-logo:hover {
        transform: none;
    }
}

/* Landscape phones */
@media (max-width: 896px) and (max-height: 450px) {
    .hero {
        min-height: 100dvh;
        padding-top: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* WhatsApp Floating Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.whatsapp-button:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: var(--white);
    display: block;
}

html[dir="rtl"] .whatsapp-button {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 25px;
        right: 25px;
    }

    html[dir="rtl"] .whatsapp-button {
        right: auto;
        left: 25px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    html[dir="rtl"] .whatsapp-button {
        right: auto;
        left: 20px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

