/*
Theme Name: Minimal Luxury Personal Portfolio
Theme URI: https://example.com/
Author: Personal Brand Theme
Description: A minimalist luxury bilingual personal portfolio theme with editable content, profile image and color settings.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sina-aryapour
*/

:root {
      --ink: #17232d;
      --ink-2: #243440;
      --paper: #f7f6f2;
      --soft: #efeee9;
      --white: #fff;
      --muted: #737b80;
      --line: #e5e2da;
      --gold: #b99a63;
      --gold-light: #d8c49b;
      --serif: Georgia, "Times New Roman", serif;
      --sans: 'Vazir', Tahoma, Arial, sans-serif;
      --shadow: 0 24px 70px rgba(23,35,45,.10);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.8; }
    a { color: inherit; text-decoration: none; }
    button, input, textarea, select { font: inherit; }
    .wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
    .topbar { position: sticky; top: 0; z-index: 10; background: rgba(247,246,242,.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(229,226,218,.8); }
    .nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .02em; }
    .brand-mark { width: 48px; height: 44px; display: grid; place-items: center; border-inline-end: 1px solid rgba(185,154,99,.38); padding-inline-end: 13px; margin-inline-end: 2px; direction: ltr; flex: 0 0 48px; }
    .brand-symbol { width: 23px; height: 30px; filter: drop-shadow(0 2px 4px rgba(185,154,99,.18)); }
    .brand-name { font-size: 14px; }
    .nav-links { display: flex; align-items: center; gap: 28px; color: #59636a; font-size: 12px; }
    .nav-links a:hover { color: var(--gold); }
    .nav-actions { display: flex; align-items: center; gap: 12px; }
    .lang-btn { border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 999px; padding: 7px 13px; font-size: 11px; cursor: pointer; }
    .menu-btn { display: none; border: 0; background: transparent; color: var(--ink); font-size: 23px; cursor: pointer; }
    .hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; min-height: 590px; display: flex; align-items: center; }
    .hero:before, .hero:after { content: ""; position: absolute; border: 1px solid rgba(185,154,99,.25); border-radius: 50%; pointer-events: none; }
    .hero:before { width: 570px; height: 570px; inset-inline-end: -130px; top: -160px; }
    .hero:after { width: 390px; height: 390px; inset-inline-end: -40px; top: -70px; }
    .hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 60px; padding-top: 80px; padding-bottom: 88px; }
    .eyebrow { color: var(--gold-light); text-transform: uppercase; letter-spacing: .2em; font-size: 10px; display: flex; align-items: center; gap: 12px; }
    .eyebrow:before { content: ""; width: 34px; height: 1px; background: var(--gold); }
    h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.25; margin: 24px 0 8px; font-weight: 500; letter-spacing: -.04em; }
    .latin-name { font: clamp(20px, 3vw, 29px) var(--serif); color: var(--gold-light); letter-spacing: .09em; direction: ltr; text-align: right; }
    .portfolio-label { color: var(--gold-light); font-family: 'Vazir', Tahoma, sans-serif; font-size: 11px; font-weight: 300; letter-spacing: .24em; direction: ltr; text-align: right; margin-top: 3px; }\n    .portfolio-label[data-fa] { direction: rtl; letter-spacing: 0; }

    .hero-role { color: #d3d8dc; font-size: 15px; margin: 28px 0 12px; }
    .hero-desc { max-width: 610px; color: #aeb9c0; font-size: 13px; line-height: 2.2; margin: 0; }
    .hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 2px; padding: 12px 20px; font-size: 12px; transition: .2s ease; }
    .btn-primary { background: var(--gold); color: #17232d; border: 1px solid var(--gold); }
    .btn-primary:hover { background: var(--gold-light); }
    .btn-ghost { border: 1px solid rgba(255,255,255,.25); color: white; }
    .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
    .hero-side { justify-self: end; width: min(100%, 290px); aspect-ratio: 4/5; border: 1px solid rgba(185,154,99,.55); position: relative; display: grid; place-items: center; overflow: hidden; }
    .hero-side.has-photo { border-color: var(--gold); background: var(--ink-2); }
    .profile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
    .hero-side.has-photo:before { z-index: 1; inset: 12px; border-color: rgba(255,255,255,.5); }
    .hero-side.has-photo .side-note { z-index: 2; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
    .hero-side:not(.has-photo) .symbol-wrap { z-index: 1; }
    .hero-side:before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.13); }
    .symbol-wrap { display: grid; place-items: center; }
    .abstract-symbol { display: block; width: 120px; height: 150px; overflow: visible; filter: drop-shadow(0 8px 13px rgba(0,0,0,.22)); }
    .brand-mark .brand-symbol { width: 23px; height: 30px; }
    .hero-symbol { width: clamp(112px, 15vw, 164px); height: auto; }
    .side-note { position: absolute; bottom: 28px; inset-inline: 0; text-align: center; color: #aeb9c0; font-size: 9px; letter-spacing: .18em; }
    section { padding: 104px 0; }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
    .section-kicker { color: var(--gold); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; }
    h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 500; margin: 0; letter-spacing: -.03em; }
    .section-intro { max-width: 420px; color: var(--muted); font-size: 12px; margin: 0; line-height: 2.1; }
    .about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
    .about-statement { font-size: 25px; line-height: 1.8; font-weight: 400; margin: 0; }
    .about-copy { color: #697279; font-size: 13px; line-height: 2.25; margin: 0; }
    .about-copy + .about-copy { margin-top: 16px; }
    .education { background: var(--soft); padding: 76px 0; }
    .education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .edu-card { background: rgba(255,255,255,.62); border: 1px solid #e4e1d8; padding: 28px 30px; min-height: 145px; }
    .edu-index { color: var(--gold); font: 13px var(--serif); text-align: start; }
    .edu-card h3 { margin: 12px 0 4px; font-size: 17px; font-weight: 500; }
    .edu-card p { margin: 0; color: var(--muted); font-size: 11px; }
    .experience-list { border-top: 1px solid var(--line); }
    .experience-item { display: grid; grid-template-columns: 180px 1fr; gap: 55px; padding: 34px 0; border-bottom: 1px solid var(--line); }
    .experience-years { color: var(--gold); font: 16px var(--serif); text-align: start; }
    .experience-item h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
    .experience-item .company { color: var(--muted); font-size: 11px; margin-bottom: 12px; }
    .experience-item p { color: #697279; font-size: 12px; line-height: 2.1; margin: 0; max-width: 700px; }
    .expertise { background: var(--ink); color: white; }
    .expertise .section-intro { color: #aeb9c0; }
    .expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
    .expertise-card { padding: 30px 22px 34px; border-inline-start: 1px solid rgba(255,255,255,.13); min-height: 180px; }
    .expertise-card:first-child { border-inline-start: 0; }
    .expertise-no { color: var(--gold-light); font: 13px var(--serif); text-align: start; }
    .edu-index[data-fa], .experience-years[data-fa], .expertise-no[data-fa] { font-family: var(--sans); }
    .expertise-card h3 { font-size: 15px; font-weight: 500; margin: 22px 0 8px; }
    .expertise-card p { color: #aeb9c0; font-size: 10px; line-height: 2; margin: 0; }
    .contact { padding-bottom: 70px; }
    .contact-panel { background: var(--soft); padding: 54px 58px; display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; }
    .contact-panel h2 { max-width: 430px; }
    .contact-panel p { color: var(--muted); font-size: 12px; line-height: 2; }
    .contact-links { display: grid; gap: 14px; }
    .contact-link { display: flex; justify-content: space-between; gap: 15px; align-items: center; border-bottom: 1px solid #d9d5ca; padding: 12px 0; font-size: 12px; }
    .contact-link span:first-child { color: var(--muted); }
    .contact-link span:last-child { direction: ltr; text-align: left; overflow-wrap: anywhere; }
    .placeholder { color: #9b7b43; font-size: 9px; margin-inline-start: 6px; }
    footer { background: var(--ink); color: #aeb9c0; padding: 24px 0; font-size: 10px; }
    .footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
    .footer-brand { color: white; letter-spacing: .12em; direction: ltr; font-family: var(--serif); }
    [data-en] { display: none; }
    body.en { direction: ltr; font-family: 'Vazir', Arial, sans-serif; }
    body.en [data-fa] { display: none !important; }
    body.en [data-en] { display: revert; }
    body.en .nav-links { direction: ltr; }
    body.en .hero-desc, body.en .section-intro, body.en .about-copy, body.en .experience-item p { line-height: 1.9; }
    body.en .latin-name { text-align: left; }\n    body.en .portfolio-label { text-align: left; }
    body.en .contact-link span:last-child { text-align: right; }
    body.en .expertise-card { border-inline-start: 1px solid rgba(255,255,255,.13); }
    body.en .expertise-card:first-child { border-inline-start: 0; }
    @media (max-width: 820px) {
      .nav-links { gap: 15px; }
      .hero-grid { grid-template-columns: 1fr .55fr; gap: 25px; }
      .hero-side { width: 220px; }
      .about-grid { gap: 40px; }
      .expertise-grid { grid-template-columns: 1fr 1fr; }
      .expertise-card:nth-child(3) { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.13); }
      .expertise-card:nth-child(4) { border-top: 1px solid rgba(255,255,255,.13); }
    }
    @media (max-width: 620px) {
      .wrap { width: min(100% - 34px, 1120px); }
      .nav { min-height: 66px; }
      .menu-btn { display: block; }
      .nav-links { display: none; position: absolute; top: 66px; inset-inline: 0; padding: 18px 24px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 12px; }
      .nav-links.open { display: flex; }
      .hero { min-height: unset; }
      .hero-grid { display: flex; flex-direction: column; align-items: stretch; padding-top: 66px; padding-bottom: 64px; }
      .hero-side { display: none; }
      .hero-side.has-photo, .hero-side:not(.has-photo) { display: grid; width: 116px; aspect-ratio: 1; border-radius: 50%; margin-top: 26px; justify-self: start; }
      .hero-side:before { inset: 6px; border-radius: 50%; }
      .hero-side .side-note { display: none; }
      .hero-symbol { width: 58px; height: auto; }
      h1 { font-size: 48px; }
      .hero-role { font-size: 13px; }
      section { padding: 72px 0; }
      .section-head { display: block; margin-bottom: 32px; }
      .section-intro { margin-top: 18px; }
      .about-grid { grid-template-columns: 1fr; gap: 22px; }
      .about-statement { font-size: 21px; }
      .education { padding: 60px 0; }
      .education-grid { grid-template-columns: 1fr; }
      .experience-item { grid-template-columns: 1fr; gap: 10px; padding: 27px 0; }
      .expertise-grid { grid-template-columns: 1fr; }
      .expertise-card, .expertise-card:nth-child(3), .expertise-card:nth-child(4) { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.13); min-height: unset; padding: 24px 4px; }
      .expertise-card:first-child { border-top: 0; }
      .expertise-card h3 { margin: 12px 0 5px; }
      .contact-panel { padding: 34px 24px; grid-template-columns: 1fr; gap: 22px; }
      .footer-inner { flex-direction: column; align-items: flex-start; }
    }
