/* ══════════════════════════════════════════════════
   NETSA CV — Design System
   ══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --green-50:#f0faf4; --green-100:#d1f2e0; --green-200:#a3e4c1;
  --green-300:#6dd4a0; --green-400:#3ec07f; --green-500:#1a9d5c;
  --green-600:#157a49; --green-700:#105c37; --green-800:#0b3e25;
  --green-900:#062013;
  --gray-50:#fafafa; --gray-100:#f4f4f5; --gray-200:#e4e4e7;
  --gray-300:#d4d4d8; --gray-400:#a1a1aa; --gray-500:#71717a;
  --gray-600:#52525b; --gray-700:#3f3f46; --gray-800:#27272a;
  --gray-900:#18181b; --gray-950:#09090b;
  --success:#16a34a; --warning:#f59e0b; --error:#ef4444; --info:#3b82f6;
  --gold-400:#fbbf24; --gold-500:#f59e0b;
  --bg-primary:#ffffff; --bg-secondary:#fafafa; --bg-tertiary:#f4f4f5;
  --text-primary:#18181b; --text-secondary:#52525b; --text-tertiary:#a1a1aa;
  --text-inverse:#ffffff;
  --border-default:#e4e4e7; --border-hover:#d4d4d8; --border-focus:#1a9d5c;
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --shadow-md:0 4px 6px -1px rgba(0,0,0,.07),0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,.08),0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl:0 20px 25px -5px rgba(0,0,0,.08),0 8px 10px -6px rgba(0,0,0,.04);
  --gradient-hero:linear-gradient(135deg,#1a9d5c 0%,#0b3e25 100%);
  --gradient-subtle:linear-gradient(135deg,#f0faf4 0%,#d1f2e0 100%);
  --font-latin:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-ethiopic:'Noto Sans Ethiopic','Abyssinica SIL',sans-serif;
  --font-body:var(--font-latin); --font-heading:var(--font-latin);
  --radius-sm:.375rem; --radius-md:.5rem; --radius-lg:.75rem;
  --radius-xl:1rem; --radius-full:9999px;
  --duration-fast:100ms; --duration-normal:200ms; --duration-slow:300ms;
  --ease:cubic-bezier(.4,0,.2,1);
}
[lang="am"]{--font-body:var(--font-ethiopic);--font-heading:var(--font-ethiopic)}
[lang="ar"]{--font-body:'Noto Sans Arabic',sans-serif;--font-heading:'Noto Sans Arabic',sans-serif;direction:rtl}

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:var(--font-body);color:var(--text-primary);background:var(--bg-primary);
  line-height:1.6;-webkit-font-smoothing:antialiased;min-height:100vh}
img,video{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{cursor:pointer;font:inherit;border:none;background:none}
input,textarea,select{font:inherit}
h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);line-height:1.25;font-weight:600}
h1{font-size:2.25rem;font-weight:700;letter-spacing:-.025em}
h2{font-size:1.5rem;letter-spacing:-.015em}
h3{font-size:1.25rem}
h4{font-size:1.125rem;font-weight:500}
[lang="am"] h1,[lang="am"] h2,[lang="am"] h3{line-height:1.75}
:focus-visible{outline:2px solid var(--green-500);outline-offset:2px;border-radius:var(--radius-sm)}
:focus:not(:focus-visible){outline:none}

/* ── Layout ── */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1.5rem}
.section{padding:4rem 0}
.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}
.justify-center{justify-content:center}.justify-between{justify-content:space-between}
.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}
.grid{display:grid}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}
.text-center{text-align:center}.text-sm{font-size:.875rem}.text-xs{font-size:.75rem}
.text-lg{font-size:1.125rem}.text-xl{font-size:1.25rem}
.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}
.text-secondary{color:var(--text-secondary)}.text-tertiary{color:var(--text-tertiary)}
.text-green{color:var(--green-500)}
.hidden{display:none!important}.block{display:block}
.w-full{width:100%}.mx-auto{margin-inline:auto}
.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}
.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}
.relative{position:relative}.overflow-hidden{overflow:hidden}

@media(max-width:768px){
  .grid-2,.grid-3{grid-template-columns:1fr}
  h1{font-size:1.75rem}h2{font-size:1.25rem}
  .section{padding:2.5rem 0}
  .container{padding:0 1rem}
  .md-hidden{display:none!important}.md-show{display:block!important}
}
@media(min-width:769px){.sm-hidden{display:none!important}}

/* ── Buttons ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.625rem 1.25rem;font-size:.875rem;font-weight:500;border-radius:var(--radius-md);
  border:1px solid transparent;transition:all var(--duration-normal) var(--ease);height:2.5rem;
  white-space:nowrap;user-select:none}
.btn--primary{background:var(--green-500);color:#fff;border-color:var(--green-600)}
.btn--primary:hover{background:var(--green-600);box-shadow:0 0 0 3px rgba(26,157,92,.15)}
.btn--secondary{background:#fff;color:var(--text-primary);border-color:var(--border-default)}
.btn--secondary:hover{background:var(--bg-secondary);border-color:var(--border-hover)}
.btn--ghost{color:var(--text-secondary)}.btn--ghost:hover{background:var(--bg-tertiary);color:var(--text-primary)}
.btn--lg{height:3rem;padding:.75rem 1.5rem;font-size:1rem;border-radius:var(--radius-lg)}
.btn--sm{height:2rem;padding:.25rem .75rem;font-size:.75rem}
.btn--wide{width:100%}
.btn--icon{width:2.5rem;padding:0}

/* ── Cards ── */
.card{background:var(--bg-primary);border:1px solid var(--border-default);border-radius:var(--radius-lg);
  padding:1.5rem;box-shadow:var(--shadow-sm);transition:all var(--duration-normal) var(--ease)}
.card:hover{box-shadow:var(--shadow-md);border-color:var(--border-hover)}
.card--interactive{cursor:pointer}.card--interactive:hover{transform:translateY(-2px)}

/* ── Form Inputs ── */
.input{width:100%;height:2.75rem;padding:.5rem .75rem;font-size:.875rem;
  border:1px solid var(--border-default);border-radius:var(--radius-md);background:#fff;
  color:var(--text-primary);transition:border-color var(--duration-fast) var(--ease),box-shadow var(--duration-fast) var(--ease)}
.input:focus{border-color:var(--green-500);box-shadow:0 0 0 3px rgba(26,157,92,.1);outline:none}
.input::placeholder{color:var(--text-tertiary)}
.textarea{min-height:5rem;resize:vertical}
.input-label{display:block;font-size:.875rem;font-weight:500;color:var(--text-primary);margin-bottom:.25rem}
.input-error{font-size:.75rem;color:var(--error);margin-top:.25rem}
.form-group{margin-bottom:1.25rem}
.input-hint{font-size:.75rem;color:var(--text-tertiary);margin-top:.25rem}
select.input{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .75rem center;padding-right:2.25rem}

/* ── Navbar ── */
.navbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border-default)}
.navbar__inner{display:flex;align-items:center;justify-content:space-between;height:3.5rem}
.navbar__logo{display:flex;align-items:center;gap:.5rem;font-weight:700;font-size:1.125rem;color:var(--green-500)}
.navbar__logo svg{width:1.5rem;height:1.5rem}
.navbar__links{display:flex;align-items:center;gap:1.5rem}
.navbar__links a{font-size:.875rem;font-weight:500;color:var(--text-secondary);transition:color var(--duration-fast)}
.navbar__links a:hover{color:var(--text-primary)}
.navbar__actions{display:flex;align-items:center;gap:.75rem}
@media(max-width:768px){.navbar__links{display:none}.navbar__inner{height:3rem}}

/* ── Hero ── */
.hero{padding:5rem 0 4rem;text-align:center;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;top:-50%;right:-30%;width:60%;height:200%;
  background:radial-gradient(ellipse,rgba(26,157,92,.06) 0%,transparent 70%);pointer-events:none}
.hero__badge{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .875rem;
  background:var(--green-50);color:var(--green-600);font-size:.8125rem;font-weight:500;
  border-radius:var(--radius-full);border:1px solid var(--green-100);margin-bottom:1.5rem}
.hero__title{font-size:3rem;font-weight:800;letter-spacing:-.03em;line-height:1.1;
  max-width:48rem;margin:0 auto 1.25rem}
.hero__title span{background:var(--gradient-hero);-webkit-background-clip:text;
  -webkit-text-fill-color:transparent;background-clip:text}
.hero__subtitle{font-size:1.125rem;color:var(--text-secondary);max-width:36rem;margin:0 auto 2rem;line-height:1.7}
.hero__actions{display:flex;align-items:center;justify-content:center;gap:.75rem;flex-wrap:wrap}
.hero__social-proof{margin-top:2.5rem;display:flex;align-items:center;justify-content:center;gap:.5rem;
  font-size:.8125rem;color:var(--text-tertiary)}
.hero__avatars{display:flex}
.hero__avatars span{width:1.75rem;height:1.75rem;border-radius:50%;border:2px solid #fff;
  margin-left:-.375rem;background:var(--gradient-hero);display:flex;align-items:center;
  justify-content:center;font-size:.625rem;color:#fff}
@media(max-width:768px){
  .hero{padding:3rem 0 2.5rem}
  .hero__title{font-size:2rem}
  .hero__subtitle{font-size:1rem}
}

/* ── Features Grid ── */
.features{padding:4rem 0;background:var(--bg-secondary)}
.features__header{text-align:center;margin-bottom:3rem}
.features__header p{color:var(--text-secondary);margin-top:.5rem;max-width:30rem;margin-inline:auto}
.feature-card{padding:1.75rem;border-radius:var(--radius-lg);background:var(--bg-primary);
  border:1px solid var(--border-default);transition:all var(--duration-slow) var(--ease)}
.feature-card:hover{border-color:var(--green-200);box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.feature-card__icon{width:2.75rem;height:2.75rem;border-radius:var(--radius-md);display:flex;
  align-items:center;justify-content:center;font-size:1.25rem;margin-bottom:1rem;
  background:var(--green-50);color:var(--green-600)}
.feature-card__title{font-size:1rem;font-weight:600;margin-bottom:.5rem}
.feature-card__desc{font-size:.875rem;color:var(--text-secondary);line-height:1.6}

/* ── CTA Section ── */
.cta{padding:5rem 0;text-align:center;background:var(--gradient-hero);color:#fff;position:relative;overflow:hidden}
.cta::before{content:'';position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  pointer-events:none}
.cta h2{font-size:2rem;font-weight:700;margin-bottom:.75rem}
.cta p{opacity:.85;max-width:28rem;margin:0 auto 2rem;font-size:1.0625rem}
.cta .btn--secondary{background:#fff;color:var(--green-700);border-color:#fff}
.cta .btn--secondary:hover{background:var(--green-50)}

/* ── Footer ── */
.footer{padding:3rem 0 2rem;border-top:1px solid var(--border-default);background:var(--bg-secondary)}
.footer__inner{display:flex;justify-content:space-between;align-items:start;flex-wrap:wrap;gap:2rem}
.footer__brand{max-width:16rem}
.footer__brand p{font-size:.8125rem;color:var(--text-secondary);margin-top:.5rem;line-height:1.6}
.footer__links{display:flex;gap:3rem}
.footer__col h4{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  color:var(--text-tertiary);margin-bottom:.75rem}
.footer__col a{display:block;font-size:.875rem;color:var(--text-secondary);padding:.25rem 0;transition:color var(--duration-fast)}
.footer__col a:hover{color:var(--text-primary)}
.footer__bottom{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--border-default);
  display:flex;justify-content:space-between;align-items:center;font-size:.75rem;color:var(--text-tertiary)}
@media(max-width:768px){
  .footer__inner{flex-direction:column}.footer__links{flex-direction:column;gap:1.5rem}
}

/* ── Animations ── */
@keyframes fadeInUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes shimmer{0%{background-position:-200px 0}100%{background-position:calc(200px+100%) 0}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.7}}
.animate-in{animation:fadeInUp .5s var(--ease) both}
.delay-1{animation-delay:.1s}.delay-2{animation-delay:.2s}.delay-3{animation-delay:.3s}
.skeleton{background:linear-gradient(90deg,var(--gray-100) 25%,var(--gray-200) 50%,var(--gray-100) 75%);
  background-size:200px 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--radius-sm)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ── Toast Notifications ── */
.toast-container{position:fixed;top:1rem;right:1rem;z-index:999;display:flex;flex-direction:column;gap:.5rem}
.toast{padding:.75rem 1rem;border-radius:var(--radius-md);background:var(--gray-900);color:#fff;
  font-size:.875rem;box-shadow:var(--shadow-lg);animation:fadeInUp .3s var(--ease);max-width:22rem}
.toast--success{background:var(--success)}.toast--error{background:var(--error)}
.toast--warning{background:var(--warning);color:var(--gray-900)}

/* ── Dashboard Styles ── */
.dashboard{padding:2rem 0}
.dashboard__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;flex-wrap:wrap;gap:1rem}
.cv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}
.cv-card{border-radius:var(--radius-lg);border:1px solid var(--border-default);overflow:hidden;
  background:#fff;transition:all var(--duration-normal) var(--ease)}
.cv-card:hover{box-shadow:var(--shadow-md);border-color:var(--green-200)}
.cv-card__preview{height:180px;background:var(--bg-tertiary);position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;color:var(--text-tertiary)}
.cv-card__body{padding:1rem}
.cv-card__title{font-weight:600;font-size:.9375rem;margin-bottom:.25rem}
.cv-card__meta{font-size:.75rem;color:var(--text-tertiary)}
.cv-card__actions{display:flex;gap:.5rem;margin-top:.75rem}
.empty-state{text-align:center;padding:4rem 2rem}
.empty-state__icon{font-size:3rem;margin-bottom:1rem;opacity:.4}
.empty-state__title{font-size:1.125rem;font-weight:600;margin-bottom:.375rem}
.empty-state__desc{font-size:.875rem;color:var(--text-secondary);max-width:22rem;margin:0 auto 1.5rem}

/* ── Auth Pages ── */
.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:var(--bg-secondary)}
.auth__card{width:100%;max-width:400px;background:#fff;border-radius:var(--radius-xl);padding:2.5rem;
  box-shadow:var(--shadow-lg);border:1px solid var(--border-default)}
.auth__logo{text-align:center;margin-bottom:2rem}
.auth__logo h1{font-size:1.5rem;color:var(--green-500)}
.auth__logo p{font-size:.875rem;color:var(--text-secondary);margin-top:.375rem}
.auth__divider{display:flex;align-items:center;gap:1rem;margin:1.5rem 0;color:var(--text-tertiary);font-size:.8125rem}
.auth__divider::before,.auth__divider::after{content:'';flex:1;height:1px;background:var(--border-default)}
.auth__footer{text-align:center;margin-top:1.5rem;font-size:.875rem;color:var(--text-secondary)}
.auth__footer a{color:var(--green-500);font-weight:500}
.auth__footer a:hover{text-decoration:underline}

/* ── Language Switcher ── */
.lang-switcher{position:relative}
.lang-switcher__btn{display:flex;align-items:center;gap:.375rem;padding:.375rem .625rem;
  border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);
  border:1px solid var(--border-default);background:#fff}
.lang-switcher__btn:hover{border-color:var(--border-hover)}
.lang-switcher__menu{position:absolute;top:calc(100%+.375rem);right:0;min-width:10rem;
  background:#fff;border:1px solid var(--border-default);border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);padding:.375rem;z-index:60;display:none}
.lang-switcher__menu.open{display:block}
.lang-switcher__item{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;
  border-radius:var(--radius-sm);font-size:.875rem;width:100%;text-align:left}
.lang-switcher__item:hover{background:var(--bg-tertiary)}
.lang-switcher__item.active{background:var(--green-50);color:var(--green-600);font-weight:500}
