/* =============================================
   PAGE HERO (projects.html)
============================================= */
section.page-hero { padding: calc(var(--nav-h) + 72px) 5.5% 80px; }

.page-hero {
    text-align: center; position: relative; overflow: hidden;
}
.page-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,80,200,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 15% 80%, rgba(255,45,120,0.06) 0%, transparent 50%),
        linear-gradient(170deg, #080812 0%, #070709 60%, #09070a 100%);
}
.page-hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,200,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(0,200,255,0.022) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, black 5%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, black 5%, transparent 75%);
}
.orb-ph1 { width: 400px; height: 400px; background: rgba(0,200,255,0.05); top: -10%; left: -8%; animation: drift 12s ease-in-out infinite; }
.orb-ph2 { width: 320px; height: 320px; background: rgba(255,45,120,0.06); bottom: 0; right: -6%; animation: drift 15s ease-in-out infinite reverse; }

.page-hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }

.page-eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: 'Orbitron', sans-serif; font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.4em; text-transform: uppercase; color: var(--blue); margin-bottom: 22px;
    opacity: 0; animation: slideUp 0.9s ease forwards 0.3s;
}
html[lang="ar"] .page-eyebrow { font-family: 'Cairo', sans-serif; letter-spacing: 0.1em; }
.page-eyebrow::before, .page-eyebrow::after { content: ''; width: 26px; height: 1px; background: var(--blue); box-shadow: 0 0 6px var(--blue); }

.page-h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 900; line-height: 1.08; letter-spacing: -0.01em;
    margin-bottom: 22px; color: #fff;
    opacity: 0; animation: slideUp 0.9s ease forwards 0.5s;
}
html[lang="ar"] .page-h1 { font-family: 'Cairo', sans-serif; font-size: clamp(2rem, 5vw, 4rem); }

.page-sub {
    font-size: 1.05rem; color: var(--sub); max-width: 580px; margin: 0 auto 44px; line-height: 1.78;
    opacity: 0; animation: slideUp 0.9s ease forwards 0.7s;
}

.page-stats {
    display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
    opacity: 0; animation: slideUp 0.9s ease forwards 0.9s;
}
.page-stat { text-align: center; }
.page-stat-num { font-family: 'Orbitron', sans-serif; font-size: 1.7rem; font-weight: 900; color: var(--blue); display: block; text-shadow: 0 0 18px rgba(0,200,255,0.5); }
html[lang="ar"] .page-stat-num { font-family: 'Cairo', sans-serif; }
.page-stat-label { font-size: 0.74rem; color: var(--sub); letter-spacing: 0.1em; text-transform: uppercase; }
html[lang="ar"] .page-stat-label { letter-spacing: 0; }
.page-stat-div { width: 1px; height: 36px; background: var(--line); }

/* =============================================
   INSTAGRAM SECTION (projects.html)
============================================= */
.ig-section { background: var(--bg2); position: relative; overflow: hidden; }
.orb-ig1 { width: 450px; height: 450px; background: rgba(131,58,180,0.06); top: -10%; right: -8%; animation: drift 13s ease-in-out infinite; }
.orb-ig2 { width: 300px; height: 300px; background: rgba(253,29,29,0.05); bottom: 5%; left: -5%; animation: drift 16s ease-in-out infinite reverse; }

.ig-wrap { max-width: 780px; margin: 0 auto; }
.ig-header { text-align: center; margin-bottom: 48px; }

.ig-profile-card {
    background: var(--card); border-radius: 16px 16px 0 0; padding: 28px 32px;
    position: relative; overflow: hidden;
}
.ig-profile-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 16px 16px 0 0;
    padding: 1px; background: linear-gradient(135deg, rgba(131,58,180,0.5), rgba(253,29,29,0.4), rgba(252,176,69,0.45));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.ig-profile-top { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
html[dir="rtl"] .ig-profile-top { flex-direction: row-reverse; }

.ig-avatar-wrap { width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.ig-avatar-inner {
    width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(135deg, #1a0a2e, #12060e, #0d0a04);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif; font-size: 1.1rem; font-weight: 900; color: var(--text);
}
.ig-profile-info { flex: 1; }
.ig-handle { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
html[lang="ar"] .ig-handle { font-family: 'Cairo', sans-serif; }
.ig-name { font-size: 0.78rem; color: var(--sub); margin-bottom: 12px; }

.ig-stats { display: flex; gap: 24px; }
html[dir="rtl"] .ig-stats { flex-direction: row-reverse; }
.ig-stat { text-align: center; }
.ig-stat-num { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); display: block; }
html[lang="ar"] .ig-stat-num { font-family: 'Cairo', sans-serif; }
.ig-stat-label { font-size: 0.64rem; color: var(--sub); letter-spacing: 0.06em; text-transform: uppercase; }
html[lang="ar"] .ig-stat-label { letter-spacing: 0; }

.ig-follow-btn {
    padding: 9px 22px; border-radius: 7px; flex-shrink: 0;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff; border: none; cursor: pointer;
    font-size: 0.76rem; font-weight: 700; font-family: 'Inter', sans-serif;
    letter-spacing: 0.06em; text-transform: uppercase;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
html[lang="ar"] .ig-follow-btn { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
.ig-follow-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.ig-bio { font-size: 0.84rem; color: var(--sub); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 16px; }

/* Post Grid */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; overflow: hidden; margin-bottom: 0; }
.ig-post { aspect-ratio: 1; position: relative; overflow: hidden; cursor: pointer; }
.ig-post-img { width: 100%; height: 100%; transition: transform 0.45s ease; }
.ig-post:hover .ig-post-img { transform: scale(1.07); }
.ig-post-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.52);
    display: flex; align-items: center; justify-content: center; gap: 18px;
    opacity: 0; transition: opacity 0.3s ease;
}
.ig-post:hover .ig-post-overlay { opacity: 1; }
.ig-ov-stat { display: flex; align-items: center; gap: 5px; color: #fff; font-weight: 700; font-size: 0.84rem; }

/* Post gradients */
.ig-p1 { background: radial-gradient(ellipse 75% 55% at 50% 35%, rgba(0,200,255,0.45) 0%, transparent 65%), linear-gradient(155deg, #020810 0%, #040d1a 55%, #010509 100%); }
.ig-p2 { background: radial-gradient(ellipse 65% 65% at 35% 55%, rgba(255,45,120,0.4) 0%, transparent 60%), linear-gradient(135deg, #0f0409 0%, #1a040c 55%, #070205 100%); }
.ig-p3 { background: radial-gradient(circle 60% at 65% 35%, rgba(255,170,0,0.5) 0%, transparent 55%), linear-gradient(150deg, #110c01 0%, #1a1202 65%, #080601 100%); }
.ig-p4 { background: radial-gradient(ellipse 60% 75% at 50% 60%, rgba(0,150,200,0.38) 0%, transparent 60%), radial-gradient(circle 28% at 78% 22%, rgba(0,200,255,0.22) 0%, transparent 40%), linear-gradient(170deg, #030a10 0%, #060f18 100%); }
.ig-p5 { background: radial-gradient(ellipse 70% 60% at 40% 40%, rgba(180,0,200,0.35) 0%, transparent 60%), radial-gradient(circle 38% at 72% 70%, rgba(255,45,120,0.28) 0%, transparent 50%), linear-gradient(140deg, #0b0210 0%, #130516 100%); }
.ig-p6 { background: radial-gradient(circle 50% at 50% 65%, rgba(255,140,0,0.42) 0%, transparent 55%), linear-gradient(170deg, #0e0802 0%, #1a1103 100%); }
.ig-p7 { background: radial-gradient(ellipse 85% 50% at 50% 18%, rgba(0,220,255,0.3) 0%, transparent 58%), radial-gradient(ellipse 48% 48% at 80% 82%, rgba(0,80,255,0.22) 0%, transparent 50%), linear-gradient(160deg, #020610 0%, #04090e 100%); }
.ig-p8 { background: radial-gradient(circle 42% at 28% 50%, rgba(255,45,120,0.32) 0%, transparent 50%), radial-gradient(circle 42% at 75% 50%, rgba(0,200,255,0.32) 0%, transparent 50%), linear-gradient(180deg, #060208 0%, #020608 100%); }
.ig-p9 { background: radial-gradient(ellipse 68% 58% at 58% 48%, rgba(255,200,0,0.28) 0%, transparent 60%), radial-gradient(circle 28% at 20% 28%, rgba(0,200,255,0.22) 0%, transparent 40%), linear-gradient(150deg, #0a0a02 0%, #120d02 100%); }

.ig-note-bar {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
    background: rgba(131,58,180,0.06); border: 1px solid rgba(131,58,180,0.15);
    border-top: none; border-radius: 0 0 12px 12px; margin-bottom: 28px;
}
.ig-note-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); flex-shrink: 0; }
.ig-note-text { font-size: 0.8rem; color: var(--sub); line-height: 1.5; }
.ig-note-text strong { color: var(--text); font-weight: 600; }
.ig-cta { text-align: center; }

/* =============================================
   PORTFOLIO (projects.html)
============================================= */
.portfolio { background: var(--bg); }
.portfolio-header { text-align: center; margin-bottom: 48px; }

.filter-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.f-tab {
    padding: 9px 22px; border-radius: 100px; border: 1px solid var(--line);
    background: none; color: var(--sub); cursor: pointer;
    font-size: 0.73rem; letter-spacing: 0.08em; text-transform: uppercase;
    transition: all 0.3s ease; font-family: 'Inter', sans-serif;
}
html[lang="ar"] .f-tab { font-family: 'Cairo', sans-serif; letter-spacing: 0; font-size: 0.84rem; }
.f-tab:hover { border-color: rgba(0,200,255,0.3); color: var(--blue); }
.f-tab.active { border-color: var(--blue); color: var(--blue); background: rgba(0,200,255,0.1); font-weight: 700; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

.proj-card {
    background: var(--card); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.proj-card:hover { transform: translateY(-7px); box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,200,255,0.15); border-color: rgba(0,200,255,0.18); }
.proj-card.hidden { display: none; }

.proj-img { height: 215px; position: relative; overflow: hidden; }
.proj-img-inner { position: absolute; inset: 0; transition: transform 0.5s ease; }
.proj-card:hover .proj-img-inner { transform: scale(1.06); }

/* Project image gradients */
.pi-1 { background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(0,200,255,0.4) 0%, transparent 60%), radial-gradient(ellipse 40% 60% at 15% 70%, rgba(0,100,255,0.25) 0%, transparent 50%), linear-gradient(160deg, #020810 0%, #050e1c 55%, #010508 100%); }
.pi-2 { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,45,120,0.3) 0%, transparent 65%), radial-gradient(circle 30% at 80% 20%, rgba(200,0,150,0.25) 0%, transparent 40%), linear-gradient(140deg, #0f0409 0%, #1c0510 60%, #070205 100%); }
.pi-3 { background: radial-gradient(ellipse 60% 70% at 60% 40%, rgba(0,200,255,0.35) 0%, transparent 55%), radial-gradient(ellipse 50% 50% at 20% 75%, rgba(0,150,255,0.2) 0%, transparent 45%), linear-gradient(165deg, #030a12 0%, #060e1a 60%, #020609 100%); }
.pi-4 { background: radial-gradient(ellipse 65% 55% at 50% 35%, rgba(255,170,0,0.25) 0%, transparent 60%), radial-gradient(circle 35% at 80% 70%, rgba(200,100,0,0.2) 0%, transparent 45%), linear-gradient(150deg, #100c02 0%, #1a1203 65%, #080601 100%); }
.pi-5 { background: radial-gradient(ellipse 75% 60% at 50% 45%, rgba(255,45,120,0.22) 0%, transparent 60%), radial-gradient(circle 40% at 25% 25%, rgba(150,0,200,0.18) 0%, transparent 45%), linear-gradient(155deg, #0c0310 0%, #140515 65%, #060208 100%); }
.pi-6 { background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(0,200,255,0.3) 0%, transparent 60%), radial-gradient(circle 30% at 85% 15%, rgba(0,255,200,0.18) 0%, transparent 40%), linear-gradient(165deg, #020a0d 0%, #040e12 60%, #010608 100%); }
.pi-7 { background: radial-gradient(ellipse 65% 60% at 40% 50%, rgba(255,170,0,0.28) 0%, transparent 60%), radial-gradient(circle 35% at 75% 25%, rgba(255,100,0,0.2) 0%, transparent 45%), linear-gradient(145deg, #100a01 0%, #1a1001 65%, #090601 100%); }
.pi-8 { background: radial-gradient(ellipse 80% 50% at 50% 25%, rgba(0,200,255,0.28) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 20% 70%, rgba(255,45,120,0.18) 0%, transparent 50%), linear-gradient(160deg, #050610 0%, #08090e 100%); }
.pi-9 { background: radial-gradient(ellipse 60% 70% at 55% 40%, rgba(255,200,50,0.22) 0%, transparent 55%), radial-gradient(circle 35% at 18% 30%, rgba(0,200,255,0.18) 0%, transparent 40%), linear-gradient(150deg, #0a0901 0%, #110f01 60%, #060601 100%); }

.proj-cat {
    position: absolute; top: 12px; left: 14px;
    padding: 4px 10px; border-radius: 100px;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    backdrop-filter: blur(8px);
}
html[dir="rtl"] .proj-cat { left: auto; right: 14px; }
.cat-lighting { background: rgba(0,200,255,0.18); color: var(--blue); border: 1px solid rgba(0,200,255,0.3); }
.cat-interior { background: rgba(255,45,120,0.18); color: var(--magenta); border: 1px solid rgba(255,45,120,0.3); }
.cat-furniture { background: rgba(255,170,0,0.18); color: var(--gold); border: 1px solid rgba(255,170,0,0.3); }

.proj-body { padding: 20px 22px 22px; }
.proj-loc { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; color: var(--sub); margin-bottom: 8px; }
html[dir="rtl"] .proj-loc { flex-direction: row-reverse; justify-content: flex-end; }
.proj-title { font-family: 'Orbitron', sans-serif; font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 9px; line-height: 1.3; }
html[lang="ar"] .proj-title { font-family: 'Cairo', sans-serif; font-size: 1.05rem; }
.proj-desc { font-size: 0.83rem; color: var(--sub); line-height: 1.65; margin-bottom: 16px; }

.proj-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--blue); text-decoration: none;
    transition: gap 0.3s ease;
}
html[lang="ar"] .proj-link { flex-direction: row-reverse; letter-spacing: 0; }
.proj-link:hover { gap: 10px; }

.back-bar { text-align: center; margin-top: 64px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
