/* 
   Mg Design - Comprehensive Production CSS
   Theme: Luxury Dark & Gold
   RTL First | Hardware Accelerated | Production Ready
*/

/* --- Advanced Animations --- */
@keyframes softFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.soft-float {
    animation: softFloat 4s ease-in-out infinite;
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

:root {
    --primary: #d4af37;
    --primary-light: #f1c40f;
    --bg-dark: #0a0a0a;
    --card-bg: #151515;
    --text-white: #ffffff;
    --text-dim: #a0a0a0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Cairo', sans-serif;
    --ts: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ts-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Global Optimization */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    transition: direction 0.3s ease;
    overflow-x: hidden;
    width: 100%;
}

body.ltr {
    direction: ltr;
    font-family: 'Outfit', sans-serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--ts);
}

img {
    max-width: 100%;
    display: block;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 10px 20px;
    z-index: 10000;
    transition: top var(--ts);
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Unified Header & Navigation Architecture */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.top-bar {
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
    overflow: hidden;
}

header.scrolled .top-bar {
    height: 0;
    padding: 0;
    opacity: 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-details {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons-top {
    display: flex;
    gap: 15px;
}

.main-nav {
    padding: 15px 0;
    transition: 0.3s ease;
}

header.scrolled .main-nav {
    padding: 10px 0;
}

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-img {
    height: clamp(50px, 10vw, 85px);
    width: auto;
    transition: height 0.3s ease;
    flex-shrink: 0;
}

header.scrolled .logo-img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: clamp(15px, 2vw, 35px);
    align-items: center;
}

.nav-links li a {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s ease;
}

.nav-links li a.active::after {
    width: 100%;
}

@media (min-width: 992px) {
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: #0f0f0f;
        min-width: 220px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 3px solid var(--primary);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        z-index: 100;
    }

    body.ltr .dropdown-menu {
        right: auto;
        left: 0;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu li a {
        display: block;
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-lang {
    border: 1px solid var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

/* 2.1 Hero Slider Animations */
.split-text {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s var(--ts) 0.2s;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s var(--ts) 0.4s;
}

.slide.active .split-text,
.slide.active .fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.slides-container {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: width 1s var(--ts), opacity 1s var(--ts);
    z-index: 0;
    overflow: hidden;
}

.slide-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s ease-out;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    width: 100%;
}

.slide.active .slide-image {
    transform: scale(1);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.slide-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 40px;
}

.slider-nav {
    position: absolute;
    bottom: 50px;
    left: 7.5%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ts);
}

.nav-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* 4. Common Design Components */
.btn {
    display: inline-block;
    padding: 18px 50px;
    color: #fff;
    font-weight: 700;
    border: 1px solid #fff;
    cursor: pointer;
    transition: var(--ts);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

.btn.primary-btn {
    animation: glowPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn.primary-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: shimmer 4s infinite linear;
    pointer-events: none;
}

section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 400;
}

.section-title p {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

/* 5. About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-img img {
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* 6. Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--ts);
}

.process-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.process-icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 2rem;
    color: var(--primary);
}

.process-num {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

/* 7. Services Section */
.service-category {
    margin-bottom: 80px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.category-header h3 {
    font-size: 1.8rem;
    color: #fff;
}

.category-header i {
    color: var(--primary);
    font-size: 1.6rem;
}

.services-grid.three-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--ts);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.service-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.service-card h4 {
    padding: 25px 25px 15px;
    color: var(--primary);
    font-size: 1.4rem;
}

.service-card p {
    padding: 0 25px 25px;
    color: var(--text-dim);
}

.read-more-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    margin-top: 15px;
}

/* 8. Featured Slider (Mid-Page) */
.featured-slider-section {
    background: #0d0d0d;
    padding: 120px 0;
    overflow: hidden;
    position: relative;
}

.f-slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 60px;
}

.f-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.f-slide {
    position: absolute;
    width: 50%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
    transition: all 0.6s var(--ts);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f-slide.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    z-index: 10;
}

.f-slide.next {
    opacity: 0.5;
    transform: translateX(20%) scale(0.8);
    z-index: 5;
    filter: brightness(0.4);
}

.f-slide.prev {
    opacity: 0.5;
    transform: translateX(-120%) scale(0.8);
    z-index: 5;
    filter: brightness(0.4);
}

.f-slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
}

.f-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ts);
}

.f-btn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
}

/* 9. Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    font-weight: 700;
    transition: var(--ts);
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--primary);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--ts);
}

.filter-btn.active::after {
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 0;
}

.portfolio-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s var(--ts);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: var(--ts);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

/* 10. Media Section */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.media-item {
    background: transparent;
    transition: var(--ts);
    position: relative;
    width: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

.video-container img,
.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.8s var(--ts);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #000;
    z-index: 5;
}

.media-item:hover .play-button {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.media-item h3 {
    color: var(--primary);
    font-size: 1.3rem;
    padding-bottom: 10px;
    font-weight: 700;
}

/* 11. Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--ts);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: #2a2a2a;
}

/* 12. Floating Elements */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    z-index: 1000;
}

body.ltr .floating-buttons {
    left: auto;
    right: 20px;
}

.float-btn {
    width: clamp(45px, 12vw, 60px);
    height: clamp(45px, 12vw, 60px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--ts);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.facebook {
    background: #3b5998;
}

.tiktok {
    background: #000;
}

.phone {
    background: #3498db;
}

.whatsapp {
    background: #25d366;
}

.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--ts);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    pointer-events: all;
}

/* 13. Page Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo-img {
    width: 60%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.loader-line {
    width: 150px;
    height: 2px;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    animation: lineLoad 1.5s infinite ease-in-out;
}

@keyframes lineLoad {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* 14. Clients Section */
.clients-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.client-logo {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--ts);
    height: 180px;
}

.client-logo:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-5px);
}

.client-logo img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--ts);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 15. Footer */
footer {
    background: #000;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ts);
    color: #fff;
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
}

.newsletter-form button {
    padding: 0 20px;
    background: var(--primary);
    border: none;
    color: #000;
    cursor: pointer;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
}

/* 16. Pixel-Perfect Responsive Master Section */
@media (max-width: 991px) {
    body {
        overflow-x: hidden !important;
        position: relative;
    }

    .top-bar {
        display: none !important;
    }

    .main-nav {
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav-container {
        padding: 0 15px;
        flex-direction: row-reverse !important;
    }

    body.ltr .main-nav-container {
        flex-direction: row !important;
    }

    .logo-img {
        height: 50px !important;
    }

    .menu-toggle {
        display: block !important;
        z-index: 10002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 10001;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 60px 20px;
    }

    body.ltr .nav-links {
        right: auto;
        left: -100%;
    }

    .nav-links.active {
        right: 0 !important;
    }

    body.ltr .nav-links.active {
        right: auto !important;
        left: 0 !important;
    }

    .nav-links li a {
        font-size: 1.4rem !important;
        padding: 15px;
        display: block;
        color: #fff;
        font-weight: 700;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown>a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .dropdown-menu {
        display: none;
        position: relative !important;
        background: rgba(255, 255, 255, 0.05) !important;
        width: 100% !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-top: none !important;
        margin-top: 10px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown.active>a i {
        transform: rotate(180deg);
    }

    .about-grid,
    .footer-grid,
    .contact-wrapper,
    .media-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100% !important;
        padding: 15px 25px !important;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 42px !important;
    }
}

/* 17. LTR Logic Overrides */
body.ltr .contact-details,
body.ltr .social-icons-top,
body.ltr .top-bar-right,
body.ltr .header-actions {
    flex-direction: row;
}

body.ltr .dropdown-menu li a i {
    transform: scaleX(-1);
}

body.ltr .read-more-link i {
    transform: rotate(180deg);
    margin-right: 8px;
    margin-left: 0;
}

body.ltr .process-num {
    right: auto;
    left: -10px;
}

body.ltr .hero-btns {
    flex-direction: row;
}

body.ltr .f-slider-controls {
    right: auto;
    left: 40px;
    flex-direction: row-reverse;
}

body.ltr .slider-nav {
    left: auto;
    right: 40px;
}

body.ltr .next-btn i,
body.ltr .prev-btn i {
    transform: rotate(180deg);
}

body.ltr .footer-col ul {
    padding: 0;
}

/* 18. Lightbox Styles */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
    z-index: 20005;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

@media (max-width: 1200px) {
    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

body.ltr .lightbox-prev i,
body.ltr .lightbox-next i {
    transform: rotate(180deg);
}