/* ============================================
   ירין · תיק עבודות — minimal
   ============================================ */

:root{
  --bg: #f4f1ec;
  --paper: #ffffff;
  --ink: #16140f;
  --ink-2: #4d4a44;
  --muted: #8a857c;
  --line: #e3ddd2;
  --line-2: #d6cfc1;
  --accent: #ff5b2e;
  --accent-soft: #ffece4;
  --nav-bg: rgba(244, 241, 236, .82);
  --gal-tag-bg: rgba(244, 241, 236, .92);
}

html[data-theme="dark"]{
  --bg: #14120e;
  --paper: #1c1a16;
  --ink: #f1ede4;
  --ink-2: #b6b0a4;
  --muted: #807a70;
  --line: #2b2823;
  --line-2: #3a3630;
  --accent: #ff7048;
  --accent-soft: #2a1a14;
  --nav-bg: rgba(20, 18, 14, .82);
  --gal-tag-bg: rgba(20, 18, 14, .9);
}

html, body{ background: var(--bg); color: var(--ink); transition: background .3s, color .3s; }

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{ scroll-behavior: smooth; }

body{
  font-family: 'Heebo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection{ background: var(--ink); color: var(--bg); }

/* ====== nav ====== */
.nav{
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo{
  font-weight: 800; font-size: 18px; letter-spacing: -.3px;
}
.logo span{ color: var(--muted); font-weight: 500; }

.nav-links{ display: flex; gap: 28px; }
.nav-links a{
  font-size: 15px; color: var(--ink-2); font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover{ color: var(--accent); }

.nav-cta{
  padding: 10px 18px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover{ background: var(--accent); }

.theme-toggle{
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .25s;
}
.theme-toggle:hover{ border-color: var(--ink); transform: rotate(15deg); }
.theme-toggle svg{ width: 18px; height: 18px; }
.theme-toggle .icon-sun{ display: none; }
.theme-toggle .icon-moon{ display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display: none; }
.nav-right{ display: flex; align-items: center; gap: 10px; }

@media (max-width: 720px){
  .nav-links{ display: none; }
  .nav{ padding: 14px 5vw; }
}

/* ====== hero ====== */
.hero{
  padding: 0 0 60px;
  max-width: 1300px; margin: 0 auto;
}
.hero-banner{
  width: 100%;
  margin-bottom: 36px;
  overflow: hidden;
}
.hero-banner img{
  width: 100%;
  height: auto;
  display: block;
}
.hero-text{
  text-align: center;
  padding: 0 6vw;
}
.hero h1{
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.hero-divider{
  width: 60px; height: 3px;
  background: var(--ink);
  margin: 0 auto 22px;
  border-radius: 2px;
}
.lead{
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions{ justify-content: center; }

/* ====== buttons ====== */
.hero-actions{ display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .2s, background .2s, color .2s;
}
.btn-primary{
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover{ background: var(--accent); }
.btn-link{
  color: var(--ink); padding: 14px 4px;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}
.btn-link:hover{ color: var(--accent); border-bottom-color: var(--accent); }

/* ====== sections ====== */
.section{
  padding: 70px 6vw;
  max-width: 1300px; margin: 0 auto;
}
.section-head{
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-head h2{
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
}
.section-head .lead{ margin: 0; font-size: 15px; max-width: 540px; }

/* ====== portfolio ====== */
.filter-bar{ display: flex; gap: 4px; flex-wrap: wrap; }
.filter{
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: transparent;
  transition: .15s;
}
.filter:hover{ border-color: var(--ink); color: var(--ink); }
.filter.active{ background: var(--ink); color: var(--bg); border-color: var(--ink); }

.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.gal-item{
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform .25s, border-color .2s;
}
.gal-item:hover{ transform: translateY(-2px); border-color: var(--line-2); }
.gal-item img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.gal-item:hover img{ transform: scale(1.04); }
.gal-tag{
  position: absolute; top: 10px; inset-inline-start: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gal-tag-bg);
  border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .5px;
  opacity: 0;
  transition: opacity .2s;
}
.gal-item:hover .gal-tag{ opacity: 1; }
.gal-item.hidden{ display: none; }

/* ====== servers ====== */
.servers .section-head{
  justify-content: center;
  text-align: center;
  border-bottom: none;
  padding-bottom: 12px;
}
.servers-logos{
  display: flex; justify-content: center; align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.servers-logos img{
  width: 160px; height: 160px;
  object-fit: contain;
  transition: transform .25s;
}
.servers-logos img:hover{ transform: translateY(-4px); }
@media (max-width: 600px){
  .servers-logos{ gap: 30px; }
  .servers-logos img{ width: 110px; height: 110px; }
}

/* ====== pricing ====== */
.price-list{
  list-style: none;
  display: grid;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.price-list li{
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.price-list li:last-child{ border-bottom: none; }
.price-list li:hover{ background: var(--accent-soft); }
.price-list h3{
  font-size: 17px; font-weight: 600;
  display: flex; align-items: baseline; gap: 8px;
}
.price-list h3 small{ color: var(--muted); font-size: 13px; font-weight: 400; }
.price-list .price{
  font-size: 22px; font-weight: 800;
  color: var(--accent);
}

/* ====== contact ====== */
.contact{ text-align: center; }
.contact .section-head{
  flex-direction: column; align-items: center;
  border-bottom: none;
  margin-bottom: 26px;
}
.discord-cta{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  background: #5865F2;
  color: #fff;
  border-radius: 999px;
  font-size: 17px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px -8px rgba(88, 101, 242, .5);
}
.discord-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(88, 101, 242, .7);
}

/* ====== footer ====== */
.footer{
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  margin-top: 60px;
}

/* ====== lightbox ====== */
.lightbox{
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 20, 15, .92);
  display: none;
  align-items: center; justify-content: center;
  padding: 5vh 5vw;
}
.lightbox.open{ display: flex; }
.lb-stage img{
  max-width: 88vw; max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-close,.lb-prev,.lb-next{
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 24px; line-height: 1;
  display: grid; place-items: center;
  transition: background .15s;
}
.lb-close:hover,.lb-prev:hover,.lb-next:hover{ background: var(--accent); }
.lb-close{ top: 20px; inset-inline-end: 20px; }
.lb-prev{ top: 50%; inset-inline-end: 20px; transform: translateY(-50%); }
.lb-next{ top: 50%; inset-inline-start: 20px; transform: translateY(-50%); }

/* ====== reveal ====== */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ====== subtle animations ====== */
@keyframes float-soft{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}
@keyframes fade-up{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes pulse-soft{
  0%,100%{ box-shadow: 0 6px 20px -8px rgba(88,101,242,.5); }
  50%{ box-shadow: 0 8px 28px -6px rgba(88,101,242,.75); }
}
@keyframes underline-grow{
  from{ width: 0; }
  to{ width: 60px; }
}
@keyframes shimmer{
  0%{ background-position: -200% 0; }
  100%{ background-position: 200% 0; }
}

.hero-banner img{ animation: fade-up .9s ease-out both; }
.hero h1{ animation: fade-up .8s ease-out .15s both; }
.hero-divider{ animation: underline-grow .7s ease-out .35s both; }
.hero .lead{ animation: fade-up .8s ease-out .45s both; }
.hero-actions{ animation: fade-up .8s ease-out .6s both; }

.servers-logos img{ animation: float-soft 4.5s ease-in-out infinite; }
.servers-logos img:nth-child(2){ animation-delay: .6s; }
.servers-logos img:nth-child(3){ animation-delay: 1.2s; }
.servers-logos img:hover{ transform: translateY(-8px) scale(1.04); }

.discord-cta{ animation: pulse-soft 3s ease-in-out infinite; }

.hero h1{
  background-image: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--accent) 50%, var(--ink) 60%, var(--ink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up .8s ease-out .15s both, shimmer 6s linear 1.5s infinite;
}

.gal-item{ transition: transform .3s cubic-bezier(.2,.7,.3,1.2), border-color .2s, box-shadow .25s; }
.gal-item:hover{ transform: translateY(-4px); box-shadow: 0 12px 28px -14px rgba(0,0,0,.25); }

.nav-cta{ position: relative; overflow: hidden; }
.nav-cta::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-100%);
  transition: transform .6s;
}
.nav-cta:hover::after{ transform: translateX(100%); }

.filter{ transition: .2s cubic-bezier(.2,.7,.3,1.2); }
.filter:hover{ transform: translateY(-1px); }

.price-list li{ transition: background .2s, padding .2s; }
.price-list li:hover{ padding-inline-start: 32px; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
