@font-face {
    font-family: 'Somar';
    src: url('alfont_com_SomarGX.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Somar Bold';
    src: url('ArbFONTS-Somar-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* English version: Author Variable fonts */
@font-face {
    font-family: 'Author';
    src: url('Author-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Author Headline';
    src: url('Author-Variable 2.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html,
body {
    overflow-x: hidden;
    min-width: 0;
}

body {
    width: 100%;
    max-width: 100vw;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Skip link: visible on focus for keyboard/screen reader users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 10001;
    padding: 0.75rem 1rem;
    background: #EE2B7B;
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body {
    font-family: 'Somar', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
    background-color: #0A0A0A;
    color: white;
    cursor: none;
    overflow-x: hidden;
}

body[dir="ltr"] {
    direction: ltr;
}

/* English version: use Author Variable for all text */
[dir="ltr"] body,
body[dir="ltr"],
html[lang="en"] body {
    font-family: 'Author', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3,
[dir="ltr"] h4,
[dir="ltr"] h5,
[dir="ltr"] h6,
body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] h4,
body[dir="ltr"] h5,
body[dir="ltr"] h6,
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
    font-family: 'Author Headline', 'Author', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[dir="ltr"] .font-bold,
[dir="ltr"] b,
[dir="ltr"] strong,
body[dir="ltr"] .font-bold,
body[dir="ltr"] b,
body[dir="ltr"] strong,
html[lang="en"] .font-bold,
html[lang="en"] b,
html[lang="en"] strong {
    font-family: 'Author Headline', 'Author', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-somar {
    font-family: 'Somar', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Arabic version: use Somar Bold for headings and bold text */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Somar Bold', 'Somar', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[dir="rtl"] .font-bold,
[dir="rtl"] b,
[dir="rtl"] strong,
body[dir="rtl"] .font-bold,
body[dir="rtl"] b,
body[dir="rtl"] strong,
html[lang="ar"] .font-bold,
html[lang="ar"] b,
html[lang="ar"] strong {
    font-family: 'Somar Bold', 'Somar', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   NOISE OVERLAY (Premium Texture)
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    mix-blend-mode: overlay;
}

/* ============================================
   CUSTOM CURSOR (Pink Dot with Ghost Trail)
   ============================================ */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #EE2B7B;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
}

.cursor-trail {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid #EE2B7B;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0.3;
    mix-blend-mode: difference;
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Interactive Dots Background */
.dots-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    opacity: 0.6;
    background-color: #0A0A0A;
}

.dots-background-about {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    opacity: 0.4;
    background-color: #FCF0F2;
}

.dots-background-services {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    opacity: 0.5;
    background-color: #0A0A0A;
}

.dots-background-portfolio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    background-color: transparent;
}
.portfolio-section .dots-background-portfolio {
    opacity: 0.5;
}

/* Mesh Gradient Background */
.mesh-gradient {
    background: 
        radial-gradient(at 20% 30%, rgba(238, 43, 123, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(88, 89, 91, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(0, 0, 0, 0.2) 0px, transparent 50%);
    background-size: 200% 200%;
    animation: meshMove 20s ease infinite;
    z-index: 1;
    position: relative;
    will-change: background-position;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes meshMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: floatOrb 20s ease-in-out infinite;
    z-index: 2;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #EE2B7B;
    top: 20%;
    left: 10%;
    opacity: 0.3;
    animation-duration: 25s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #58595B;
    bottom: 20%;
    right: 15%;
    opacity: 0.2;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: #000000;
    top: 50%;
    left: 50%;
    opacity: 0.4;
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

/* 3D Logo with Mouse Interaction – 50% of hero text size (scales with viewport) */
.logo-3d-container {
    perspective: 1000px;
    transform-style: preserve-3d;
    pointer-events: none;
    width: 50vw;
    max-width: 460px;
    min-width: 120px;
}

.logo-3d-container > div {
    pointer-events: auto;
    width: 100%;
}

.logo-3d {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    width: 100%;
    height: auto;
    display: block;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Hero Headline - Staggered Reveal, centered */
.hero-headline {
    font-size: clamp(4.5rem, 12.5vw, 16rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0 !important;
    position: absolute;
    z-index: 1;
    pointer-events: none;
    color: #FFFFFF;
    width: 100%;
    max-width: 100vw;
    text-align: center;
    margin: 0;
    padding: 0 1rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(0) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-variant-ligatures: none;
    font-feature-settings: "kern" 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    mix-blend-mode: normal;
    overflow: visible;
}

/* RTL/LTR: hero inherits direction so Arabic and English flow correctly */
[dir="rtl"] .hero-headline {
    direction: rtl;
}

[dir="ltr"] .hero-headline {
    direction: ltr;
}

/* Arabic hero wrapper: full width, block, centered */
.hero-headline .hero-text-wrapper.lang-ar {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* Arabic hero: spacing between the two lines */
.hero-headline .hero-text-wrapper.lang-ar .hero-line:first-child {
    margin-bottom: 0.08em;
}

/* English hero wrapper: full width, flex column, centered, all caps */
.hero-headline .hero-text-wrapper.lang-en {
    font-size: clamp(5rem, 12vw, 15rem) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.15em !important;
    width: 100% !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

.hero-headline .hero-text-wrapper.lang-en .hero-line {
    font-size: 1em !important;
}

.hero-headline .hero-text-wrapper.lang-en .hero-char {
    font-size: 1em !important;
}

/* Line 1: slightly smaller size so it matches Line 2 width – "DESIGN TO MAKE" */
.hero-headline .hero-text-wrapper.lang-en .hero-en-line-1,
.hero-headline .hero-text-wrapper.lang-en .hero-en-line-1 .hero-char {
    font-size: 0.82em !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    -webkit-text-stroke: 0 transparent !important;
    text-stroke: 0 transparent !important;
    letter-spacing: 0.04em !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: none !important;
}

/* Line 2: bold, uppercase (no shadow) – "AN IMPACT." sets the visual width */
.hero-headline .hero-text-wrapper.lang-en .hero-en-line-2,
.hero-headline .hero-text-wrapper.lang-en .hero-en-line-2 .hero-char {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    -webkit-text-stroke: 0 transparent !important;
    text-stroke: 0 transparent !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
    filter: none !important;
}

.hero-text-wrapper {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Ensure only the visible hero wrapper takes space */
.hero-text-wrapper.hidden {
    display: none !important;
}

/* Arabic version only: show Arabic hero text, hide English */
[dir="rtl"] .hero-headline .hero-text-wrapper.lang-ar {
    display: block !important;
}
[dir="rtl"] .hero-headline .hero-text-wrapper.lang-en {
    display: none !important;
}

/* English version only: show English hero text, hide Arabic */
[dir="ltr"] .hero-headline .hero-text-wrapper.lang-en {
    display: flex !important;
}
[dir="ltr"] .hero-headline .hero-text-wrapper.lang-ar {
    display: none !important;
}

.hero-line {
    display: block;
    white-space: nowrap;
    text-align: center !important;
    line-height: 0.9;
    letter-spacing: 0 !important;
    margin: 0 auto;
    padding: 0;
    word-spacing: 0 !important;
    font-kerning: none;
    width: fit-content;
    max-width: 100%;
    font-size: inherit;
    overflow: visible;
}

.hero-char {
    display: inline;
    opacity: 0;
    transform: translateY(60px) translateZ(0);
    animation: revealChar 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    color: #FFFFFF !important;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    -webkit-text-stroke: 0 transparent;
    text-stroke: 0 transparent;
    letter-spacing: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    word-spacing: 0 !important;
    font-kerning: none;
    position: relative;
    vertical-align: baseline;
    font-feature-settings: "kern" 0;
    will-change: transform, opacity;
}

/* Dynamic delay assignment via JavaScript */
@keyframes revealChar {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Remove spacing for space characters */
.hero-char:empty,
.hero-char:has-text(" ") {
    width: 0.3em;
    display: inline;
}

/* Hero inner wrapper – performance */
#hero .hero-inner {
    contain: layout;
    transform: translateZ(0);
}

/* Enhanced hero section background */
#hero {
    background: 
        radial-gradient(ellipse at center, rgba(238, 43, 123, 0.12) 0%, rgba(10, 10, 10, 1) 70%),
        radial-gradient(ellipse at 30% 20%, rgba(88, 89, 91, 0.08) 0%, transparent 60%);
    position: relative;
    isolation: isolate;
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Additional visual enhancements */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(238, 43, 123, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(88, 89, 91, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: backgroundPulse 15s ease-in-out infinite;
    will-change: opacity;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Micro Typography Labels */
.micro-label {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ============================================
   PORTFOLIO CREATIVE SLIDER (Our Work)
   ============================================ */
.portfolio-section .portfolio-section-label {
    letter-spacing: 0.3em;
}

.portfolio-tabs-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
}
.portfolio-category-tab {
    color: rgba(255, 255, 255, 0.7);
}
.portfolio-category-tab:hover {
    color: white;
}
.portfolio-category-tab.active {
    background: #EE2B7B;
    color: white;
    border-color: transparent;
}

.portfolio-slider-wrapper {
    position: relative;
    padding: 0 2rem;
}
@media (min-width: 768px) {
    .portfolio-slider-wrapper {
        padding: 0 3rem;
    }
}

.portfolio-slider-track {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    cursor: grab;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
}

.portfolio-slider-track:active {
    cursor: grabbing;
}

.portfolio-slider-container {
    display: flex;
    scroll-snap-type: x mandatory;
    width: max-content;
    align-items: center;
    min-width: 0;
}

/* Hide slides that don't match the active category */
.portfolio-slider-wrapper[data-category="social"] .portfolio-slide:not([data-category="social"]) {
    display: none !important;
}
.portfolio-slider-wrapper[data-category="logos"] .portfolio-slide:not([data-category="logos"]) {
    display: none !important;
}
.portfolio-slider-wrapper[data-category="identity"] .portfolio-slide:not([data-category="identity"]) {
    display: none !important;
}

.portfolio-slide {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: transform 0.3s ease;
}

.portfolio-slide-inner {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: relative;
}

.portfolio-section .portfolio-slide-inner {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.portfolio-section .portfolio-slide-inner .absolute.top-0.right-0.w-32 {
    opacity: 0.6;
}

.portfolio-section .portfolio-slide-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.portfolio-section .portfolio-slide-badge span {
    color: white;
}

.portfolio-slide:hover .portfolio-slide-inner {
    transform: scale(1.02) translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(238, 43, 123, 0.2);
    border-color: rgba(238, 43, 123, 0.35);
}
.portfolio-section .portfolio-slide:hover .portfolio-slide-inner {
    border-color: rgba(238, 43, 123, 0.4);
}

.portfolio-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.85) saturate(1.1);
}

.portfolio-slide:hover img {
    transform: scale(1.15);
    filter: brightness(1) saturate(1.2);
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.portfolio-slide:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-content {
    color: white;
    transform: translateY(40px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.portfolio-slide:hover .portfolio-item-content {
    transform: translateY(0);
}

.portfolio-item-content h3 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.portfolio-item-content p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Navigation Buttons */
.portfolio-nav-btn {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.portfolio-nav-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px 0 rgba(238, 43, 123, 0.3);
}

.portfolio-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
}

/* Slider Dots */
.portfolio-dot {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.portfolio-section .portfolio-dot {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}
.portfolio-section .portfolio-dot:hover {
    background: #EE2B7B;
    border-color: #EE2B7B;
}

.portfolio-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(238, 43, 123, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-dot:hover::before {
    opacity: 1;
}

.portfolio-dot.active {
    width: 3rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: #EE2B7B;
    border-color: #EE2B7B;
    box-shadow: 0 0 20px rgba(238, 43, 123, 0.5);
}
.portfolio-section #portfolioDotsContainer {
    margin-top: 2.5rem;
}

.portfolio-dot.active::before {
    opacity: 1;
    background: rgba(238, 43, 123, 0.2);
}

.portfolio-dot:hover {
    background: #EE2B7B;
    transform: scale(1.3);
    border-color: #EE2B7B;
}

/* Hide scrollbar */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Portfolio slide animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.portfolio-slide {
    animation: slideIn 0.6s ease-out forwards;
}

.portfolio-slide:nth-child(1) { animation-delay: 0.1s; }
.portfolio-slide:nth-child(2) { animation-delay: 0.2s; }
.portfolio-slide:nth-child(3) { animation-delay: 0.3s; }
.portfolio-slide:nth-child(4) { animation-delay: 0.4s; }
.portfolio-slide:nth-child(5) { animation-delay: 0.5s; }
.portfolio-slide:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced slide inner effects */
.portfolio-slide-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(238, 43, 123, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-slide:hover .portfolio-slide-inner::before {
    opacity: 1;
}

/* Number badge animation */
.portfolio-slide-inner > div:first-of-type {
    transition: all 0.4s ease;
}

.portfolio-slide:hover .portfolio-slide-inner > div:first-of-type {
    transform: scale(1.1) rotate(5deg);
    background: rgba(238, 43, 123, 0.3);
}

/* ============================================
   SERVICES INTERACTIVE LIST
   ============================================ */
.service-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(238, 43, 123, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:not(.active) {
    opacity: 0.6;
}

.service-item.active {
    opacity: 1;
}

.service-item:hover {
    transform: translateY(-4px);
}

.service-bg-preview {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    opacity: 0.3;
    z-index: 1;
}

/* ============================================
   IMPACT STRIP - CREATIVE STATIC DESIGN
   ============================================ */
.dots-background-impact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    opacity: 0.5;
    background-color: #0A0A0A;
}

.dots-background-whyus {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    opacity: 0.4;
    background-color: #FCF0F2;
}

.dots-background-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    opacity: 0.5;
    background-color: #0A0A0A;
}

.impact-stat {
    position: relative;
}

.impact-stat-inner {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.impact-stat:hover .impact-stat-inner {
    transform: translateY(-12px);
}

.impact-stat::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(238, 43, 123, 0.3), transparent);
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(20px);
}

.impact-stat:hover::before {
    opacity: 1;
}

.impact-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
    line-height: 0.9;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
    text-stroke: 2px rgba(255, 255, 255, 0.15);
    position: relative;
}

.impact-stat:hover .impact-number {
    -webkit-text-stroke: 3px rgba(238, 43, 123, 0.5);
    text-stroke: 3px rgba(238, 43, 123, 0.5);
    filter: drop-shadow(0 0 30px rgba(238, 43, 123, 0.4));
    transform: scale(1.05);
}

.impact-label {
    font-weight: 300;
    transition: all 0.4s ease;
}

/* Stagger animation for stats */
.impact-stat:nth-child(1) {
    animation-delay: 0.1s;
}

.impact-stat:nth-child(2) {
    animation-delay: 0.2s;
}

.impact-stat:nth-child(3) {
    animation-delay: 0.3s;
}

.impact-stat:nth-child(4) {
    animation-delay: 0.4s;
}

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

.impact-stat {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Responsive adjustments for impact stats */
@media (max-width: 768px) {
    .impact-number {
        font-size: clamp(3rem, 15vw, 6rem);
    }
    
    .impact-label {
        font-size: 0.75rem;
    }
    
    .impact-stat-inner {
        padding: 1.5rem;
    }
}

/* ============================================
   WHY US SECTION ENHANCEMENTS
   ============================================ */
.why-us-card {
    position: relative;
}

.why-us-card-inner {
    position: relative;
    transform: translateY(0) scale(1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.why-us-card:hover .why-us-card-inner {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.4);
}

.why-us-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(238, 43, 123, 0.3), rgba(238, 43, 123, 0.1));
    border-radius: 1.75rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(25px);
}

.why-us-card:hover::before {
    opacity: 1;
}

/* Shimmer Effect */
.why-us-shimmer {
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Icon animations */
.why-us-icon {
    will-change: transform;
}

.why-us-card:hover .why-us-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

/* RTL/LTR positioning for icons - Default RTL (Arabic) */
.why-us-icon {
    right: 1.5rem;
    left: auto;
    top: 1.5rem;
}

/* LTR (English) - Icons on left */
[dir="ltr"] .why-us-icon,
body[dir="ltr"] .why-us-icon,
html[dir="ltr"] .why-us-icon {
    left: 1.5rem !important;
    right: auto !important;
    top: 1.5rem !important;
}

/* RTL (Arabic) - Icons on right */
[dir="rtl"] .why-us-icon,
body[dir="rtl"] .why-us-icon,
html[dir="rtl"] .why-us-icon {
    right: 1.5rem !important;
    left: auto !important;
    top: 1.5rem !important;
}

/* Text content spacing to avoid icon overlap */
/* RTL (Arabic) - Add padding-right to text content to avoid icon */
[dir="rtl"] .why-us-card-inner > .relative.z-10,
body[dir="rtl"] .why-us-card-inner > .relative.z-10,
html[dir="rtl"] .why-us-card-inner > .relative.z-10 {
    padding-right: 5rem !important;
    padding-left: 0 !important;
}

/* LTR (English) - Add padding-left to text content to avoid icon */
[dir="ltr"] .why-us-card-inner > .relative.z-10,
body[dir="ltr"] .why-us-card-inner > .relative.z-10,
html[dir="ltr"] .why-us-card-inner > .relative.z-10 {
    padding-left: 5rem !important;
    padding-right: 0 !important;
}

@media (max-width: 768px) {
    /* Smaller spacing on mobile */
    [dir="rtl"] .why-us-card-inner > .relative.z-10,
    body[dir="rtl"] .why-us-card-inner > .relative.z-10,
    html[dir="rtl"] .why-us-card-inner > .relative.z-10 {
        padding-right: 4rem !important;
    }
    
    [dir="ltr"] .why-us-card-inner > .relative.z-10,
    body[dir="ltr"] .why-us-card-inner > .relative.z-10,
    html[dir="ltr"] .why-us-card-inner > .relative.z-10 {
        padding-left: 4rem !important;
    }
    
    .why-us-icon {
        width: 3rem;
        height: 3rem;
    }
}

/* RTL/LTR text padding adjustments - Default RTL (Arabic) */
.why-us-card-inner p {
    padding-right: 1.5rem;
    padding-left: 0;
    border-right: 2px solid rgba(238, 43, 123, 0.1);
    border-left: none;
}

/* LTR (English) - Text padding on left */
[dir="ltr"] .why-us-card-inner p,
body[dir="ltr"] .why-us-card-inner p,
html[dir="ltr"] .why-us-card-inner p {
    padding-left: 1.5rem !important;
    padding-right: 0 !important;
    border-left: 2px solid rgba(238, 43, 123, 0.1) !important;
    border-right: none !important;
}

/* RTL (Arabic) - Text padding on right */
[dir="rtl"] .why-us-card-inner p,
body[dir="rtl"] .why-us-card-inner p,
html[dir="rtl"] .why-us-card-inner p {
    padding-right: 1.5rem !important;
    padding-left: 0 !important;
    border-right: 2px solid rgba(238, 43, 123, 0.1) !important;
    border-left: none !important;
}

[dir="rtl"] .why-us-card-inner p:hover,
body[dir="rtl"] .why-us-card-inner p:hover,
html[dir="rtl"] .why-us-card-inner p:hover {
    border-right-color: rgba(238, 43, 123, 0.3) !important;
}

[dir="ltr"] .why-us-card-inner p:hover,
body[dir="ltr"] .why-us-card-inner p:hover,
html[dir="ltr"] .why-us-card-inner p:hover {
    border-left-color: rgba(238, 43, 123, 0.3) !important;
}

/* Underline positioning for RTL/LTR - Default RTL (Arabic) */
.why-us-card h3 .underline-start {
    right: 0;
    left: auto;
    background: linear-gradient(to left, #EE2B7B, transparent);
}

/* LTR (English) - Underline from left */
[dir="ltr"] .why-us-card h3 .underline-start,
body[dir="ltr"] .why-us-card h3 .underline-start,
html[dir="ltr"] .why-us-card h3 .underline-start {
    left: 0 !important;
    right: auto !important;
    background: linear-gradient(to right, #EE2B7B, transparent) !important;
}

/* RTL (Arabic) - Underline from right */
[dir="rtl"] .why-us-card h3 .underline-start,
body[dir="rtl"] .why-us-card h3 .underline-start,
html[dir="rtl"] .why-us-card h3 .underline-start {
    right: 0 !important;
    left: auto !important;
    background: linear-gradient(to left, #EE2B7B, transparent) !important;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Hide empty badges in English version */
body[dir="ltr"] .why-us-card .absolute.top-6.right-6:empty {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Also hide any empty badge containers */
body[dir="ltr"] .why-us-card-inner > .absolute.top-6.right-6:empty {
    display: none !important;
}

/* Ensure all cards have consistent default appearance - no active state */
.why-us-card:not(:hover) .why-us-card-inner {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.why-us-card:not(:hover) .why-us-shimmer {
    opacity: 0 !important;
}

.why-us-card:not(:hover)::before {
    opacity: 0 !important;
}

/* Ensure consistent card appearance */
.why-us-card {
    will-change: transform;
}

.why-us-card-inner {
    will-change: transform, background-color;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Stagger animation for why us cards */
.why-us-card:nth-child(1) {
    animation-delay: 0.1s;
}

.why-us-card:nth-child(2) {
    animation-delay: 0.2s;
}

.why-us-card:nth-child(3) {
    animation-delay: 0.3s;
}

.why-us-card:nth-child(4) {
    animation-delay: 0.4s;
}

.why-us-card {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Ensure consistent card heights and layout */
#why-us .grid {
    align-items: stretch;
}

.why-us-card {
    display: flex;
    height: 100%;
}

.why-us-card-inner {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

@media (min-width: 768px) {
    .why-us-card-inner {
        min-height: 320px;
    }
}

/* Responsive adjustments for why us */
@media (max-width: 768px) {
    #why-us .grid {
        gap: 1.5rem;
    }
    
    .why-us-card-inner {
        padding: 1.5rem;
        min-height: 240px;
    }
    
    .why-us-card h3 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .why-us-icon {
        width: 3rem;
        height: 3rem;
        top: 1rem !important;
    }
    
    [dir="ltr"] .why-us-icon,
    body[dir="ltr"] .why-us-icon {
        left: 1rem !important;
        right: auto !important;
    }
    
    [dir="rtl"] .why-us-icon,
    body[dir="rtl"] .why-us-icon {
        right: 1rem !important;
        left: auto !important;
    }
    
    .why-us-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .why-us-card-inner p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .why-us-card-inner .w-16 {
        width: 3rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   CONTACT SECTION ENHANCEMENTS
   ============================================ */
.contact-card {
    position: relative;
    text-decoration: none;
    color: inherit;
}

.contact-card-inner {
    position: relative;
    transform: translateY(0) scale(1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover .contact-card-inner {
    transform: translateY(-8px) scale(1.02);
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(238, 43, 123, 0.3), rgba(238, 43, 123, 0.1));
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(25px);
}

.contact-card:hover::before {
    opacity: 1;
}

/* Shimmer Effect */
.contact-shimmer {
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.2) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    pointer-events: none;
}

/* Icon animations */
.contact-icon {
    will-change: transform;
}

.contact-card:hover .contact-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

/* Phone number: show from data-number so it never reverses in RTL */
.contact-number {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;
}
.contact-number::before {
    content: attr(data-number);
    direction: ltr !important;
    unicode-bidi: isolate !important;
}
[dir="rtl"] .contact-number,
[dir="rtl"] .contact-number::before {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;
}

/* Stagger animation for contact cards */
.contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-card {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Responsive adjustments for contact */
@media (max-width: 768px) {
    .contact-card-inner {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .contact-icon svg {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
    position: relative;
}

.footer-social-icon {
    position: relative;
    will-change: transform;
}

.footer-social-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(238, 43, 123, 0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.footer-social-icon:hover::before {
    opacity: 1;
}

.footer-social-icon:hover {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.1);
    }
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    footer {
        padding: 3rem 0;
    }
    
    .footer-social-icon {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .footer-social-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ============================================
   LOGO WORKS MARQUEE
   ============================================ */
/* Add subtle pattern or texture to background */
.logo-works-section {
    background: 
        radial-gradient(circle at 20% 50%, rgba(238, 43, 123, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(88, 89, 91, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #0A0A0A 0%, #0F0F0F 50%, #0A0A0A 100%);
    position: relative;
}

.logo-works-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
    pointer-events: none;
    opacity: 0.3;
}

.logo-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* RTL support for mask gradients */
[dir="rtl"] .logo-marquee-wrapper {
    mask-image: linear-gradient(
        to left,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to left,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

[dir="ltr"] .logo-marquee-wrapper,
body:not([dir]) .logo-marquee-wrapper {
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

/* RTL support for gradient overlays */
[dir="rtl"] .logo-fade-left {
    left: auto;
    right: 0;
    background: linear-gradient(to left, #0F0F0F, transparent);
}

[dir="rtl"] .logo-fade-right {
    right: auto;
    left: 0;
    background: linear-gradient(to right, #0F0F0F, transparent);
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    width: max-content;
    will-change: transform;
}

.logo-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.4s ease, transform 0.4s ease;
    position: relative;
}

.logo-marquee-item::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(238, 43, 123, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
    z-index: -1;
}

.logo-marquee-item:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.15);
}

.logo-marquee-item:hover::before {
    opacity: 1;
}

.logo-marquee-item img {
    max-width: none;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide empty/broken logos in English version */
body[dir="ltr"] .logo-marquee-item img[src=""],
body[dir="ltr"] .logo-marquee-item img:not([src]),
.logo-marquee-item[style*="display: none"] {
    display: none !important;
}

.logo-marquee-item[style*="visibility: hidden"] {
    visibility: hidden !important;
    display: none !important;
}

/* Responsive adjustments for logo marquee */
@media (max-width: 768px) {
    .logo-marquee-track {
        gap: 3rem;
    }
    
    .logo-marquee-item {
        padding: 0 1rem;
    }
    
    [dir="rtl"] .logo-marquee-wrapper {
        mask-image: linear-gradient(
            to left,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
        -webkit-mask-image: linear-gradient(
            to left,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
    }
    
    [dir="ltr"] .logo-marquee-wrapper,
    body:not([dir]) .logo-marquee-wrapper {
        mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
    }
}

/* ============================================
   PAGE LOADER
   ============================================ */
#pageLoader {
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   LAZY LOADING
   ============================================ */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[data-src].loaded {
    opacity: 1;
}

/* ============================================
   SECTION FADE ANIMATIONS
   ============================================ */
.section-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #EE2B7B;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #EE2B7B;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize rendering */
.why-us-card,
.contact-card,
.portfolio-slide {
    contain: layout style paint;
}

/* GPU acceleration for smooth animations */
.why-us-card-inner,
.contact-card-inner,
.portfolio-slide-inner {
    transform: translateZ(0);
    will-change: transform;
}

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */
/* Smooth hover transitions */
.nav-link,
.contact-card,
.why-us-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(238, 43, 123, 0.2);
    z-index: 10000;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease-out;
}

/* ============================================
   ERROR HANDLING
   ============================================ */
/* Image error fallback */
img {
    object-fit: cover;
}

img[onerror] {
    opacity: 0.5;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   ABOUT SECTION ENHANCEMENTS
   ============================================ */
#about {
    position: relative;
}

/* Intro text box */
#about .about-intro-box {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

#about .about-intro-box:hover {
    box-shadow: 0 20px 60px rgba(238, 43, 123, 0.08);
    border-color: rgba(238, 43, 123, 0.2);
}

/* Horizontal stat cards */
.about-stat-card {
    min-height: 160px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-stat-card:hover {
    background: rgba(255, 255, 255, 0.55);
}

/* Three pillars: horizontal outstanding cards */
.about-pillar-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 280px;
}

.about-pillars .about-pillar-card:nth-child(1) { animation-delay: 0.1s; }
.about-pillars .about-pillar-card:nth-child(2) { animation-delay: 0.2s; }
.about-pillars .about-pillar-card:nth-child(3) { animation-delay: 0.3s; }

/* RTL: number badge top-right; LTR: number badge top-left */
[dir="ltr"] .about-pillar-num,
body[dir="ltr"] .about-pillar-num {
    right: auto;
    left: 1.5rem;
}

/* Glass effect */
#about .backdrop-blur-xl {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

@media (max-width: 768px) {
    .about-stat-card {
        min-height: 140px;
    }
    .about-pillar-card {
        min-height: 260px;
    }
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-ar {
    display: inline;
}

.lang-en {
    display: none;
}

body[dir="ltr"] .lang-ar {
    display: none;
}

body[dir="ltr"] .lang-en {
    display: inline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-headline {
        font-size: clamp(3.5rem, 16vw, 8rem);
    }
    
    .hero-headline .hero-text-wrapper.lang-en {
        font-size: clamp(3.25rem, 14vw, 7.5rem) !important;
    }
    .hero-headline .hero-text-wrapper.lang-en .hero-en-line-2 .hero-char {
        letter-spacing: 0.04em !important;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    
    .cursor-dot,
    .cursor-trail {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */
nav {
    transition: all 0.3s ease;
}

nav .absolute {
    background: rgba(10, 10, 10, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

nav.scrolled {
    background-color: transparent;
}

nav.scrolled .absolute {
    background: rgba(10, 10, 10, 0.6) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.nav-link {
    position: relative;
    overflow: visible;
    transition: color 0.3s ease;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #EE2B7B;
    transition: width 0.3s ease;
}

.nav-link:hover .nav-underline,
.nav-link.text-white .nav-underline {
    width: 100%;
}

/* Mobile Menu Animation */
#mobileMenuBtn {
    cursor: pointer;
    padding: 8px;
}

#mobileMenuBtn.active #menuLine1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active #menuLine2 {
    opacity: 0;
}

#mobileMenuBtn.active #menuLine3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Slide Animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Ensure smooth scrolling works */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ============================================
   RESPONSIVE STABILITY (overflow, layout, touch)
   ============================================ */

/* Safe area for notched devices */
:root {
    --safe-top: env(safe-area-inset-top, 0);
    --safe-right: env(safe-area-inset-right, 0);
    --safe-bottom: env(safe-area-inset-bottom, 0);
    --safe-left: env(safe-area-inset-left, 0);
}

/* Prevent horizontal overflow from flex/grid children */
.container {
    width: 100%;
    max-width: 100%;
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
}
@media (min-width: 640px) {
    .container {
        padding-left: max(1.5rem, var(--safe-left));
        padding-right: max(1.5rem, var(--safe-right));
    }
}
@media (min-width: 768px) {
    .container {
        padding-left: max(2rem, var(--safe-left));
        padding-right: max(2rem, var(--safe-right));
    }
}
@media (min-width: 1024px) {
    .container {
        padding-left: max(2rem, var(--safe-left));
        padding-right: max(2rem, var(--safe-right));
    }
}
@media (min-width: 1280px) {
    .container {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Flex/grid children can shrink and don't force overflow */
.flex > *,
.grid > * {
    min-width: 0;
}

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

/* Fix for mobile scroll + touch */
@media (max-width: 768px) {
    html.lenis {
        height: auto;
    }
    
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-left: var(--safe-left);
        padding-right: var(--safe-right);
    }
    
    /* Hero mobile: 3D image in front, smaller text */
    .hero-headline {
        z-index: 1;
        font-size: clamp(2.25rem, 12vw, 6rem);
        padding: 0 0.5rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) translateZ(0) !important;
        max-width: 100vw;
    }
    #hero .logo-3d-container {
        z-index: 2;
    }
    
    .hero-headline .hero-text-wrapper.lang-ar .hero-line {
        font-size: 1em;
    }
    
    .hero-headline .hero-text-wrapper.lang-en {
        font-size: clamp(2.5rem, 11vw, 6rem) !important;
    }
    
    .hero-headline .hero-text-wrapper.lang-en .hero-en-line-2 .hero-char,
    .hero-headline .hero-text-wrapper.lang-en .hero-en-line-1 .hero-char {
        letter-spacing: 0.02em !important;
    }
    
    /* Allow hero line to wrap on very small screens to prevent overflow */
    .hero-line {
        white-space: normal;
        word-break: keep-all;
    }
    @media (min-width: 380px) {
        .hero-line {
            white-space: nowrap;
        }
    }
    
    .logo-3d-container {
        width: 55vw;
        min-width: 140px;
        max-width: 260px;
    }
    
    .logo-3d-container img {
        max-width: 100%;
    }
    
    /* Stronger hero background on mobile so it doesn’t feel empty */
    #hero {
        background: 
            radial-gradient(ellipse 120% 80% at 50% 20%, rgba(238, 43, 123, 0.22) 0%, transparent 50%),
            radial-gradient(ellipse 80% 120% at 50% 85%, rgba(88, 89, 91, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at center, rgba(238, 43, 123, 0.08) 0%, rgba(10, 10, 10, 1) 75%);
    }
    #hero::before {
        opacity: 0.95;
    }
    
    /* More visible orbs on mobile */
    #hero .orb-1 {
        opacity: 0.35;
        width: 280px;
        height: 280px;
    }
    #hero .orb-2 {
        opacity: 0.25;
    }
    #hero .orb-3 {
        opacity: 0.35;
    }
    
    /* Dots background slightly more visible on mobile */
    #hero .dots-background {
        opacity: 0.7;
    }
    
    /* Micro labels more visible on mobile */
    #hero .micro-label {
        color: rgba(255, 255, 255, 0.5);
        font-size: 11px;
    }
    
    /* Portfolio: reduce padding so slider doesn't push layout */
    .portfolio-slider-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .portfolio-slider-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .portfolio-slide {
        flex: 0 0 auto;
        width: min(85vw, calc(100vw - 2rem));
    }
    
    .portfolio-slide-inner {
        height: min(75vh, 420px);
        min-height: 280px;
    }
    
    /* Section padding consistency */
    section {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Nav mobile: safe area + touch targets */
    nav {
        padding-top: var(--safe-top);
    }
    nav .container {
        padding-left: max(1rem, var(--safe-left));
        padding-right: max(1rem, var(--safe-right));
    }
}

/* Tablet (640px–768px): 3D in front, bigger text */
@media (min-width: 640px) and (max-width: 768px) {
    .hero-headline {
        font-size: clamp(3.25rem, 14vw, 7.5rem);
    }
    .hero-headline .hero-text-wrapper.lang-en {
        font-size: clamp(3.25rem, 13vw, 7rem) !important;
    }
    .logo-3d-container {
        width: 50vw;
        min-width: 150px;
        max-width: 260px;
    }
    .portfolio-slide {
        width: min(75vw, calc(100vw - 3rem));
    }
    .portfolio-slide-inner {
        height: min(70vh, 400px);
        min-height: 260px;
    }
}

/* Touch targets: min 44px on touch-capable narrow viewports */
@media (max-width: 768px) {
    .nav-link,
    #mobileMenuBtn,
    .portfolio-category-tab,
    .portfolio-nav-btn,
    .portfolio-dot {
        min-height: 44px;
        min-width: 44px;
    }
    #mobileMenuBtn {
        padding: 12px;
    }
    .portfolio-category-tab {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Landscape phones: 3D in front, smaller text */
@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    #hero .hero-inner {
        min-height: 100vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .hero-headline {
        font-size: clamp(2rem, 10vw, 4.5rem);
    }
    .hero-headline .hero-text-wrapper.lang-en {
        font-size: clamp(2.35rem, 9.5vw, 5rem) !important;
    }
    .logo-3d-container {
        width: 45vw;
        min-width: 120px;
        max-width: 200px;
    }
    .portfolio-slide-inner {
        height: min(65vh, 320px);
        min-height: 220px;
    }
}

/* Extra small screens: 3D in front, smaller text */
@media (max-width: 380px) {
    .hero-headline {
        font-size: clamp(2rem, 11vw, 5.5rem);
    }
    .hero-headline .hero-text-wrapper.lang-en {
        font-size: clamp(2rem, 9vw, 4.75rem) !important;
    }
    .logo-3d-container {
        width: 52vw;
        min-width: 120px;
        max-width: 220px;
    }
    .portfolio-tabs-wrap {
        width: 100%;
    }
    .portfolio-category-tab {
        flex: 1;
        min-width: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Portfolio slider: prevent track from causing page overflow */
#portfolio {
    overflow-x: hidden;
}

.portfolio-slider-track {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Stable section heights on small viewports */
@media (max-height: 600px) and (max-width: 768px) {
    .portfolio-slide-inner {
        height: 60vh;
        min-height: 240px;
    }
}

/* Section headings: responsive scaling across breakpoints */
@media (max-width: 640px) {
    #about h2,
    #services h2,
    #impact h2,
    #why-us h2,
    #contact h2 {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }
}
@media (min-width: 640px) and (max-width: 768px) {
    #about h2,
    #services h2,
    #impact h2,
    #why-us h2,
    #contact h2 {
        font-size: clamp(3rem, 12vw, 4.5rem);
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    #about h2,
    #services h2,
    #impact h2,
    #why-us h2,
    #contact h2 {
        font-size: clamp(4rem, 10vw, 6rem);
    }
}

/* Prevent text size adjustment on orientation change (iOS) */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
