html[dir=rtl] .font-heading, html[dir=rtl] body { font-family: Cairo, sans-serif; }
* { box-sizing: border-box; }
body.intro-active { overflow: hidden !important; }

#cinematic-master-container {
    position: fixed; inset: 0; z-index: 999999;
    background: radial-gradient(circle at center, #080808 0, #000 100%);
    display: flex; justify-content: center; align-items: center;
}

#webgl-canvas {
    position: absolute; inset: 0; z-index: 1;
    filter: contrast(1.15) saturate(1.2);
}

#ui-overlay {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%; pointer-events: none;
    background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,.85) 100%);
}

#classic-site, .lang-selector.open .lang-dropdown { display: block; }

.brand-subtitle {
    font-family: Montserrat, sans-serif; color: #d4af37; font-size: .8rem;
    letter-spacing: .8em; text-transform: uppercase; margin-bottom: 20px;
    opacity: 0; transform: translateY(20px); text-shadow: 0 0 15px rgba(212,175,55,.4);
}

.brand-title {
    font-family: 'Playfair Display', serif; font-size: clamp(4rem, 12vw, 8.5rem);
    color: #fff; font-weight: 800; line-height: 1; margin: 0; letter-spacing: .15em;
    text-shadow: 0 15px 50px rgba(0,0,0,.9), 0 0 30px rgba(212,175,55,.2);
    opacity: 0; transform: scale(1.1) translateY(30px);
}

.magnetic-btn, body { font-family: Montserrat, sans-serif; }
.brand-tagline, .magnetic-btn { font-size: 1.1rem; opacity: 0; text-transform: uppercase; }
.brand-tagline { color: #a0a0a0; letter-spacing: .6em; margin-top: 30px; font-weight: 300; transform: translateY(-20px); }

.magnetic-btn {
    margin-top: 70px; padding: 18px 65px; background: rgba(255,255,255,.02);
    border: 1px solid rgba(212,175,55,.3); color: #fff; font-weight: 400;
    letter-spacing: .4em; cursor: pointer; position: relative; overflow: hidden;
    pointer-events: auto; backdrop-filter: blur(10px); transition: .5s cubic-bezier(.16, 1, .3, 1);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(212,175,55,.4); border-color: rgba(212,175,55,.4); }
    70% { box-shadow: 0 0 0 25px rgba(212,175,55,0); border-color: rgba(212,175,55,.8); }
    100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); border-color: rgba(212,175,55,.3); }
}

.magnetic-btn.active-pulse { animation: 2.5s infinite pulseGlow; }
.magnetic-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.4), transparent);
    transition: left .7s; z-index: -1;
}

.magnetic-btn:hover { color: #050505; background: #d4af37; border-color: #d4af37; letter-spacing: .5em; box-shadow: 0 10px 40px rgba(212,175,55,.6); }
.magnetic-btn:hover::before { left: 100%; }

.transition-door { position: fixed; top: 0; width: 50vw; height: 100vh; background-color: #030303; z-index: 99999999; pointer-events: none; }
.door-right { right: 0; transform: translateX(100%); border-left: 2px solid #d4af37; box-shadow: -15px 0 50px rgba(0,0,0,.9); }
.door-left { left: 0; transform: translateX(-100%); border-right: 2px solid #d4af37; box-shadow: 15px 0 50px rgba(0,0,0,.9); }

#classic-site { width: 100%; min-height: 100vh; }
body { background-color: #0a0a0a; color: #f5f5f5; overflow-x: hidden; cursor: default; }
::selection { background: rgba(200,164,93,.3); color: #c8a45d; }
.font-heading { font-family: 'Playfair Display', serif; }
html[dir=rtl] .font-heading { font-weight: 700; }

.glass-panel { background: rgba(255,255,255,.03); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.5); }

.cursor-follower {
    position: fixed; top: 0; left: 0; width: 40px; height: 40px; border: 1.5px solid rgba(200,164,93,.6);
    border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; z-index: 9999;
    transition: width .3s, height .3s, background-color .3s;
}

@media (pointer:coarse) { .cursor-follower { display: none !important; } }

.floating-whatsapp {
    position: fixed; bottom: 25px; left: 25px; width: 60px; height: 60px; background-color: #25d366; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,.5); z-index: 9000; transition: transform .3s;
}
.floating-whatsapp:hover { transform: scale(1.1); background-color: #1da851; }

#scene-container, .hero-bg-image { height: 100%; position: absolute; inset: 0; width: 100%; }
.hero-bg-image {
    object-fit: cover; opacity: 0.3; z-index: 0;
    background-image: url('https://images.unsplash.com/photo-1545558014-8692077e9b5c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center;
}

#scene-container { z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,.4) 0, #0a0a0a 100%); z-index: 2; pointer-events: none; }
.step-visual-wrapper { position: relative; width: 100%; height: 350px; border-radius: .75rem; overflow: hidden; }
.step-canvas, .step-img { height: 100%; inset: 0; position: absolute; width: 100%; }
.step-img { object-fit: cover; opacity: .4; transition: opacity .5s; }
.step-canvas { mix-blend-mode: screen; z-index: 2; pointer-events: none; }
.methodology-step:hover .step-img { opacity: .7; }
.lang-dropdown { display: none; }

:root {
    --arch-black: #050505; --arch-gray-dark: #121212; --arch-gold: #d4af37;
    --arch-text: #eaeaea; --arch-text-muted: #888888;
    --arch-font-logo: 'Playfair Display', serif;
    --arch-font-heading: 'Montserrat', sans-serif;
    --arch-font-body: 'Inter', sans-serif;
    --arch-font-arabic: 'Tajawal', sans-serif;
    --arch-transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#cinematic-portfolio { display: none; position: fixed; inset: 0; z-index: 100000; background-color: var(--arch-black); overflow-y: auto; overflow-x: hidden; }
#cinematic-portfolio.arch-body { color: var(--arch-text); font-family: var(--arch-font-body); font-weight: 300; line-height: 1.6; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

[dir=rtl] #cinematic-portfolio.arch-body, [dir=rtl] .arch-hero-title, [dir=rtl] .arch-project-title, [dir=rtl] h4 { font-family: var(--arch-font-arabic); }
[dir=rtl] .arch-project-title::after { right: 0; left: auto; }
.arch-project-row.arch-row-reverse > *, [dir=rtl] .arch-project-row.arch-row-reverse { direction: ltr; }
.arch-project-row.arch-row-reverse, [dir=rtl] .arch-project-row.arch-row-reverse > * { direction: rtl; }

html[lang=ar] #cinematic-portfolio [data-lang-content]:not([data-lang-content=ar]),
html[lang=en] #cinematic-portfolio [data-lang-content]:not([data-lang-content=en]),
html[lang=es] #cinematic-portfolio [data-lang-content]:not([data-lang-content=es]),
html[lang=tr] #cinematic-portfolio [data-lang-content]:not([data-lang-content=tr]) { display: none !important; }

.arch-splash-screen { position: absolute; inset: 0; background-color: var(--arch-black); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; transition: opacity 1.5s, visibility 1.5s; }
.arch-splash-screen.arch-fade-out { opacity: 0; visibility: hidden; }
.arch-splash-brand { text-align: center; margin-bottom: 3rem; opacity: 0; animation: 1.5s .5s forwards archReveal; }
.arch-brand-founder { display: block; font-family: var(--arch-font-body); font-size: .8rem; color: var(--arch-text-muted); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 5px; }
.arch-splash-logo { font-family: var(--arch-font-logo); font-size: clamp(3rem, 6vw, 5rem); color: var(--arch-gold); letter-spacing: .15em; line-height: 1; }
.arch-btn-glow, .arch-hero-title, .arch-lang-btn, .arch-project-title, .arch-scroll-btn, .arch-welcome-text { font-family: var(--arch-font-heading); }
.arch-btn-glow { background: 0 0; border: 1px solid rgba(212,175,55,.3); color: var(--arch-gold); font-size: .9rem; padding: 12px 35px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; border-radius: 2px; opacity: 0; animation: 1s 1.5s forwards archReveal, 3s 2s infinite alternate archGlowPulse; transition: .4s; }
.arch-btn-glow:hover { background-color: var(--arch-gold); color: var(--arch-black); box-shadow: 0 0 20px rgba(212,175,55,.4); }
.arch-welcome-text { font-size: 1rem; color: var(--arch-gold); letter-spacing: 5px; text-transform: uppercase; position: absolute; margin-top: 150px; opacity: 0; transform: translateY(15px); transition: .8s cubic-bezier(.16, 1, .3, 1); }
.arch-project-row.arch-in-view, .arch-welcome-text.arch-show-welcome { opacity: 1; transform: translateY(0); }
.arch-fade-out-element { opacity: 0 !important; pointer-events: none; transition: opacity .5s; }

@keyframes archReveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes archGlowPulse { 0% { box-shadow: 0 0 5px rgba(212,175,55,.1); } 100% { box-shadow: 0 0 25px rgba(212,175,55,.5), inset 0 0 10px rgba(212,175,55,.1); } }

.arch-main-layout { opacity: 0; visibility: hidden; transition: opacity 1.5s .5s; }
.arch-main-layout.arch-is-ready { opacity: 1; visibility: visible; }
.arch-header { position: fixed; top: 0; width: 100%; padding: 2rem 5vw; display: flex; justify-content: space-between; align-items: center; z-index: 100; background: linear-gradient(to bottom, rgba(5,5,5,.95) 0, rgba(5,5,5,0) 100%); }
.arch-brand-link { text-decoration: none; display: flex; flex-direction: column; }
.arch-brand-link .arch-brand-founder { font-size: .6rem; margin-bottom: 2px; color: var(--arch-text-muted); }
.arch-brand-link .arch-brand-name { font-family: var(--arch-font-logo); font-size: 1.5rem; color: var(--arch-gold); letter-spacing: 2px; }
.arch-header-controls { display: flex; align-items: center; gap: 30px; }
.arch-vol-control { display: flex; align-items: center; gap: 10px; }
.arch-vol-control .vol-icon { font-size: 1.2rem; color: var(--arch-gold); }
.arch-vol-control input[type=range] { -webkit-appearance: none; width: 80px; background: 0 0; }
.arch-vol-control input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 2px; background: var(--arch-text-muted); }
.arch-vol-control input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 12px; width: 12px; border-radius: 50%; background: var(--arch-gold); margin-top: -5px; cursor: pointer; }
.arch-lang-switcher { display: flex; gap: 15px; }
.arch-lang-btn { background: 0 0; border: none; color: var(--arch-text-muted); font-size: .85rem; letter-spacing: 1px; cursor: pointer; transition: color .3s; padding: 0; }
.arch-back-to-home, .arch-scroll-btn, .arch-text-block h4 { text-transform: uppercase; letter-spacing: 2px; }
.arch-lang-btn.active, .arch-lang-btn:hover { color: var(--arch-gold); }
.arch-hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 5vw; position: relative; background: radial-gradient(circle at center, var(--arch-gray-dark) 0, var(--arch-black) 100%); }
.arch-hero-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: 1.1; margin-bottom: 2rem; color: #fff; }
.arch-hero-title span { color: var(--arch-gold); font-family: var(--arch-font-logo); font-style: italic; }
.arch-hero-desc { font-size: 1.1rem; color: var(--arch-text-muted); max-width: 550px; }
.arch-scroll-btn { position: absolute; bottom: 40px; left: 5vw; color: var(--arch-text-muted); text-decoration: none; font-size: .8rem; animation: 2s infinite archBounce; }
@keyframes archBounce { 0%, 100%, 20%, 50%, 80% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

.arch-projects-section { padding: 100px 5vw; background-color: var(--arch-black); }
.arch-container { max-width: 1400px; margin: 0 auto; }
.arch-project-row { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-bottom: 12rem; opacity: 0; transform: translateY(40px); transition: var(--arch-transition); }
.arch-back-to-home, .arch-play-btn { transition: .3s; color: var(--arch-gold); }
.arch-project-content { max-width: 600px; }
.arch-project-title { font-size: 2.8rem; color: var(--arch-text); margin-bottom: 3rem; position: relative; padding-bottom: 1rem; }
.arch-play-btn, .arch-text-block h4 { font-family: var(--arch-font-body); font-size: .85rem; }
.arch-project-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 2px; background-color: var(--arch-gold); }
.arch-text-block { margin-bottom: 2rem; }
.arch-text-block h4 { color: var(--arch-gold); margin-bottom: .5rem; }
.arch-text-block p { font-size: 1rem; color: var(--arch-text-muted); line-height: 1.7; }
.arch-play-btn { background: 0 0; border: 1px solid var(--arch-gold); padding: 10px 20px; border-radius: 3px; cursor: pointer; margin-top: 1rem; }
.arch-play-btn:hover { background-color: var(--arch-gold); color: var(--arch-black); }
.arch-dual-visual { position: relative; width: 100%; height: 600px; }
.arch-dual-visual .arch-img-main { width: 80%; height: 90%; object-fit: cover; border-radius: 4px; position: absolute; top: 0; left: 0; filter: brightness(.8); transition: filter .5s, transform .8s; }
.arch-dual-visual .arch-img-overlay { width: 55%; height: auto; object-fit: cover; border-radius: 4px; position: absolute; bottom: 0; right: 0; border: 10px solid var(--arch-black); box-shadow: -10px 10px 30px rgba(0,0,0,.5); z-index: 2; transition: transform .8s; }
.arch-project-row:hover .arch-img-main { filter: brightness(1); transform: scale(1.02); }
.arch-project-row:hover .arch-img-overlay { transform: translate(-10px,-10px) scale(1.05); }
.arch-single-visual { width: 100%; height: 600px; border-radius: 4px; overflow: hidden; }
.arch-single-visual .arch-img-full { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); transition: filter .5s, transform 1s; }
.arch-project-row:hover .arch-img-full { filter: brightness(1); transform: scale(1.03); }
.arch-footer { background-color: var(--arch-gray-dark); padding: 3rem 5vw; border-top: 1px solid rgba(212,175,55,.1); text-align: center; }
.arch-footer-content { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.arch-back-to-home { position: fixed; bottom: 30px; right: 30px; z-index: 999999; background: rgba(0,0,0,.7); backdrop-filter: blur(5px); border: 1px solid var(--arch-gold); padding: 12px 24px; border-radius: 30px; cursor: pointer; font-family: var(--arch-font-heading); font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.arch-back-to-home:hover { background: var(--arch-gold); color: var(--arch-black); }
[dir=rtl] .arch-back-to-home { right: auto; left: 30px; flex-direction: row-reverse; }

@media (max-width:992px) {
    .arch-header { flex-direction: column; gap: 20px; padding: 1.5rem 5vw; background: rgba(5,5,5,.98); }
    .arch-header-controls { width: 100%; justify-content: space-between; }
    .arch-project-row { grid-template-columns: 1fr; gap: 3rem; margin-bottom: 7rem; }
    .arch-project-row.arch-row-reverse { direction: ltr; }
    [dir=rtl] .arch-project-row.arch-row-reverse { direction: rtl; }
    .arch-dual-visual { height: 400px; }
    .arch-single-visual { height: 350px; }
    .arch-dual-visual .arch-img-overlay { right: 5%; width: 60%; }
}