:root{ --bg:#0b1220; --card:#0f172a; --muted:#94a3b8; --text:#e2e8f0; --brand:#0ea5e9; --brand-2:#22c55e; --ring:rgba(14,165,233,.35); --shadow:0 10px 30px rgba(2,6,23,.5); --radius:18px; --container:1200px }
@media (prefers-color-scheme: light){ :root{ --bg:#f8fafc; --card:#ffffff; --text:#0f172a; --muted:#475569; --shadow:0 10px 25px rgba(2,6,23,.08) }}
*{box-sizing:border-box} html,body{margin:0}
body{font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji"; background:radial-gradient(1000px 600px at 80% -10%, rgba(34,197,94,.15), transparent 60%), radial-gradient(800px 500px at 20% 120%, rgba(14,165,233,.18), transparent 60%), var(--bg); color:var(--text); line-height:1.6}
.container{max-width:var(--container); margin-inline:auto; padding:24px}

header{position:sticky; top:0; z-index:50; background:rgba(14,165,233,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom:1px solid rgba(148,163,184,.12)}
.nav{display:flex; align-items:center; justify-content:space-between}
.brand{display:flex; align-items:center; gap:.75rem}
.logo{width:120px; height:120px; border-radius:12px; object-fit:contain; display:block}
.logo-small{width:28px; height:28px; border-radius:8px}
.brand strong{letter-spacing:.3px; color:#fff}

/* Link-uri generale */
a {
  color: var(--brand);
  text-decoration: none;
  transition: color .2s, text-decoration .2s;
}

a:hover {
  text-decoration: underline;
}

/* Link-uri din navigație */
nav a {
  padding: 10px 12px;
  color: #fff;
  opacity: .9;
  text-decoration: none;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Butoane */
.btn{display:inline-flex; align-items:center; gap:.5rem; padding:12px 18px; border-radius:999px; border:1px solid rgba(148,163,184,.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow:var(--shadow); transition:.2s transform,.2s box-shadow,.2s background-color,.2s border-color}
.btn:hover{transform:translateY(-1px); box-shadow:0 16px 30px rgba(2,6,23,.18)}
.btn.primary{background:linear-gradient(135deg, var(--brand), #38bdf8); color:#fff; border-color:transparent}
.btn.ghost{background:rgba(148,163,184,.08)}

/* Diverse */
.chip{display:inline-block; padding:6px 10px; font-size:.85rem; border:1px solid rgba(148,163,184,.3); color:var(--text); opacity:.85; border-radius:999px}
.card{background:var(--card); border:1px solid rgba(148,163,184,.15); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow)}
.section{padding-block:70px}
.section h2{font-size: clamp(24px, 2.8vw, 36px); margin:0 0 10px 0}
.section p.lead{color:var(--muted); margin:0 0 24px 0}
.grid{display:grid; gap:18px}
.grid.cards{grid-template-columns: repeat(12, 1fr)}
.grid.cards .card{grid-column: span 6}
@media (min-width: 920px){ .grid.cards .card{grid-column: span 4} }

.portfolio{display:grid; grid-template-columns: repeat(12, 1fr); gap:16px}
.item{grid-column: span 12; position:relative; overflow:hidden; border-radius:var(--radius)}
@media (min-width: 720px){ .item{grid-column: span 6} }
@media (min-width: 1120px){ .item{grid-column: span 4} }
.thumb{aspect-ratio:16/10; width:100%; background:linear-gradient(135deg, rgba(14,165,233,.15), rgba(34,197,94,.15)); display:grid; place-items:center; color:var(--muted); border:1px solid rgba(148,163,184,.15)}

.hero{padding-block:80px}
.hero-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:32px; align-items:center}
.sub{font-size: clamp(16px, 1.4vw, 20px); color:var(--muted); max-width:60ch}
.headline{font-size: clamp(32px, 4.2vw, 56px); line-height:1.05; margin:.2em 0}

.contact{display:grid; grid-template-columns:1fr; gap:20px}
@media (min-width: 920px){ .contact{grid-template-columns: 1.1fr .9fr} }
.field{display:grid; gap:8px}
.input, textarea{width:100%; padding:14px 16px; border-radius:12px; border:1px solid rgba(148,163,184,.25); background:rgba(2,6,23,.05); color:var(--text); outline:none}
.input:focus, textarea:focus{border-color:var(--brand); box-shadow:0 0 0 4px var(--ring)}
textarea{min-height:140px; resize:vertical}

/* Confirmare formular */
#confirm {
  margin-top: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
#confirm.ok { color:#22c55e }
#confirm.error { color:#ef4444 }

footer{padding:32px 24px; border-top:1px solid rgba(148,163,184,.12); color:var(--muted)}
.foot{display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; max-width:var(--container); margin-inline:auto}
.mini{font-size:.9rem}

.skip{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip:focus{left:12px; top:12px; width:auto; height:auto; padding:10px 14px; background:var(--card); border-radius:10px}
/* Portofoliu – imagini */
.proj .thumb { position: relative; overflow: hidden; }
.proj .thumb-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  aspect-ratio: 16 / 9; /* păstrează raportul */
  border:1px solid rgba(148,163,184,.15);
  background: radial-gradient(600px 320px at 80% -10%, rgba(34,197,94,.12), transparent 60%),
              radial-gradient(600px 320px at 20% 120%, rgba(14,165,233,.15), transparent 60%);
}

/* Overlay la hover (dacă nu l-ai pus deja) */
.proj .overlay {
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:14px;
  background:linear-gradient(180deg, rgba(2,6,23,0) 50%, rgba(2,6,23,.75) 100%);
  opacity:0; transition:opacity .25s ease;
}
.proj:hover .overlay { opacity:1 }
.proj .ov-title { display:flex; align-items:center; gap:8px; font-weight:600; color:#e2e8f0; }
.proj .ov-action { font-size:.9rem; color:#94a3b8; margin-top:4px; }
/* Banda albă cu titlul proiectului */
.proj .ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%; /* acoperă partea de jos a cardului */
  background: rgba(255, 255, 255, 0.7); /* mai transparentă */
  backdrop-filter: blur(4px);
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  
  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;   /* font mai mic */
  font-weight: 600;
  color: #0f172a;
  letter-spacing: .3px;
  line-height: 1.4;

  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 2;
}

.proj:hover .ribbon {
  opacity: 0;
  transform: translateY(20px);
}
.proj:hover .overlay {
  opacity: 1;
}
/* Animație intrare bandă */
@keyframes ribbonSlideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.proj .ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;

  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: .3px;
  line-height: 1.4;

  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 2;

  /* animația la încărcare */
  animation: ribbonSlideIn 0.8s ease-out;
}
