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

:root {
    --primary-color: #00ffe5;
    --secondary-color: #00ffe5;
    --accent-color: #5f543f;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #111111;
    --text-light: #ffffff;
    --text-muted: #666666;
    --border-color: #222222;
    --gradient-1: linear-gradient(135deg, #4e4ca5, #870aee);
    --gradient-2: linear-gradient(135deg, #00ff88, #0099ff);
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-secondary);
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: opacity 0.3s ease;
}

/* Global Background Image */
#global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('Adnan Backgroun.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1; /* Ensures it's behind all content */
    filter: brightness(0.6) contrast(1.1); /* Darken and add contrast for readability */
    will-change: transform; /* Performance hint for GSAP */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
  display: none !important;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.logo-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.8;
    transition: left 0.5s ease;
}

.logo-text:hover::before {
    left: 100%;
}

.logo-text:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 50px;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    margin-left: 30px;
}

.language-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 4px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.language-option {
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
}

.language-option.active {
    color: #ffffff;
}

.language-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #4e4ca5, #870aee);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* RTL Support */
[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

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

[dir="rtl"] .language-toggle {
    flex-direction: row-reverse;
}

[dir="rtl"] .services-grid {
    direction: rtl;
}

[dir="rtl"] .testimonials-grid {
    direction: rtl;
}

[dir="rtl"] .contact-top-row {
    flex-direction: column;
}

[dir="rtl"] .contact-info .elementor-icon-list-items {
    flex-direction: row-reverse;
}

[dir="rtl"] .elementor-hidden-phone .elementor-icon-list-items {
    flex-direction: row-reverse;
}

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

/* Add these styles to prevent portfolio section from flipping in RTL */
[dir="rtl"] .portfolio .swiper-container {
    direction: ltr;
}

[dir="rtl"] .portfolio .swiper-wrapper {
    direction: ltr;
}

[dir="rtl"] .portfolio .swiper-slide {
    direction: ltr;
}

/* Ensure video content stays LTR */
[dir="rtl"] .video-thumb {
    direction: ltr;
}

[dir="rtl"] .video-overlay {
    direction: ltr;
}

/* Phone numbers and usernames stay LTR */
[dir="rtl"] .contact-info a,
[dir="rtl"] .elementor-icon-list-item a {
    direction: ltr;
    unicode-bidi: embed;
}

[dir="rtl"] .contact-info .elementor-icon-list-text,
[dir="rtl"] .elementor-icon-list-text {
    direction: ltr;
    unicode-bidi: embed;
}

/* Ensure social media links and usernames stay LTR */
[dir="rtl"] .social-links a,
[dir="rtl"] .elementor-hidden-phone a {
    direction: ltr;
    unicode-bidi: embed;
}

/* Video thumbnails and embeds stay LTR */
[dir="rtl"] .swiper-button-next,
[dir="rtl"] .swiper-button-prev {
    direction: ltr;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important; /* Make hero background transparent to show global background */
    overflow: hidden;
    /* Remove opacity and transition from here if they are not specifically animated by GSAP */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/></filter></defs><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none; /* Remove placeholder background from here */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 40px;
}

.hero-title {
    margin-bottom: 30px;
}

/* Add clapperboard animation styles */
.clapper-top,
.clapper-bottom {
    display: block;
    transform-origin: center bottom;
    will-change: transform;
}

/* Remove transform and opacity from .clapper-top to make it always visible */
.clapper-top {
    transform-origin: center bottom;
}

.clapper-bottom {
    transform: scale(0.8);
    opacity: 0;
}

.hero-title-line {
    font-size: clamp(64px, 12vw, 180px);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-top: 0;
}

.scroll-indicator {
    position: relative;
    margin-top: 60px;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--gradient-1);
    margin: 0 auto;
    position: relative;
    animation: pulse 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 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);
    }
}

/* Sections */
section {
    padding: 120px 0;
}

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

/* About Section */
.about {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Portfolio Section (new structure for reels) */
.portfolio-reels {
    background: var(--dark-bg);
    border-top: 1px solid rgba(153, 0, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.portfolio-reels .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-family: var(--font-secondary);
}

/* Services Section - Fixed layout and visibility */
.services {
    background: var(--darker-bg);
    border-top: 1px solid rgba(212, 0, 255, 0.1);
    padding: 120px 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh;
}

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

.services-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 80px;
    font-family: var(--font-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    width: 100%;
}

.service-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 60px 40px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-item:hover::before {
    opacity: 0.05;
}

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

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-item:hover .service-icon {
    color: var(--text-light);
    transform: scale(1.1) rotate(5deg);
}

.service-item h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    color: var(--text-light);
}

.service-item p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 16px;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    background: var(--dark-bg);
    border-top: 1px solid rgba(140, 0, 255, 0.1);
}

/* Testimonials Section - Swiper Integration */
.testimonial-swiper {
    width: 100%;
    padding: 20px 60px; /* Increased padding for arrow spacing */
    position: relative;
    overflow: hidden;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-swiper .swiper-wrapper {
    align-items: stretch; /* Ensures all slides in a row stretch to the height of the tallest */
    height: 100%;
}

.testimonial-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* Let content dictate height, flexbox handles alignment */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); /* Subtle initial shadow */
    transition: all 0.4s ease;
    box-sizing: border-box;
    
    /* Initial state for GSAP animation */
    opacity: 0; 
    visibility: hidden; 
}

.testimonial-swiper .swiper-slide:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

.testimonial-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 24px;
    height: 100%;
    min-height: 0;
}

/* Empty State for Testimonials */
.testimonial-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    opacity: 1; /* Always visible if displayed */
    visibility: visible; /* Always visible if displayed */
}

.testimonial-empty-state h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.testimonial-empty-state p {
    font-size: 18px;
    color: var(--text-muted);
}

@media (min-width: 1024px) {
    .testimonial-swiper .swiper-slide {
        /* No explicit margins needed here, Swiper's spaceBetween handles it */
    }
}

.testimonial-swiper .swiper-slide::before {
    content: none;
}

/* For RTL, adjust quote position */
[dir="rtl"] .testimonial-swiper .swiper-slide::before {
    content: none;
}

.testimonial-swiper .testimonial-content p {
    font-size: clamp(1rem, 2.5vw, 1.1rem); /* Responsive 1.1rem base */
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-muted);
    flex-grow: 1;
    position: relative;
    z-index: 2;
    word-wrap: break-word;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    position: relative; /* To ensure it's above the pseudo-element */
    z-index: 2;
}

.client-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--primary-color);
    padding: 3px;
    background-color: var(--dark-bg);
}

.client-name {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: clamp(0.9rem, 2vw, 1rem); /* Responsive 1rem base */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.client-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
}

/* Swiper Navigation Buttons - Increased spacing */
.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: rgba(17, 17, 17, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 16px; /* Added margin for spacing */
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.swiper-button-prev::after {
    content: '\f053';
}

.swiper-button-next::after {
    content: '\f054';
}

/* Contact Section */
.contact {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 24px;
    padding-top: 24px;
}

.contact-content {
    text-align: center;
}

.contact-top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 0;
    gap: 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 0;
}

.contact-info .elementor-icon-list-items,
.elementor-hidden-phone .elementor-icon-list-items {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap; /* Ensure elements wrap onto new lines if needed */
    justify-content: center;
    margin: 0;
}

.elementor-hidden-phone .elementor-icon-list-items {
    gap: 20px;
}

.elementor-icon-list-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-secondary);
    font-size: 16px;
}

.elementor-icon-list-icon {
    font-size: 22px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.contact-bottom-row,
.contact-links {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    font-family: var(--font-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

/* Reels Grid Styles (for homepage) */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding: 0 20px;
}

.reel-item {
    background: var(--card-bg);
    border: 1px solid rgba(163, 3, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.reel-item:nth-child(1) { animation-delay: 0.1s; }
.reel-item:nth-child(2) { animation-delay: 0.2s; }
.reel-item:nth-child(3) { animation-delay: 0.3s; }
.reel-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reel-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 0, 64, 0.2);
    box-shadow: 0 0 30px 5px #34065a, 0 0 60px 10px #3a204e;
    border-color: #0c0313;
}

.reel-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #000000;
    overflow: hidden;
}

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

.reel-info {
    padding: 30px;
    text-align: center;
}

.reel-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: var(--text-light);
}

.reel-category {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Reels Grid */
@media (max-width: 768px) {
    .reels-grid {
        grid-template-columns: 1fr; /* Force single column on smaller screens */
        gap: 30px;
        padding: 0 15px;
    }
    
    .reel-item {
        max-width: none; /* Allow items to take full available width */
        margin: 0 auto; /* Keep margin for centering within container if needed */
    }
}

@media (max-width: 480px) {
    .reels-grid {
        gap: 20px;
    }
    
    .reel-info {
        padding: 20px;
    }
}

/* Remove any overlays blocking video interaction */
.video-wrapper,
.reel-video-container,
.work-video-container /* Added for my-work.html consistency */ {
    position: relative;
}

.video-wrapper *,
.reel-video-container *,
.work-video-container * /* Added for my-work.html consistency */ {
    pointer-events: auto;
}

/* Ensure videos are clickable */
iframe {
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .swiper-button-next {
        right: 10px;
    }
    
    .swiper-button-prev {
        left: 10px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column; /* Default for LTR mobile */
        background: rgba(5, 5, 5, 0.98);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.4s;
        padding: 40px 0;
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Client Stories / Services Section Title Adjustments */
    .section-title {
        font-size: clamp(30px, 6vw, 36px); /* Adjusted for better responsiveness */
    }

    .hero-title-line {
        font-size: clamp(48px, 15vw, 120px);
    }

    .hero-subtitle {
        font-size: clamp(16px, 4vw, 24px);
    }

    .portfolio-reels .container {
        padding: 0 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-item {
        padding: 40px 30px;
    }
    
    /* Social Media Icons Visibility Fix */
    .elementor-hidden-phone { 
        display: block; /* Make sure it's visible on mobile */
        margin-top: 15px; /* Add a little space from phone/email */
    }
    /* Ensure icons wrap correctly within the social block */
    .elementor-hidden-phone .elementor-icon-list-items {
        justify-content: center; /* Center icons horizontally */
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .language-switcher {
        margin-left: 15px;
    }
    
    .language-option {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .language-slider {
        width: 35px;
    }

    .testimonial-swiper .swiper-slide {
        padding: 40px;
        /* margin removed, spaceBetween handles it */
    }

    .testimonial-swiper .testimonial-content p {
        font-size: clamp(1.05rem, 3vw, 1.18rem); /* Slightly bigger on mobile */
    }
    .client-name {
        font-size: clamp(1rem, 2.5vw, 1.1rem); /* Slightly bigger on mobile */
    }
    .client-title {
        font-size: 1rem;
    }

    .testimonial-swiper {
        padding: 20px 40px; /* Reduced padding for mobile */
    }

    .testimonial-swiper .swiper-slide {
        padding: 30px;
        /* No explicit margins here, Swiper's spaceBetween handles it */
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
        margin: 0 8px; /* Reduced margin for mobile */
    }
    
    .testimonial-swiper .testimonial-content p {
        font-size: clamp(1.05rem, 3vw, 1.18rem); /* Slightly bigger on mobile */
    }
    .client-name {
        font-size: clamp(1rem, 2.5vw, 1.1rem); /* Slightly bigger on mobile */
    }
    .client-title {
        font-size: 1rem;
    }

    .swiper-button-prev {
        left: -5px; /* Adjust for mobile */
    }
    .swiper-button-next {
        right: -5px; /* Adjust for mobile */
    }

    /* FIX: Force mobile navigation menu to be vertical (column) in RTL */
    /* And adjust sliding direction for RTL to come from the left */
    [dir="rtl"] .nav-menu {
        flex-direction: column; /* This overrides the global row-reverse for mobile RTL */
        right: auto; /* Remove right property for RTL mobile */
        left: -100%; /* Slide from left */
    }

    [dir="rtl"] .nav-menu.active {
        left: 0; /* Slide to left: 0 */
        right: auto; /* Ensure right is not set */
    }
}

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

    .nav-container {
        padding: 0 20px;
    }

    .hero-content {
        padding: 0 20px;
    }

    /* Client Stories / Services Section Title Adjustments for smaller screens */
    .section-title {
        font-size: clamp(24px, 7vw, 28px); /* Further adjusted for smaller screens */
        letter-spacing: 2px; /* Reduce letter spacing on very small screens */
    }

    .services {
        padding: 80px 0;
    }
    
    .services .container {
        padding: 0 20px;
    }

    .testimonial-swiper {
        padding: 20px 30px; /* Minimum padding for phones */
    }

    .testimonial-swiper .swiper-slide {
        padding: 30px;
        /* No explicit margins here, Swiper's spaceBetween handles it */
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        margin: 0 4px; /* Minimum margin for phones */
    }
}

/* Homepage Work Section Updates */
.see-more-container {
    text-align: center;
    margin-top: 80px;
}

.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.see-more-btn i {
    transition: transform 0.4s ease;
}

.see-more-btn:hover i {
    transform: translateX(5px);
}

.see-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.4s ease;
    z-index: -1;
}

.see-more-btn:hover::before {
    left: 0;
}

.see-more-btn:hover {
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.3);
}

/* Responsive adjustments for work section */
@media (max-width: 768px) {
    .see-more-btn {
        padding: 16px 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .see-more-btn {
        padding: 14px 30px;
        font-size: 13px;
    }
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    text-align: center;
}

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

.footer-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-text:hover {
    opacity: 1;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-text {
        font-size: 12px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 20px;
    }
}

/* Ensure LTR for videos in RTL mode */
[dir="rtl"] .reels-grid,
[dir="rtl"] .work-grid { /* Added .work-grid for my-work.html */
    direction: ltr;
}

[dir="rtl"] .reel-item,
[dir="rtl"] .work-item { /* Added .work-item */
    direction: ltr;
}

[dir="rtl"] .reel-video-container,
[dir="rtl"] .work-video-container { /* Added .work-video-container */
    direction: ltr;
}

/* My Work page specific styles (adjusted for responsiveness) */
.work-page .work-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.work-page .work-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    .work-page .work-grid {
        grid-template-columns: 1fr; /* Force single column on smaller screens */
        gap: 30px;
        padding: 0 20px;
    }
    .work-page .work-item {
        max-width: none; /* Allow items to take full available width */
        margin: 0 auto; /* Keep margin for centering if needed */
    }
}

@media (max-width: 480px) {
    .work-page .work-grid {
        gap: 20px;
        padding: 0 15px;
    }
}
