﻿:root{
  --forest:#0F3D3E; --forest-2:#145657; --amber:#F59E0B; --amber-dark:#D97706;
  --bg:#F8FAFC; --surface:#FFFFFF; --surface-alt:#FFFFFF; --text:#1B2B2B; --muted:#5C6F70; --line:#DCE7E3;
  --header-bg:rgba(248,250,252,.92); --hero-overlay:linear-gradient(100deg,rgba(8,34,35,.88) 0%,rgba(15,61,62,.72) 45%,rgba(15,61,62,.35) 100%);
  --radius:18px; --shadow:0 12px 30px rgba(15,61,62,.08); --shadow-lg:0 20px 45px rgba(15,61,62,.14);
  --container:1200px; --header-h:78px;
}
[data-theme="dark"]{
  --bg:#0d1f20; --surface:#132a2b; --surface-alt:#132a2b; --text:#E6F0EE; --muted:#A8BDB9; --line:#244446;
  --header-bg:rgba(13,31,32,.92); --shadow:0 12px 30px rgba(0,0,0,.25); --shadow-lg:0 20px 45px rgba(0,0,0,.35);
}
*,*::before,*::after{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;overflow-x:hidden;transition:background .25s,color .25s}
body[dir="rtl"]{font-family:"Segoe UI",Tahoma,Arial,sans-serif}
img{max-width:100%;display:block;height:auto} a{color:inherit;text-decoration:none}
p,h1,h2,h3,h4{overflow-wrap:break-word} ul{margin:0;padding:0;list-style:none}
.container{width:min(calc(100% - 2rem),var(--container));margin-inline:auto}
.section{padding:5rem 0}.section-sm{padding:3.5rem 0}
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;color:var(--amber-dark);font-weight:700;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:1rem}
.eyebrow::before{content:"";width:28px;height:2px;background:var(--amber)}
.section-title{font-size:clamp(1.8rem,4vw,3rem);line-height:1.15;margin:0 0 1rem;color:var(--forest);letter-spacing:-.02em}
.section-lead{color:var(--muted);font-size:1.05rem;max-width:680px;margin:0 0 2.5rem}
.center{text-align:center}.center .section-lead,.center .eyebrow{margin-inline:auto}.center .eyebrow{justify-content:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.9rem 1.4rem;border-radius:999px;font-weight:700;font-size:.95rem;border:2px solid transparent;transition:.25s ease;cursor:pointer;white-space:nowrap}
.btn:hover{transform:translateY(-2px)} .btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(245,158,11,.45);outline-offset:2px}
.btn-primary{background:var(--amber);color:#1a2a1a}.btn-primary:hover{background:var(--amber-dark);color:#fff;box-shadow:0 10px 24px rgba(245,158,11,.3)}
.btn-outline{border-color:rgba(255,255,255,.55);color:#fff;background:rgba(255,255,255,.04)} .btn-outline:hover{background:#fff;color:var(--forest)}
.btn-ghost{border-color:var(--forest);color:var(--forest);background:transparent}.btn-ghost:hover{background:var(--forest);color:#fff}
.site-header{position:sticky;top:0;z-index:100;background:var(--header-bg);backdrop-filter:blur(14px);border-bottom:1px solid rgba(15,61,62,.08)}
[data-theme="dark"] .site-header{border-bottom-color:rgba(255,255,255,.08)}
.nav-wrap{min-height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0}
.brand{display:inline-flex;align-items:center;gap:.7rem;flex-shrink:0;color:var(--forest)}
.brand img{width:42px;height:42px;flex-shrink:0}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-name{font-size:1.25rem;font-weight:800;letter-spacing:-.02em;color:var(--forest)}
.brand-tag{font-size:.72rem;font-weight:600;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.nav{display:flex;align-items:center;gap:.25rem}
.nav a{padding:.55rem .75rem;font-weight:600;font-size:.92rem;color:var(--text);opacity:.82;border-radius:8px;transition:.2s;white-space:nowrap}
.nav a:hover,.nav a.active{color:var(--forest);background:rgba(15,61,62,.06);opacity:1}
[data-theme="dark"] .nav a:hover,[data-theme="dark"] .nav a.active{color:var(--amber);background:rgba(245,158,11,.1)}
.nav-actions{display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.icon-btn{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--surface);color:var(--forest);transition:.2s}
.icon-btn:hover{background:var(--forest);color:#fff;border-color:var(--forest)}
[data-theme="dark"] .icon-btn{color:var(--amber)}
[data-theme="dark"] .icon-btn:hover{background:var(--amber);color:#102021;border-color:var(--amber)}
.lang-switch{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .7rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:700;font-size:.85rem;color:var(--forest)}
.lang-switch:hover{border-color:var(--forest)} .lang-switch .flag{font-size:1rem;line-height:1}
[data-theme="dark"] .lang-switch{color:var(--text)}
.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px}
[data-theme="dark"] .menu-toggle span{background:var(--amber)}
.menu-toggle span{display:block;width:20px;height:2px;background:var(--forest);transition:.25s}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-panel{display:none;padding:0 0 1rem;border-top:1px solid var(--line)}
.mobile-panel.open{display:block}
.mobile-panel .nav{flex-direction:column;align-items:stretch;padding-top:.75rem}
.mobile-panel .nav a{padding:.8rem .5rem}.mobile-panel .mobile-actions{display:flex;gap:.75rem;padding:.5rem .5rem 0;flex-wrap:wrap}
@media (max-width:1099px){.desktop-nav,.desktop-only{display:none!important}.menu-toggle{display:inline-flex}}
@media (min-width:1100px){.mobile-panel{display:none!important}}
/* Hero */
.hero{position:relative;min-height:calc(100vh - var(--header-h));display:flex;align-items:center;padding:5rem 0;overflow:hidden;background:#0b2f30;color:#fff}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:var(--hero-overlay)}
.hero-content{position:relative;z-index:1;max-width:720px}
.hero .eyebrow{color:#fbbf24}.hero .eyebrow::before{background:#fbbf24}
.hero h1{font-size:clamp(2.4rem,6vw,4.5rem);line-height:1.08;margin:0 0 1.25rem;letter-spacing:-.03em}
.hero p{font-size:clamp(1rem,2vw,1.2rem);color:rgba(255,255,255,.88);margin:0 0 2rem;max-width:600px}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.page-hero{position:relative;padding:5.5rem 0 4rem;background:linear-gradient(135deg,var(--forest) 0%,#1a5c5e 100%);color:#fff;overflow:hidden}
.page-hero::after{content:"";position:absolute;right:-5%;top:-20%;width:300px;height:300px;border-radius:50%;background:rgba(245,158,11,.12)}
.page-hero h1{font-size:clamp(2rem,5vw,3.5rem);margin:0 0 .75rem;line-height:1.15;position:relative}
.page-hero p{font-size:1.1rem;color:rgba(255,255,255,.85);max-width:640px;margin:0;position:relative}
/* Stats */
.stats{background:var(--forest);color:#fff;padding:0;position:relative;z-index:2}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.stat{padding:2.25rem 1.5rem;text-align:center;border-right:1px solid rgba(255,255,255,.12)}
.stat:last-child{border-right:0}
[dir="rtl"] .stat{border-right:0;border-left:1px solid rgba(255,255,255,.12)} [dir="rtl"] .stat:last-child{border-left:0}
.stat-value{font-size:clamp(2rem,4vw,3rem);font-weight:800;line-height:1;color:var(--amber);font-variant-numeric:tabular-nums}
.stat-label{margin-top:.5rem;font-size:.92rem;color:rgba(255,255,255,.82);font-weight:500}
@media (max-width:700px){.stats-grid{grid-template-columns:repeat(2,1fr)}.stat{border-bottom:1px solid rgba(255,255,255,.12)}.stat:nth-child(2){border-right:0}[dir="rtl"] .stat:nth-child(2){border-left:0}.stat:nth-child(3),.stat:nth-child(4){border-bottom:0}}
/* Cards / grids */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
@media (max-width:980px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.3s ease;height:100%;display:flex;flex-direction:column}
[data-theme="dark"] .card{box-shadow:none}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:rgba(245,158,11,.35)}
.card-icon{width:56px;height:56px;border-radius:14px;background:rgba(15,61,62,.07);display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin-bottom:1.25rem;transition:.3s}
.card:hover .card-icon{background:rgba(245,158,11,.15);transform:scale(1.08)}
.card-body{padding:2rem;display:flex;flex-direction:column;flex:1}
.card h3{font-size:1.2rem;margin:0 0 .65rem;color:var(--forest);line-height:1.3}
.card p{color:var(--muted);margin:0;font-size:.96rem}
.card-img{width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .5s ease}
.card:hover .card-img{transform:scale(1.03)}
.card-img-wrap{overflow:hidden}
/* About split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;align-items:center}
.split.reverse .split-media{order:2}.split.reverse .split-content{order:1}
.split-media img{border-radius:var(--radius);box-shadow:var(--shadow-lg);width:100%;aspect-ratio:4/3;object-fit:cover}
.split-content p{color:var(--muted);margin:0 0 1rem}.split-content .btn{margin-top:1rem}
@media (max-width:900px){.split,.split.reverse{grid-template-columns:1fr;gap:2rem}.split.reverse .split-media,.split.reverse .split-content{order:unset}}
/* Values */
.value-card{padding:2rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);height:100%}
.value-card h3{color:var(--forest);margin:0 0 .5rem;font-size:1.15rem}.value-card p{margin:0;color:var(--muted)}
.value-num{font-size:.85rem;font-weight:800;color:var(--amber-dark);margin-bottom:.75rem;display:block}
/* Projects */
.project-card .card-body{padding:1.5rem}
.tag{display:inline-block;padding:.3rem .7rem;border-radius:999px;background:rgba(245,158,11,.12);color:#9a6700;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.75rem;width:fit-content}
/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:stretch}
.contact-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:2rem}
.contact-panel h2,.contact-panel h3{color:var(--forest);margin:0 0 .5rem}
.contact-panel>p{color:var(--muted);margin:0 0 1.5rem}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:flex;flex-direction:column;gap:.4rem}.field.full{grid-column:1/-1}
.field label{font-weight:600;font-size:.9rem;color:#304545}
.field input,.field select,.field textarea{width:100%;padding:.85rem 1rem;border:1px solid var(--line);border-radius:12px;font:inherit;color:var(--text);background:var(--bg);transition:.2s}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--amber);outline:none;box-shadow:0 0 0 4px rgba(245,158,11,.12)}
.field textarea{min-height:140px;resize:vertical}
.form-note{font-size:.85rem;color:var(--muted);margin-top:1rem}
.contact-details{display:flex;flex-direction:column;gap:1.25rem}
.detail{display:flex;gap:1rem;align-items:flex-start}
.detail-icon{width:46px;height:46px;border-radius:12px;background:rgba(15,61,62,.08);color:var(--forest);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.detail h4{margin:0 0 .2rem;font-size:.95rem;color:var(--forest)}.detail p,.detail a{margin:0;color:var(--muted);font-size:.95rem}
.detail a:hover{color:var(--forest)}
.contact-image{border-radius:var(--radius);overflow:hidden;margin-top:1.5rem;border:1px solid var(--line)}
.contact-image img{width:100%;height:220px;object-fit:cover}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
/* CTA band */
.cta-band{background:linear-gradient(135deg,var(--forest),#1a6365);color:#fff;padding:4rem 0;text-align:center}
.cta-band h2{font-size:clamp(1.8rem,4vw,2.8rem);margin:0 0 .75rem;line-height:1.2}
.cta-band p{color:rgba(255,255,255,.85);max-width:600px;margin:0 auto 1.75rem;font-size:1.05rem}
/* Footer */
.site-footer{background:#0c2e2f;color:#d7e5e1;padding:4rem 0 0}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2.5rem;padding-bottom:2.5rem}
.footer-brand p{color:rgba(215,229,225,.75);margin:1rem 0 0;font-size:.94rem;max-width:320px}
.footer h4{color:#fff;font-size:.95rem;margin:0 0 1rem;letter-spacing:.02em}
.footer-links li+li{margin-top:.55rem}
.footer-links a,.footer-contact li,.footer-contact a{color:rgba(215,229,225,.78);font-size:.93rem;transition:.2s}
.footer-links a:hover,.footer-contact a:hover{color:var(--amber)}
.footer-contact li{display:flex;gap:.6rem;margin-bottom:.7rem;align-items:flex-start}
.footer-contact svg{flex-shrink:0;margin-top:3px;color:var(--amber)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.25rem 0;display:flex;justify-content:space-between;gap:1rem;align-items:center;font-size:.88rem;color:rgba(215,229,225,.65);flex-wrap:wrap}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:550px){.footer-grid{grid-template-columns:1fr}}
/* 404 */
.error-page{min-height:60vh;display:flex;align-items:center;text-align:center;padding:5rem 0}
.error-code{font-size:clamp(5rem,12vw,8rem);font-weight:800;color:rgba(15,61,62,.1);line-height:1;margin-bottom:-1rem}
.error-page h1{font-size:2rem;color:var(--forest);margin:0 0 .75rem}.error-page p{color:var(--muted);margin:0 0 1.5rem}
/* Reveal */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:none}
.theme-toggle{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--surface);color:var(--forest);cursor:pointer;transition:.2s;flex-shrink:0}
.theme-toggle:hover{background:var(--forest);color:#fff;border-color:var(--forest)}
[data-theme="dark"] .theme-toggle{color:var(--amber)}
[data-theme="dark"] .theme-toggle:hover{background:var(--amber);color:#102021;border-color:var(--amber)}
.theme-toggle .icon-sun{display:none}[data-theme="dark"] .theme-toggle .icon-sun{display:block}[data-theme="dark"] .theme-toggle .icon-moon{display:none}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.btn,.card,.card-img,.icon-btn,.menu-toggle span,.theme-toggle{transition:none}.stat-value{transition:none}}
.theme-toggle{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--surface);color:var(--forest);cursor:pointer;transition:.2s}
.theme-toggle:hover{background:var(--forest);color:#fff;border-color:var(--forest)}
.theme-toggle svg{width:20px;height:20px}.theme-toggle .icon-sun{display:none}
[data-theme="dark"] .theme-toggle .icon-sun{display:block}
[data-theme="dark"] .theme-toggle .icon-moon{display:none}

[data-theme="dark"] .brand-name{color:#EAF4F2}
[data-theme="dark"] .brand-tag{color:rgba(230,240,238,.72)}
[data-theme="dark"] .section-title{color:#EAF4F2}
[data-theme="dark"] .card h3,[data-theme="dark"] .contact-panel h2,[data-theme="dark"] .contact-panel h3,[data-theme="dark"] .detail h4,[data-theme="dark"] .value-card h3{color:#EAF4F2}
[data-theme="dark"] .page-hero{background:linear-gradient(135deg,#0b2b2c 0%,#16494b 100%)}
[data-theme="dark"] .btn-ghost{border-color:var(--amber);color:var(--amber)}
[data-theme="dark"] .btn-ghost:hover{background:var(--amber);color:#102021}
[data-theme="dark"] .tag{color:#FCD34D;background:rgba(245,158,11,.16)}
[data-theme="dark"] .footer-brand p{color:rgba(215,229,225,.75)}
