: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;
    scroll-behavior: smooth;
}

.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 {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 15px var(--primary);
}

.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: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.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%;
    filter: blur(150px);
    opacity: 0.2;
    animation: floatOrb 25s infinite alternate ease-in-out;
    will-change: transform, opacity;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: #0055ff;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
    opacity: 0.15;
}

.orb-2 {
    width: 45vw;
    height: 45vw;
    background: #001f4d;
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 40vw;
    height: 40vw;
    background: #00d2ff;
    top: 30%;
    right: 10%;
    opacity: 0.1;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, 8%) scale(1.05); }
    100% { transform: translate(-2%, -4%) scale(0.98); }
}

/* ========================================================= */
/* 1. شاشة ما قبل الدخول: Magnetic Glass Monolith */
/* ========================================================= */
.enter-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.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%;
    animation: pulseLiquid 6s infinite alternate ease-in-out;
}

@keyframes pulseLiquid {
    0% { transform: scale(0.9) rotate(0deg); opacity: 0.6; }
    100% { transform: scale(1.1) rotate(10deg); opacity: 1; filter: blur(20px); }
}

.enter-content-glass {
    z-index: 2;
    perspective: 1000px;
}

.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;
    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);
}

.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;
}

.epic-intro.play-animation {
    opacity: 1;
    pointer-events: all;
    animation: finalFadeOut 1s forwards 5.5s; 
}

/* 2.1 موجات السيان (بدون Box-Shadow لسرعة الأداء) */
.cyan-ripple-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyan-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--primary); /* استخدام Border أسرع مليون مرة من الظل */
    background: transparent;
    opacity: 0;
    will-change: transform, opacity;
}

.epic-intro.play-animation .cyan-ripple.r1 {
    animation: rippleExpandSmooth 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards 0.2s;
}

.epic-intro.play-animation .cyan-ripple.r2 {
    animation: rippleExpandSmooth 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards 0.8s;
}

/* 2.2 ظهور اللوجو (بدون Filter Blur) */
.epic-intro-content {
    position: relative;
    z-index: 2;
}

.logo-morph-wrapper {
    position: relative;
    width: clamp(250px, 40vw, 500px);
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    will-change: transform, opacity;
}

.epic-intro.play-animation .logo-morph-wrapper {
    animation: logoRevealSmooth 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1.2s;
}

.morph-logo-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(74, 144, 226, 0.4)); /* ظل ثابت لا يؤثر على الأداء */
}

/* 2.3 لمعة الضوء (Optimized Sweep) */
.logo-light-sweep {
    position: absolute;
    inset: 0;
    z-index: 3;
    -webkit-mask-image: url('logo.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('logo.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    pointer-events: none;
    overflow: hidden;
}

.logo-light-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    will-change: transform;
}

.epic-intro.play-animation .logo-light-sweep::after {
    animation: sweepShineSmooth 1.5s ease-in-out forwards 3.5s;
}

/* --------------------------------------------------- */
/* Keyframes 60FPS (تعتمد على Transform و Opacity فقط) */
/* --------------------------------------------------- */
@keyframes rippleExpandSmooth {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(150); opacity: 0; }
}

@keyframes logoRevealSmooth {
    0% { opacity: 0; transform: scale(0.8) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes sweepShineSmooth {
    0% { transform: translateX(0) skewX(-20deg); }
    100% { transform: translateX(400%) skewX(-20deg); }
}

@keyframes finalFadeOut {
    to { opacity: 0; visibility: hidden; transform: scale(1.05); }
}
/* ========================================================= */
/* باقي الموقع (كما هو دون أي مساس) */
/* ========================================================= */
.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);
    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: 20px;
    position: absolute;
    left: -250px;
    transform-origin: center center;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s, filter 0.8s;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    will-change: transform, opacity;
}

.cf-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    pointer-events: none;
}

.drag-hint {
    position: absolute;
    bottom: 10px;
    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;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10% 50px 10%;
    position: relative;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-personal-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-personal-name {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 900;
    background: linear-gradient(90deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-title span {
    color: var(--primary);
    font-style: italic;
    font-weight: 900;
}

.hero-personal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    font-weight: 600;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(74, 144, 226, 0.4);
    color: white;
    padding: 10px 10px 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.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 15px 30px var(--primary-glow);
    transform: translateY(-3px);
}

.btn-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    z-index: 2;
    transition: color 0.4s;
}

.hero-btn:hover .btn-text {
    color: white;
}

.btn-icon {
    background: var(--primary);
    width: 40px;
    height: 40px;
    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: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    perspective: 1200px;
}

.profile-card {
    width: 400px;
    height: 500px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    will-change: transform;
    cursor: none;
}

.profile-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--primary-glow) 0%, 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.8;
    filter: blur(80px);
    animation: pulseBlueGlow 2.5s infinite alternate ease-in-out;
}

@keyframes pulseBlueGlow {
    0% { filter: blur(80px); opacity: 0.8; }
    100% { filter: blur(60px); opacity: 1; }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    transform: translateZ(50px);
    filter: contrast(110%) 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: 40px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
    will-change: transform;
}

.marquee-content span {
    font-size: 2.5rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    margin-right: 50px;
    white-space: nowrap;
}

.marquee-content span .dot {
    color: var(--primary);
    -webkit-text-stroke: 0;
    margin: 0 20px;
}

@keyframes scrollMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-50% - 25px), 0, 0); }
}

.reveal-wrap {
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.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(255, 255, 255, 0.03), rgba(0, 0, 0, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(10px);
    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);
    will-change: transform;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s;
    filter: brightness(0.8);
    will-change: transform, filter;
}

.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: 30px;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 25px;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s;
    will-change: transform;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translate3d(0, -10px, 0);
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    position: relative;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    padding: 2px;
}

.testimonial-brand-logo {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    opacity: 0.8;
}

.testimonial-info h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.testimonial-info .brand-name {
    font-size: 0.8rem;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-info .stars {
    font-size: 0.9rem;
    color: #ffd700;
}

.testimonial-card p {
    color: #d0d0d0;
    font-style: italic;
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.quote-icon {
    font-size: 5rem;
    color: rgba(74, 144, 226, 0.05);
    position: absolute;
    bottom: 10px;
    right: 30px;
    pointer-events: none;
    font-family: serif;
    line-height: 1;
    z-index: 1;
}

.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);
}

.custom-select {
    appearance: none;
    cursor: pointer;
}

.custom-select option {
    background: var(--bg-dark);
    color: white;
    padding: 10px;
}

.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);
    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: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    opacity: 0;
    transition: opacity 1s;
}

.social-sidebar.show-site {
    opacity: 1;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
    will-change: transform;
}

.social-icon:hover {
    background: white;
    border-color: white;
    transform: translate3d(0, -5px, 0) scale(1.1);
    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(2, 6, 17, 0.95);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    backdrop-filter: blur(15px);
}

.lightbox.show {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
    font-weight: 300;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.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: 260px;
        margin-top: 0;
        width: 100vw;
        margin-left: -5%;
    }
    .cf-item {
        width: 260px;
        height: 160px;
        left: -130px;
        border-radius: 15px;
    }
    .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;
    }
    .double-upload-grid {
        gap: 10px;
    }
    .avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .exit-content {
        padding: 30px 15px;
    }
    .social-sidebar {
        display: none !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;
    }
}