:root {
    --bg-dark: #020611;
    --primary: #4a90e2;
    --primary-glow: rgba(74, 144, 226, 0.4);
    --soft-blue-glow: rgba(58, 120, 191, 0.5);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.015);
    --glass-border: rgba(255, 255, 255, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.font-poppins {
    font-family: 'Poppins', 'Cairo', sans-serif;
}

.font-cairo {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top center, #0a1930 0%, var(--bg-dark) 100%);
    color: var(--text-main);
    position: relative;
    font-family: 'Poppins', 'Cairo', sans-serif;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.film-grain {
    display: none !important;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 10000;
    transition: transform 0.08s ease-out;
    box-shadow: 0 0 15px var(--primary);
    will-change: transform;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10001;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(74, 144, 226, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    will-change: width, height, transform;
}

.cursor-outline.hover-active {
    width: 60px;
    height: 60px;
    background-color: rgba(74, 144, 226, 0.1);
    border-color: transparent;
}

.interactive-bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.16) 0%, rgba(74, 144, 226, 0.05) 45%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate3d(-1000px, -1000px, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: strict;
}

html.lenis,
html.lenis body,
.lenis.lenis-smooth,
.lenis.lenis-smooth body {
    height: auto;
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped,
.lenis.lenis-stopped body {
    overflow: hidden;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.background-orbs {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.2) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(0, 31, 77, 0.35) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(2%, 4%, 0); }
    100% { transform: translate3d(-2%, -3%, 0); }
}

/* ========================================================= */
/* 1. شاشة ما قبل الدخول: Magnetic Glass Monolith */
/* ========================================================= */
.enter-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: all !important;
}

.liquid-bg-glow {
    position: absolute;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(15px);
    will-change: transform, opacity;
    animation: pulseLiquid 6s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes pulseLiquid {
    0% { transform: scale(0.9) rotate(0deg); opacity: 0.6; }
    100% { transform: scale(1.1) rotate(10deg); opacity: 1; }
}

.enter-content-glass {
    position: relative;
    z-index: 10;
    perspective: 1000px;
    pointer-events: auto !important;
}

.glass-monolith-btn {
    position: relative;
    background: linear-gradient(145deg, rgba(2, 6, 17, 0.4), rgba(74, 144, 226, 0.05));
    border: 1px solid rgba(74, 144, 226, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px 60px;
    border-radius: 15px;
    color: white;
    cursor: pointer !important;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(74, 144, 226, 0.1);
    pointer-events: auto !important;
    z-index: 10;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

.glass-monolith-btn:hover {
    border-color: rgba(74, 144, 226, 0.8);
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.4), inset 0 0 40px rgba(74, 144, 226, 0.2);
    transform: scale(1.05) translateY(-5px);
}

.glass-monolith-btn:hover .btn-glow {
    width: 200px;
    height: 200px;
    opacity: 0.4;
}

.glass-monolith-btn .btn-text {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ========================================================= */
/* 2. الدخلة السينمائية: The Cyan Ink Morph (ZERO LAG 60FPS) */
/* ========================================================= */
.epic-intro {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateZ(0);
    will-change: opacity, transform;
}

.epic-intro.play-animation {
    opacity: 1;
    pointer-events: all;
    animation: finalFadeOut 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 4.3s; 
}

/* 2.1 موجات السيان الانسيابية الفائقة (Hardware-Accelerated Fluid Ripples) */
.cyan-ripple-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    overflow: hidden;
}

.cyan-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(140px, 24vw, 240px);
    height: clamp(140px, 24vw, 240px);
    border-radius: 50%;
    border: 1.5px solid rgba(74, 144, 226, 0.75);
    background: radial-gradient(circle, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.02) 45%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
    will-change: transform, opacity;
    pointer-events: none;
    backface-visibility: hidden;
}

.epic-intro.play-animation .cyan-ripple.r1 {
    animation: rippleExpandSmooth 2.0s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.epic-intro.play-animation .cyan-ripple.r2 {
    border-color: rgba(96, 165, 250, 0.6);
    animation: rippleExpandSmooth 2.0s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
}

/* 2.2 ظهور اللوجو الانسيابي السلس */
.epic-intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-morph-wrapper {
    position: relative;
    width: clamp(250px, 40vw, 500px);
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.92);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.epic-intro.play-animation .logo-morph-wrapper {
    animation: logoRevealSmooth 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.morph-logo-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 12px 28px rgba(74, 144, 226, 0.38));
    will-change: transform, opacity;
}

/* 2.3 لمعة الضوء الناعمة الخفيفة بعد ظهور الشعار (Soft Luminous Specular Sweep) */
.logo-light-sweep {
    position: absolute;
    inset: 0;
    z-index: 3;
    -webkit-mask-image: url('logo.png');
    mask-image: url('logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
    overflow: hidden;
}

.logo-light-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 25%,
        rgba(255, 255, 255, 0.18) 42%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(74, 144, 226, 0.4) 58%,
        transparent 75%
    );
    transform: skewX(-20deg);
    will-change: transform, opacity;
    pointer-events: none;
    opacity: 0;
}

/* تبدأ اللمعة الخفيفة بعد استقرار الشعار مباشرة عند 2.2 ثانية وتستمر بانسيابية تامة */
.epic-intro.play-animation .logo-light-sweep::after {
    animation: sweepShineSmooth 1.35s cubic-bezier(0.25, 1, 0.5, 1) forwards 2.2s;
}

/* --------------------------------------------------- */
/* Keyframes 60FPS فائقة الانسيابية (Zero CPU Thrash) */
/* --------------------------------------------------- */
@keyframes rippleExpandSmooth {
    0% {
        transform: translate(-50%, -50%) scale(0.25);
        opacity: 0.85;
    }
    45% {
        opacity: 0.55;
    }
    100% {
        transform: translate(-50%, -50%) scale(6.5);
        opacity: 0;
    }
}

@keyframes logoRevealSmooth {
    0% {
        opacity: 0;
        transform: translate3d(0, 24px, 0) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes sweepShineSmooth {
    0% {
        transform: translateX(0) skewX(-20deg);
        opacity: 0;
    }
    18% {
        opacity: 1;
    }
    82% {
        opacity: 1;
    }
    100% {
        transform: translateX(350%) skewX(-20deg);
        opacity: 0;
    }
}

@keyframes finalFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: scale(1.03);
    }
}

@media (max-width: 768px) {
    .cyan-ripple {
        width: clamp(100px, 28vw, 160px);
        height: clamp(100px, 28vw, 160px);
    }
    .logo-morph-wrapper {
        width: clamp(220px, 75vw, 360px);
    }
    .hero-cinematic-backdrop {
        width: 420px;
        height: 490px;
        background: radial-gradient(
            ellipse at center,
            rgba(74, 144, 226, 0.82) 0%,
            rgba(37, 99, 235, 0.52) 30%,
            rgba(14, 165, 233, 0.3) 50%,
            rgba(15, 35, 120, 0.12) 68%,
            transparent 78%
        );
    }
}
/* ========================================================= */
/* باقي الموقع (كما هو دون أي مساس) */
/* ========================================================= */
.main-site {
    opacity: 0;
    transition: opacity 2s ease;
}

.main-site.show-site {
    opacity: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(2, 6, 17, 0.95) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.nav-logo-img {
    height: 60px;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 700;
}

.lang-btn:hover {
    background: white;
    color: var(--bg-dark);
}

.header-spacer {
    width: 100%;
    height: 100px;
}

.coverflow-container {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    perspective: 1500px;
    margin-bottom: 50px;
    overflow: visible;
}

.coverflow-container:active {
    cursor: grabbing;
}

.coverflow-track {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform-style: preserve-3d;
    transition: transform 0.1s;
    will-change: transform;
}

.cf-item {
    width: 500px;
    height: 320px;
    border-radius: 22px;
    position: absolute;
    left: -250px;
    transform-origin: center center;
    transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.55s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(74, 144, 226, 0.15);
    background: rgba(12, 18, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 7px;
    user-select: none;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, opacity;
    cursor: pointer;
}

/* Glass shine / shimmer light beam */
.cf-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255, 255, 255, 0.08) 35%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(74, 144, 226, 0.4) 55%,
        transparent 70%
    );
    transform: skewX(-24deg);
    pointer-events: none;
    z-index: 10;
    border-radius: 22px;
}

/* Glass glint animation triggered when intro ends */
.cf-item.glass-shimmer::before {
    animation: glassGlint 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Inner glass highlight border */
.cf-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 -1px 2px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 9;
}

@keyframes glassGlint {
    0% { left: -150%; opacity: 0; }
    25% { opacity: 1; }
    100% { left: 220%; opacity: 0; }
}

.cf-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    pointer-events: none;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.drag-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    pointer-events: none;
    font-weight: 600;
    white-space: nowrap;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 5vw, 90px);
    max-width: 1550px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(35px, 5vh, 65px) clamp(24px, 5vw, 80px);
    position: relative;
    min-height: calc(100vh - 110px);
    scroll-margin-top: 110px;
}

.hero-content {
    flex: 1.25;
    max-width: 820px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-personal-intro {
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.88rem, 1vw, 1rem);
    color: #60a5fa;
    background: rgba(74, 144, 226, 0.08);
    border: 1px solid rgba(74, 144, 226, 0.22);
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.hero-personal-name {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    margin-bottom: 12px;
    line-height: 1.28;
    padding-bottom: 0.16em;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 45%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero-title {
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    line-height: 1.45;
    margin-bottom: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title span {
    color: #3b82f6;
    font-style: italic;
    font-weight: 800;
}

.hero-personal-description {
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.75;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 24px;
    max-width: 620px;
}

.hero-personal-description:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.reveal-wrap.hero-btn-wrap,
.hero-btn-wrap {
    overflow: visible !important;
    display: inline-block;
    width: 100%;
    margin-top: 8px;
    padding-bottom: 35px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(74, 144, 226, 0.45);
    color: white;
    padding: 12px 14px 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(74, 144, 226, 0.2);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}

.hero-btn:hover::before {
    width: 100%;
}

.hero-btn:hover {
    border-color: transparent;
    box-shadow: 0 16px 36px var(--primary-glow), 0 0 25px rgba(74, 144, 226, 0.35);
    transform: translateY(-3px);
}

.btn-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    z-index: 2;
    transition: color 0.4s;
}

.hero-btn:hover .btn-text {
    color: white;
}

.btn-icon {
    background: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: white;
    z-index: 2;
}

.hero-btn:hover .btn-icon {
    background: white;
    color: var(--primary);
    transform: translateX(5px) rotate(45deg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.hero-image-container {
    flex: 0.95;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1200px;
}

.profile-card {
    width: clamp(360px, 28vw, 480px);
    height: clamp(470px, 35vw, 590px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(8, 14, 28, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 40px;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 45px rgba(74, 144, 226, 0.32);
    will-change: transform;
    cursor: none;
}

/* إضاءة سينمائية فخمة وراء صورة الهيرو (Volumetric Cinematic Backdrop Halo) */
.hero-cinematic-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(520px, 48vw, 780px);
    height: clamp(560px, 52vw, 840px);
    transform: translate(-50%, -50%) scale(0.95);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(74, 144, 226, 0.85) 0%,
        rgba(37, 99, 235, 0.55) 30%,
        rgba(14, 165, 233, 0.35) 50%,
        rgba(15, 35, 120, 0.15) 68%,
        transparent 78%
    );
    pointer-events: none;
    z-index: 1;
    animation: heroAuraBreath 5s infinite alternate ease-in-out;
    will-change: transform, opacity;
}

@keyframes heroAuraBreath {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

/* إضاءة حواف استوديو جانبية حادة ثلاثية الأبعاد (Studio Rim Glow) */
.hero-rim-glow {
    position: absolute;
    inset: -4px;
    border-radius: 44px;
    background: linear-gradient(
        135deg,
        rgba(147, 197, 253, 0.95) 0%,
        rgba(59, 130, 246, 0.35) 25%,
        transparent 50%,
        rgba(59, 130, 246, 0.3) 75%,
        rgba(147, 197, 253, 0.85) 100%
    );
    box-shadow: 0 0 35px rgba(74, 144, 226, 0.65), inset 0 0 20px rgba(130, 210, 255, 0.4);
    transform: translateZ(-15px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-card:hover .hero-rim-glow {
    opacity: 1;
    transform: translateZ(-20px) scale(1.02);
    box-shadow: 0 0 45px rgba(74, 144, 226, 0.85);
}

.profile-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.35) 0%, rgba(20, 50, 110, 0.15) 45%, transparent 70%);
    top: 0;
    left: 0;
    transform: translateZ(-30px);
    border-radius: 40px;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-card:hover .profile-glow {
    background: radial-gradient(circle at 50% 50%, var(--soft-blue-glow) 0%, transparent 80%);
    transform: translateZ(-60px) scale(1.15);
    opacity: 0.85;
    animation: pulseBlueGlow 2.5s infinite alternate ease-in-out;
}

@keyframes pulseBlueGlow {
    0% { opacity: 0.7; }
    100% { opacity: 0.95; }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 36px;
    transform: translateZ(50px);
    filter: contrast(108%) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    transition: transform 0.3s ease-out;
}

.profile-card:hover .profile-img {
    transform: translateZ(90px) scale(1.02);
}

.marquee-section {
    padding: 32px 0;
    border-top: 1px solid rgba(74, 144, 226, 0.15);
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    overflow: hidden;
    background: rgba(2, 6, 17, 0.7);
    position: relative;
}

.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(50px, 8vw, 120px);
    z-index: 3;
    pointer-events: none;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
    will-change: transform;
    pointer-events: none;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-content span {
    font-size: 2.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
    letter-spacing: 2px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.marquee-content span .dot {
    color: var(--primary);
    -webkit-text-stroke: 0;
    margin: 0 25px;
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--primary);
}

@keyframes scrollMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.reveal-wrap {
    overflow: hidden;
    display: inline-block;
    width: 100%;
    padding-bottom: 6px;
    margin-bottom: -6px;
}

.reveal-wrap.hero-btn-wrap {
    overflow: visible !important;
    padding-bottom: 35px;
    margin-bottom: 0;
}

.fade-in-up {
    opacity: 0;
    transform: translate3d(0, 60px, 0);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.scale-up {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.85);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.show-element {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

.section-container {
    padding: 100px 10%;
    max-width: 1500px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 60px;
    text-align: center;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-weight: 900;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    perspective: 1500px;
}

.card-deep-3d {
    background: transparent;
    height: 350px;
    perspective: 1500px;
    cursor: crosshair;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    background: linear-gradient(145deg, rgba(16, 28, 52, 0.88), rgba(4, 9, 20, 0.96));
    border: 1px solid rgba(74, 144, 226, 0.18);
    border-radius: 30px;
    padding: 40px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    will-change: transform;
}

.card-glare {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: overlay;
    z-index: 1;
}

.card-deep-3d:hover .card-inner {
    box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.8);
    border-color: rgba(74, 144, 226, 0.3);
    transition: transform 0.1s ease-out, box-shadow 0.3s, border-color 0.3s;
}

.card-inner>span,
.card-inner>h3,
.card-inner>h4,
.card-inner>p {
    transform: translateZ(30px);
    transition: transform 0.3s ease-out;
    position: relative;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

.card-deep-3d:hover .card-inner>span,
.card-deep-3d:hover .card-inner>h3,
.card-deep-3d:hover .card-inner>h4,
.card-deep-3d:hover .card-inner>p {
    transform: translateZ(70px);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.card-inner .date {
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
    font-weight: 700;
}

.card-inner h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    line-height: 1.2;
    font-weight: 700;
}

.card-inner .company {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.8;
    font-weight: 600;
}

.card-inner p {
    color: #d0d0d0;
    line-height: 1.6;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.4s;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    contain: content;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    background: #081120;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0%, rgba(74, 144, 226, 0.08) 50%, rgba(255, 255, 255, 0.01) 100%);
    background-size: 200% 100%;
    animation: portfolioShimmer 1.8s infinite linear;
}

@keyframes portfolioShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.portfolio-item.img-loaded {
    animation: none;
    background: #081120;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s;
    filter: brightness(0.8);
    will-change: transform, filter, opacity;
}

.portfolio-img.loaded {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.5s;
    will-change: opacity;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
    filter: brightness(1);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    transform: translate3d(0, 30px, 0);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translate3d(0, 0, 0);
}

.click-hint {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(14, 22, 40, 0.85) 0%, rgba(7, 11, 22, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 26px 26px 26px;
    border-radius: 22px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.4s ease;
    contain: content;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    opacity: 0.7;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: rgba(74, 144, 226, 0.35);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6), 0 0 25px rgba(74, 144, 226, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonial-client-name {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.testimonial-client-role {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 6px;
}

.testimonial-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: #f59e0b;
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.35));
}

.testimonial-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    flex-shrink: 0;
}

.testimonial-quote-icon {
    position: absolute;
    top: 22px;
    right: 22px;
    opacity: 0.12;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

html[dir="rtl"] .testimonial-quote-icon {
    right: auto;
    left: 22px;
}

.testimonial-card:hover .testimonial-quote-icon {
    opacity: 0.22;
}

.testimonial-body {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

.testimonial-text {
    color: #e2e8f0;
    line-height: 1.85;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.premium-form {
    background: linear-gradient(145deg, rgba(10, 15, 30, 0.6), rgba(3, 7, 15, 0.8));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 50px;
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 650px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.form-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.15;
    top: -50px;
    left: -50px;
    pointer-events: none;
    border-radius: 50%;
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input:not([type="file"]),
.input-group textarea,
.custom-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: white;
    font-size: 1rem;
    padding: 20px;
    border-radius: 15px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: 'Poppins', 'Cairo', sans-serif;
    font-weight: 600;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.input-group label:not(.custom-file-upload) {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.input-group input:not([type="file"]):focus,
.input-group textarea:focus,
.custom-select:focus {
    border-color: var(--primary);
    background: rgba(74, 144, 226, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(74, 144, 226, 0.15);
}

.input-group input:not([type="file"]):focus~label,
.input-group textarea:focus~label,
.input-group input:not([type="file"]):not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -12px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--primary);
    background: #0a1120;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

#reviewForm {
    overflow: visible;
}

.rating-input-group {
    position: relative;
    z-index: 30;
    margin-bottom: 35px;
}

.sr-only-rating {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.custom-rating-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.rating-trigger-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 1rem;
    padding: 18px 22px;
    border-radius: 16px;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s ease;
    font-family: inherit;
    font-weight: 600;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.rating-trigger-btn:hover {
    border-color: rgba(74, 144, 226, 0.45);
    background: rgba(74, 144, 226, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 18px rgba(74, 144, 226, 0.15);
}

.custom-rating-dropdown.is-open .rating-trigger-btn,
.rating-trigger-btn:focus-visible {
    border-color: var(--primary);
    background: rgba(74, 144, 226, 0.08);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 22px rgba(74, 144, 226, 0.25);
}

@keyframes ratingShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.rating-trigger-btn.trigger-shake {
    animation: ratingShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: #ff4757 !important;
    box-shadow: 0 0 22px rgba(255, 71, 87, 0.4) !important;
}

.trigger-content-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sparkle-star {
    fill: #ffb800;
    filter: drop-shadow(0 0 6px rgba(255, 184, 0, 0.6));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-rating-dropdown.is-open .sparkle-star {
    transform: scale(1.2) rotate(15deg);
}

.trigger-label {
    font-size: 0.98rem;
    color: #e2e8f0;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trigger-selected-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.trigger-selected-stars svg {
    width: 15px;
    height: 15px;
    fill: #ffb800;
    filter: drop-shadow(0 0 4px rgba(255, 184, 0, 0.6));
}

.trigger-arrow-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    margin-inline-start: 10px;
    flex-shrink: 0;
}

.custom-rating-dropdown.is-open .trigger-arrow-wrap {
    transform: rotate(180deg);
    color: var(--primary);
}

.rating-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(165deg, rgba(8, 14, 30, 0.98), rgba(3, 7, 16, 0.98));
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.88),
                0 0 30px rgba(74, 144, 226, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: top center;
    transform: translateY(-8px) scale(0.97) rotateX(-5deg);
    transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    overflow: hidden;
}

.custom-rating-dropdown.is-open .rating-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1) rotateX(0);
}

.rating-menu-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.25) 0%, transparent 70%);
    top: -60px;
    left: -40px;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(25px);
}

.rating-opt {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
    outline: none;
    gap: 14px;
    background: transparent;
    border: 1px solid transparent;
    margin-bottom: 4px;
    opacity: 0;
    transform: translateY(-6px);
}

.rating-opt:last-child {
    margin-bottom: 0;
}

.custom-rating-dropdown.is-open .rating-opt {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s ease,
                border-color 0.2s ease;
}

.custom-rating-dropdown.is-open .rating-opt:nth-child(2) { transition-delay: 0.02s; }
.custom-rating-dropdown.is-open .rating-opt:nth-child(3) { transition-delay: 0.05s; }
.custom-rating-dropdown.is-open .rating-opt:nth-child(4) { transition-delay: 0.08s; }
.custom-rating-dropdown.is-open .rating-opt:nth-child(5) { transition-delay: 0.11s; }
.custom-rating-dropdown.is-open .rating-opt:nth-child(6) { transition-delay: 0.14s; }

.rating-opt:hover,
.rating-opt:focus-visible {
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.16), rgba(74, 144, 226, 0.04));
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateX(-4px);
}

html[dir="ltr"] .rating-opt:hover,
html[dir="ltr"] .rating-opt:focus-visible {
    transform: translateX(4px);
}

.rating-opt.is-selected {
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.22), rgba(74, 144, 226, 0.07));
    border-color: rgba(74, 144, 226, 0.45);
}

.opt-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rating-opt:hover .opt-stars {
    transform: scale(1.08);
}

.opt-stars svg {
    width: 17px;
    height: 17px;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.opt-stars .star-active {
    fill: #ffb800;
    filter: drop-shadow(0 0 3px rgba(255, 184, 0, 0.5));
}

.rating-opt:hover .opt-stars .star-active {
    filter: drop-shadow(0 0 6px rgba(255, 184, 0, 0.8));
}

.opt-stars .star-inactive {
    fill: rgba(255, 255, 255, 0.14);
}

.opt-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: 0.2px;
    text-align: start;
}

.opt-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
    border: 1px solid rgba(74, 144, 226, 0.25);
    flex-shrink: 0;
}

.opt-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.rating-opt.is-selected .opt-check {
    opacity: 1;
    transform: scale(1);
}

.double-upload-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.file-upload-group {
    flex: 1;
}

.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s;
    width: 100%;
    text-align: center;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
}

.custom-file-upload:hover .avatar-placeholder {
    border-color: var(--primary);
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.2);
}

.custom-file-upload span[id^="rev"] {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.custom-file-upload:hover span[id^="rev"] {
    color: white;
}

.file-upload-label-active .avatar-placeholder {
    border: 1px solid #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.file-upload-label-active span[id^="rev"] {
    color: #25D366;
}

.premium-submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--primary), #2b6cb0);
    border: none;
    color: white;
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
    transition: all 0.4s;
}

.premium-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.5);
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25D366, #1da851);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.exit-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hidden-modal {
    opacity: 0;
    pointer-events: none;
}

.exit-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.hidden-modal .exit-content {
    transform: scale(0.8) translateY(50px);
}

.exit-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s infinite;
    text-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.exit-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.cta-button {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.primary-btn:hover {
    background: transparent;
    color: var(--primary);
}

.outline-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.outline-btn:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
    color: white;
}

.social-sidebar {
    position: fixed;
    left: 30px;
    bottom: 35px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: auto;
}

.social-sidebar.show-site {
    opacity: 1;
}

.social-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    z-index: 2;
}

.social-toggle-btn:hover {
    background: white;
    color: var(--bg-dark);
    border-color: white;
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.social-toggle-btn svg {
    stroke: currentColor;
    transition: transform 0.35s ease;
}

.social-toggle-btn .toggle-icon-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-toggle-btn .toggle-icon-close {
    display: none;
    align-items: center;
    justify-content: center;
}

.social-sidebar.is-open .social-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.social-sidebar.is-open .social-toggle-btn .toggle-icon-open {
    display: none;
}

.social-sidebar.is-open .social-toggle-btn .toggle-icon-close {
    display: flex;
}

.social-icons-tray {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    opacity: 0;
    max-height: 0;
    transform: translateY(12px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.35s ease;
    overflow: hidden;
}

.social-sidebar.is-open .social-icons-tray {
    opacity: 1;
    max-height: 380px;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    overflow: visible;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

.social-icon:hover {
    background: white;
    border-color: white;
    transform: translate3d(0, -4px, 0) scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.social-icon:hover svg {
    fill: var(--bg-dark);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
    transition: fill 0.3s;
}

.whatsapp-float-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: transform 0.4s, background 0.4s;
    will-change: transform;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    background: #20b858;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.96);
    z-index: 99990;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none !important;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 10px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    visibility: hidden;
}

.lightbox.show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: all !important;
    visibility: visible !important;
    z-index: 100000 !important;
}

.lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: min(94vw, 1400px);
    max-height: 90vh;
    transform-origin: center center;
    will-change: transform;
    cursor: default;
    touch-action: none;
    pointer-events: none;
}

.lightbox.show .lightbox-img-wrap {
    pointer-events: auto;
}

.lightbox-img-wrap.zoomed {
    cursor: grab;
}

.lightbox-img-wrap.zoomed:active {
    cursor: grabbing;
}

.lightbox-content {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateZ(0);
    pointer-events: none;
    transition: opacity 0.25s ease;
    will-change: transform, opacity;
}

.lightbox.show .lightbox-content {
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100010;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    outline: none;
}

.lightbox-close svg {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close:hover {
    color: #ff6b6b;
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.22);
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.45);
}

.lightbox-close:active {
    transform: rotate(90deg) scale(0.95);
}

.lightbox-hint-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 16, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 100005;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
}

.lightbox-hint-badge.visible {
    opacity: 1;
}

.site-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-logo-img {
    height: 70px;
    margin-bottom: 25px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.4s, opacity 0.4s, transform 0.4s;
}

.site-footer:hover .footer-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.footer-socials {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    gap: 20px;
}

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        gap: 40px;
        padding-top: 120px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-image-container {
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    .coverflow-container {
        height: 350px;
    }
    .cf-item {
        width: 350px;
        height: 220px;
        left: -175px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
        background: rgba(2, 6, 17, 0.98);
    }
    .nav-links {
        display: none;
    }
    .lang-btn {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    .header-spacer {
        height: 80px;
    }
    .section-container {
        padding: 60px 5%;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    .hero-section {
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 30px;
    }
    .hero-personal-name {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .hero-personal-description {
        font-size: 0.95rem;
    }
    .hero-btn {
        padding: 8px 8px 8px 25px;
    }
    .btn-text {
        font-size: 0.8rem;
    }
    .btn-icon {
        width: 35px;
        height: 35px;
    }
    .profile-card {
        width: 280px;
        height: 350px;
        border-radius: 30px;
        margin: 0 auto;
        transform: none !important;
    }
    .profile-img {
        border-radius: 30px;
        transform: translateZ(20px);
    }
    .coverflow-container {
        height: 290px;
        margin-top: 0;
        margin-bottom: 25px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
        contain: layout paint;
    }
    .cf-item {
        width: 270px;
        height: 170px;
        left: -135px;
        border-radius: 16px;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.94) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
        cursor: pointer;
        contain: layout paint;
    }
    .drag-hint {
        bottom: 8px;
        font-size: 0.72rem;
        letter-spacing: 2px;
        white-space: nowrap;
        background: rgba(10, 16, 30, 0.75);
        padding: 5px 16px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
    .background-orbs,
    .film-grain,
    .logo-light-sweep {
        display: none !important;
    }
    .marquee-content span {
        font-size: 1.3rem;
    }
    .cards-grid {
        gap: 20px;
    }
    .card-deep-3d {
        height: auto;
        min-height: 250px;
        transform: none !important;
    }
    .card-inner {
        padding: 25px;
        transform: none !important;
    }
    .card-inner h3 {
        font-size: 1.4rem;
    }
    .card-glare {
        display: none;
    }
    .premium-form {
        padding: 30px 15px;
        border-radius: 25px;
    }
    .rating-input-group {
        margin-bottom: 25px;
    }
    .rating-trigger-btn {
        padding: 14px 16px;
        font-size: 0.92rem;
        border-radius: 14px;
        min-height: 52px;
        -webkit-tap-highlight-color: transparent;
    }
    .trigger-content-wrap {
        gap: 10px;
    }
    .sparkle-star {
        width: 18px;
        height: 18px;
    }
    .trigger-label {
        font-size: 0.9rem;
        gap: 6px;
    }
    .trigger-selected-stars svg {
        width: 13px;
        height: 13px;
    }
    .rating-dropdown-menu {
        top: calc(100% + 6px);
        border-radius: 16px;
        padding: 6px;
        background: rgba(8, 14, 28, 0.98) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(74, 144, 226, 0.15);
        max-height: 290px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .rating-menu-glow {
        display: none;
    }
    .rating-opt {
        padding: 11px 12px;
        gap: 8px;
        border-radius: 10px;
        margin-bottom: 3px;
        min-height: 46px;
        -webkit-tap-highlight-color: transparent;
        transform: translateY(-4px);
    }
    .custom-rating-dropdown.is-open .rating-opt {
        transform: translateY(0);
    }
    .rating-opt:hover {
        transform: none !important;
    }
    .rating-opt:active {
        background: linear-gradient(90deg, rgba(74, 144, 226, 0.22), rgba(74, 144, 226, 0.08));
        transform: scale(0.98) !important;
    }
    .opt-stars {
        gap: 2px;
    }
    .opt-stars svg {
        width: 14px;
        height: 14px;
    }
    .opt-text {
        font-size: 0.86rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .opt-badge {
        font-size: 0.72rem;
        padding: 2px 6px;
    }
    .opt-check {
        width: 18px;
        height: 18px;
    }
    .opt-check svg {
        width: 14px;
        height: 14px;
    }
    .double-upload-grid {
        gap: 10px;
    }
    .avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .exit-content {
        padding: 30px 15px;
    }
    .social-sidebar {
        display: flex !important;
        position: fixed !important;
        left: 18px !important;
        bottom: 18px !important;
        z-index: 9998 !important;
        gap: 10px !important;
    }
    .social-sidebar .social-toggle-btn {
        width: 48px !important;
        height: 48px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(74, 144, 226, 0.3) !important;
        background: rgba(15, 23, 42, 0.92) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .social-sidebar .social-icon {
        width: 42px !important;
        height: 42px !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.92) !important;
    }
    .whatsapp-float-btn {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float-btn svg {
        width: 25px;
        height: 25px;
    }
    .footer-logo-img {
        height: 50px;
    }
    .interactive-bg-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .rating-trigger-btn {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
    .trigger-label {
        font-size: 0.85rem;
    }
    .rating-opt {
        padding: 9px 10px;
        gap: 6px;
    }
    .opt-stars svg {
        width: 12px;
        height: 12px;
    }
    .opt-text {
        font-size: 0.82rem;
    }
    .opt-badge {
        font-size: 0.68rem;
        padding: 1px 5px;
    }
}