/*
Theme Name: Mahdi Pasha
Theme URI: https://example.com/
Author: Mahdi Pasha
Description: A premium RTL portfolio theme for Mahdi Pasha.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: mahdipasha
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root { --ink:#0b0c0d; --surface:#111314; --panel:#17191a; --line:rgba(255,255,255,.13); --soft-line:rgba(255,255,255,.07); --paper:#f4f3ef; --muted:#989b9c; --faint:#676b6c; --accent:#d9dbd6; --green:#9aa995; --mono:'DM Mono',monospace; --sans:'Manrope',Arial,sans-serif; --fa:'Vazirmatn',Tahoma,sans-serif; --ease:cubic-bezier(.22,.61,.36,1); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--ink); color:var(--paper); font-family:var(--fa),var(--sans),sans-serif; font-size:16px; line-height:1.8; direction:rtl; overflow-x:hidden; }
body:before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.035; z-index:10; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; display:block; }
.container { width:min(1180px,calc(100% - 64px)); margin-inline:auto; }
.skip-link { position:absolute; top:-100px; right:20px; background:var(--paper); color:var(--ink); padding:8px 16px; z-index:100; }
.skip-link:focus { top:20px; }
.site-header { position:fixed; inset:0 0 auto; z-index:20; transition:background .35s var(--ease),border-color .35s var(--ease); border-bottom:1px solid transparent; }
.site-header.is-scrolled { background:rgba(11,12,13,.88); backdrop-filter:blur(14px); border-bottom-color:var(--soft-line); }
.header-inner { min-height:84px; display:flex; align-items:center; justify-content:space-between; direction:ltr; }
.brand { display:inline-flex; align-items:center; gap:12px; font-family:var(--sans); font-size:13px; font-weight:700; letter-spacing:.14em; direction:ltr; }
.brand-mark { width:34px; height:34px; border:1px solid var(--line); display:grid; place-items:center; font-size:11px; letter-spacing:0; }
.main-nav { display:flex; gap:28px; align-items:center; direction:rtl; }
.main-nav a { color:var(--muted); font-size:13px; transition:color .25s ease; }
.main-nav a:hover,.main-nav a:focus { color:var(--paper); }
.header-actions { display:flex; align-items:center; gap:16px; direction:ltr; }
.lang-switch { color:var(--muted); font:11px var(--mono); letter-spacing:.1em; }
.menu-toggle { display:none; border:0; background:none; color:var(--paper); padding:8px; cursor:pointer; }
.hero { min-height:760px; padding:170px 0 100px; position:relative; overflow:hidden; }
.hero-grid { min-height:550px; display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; direction:ltr; }
.hero-copy { direction:rtl; position:relative; z-index:1; }
.eyebrow,.section-kicker,.mono-label { font:11px var(--mono); letter-spacing:.16em; color:var(--muted); direction:ltr; }
.eyebrow { display:inline-flex; align-items:center; gap:12px; margin-bottom:26px; }
.eyebrow:before { content:""; display:block; width:30px; height:1px; background:var(--accent); }
.hero h1 { max-width:640px; margin:0 0 28px; font-size:clamp(42px,6vw,82px); line-height:1.18; letter-spacing:-.06em; font-weight:700; }
.hero h1 em { color:var(--muted); font-style:normal; }
.hero-lede { max-width:480px; margin:0 0 34px; color:var(--muted); font-size:17px; line-height:2; }
.hero-actions { display:flex; gap:12px; align-items:center; }
.button { display:inline-flex; justify-content:center; align-items:center; min-height:48px; padding:0 22px; border:1px solid var(--line); font-size:13px; transition:background .3s ease,color .3s ease,border-color .3s ease,transform .3s var(--ease); }
.button:hover,.button:focus { transform:translateY(-3px); border-color:var(--paper); }
.button-primary { background:var(--paper); color:var(--ink); border-color:var(--paper); }
.button-primary:hover,.button-primary:focus { background:var(--accent); }
.hero-image-wrap { direction:ltr; position:relative; max-width:480px; justify-self:end; width:100%; }
.hero-image-wrap:before { content:""; position:absolute; inset:-18px 18px 18px -18px; border:1px solid var(--line); z-index:-1; }
.hero-image-wrap:after { content:"MAHDI / 2026"; position:absolute; bottom:-28px; left:0; font:10px var(--mono); letter-spacing:.18em; color:var(--faint); }
.hero-image { aspect-ratio:4/5; object-fit:cover; object-position:center 35%; filter:grayscale(1); background:#333; }
.hero-coordinates { position:absolute; top:118px; right:0; font:10px var(--mono); letter-spacing:.12em; color:var(--faint); writing-mode:vertical-rl; }
.hero-gridline { position:absolute; width:360px; height:360px; left:-150px; bottom:0; background-image:linear-gradient(var(--soft-line) 1px,transparent 1px),linear-gradient(90deg,var(--soft-line) 1px,transparent 1px); background-size:36px 36px; mask-image:linear-gradient(to bottom right,black,transparent 70%); opacity:.65; }
.scroll-note { position:absolute; bottom:34px; left:50%; transform:translateX(-50%); color:var(--faint); font:10px var(--mono); letter-spacing:.18em; display:flex; align-items:center; gap:10px; direction:ltr; }
.scroll-note:after { content:""; display:block; width:44px; height:1px; background:var(--faint); }
.section { padding:130px 0; position:relative; }
.section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:40px; margin-bottom:56px; }
.section-title { margin:0; font-size:clamp(30px,4vw,54px); line-height:1.25; letter-spacing:-.05em; }
.section-number { font:11px var(--mono); letter-spacing:.12em; color:var(--faint); direction:ltr; }
.about-grid { display:grid; grid-template-columns:.65fr 1.35fr; gap:90px; direction:ltr; }
.about-aside,.about-copy { direction:rtl; }
.about-aside p { color:var(--muted); font-size:15px; }
.about-copy { font-size:21px; line-height:2.2; max-width:750px; }
.about-copy p { margin:0 0 22px; }
.about-copy strong { color:var(--paper); font-weight:600; }
.about-quote { color:var(--paper); font-size:28px; line-height:1.7; border-right:2px solid var(--paper); padding-right:22px; margin:38px 0; }
.skills-section { background:var(--surface); }
.skills-grid { display:grid; grid-template-columns:repeat(4,1fr); direction:ltr; border-top:1px solid var(--line); }
.skill-card { direction:rtl; padding:30px 24px 24px; border-left:1px solid var(--line); min-height:278px; transition:background .35s ease,transform .35s var(--ease); }
.skill-card:last-child { border-left:0; }
.skill-card:hover { background:var(--panel); transform:translateY(-5px); }
.card-number { font:11px var(--mono); color:var(--faint); direction:ltr; display:block; }
.skill-icon { height:50px; display:flex; align-items:center; font:28px var(--sans); color:var(--accent); }
.skill-card h3 { margin:12px 0 12px; font-size:18px; }
.skill-card p { color:var(--muted); font-size:13px; line-height:1.9; margin:0; }
.philosophy { padding:170px 0; }
.philosophy-inner { border-top:1px solid var(--line); padding-top:28px; }
.philosophy-statement { max-width:700px; margin:50px 0 100px; font-size:clamp(32px,5vw,68px); line-height:1.45; letter-spacing:-.06em; }
.philosophy-statement span { color:var(--muted); }
.manifesto { display:grid; grid-template-columns:1fr 1fr; gap:40px; direction:ltr; align-items:end; }
.manifesto-words { font:clamp(42px,7vw,96px)/.95 var(--sans); font-weight:700; letter-spacing:-.08em; color:var(--paper); direction:ltr; }
.manifesto-words span { display:block; color:var(--faint); }
.manifesto-copy { direction:rtl; color:var(--muted); max-width:360px; font-size:15px; }
.projects-section { background:var(--paper); color:var(--ink); }
.projects-section .section-kicker,.projects-section .section-number { color:#777a76; }
.projects-intro { max-width:570px; color:#606460; margin-top:-25px; margin-bottom:60px; }
.projects-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:2px; background:#b7b8b4; direction:ltr; }
.project-card { min-height:390px; padding:32px; background:var(--paper); direction:rtl; display:flex; flex-direction:column; transition:background .3s ease; }
.project-card:hover { background:#e7e6e1; }
.project-card-top { display:flex; justify-content:space-between; direction:ltr; }
.project-number { font:11px var(--mono); color:#8a8d88; }
.project-category { font:10px var(--mono); color:#777a76; direction:ltr; }
.project-card h3 { font:700 36px/1.2 var(--sans); letter-spacing:-.06em; margin:65px 0 15px; direction:ltr; }
.project-card p { max-width:440px; color:#606460; font-size:14px; line-height:1.9; margin:0; }
.project-bottom { margin-top:auto; display:flex; align-items:end; justify-content:space-between; gap:15px; direction:ltr; }
.project-tags { display:flex; flex-wrap:wrap; gap:6px; direction:ltr; }
.project-tag { font:10px var(--mono); border:1px solid #c5c6c2; padding:4px 7px; color:#71746f; }
.project-link { font-size:12px; direction:ltr; white-space:nowrap; }
.build-section { background:var(--surface); }
.build-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start; direction:ltr; }
.build-copy { direction:rtl; max-width:470px; }
.build-copy p { color:var(--muted); font-size:18px; line-height:2.2; margin:0; }
.build-status { direction:ltr; border-top:1px solid var(--line); padding-top:18px; font:11px var(--mono); color:var(--accent); letter-spacing:.12em; }
.status-dot { display:inline-block; width:7px; height:7px; background:var(--green); border-radius:50%; margin-right:9px; box-shadow:0 0 0 5px rgba(154,169,149,.08); }
.brand-statement { padding:190px 0 160px; text-align:center; }
.brand-statement h2 { margin:0; font:700 clamp(45px,10vw,145px)/.95 var(--sans); letter-spacing:-.1em; direction:ltr; }
.brand-name { font-size:14px; letter-spacing:.3em; font-family:var(--sans); margin-top:36px; direction:ltr; }
.brand-role { color:var(--muted); font:11px var(--mono); letter-spacing:.18em; direction:ltr; margin-top:10px; }
.site-footer { border-top:1px solid var(--line); padding:34px 0; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:30px; direction:ltr; }
.footer-brand,.footer-socials,.footer-meta { direction:ltr; }
.footer-brand { font:700 13px var(--sans); letter-spacing:.14em; }
.footer-meta { color:var(--faint); font:10px var(--mono); }
.footer-socials { display:flex; gap:18px; color:var(--muted); font-size:12px; }
.footer-socials a:hover { color:var(--paper); }
.empty-state { padding:100px 0; text-align:center; }
:focus-visible { outline:2px solid var(--paper); outline-offset:4px; }
.reveal { opacity:0; transform:translateY(20px); transition:opacity .8s var(--ease),transform .8s var(--ease); }
.reveal.is-visible { opacity:1; transform:none; }
@media (max-width:900px) { .container{width:min(100% - 40px,680px)} .main-nav{gap:16px} .hero-grid{gap:45px}.about-grid{gap:40px}.skills-grid{grid-template-columns:repeat(2,1fr)}.skill-card:nth-child(2){border-left:0}.skill-card:nth-child(3),.skill-card:nth-child(4){border-top:1px solid var(--line)}.manifesto{gap:30px} }
@media (max-width:680px) { .container{width:calc(100% - 40px)} .site-header{background:rgba(11,12,13,.86)}.header-inner{min-height:72px}.main-nav{display:none; position:absolute; top:72px; right:0; left:0; padding:22px 20px; flex-direction:column; align-items:flex-start; background:var(--surface); border-bottom:1px solid var(--line)}.main-nav.is-open{display:flex}.menu-toggle{display:block}.hero{padding:125px 0 80px; min-height:auto}.hero-grid{display:flex; flex-direction:column-reverse; align-items:stretch; gap:70px}.hero-image-wrap{max-width:420px; margin:auto}.hero h1{font-size:47px}.hero-lede{font-size:15px}.hero-coordinates{top:105px}.scroll-note{display:none}.section{padding:92px 0}.section-heading{margin-bottom:36px}.about-grid,.build-grid{grid-template-columns:1fr;gap:32px}.about-copy{font-size:18px}.about-quote{font-size:23px}.skills-grid,.projects-grid{grid-template-columns:1fr}.skill-card{border-left:0!important}.skill-card+ .skill-card{border-top:1px solid var(--line)}.project-card{min-height:360px}.project-card h3{margin-top:55px}.philosophy{padding:110px 0}.philosophy-statement{margin:40px 0 70px}.manifesto{grid-template-columns:1fr;gap:50px}.manifesto-words{font-size:64px}.brand-statement{padding:125px 0}.brand-statement h2{font-size:54px}.footer-inner{align-items:flex-start;flex-direction:column;gap:20px}.footer-socials{order:2;flex-wrap:wrap}.footer-meta{order:3} }
@media (prefers-reduced-motion:reduce) { html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.button,.skill-card{transition:none} }
