/* =============================================
   SF Webdesign Media — Tech-IT Dark Theme
   ============================================= */

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

:root {
  --bg:        #050a0e;
  --bg2:       #080f14;
  --bg3:       #0d1620;
  --surface:   #0e1a24;
  --surface2:  #142030;
  --border:    #1a2d3f;
  --accent:    #00d4ff;
  --accent2:   #7c3aed;
  --accent3:   #10b981;
  --text:      #e2eaf0;
  --text2:     #8ba3b5;
  --text3:     #4d6478;
  --font:      'Space Grotesk', sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --glow:      0 0 40px rgba(0,212,255,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 40px;
  height: 68px;
  background: rgba(5, 10, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-bracket { color: var(--accent); }
.logo-text { color: #fff; }
.logo-dot { color: var(--accent2); }
.logo-sub { color: var(--text2); font-size: 0.85rem; font-weight: 400; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.2s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--accent);
  color: #000;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0;
}

@keyframes float {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-80vh) scale(1.5); opacity: 0; }
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--accent3);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-family: var(--mono);
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-line { display: block; }
.title-line.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text2);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

.btn-primary:hover {
  background: #33ddff;
  box-shadow: 0 0 30px rgba(0,212,255,0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  line-height: 1;
}

.stat-label { color: var(--text3); font-size: 0.8rem; margin-top: 4px; }

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== CODE WINDOW ===== */
.hero-visual {
  flex-shrink: 0;
  width: 420px;
  z-index: 1;
}

.code-window, .terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }

.window-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text3);
}

.code-body {
  padding: 24px 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.9;
}

.code-line { display: flex; gap: 4px; flex-wrap: wrap; }
.code-line.pad { padding-left: 20px; }
.code-line.mt { margin-top: 8px; }

.c-keyword { color: #c792ea; }
.c-var     { color: #82aaff; }
.c-op      { color: var(--text2); }
.c-punct   { color: var(--text2); }
.c-prop    { color: #89ddff; }
.c-str     { color: #c3e88d; }

.code-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  margin-top: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ===== TECH STRIP ===== */
.tech-strip {
  padding: 20px 0;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.tech-strip-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tech-item {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text3);
  padding: 0 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

.tech-item:hover { color: var(--accent); }

.tech-sep {
  color: var(--accent);
  font-weight: 700;
  opacity: 0.4;
}

/* ===== SECTION COMMON ===== */
.projects, .services, .about, .contact {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text2);
  font-size: 1rem;
}

/* ===== FILTER ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), 0 0 30px rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.3);
}

.project-card.hidden { display: none; }

.card-img {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.project-card:hover .card-overlay { opacity: 1; }

.card-tech {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  padding: 4px 10px;
  border-radius: 4px;
}

.card-mockup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  width: 75%;
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
}

.mock-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

.mock-line {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }
.mock-line.w70 { width: 70%; }
.mock-line.w90 { width: 90%; }
.mock-line.w50 { width: 50%; }
.mock-line.w40 { width: 40%; }

.mock-btn {
  height: 12px;
  width: 50px;
  background: rgba(0,212,255,0.3);
  border-radius: 3px;
  margin-top: 4px;
}

.mock-grid {
  display: flex;
  gap: 6px;
}

.mock-card {
  flex: 1;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

.mock-dashboard {
  display: flex;
  gap: 8px;
}

.mock-chart {
  flex: 2;
  height: 50px;
  background: linear-gradient(to top, rgba(0,212,255,0.3), transparent);
  border-radius: 4px;
}

.mock-stats { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.mock-stat {
  height: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

.mock-table { display: flex; flex-direction: column; gap: 6px; }

.mock-row {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.featured-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.project-card.featured {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 0 20px rgba(124,58,237,0.1);
}

.card-body { padding: 20px; }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-tag.webdesign { background: rgba(0,212,255,0.1); color: var(--accent); }
.card-tag.ecommerce { background: rgba(124,58,237,0.1); color: #a78bfa; }
.card-tag.app       { background: rgba(16,185,129,0.1); color: var(--accent3); }

.card-year {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text3);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  color: var(--text2);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-footer { border-top: 1px solid var(--border); padding-top: 14px; }

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}

.card-link:hover { opacity: 0.8; }

/* ===== SERVICES ===== */
.services { background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.service-icon {
  width: 56px; height: 56px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(0,212,255,0.15);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text2);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* ===== ABOUT ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-tag { text-align: left; }

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== TERMINAL ===== */
.terminal-body {
  padding: 20px 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.85;
}

.t-line { display: flex; gap: 8px; }
.t-prompt { color: var(--accent3); }
.t-cmd    { color: var(--accent); }
.t-out    { color: var(--text2); padding-left: 16px; }
.t-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

/* ===== CONTACT ===== */
.contact { background: var(--bg2); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text2);
  font-size: 0.9rem;
}

.info-item svg { color: var(--accent); flex-shrink: 0; }

.info-item a {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.info-item a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  font-family: var(--mono);
}

.form-group input, .form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text3);
}

/* Honeypot anti-bot: complet ascuns vizual, dar accesibil in DOM pt. bot-i */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--mono);
}
.form-msg.success {
  background: rgba(16,185,129,0.1);
  color: var(--accent3);
  border: 1px solid rgba(16,185,129,0.3);
}
.form-msg.error {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand > div, .footer-brand > span {
  font-family: var(--mono);
  font-size: 0.9rem;
}

.footer-brand p {
  color: var(--text3);
  font-size: 0.8rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text3);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  color: var(--text3);
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 100px 24px 60px; gap: 48px; }
  .hero-visual { width: 100%; max-width: 440px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 24px 16px;
  }
  .nav-links.active a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links.active a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 90px 20px 50px; }
}

/* ===================================================
   PROJECT DETAIL PAGE
   =================================================== */

/* ── Hero ── */
.proj-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  padding-top: 100px;
}

.proj-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,10,14,0.5) 0%, rgba(5,10,14,0.85) 100%);
}

.proj-hero-content {
  position: relative;
  z-index: 1;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  font-size: 0.85rem;
  font-family: var(--mono);
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--accent); }

.proj-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.proj-cat-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.proj-cat-webdesign { background: rgba(0,212,255,0.15);  color: var(--accent); }
.proj-cat-ecommerce { background: rgba(124,58,237,0.15); color: #a78bfa; }
.proj-cat-app       { background: rgba(16,185,129,0.15); color: var(--accent3); }

.proj-year-badge {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.proj-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.proj-tech-line {
  color: var(--text2);
  font-family: var(--mono);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.proj-url-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Content ── */
.proj-content { padding: 60px 0; }

.proj-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.proj-desc-block .section-tag { text-align: left; margin-bottom: 16px; }

.proj-short-desc {
  font-size: 1.1rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 20px;
}

.proj-full-desc {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* Sidebar */
.proj-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.proj-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.proj-detail-row:last-child { border-bottom: none; }

.detail-label {
  color: var(--text3);
  font-size: 0.8rem;
  font-family: var(--mono);
  font-weight: 600;
  flex-shrink: 0;
}
.detail-value {
  color: var(--text);
  font-size: 0.85rem;
  text-align: right;
  font-family: var(--mono);
}
.detail-link {
  color: var(--accent);
  font-size: 0.82rem;
  font-family: var(--mono);
  text-align: right;
  transition: opacity 0.2s;
}
.detail-link:hover { opacity: 0.7; }

/* ── Gallery ── */
.proj-gallery { padding: 0 0 80px; }
.proj-gallery .section-tag { display: block; margin-bottom: 24px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-img-wrap img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 64px rgba(0,0,0,0.8);
}

.lb-counter {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text3);
}

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(14,26,36,0.9);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--accent);
}

.lb-close {
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
}
.lb-prev {
  left: 20px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
}
.lb-next {
  right: 20px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
}

/* ── More Projects ── */
.more-projects { padding: 0 0 100px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .proj-inner { grid-template-columns: 1fr; gap: 40px; }
  .proj-sidebar { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 640px) {
  .proj-hero { min-height: 300px; padding-bottom: 40px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .proj-detail-card { padding: 16px; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
