/* ============================================
   Zep Bilişim — UI Bileşenleri
   ============================================ */

/* ========================
   NAVBAR
   ======================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .nav-logo-img {
    height: 26px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--green3);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--green2);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* Tablet — dar yatay modlar (1025px–1140px) */
@media (min-width: 1025px) and (max-width: 1140px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .nav-cta {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }
}

/* Mobil & Tablet Navbar */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 2rem 2rem;
    padding-top: 5rem;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
    z-index: 200;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .nav-cta {
    display: none;
  }

  /* Kapatma butonu — sağ üst köşe, sabit */
  .nav-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 210;
    transition: background 0.2s ease, transform 0.2s ease;
    line-height: 1;
  }

  .nav-links.open .nav-close {
    display: flex;
  }

  .nav-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
  }

  .nav-overlay.active {
    display: block;
  }

  .nav-links .nav-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-lang a {
    display: inline-block;
    padding: 0;
    border-bottom: 0;
  }
}

/* 1024px üstü — close butonu gizle */
@media (min-width: 1025px) {
  .nav-close {
    display: none !important;
  }
}

/* ========================
   FOOTER
   ======================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Sosyal ikonlar (LinkedIn, Trustpilot) — metin rengini izler */
.footer-social .social-icon {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-social a:hover {
  color: var(--green);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================
   TERMINAL PENCERESİ
   ======================== */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.9rem;
  width: 100%;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red    { background: var(--red); }
.dot.yellow { background: var(--orange); }
.dot.green  { background: var(--green2); }

.terminal-title {
  color: var(--muted);
  font-size: 0.8rem;
}

.terminal-body {
  padding: 1.2rem 1.5rem;
  min-height: 120px;
  overflow-x: auto;
}

.terminal-body .line {
  white-space: pre;
  line-height: 1.8;
}

.terminal-body .line.line-wrap {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-body .line .prompt-sign {
  color: var(--green);
  user-select: none;
}

.terminal-body .line .cmd {
  color: var(--text);
}

.terminal-body .line .output {
  color: var(--muted);
}

.terminal-body .line .flag {
  color: var(--blue);
}

.terminal-body .line .string {
  color: var(--orange);
}

.terminal-body .line .success {
  color: var(--green);
}

.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* Terminal animasyon satırları — başlangıçta gizli */
.terminal-body .anim-item {
  opacity: 0;
  transition: opacity 0.35s ease;
  margin-bottom: 1.2rem;
}

.terminal-body .anim-item:last-child {
  margin-bottom: 0;
}

/* Ardışık line-wrap satırları arasında boşluk azalt */
.terminal-body .anim-item.line-wrap + .anim-item.line-wrap {
  margin-top: -0.9rem;
}

.terminal-body .anim-item.anim-visible {
  opacity: 1;
}

/* Aktif yazılan komutun sonunda yanıp sönen imleç */
.terminal-body .cmd.typing::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--green);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}

/* type-rich animasyonu sırasında cursor */
.rich-cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background: var(--green);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ========================
   KARTLAR
   ======================== */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--green3);
  transform: translateY(-2px);
}

.card-label {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(126, 231, 135, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

.card-link:hover {
  color: var(--green2);
}

/* ========================
   STATS BAR
   ======================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

@media (max-width: 600px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================
   SÜREÇ (PROCESS STEPS)
   ======================== */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg2);
  transition: border-color 0.3s ease;
}

.process-step:hover {
  border-color: var(--green3);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(126, 231, 135, 0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h3 {
  margin-bottom: 0.3rem;
}

.step-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(126, 231, 135, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
}

/* ========================
   REFERANS KARTLARI
   ======================== */
.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.testimonial-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-info .role {
  font-size: 0.8rem;
  color: var(--muted);
}

.testimonial-stars {
  color: var(--orange);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================
   SSS ACCORDION
   ======================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: none;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--green);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================
   CTA BANNER
   ======================== */
.cta-banner {
  background: linear-gradient(135deg, var(--green3), #1a5c2a);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
}

/* CTA başlığı bir BÖLÜM BAŞLIĞI DEĞİLDİR — eylem çağrısıdır.
   Bu yüzden <h2> değil, .cta-title sınıflı bir metin öğesi kullanılır:
   sayfanın başlık hiyerarşisine karışmaz, görünüm birebir aynı kalır.
   (h2 seçicisi eski sayfalar için geriye dönük olarak korunuyor.) */
.cta-banner h2,
.cta-banner .cta-title {
  color: #fff;
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);   /* h2 ile aynı ölçek */
  font-weight: 600;
  line-height: 1.3;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.cta-banner .btn {
  background: #fff;
  color: var(--green3);
  font-weight: 700;
  border: none;
}

.cta-banner .btn:hover {
  background: var(--text);
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Reserved intrinsic size — prevents 300x150 default flash + CLS
     before canvas.js calls resize(). Aspect-ratio matches HTML attrs. */
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  padding: 0;
  color: var(--text);
  letter-spacing: 0;
  text-indent: 0;
  text-align: left;
  /* Reserved space for typing animation + font swap → no reflow.
     2 satır × 40px × 1.25 = 100px (mobile fallback'te de aynı). */
  min-height: calc(40px * 1.25 * 2);
}

@media (max-width: 600px) {
  .hero-title {
    /* Mobil'de h1 wrap tipik 2-3 satır olur — 3 satırlık reserved alan */
    min-height: calc(32px * 1.25 * 3);
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
}

.terminal-body .hero-title {
  margin-left: 0;
  padding-left: 0;
}

/* Alt sayfa başlığı — terminal içinde */
.page-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  padding: 0.2rem 0;
  color: var(--text);
  letter-spacing: 0;
  text-align: left;
  /* Reserved alan — typing animation + font swap reflow önleme */
  min-height: calc(30px * 1.25 + 0.4rem);
}

@media (max-width: 600px) {
  .page-title {
    font-size: 24px;
    min-height: calc(24px * 1.25 * 2 + 0.4rem);
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3rem;
    /* Mobil'de de reserved min-height — content yüklenmeden önce
       layout sabit kalsın, CLS=0. (Eski: auto → JS yüklenince zıplama) */
    min-height: 70vh;
  }

  .hero-canvas {
    /* Mobile'da canvas görünür kalsın — kullanıcı kararı: animasyon korunur */
    display: block;
  }
}

/* ========================
   SKILL BARS
   ======================== */
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.skill-header .skill-name {
  color: var(--text);
}

.skill-header .skill-percent {
  color: var(--green);
  font-weight: 600;
}

.skill-track {
  width: 100%;
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green3), var(--green));
  border-radius: 4px;
  transition: width 1.2s ease;
}

/* ========================
   FORM STİLLERİ
   ======================== */
/* Honeypot (bot tuzağı) — ekran dışı, erişilebilirlik ağacından gizli.
   display:none KULLANILMAZ; bazı botlar onu atlar. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green3);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--red);
}

.form-group .error-msg {
  font-size: 0.8rem;
  color: var(--red);
  display: none;
}

.form-group input.error ~ .error-msg,
.form-group select.error ~ .error-msg,
.form-group textarea.error ~ .error-msg {
  display: block;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ========================
   BREADCRUMB
   ======================== */
.breadcrumb {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '>';
  color: var(--dim);
}

.breadcrumb-list li a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumb-list li a:hover {
  color: var(--green);
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--green);
}

/* ========================
   PAGE HERO (Alt sayfalar)
   ======================== */
.page-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .terminal {
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
}

/* ========================
   HİZMET DETAY SAYFASI
   ======================== */
.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-features li::before {
  content: '▹';
  color: var(--green);
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ========================
   İLETİŞİM LAYOUT
   ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.contact-info-item .label {
  color: var(--dim);
  min-width: 100px;
}

.contact-info-item .value {
  color: var(--text);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================
   PROJECT SHOWCASE
   ======================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.project-mockup {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 2rem;
}

.mockup-desktop {
  background: #161b22;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  width: 88%;
}

.mockup-desktop-bar {
  background: #0d1117;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27c93f; }

.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  background: #161b22;
  padding: 3px 10px;
  border-radius: 4px;
  max-width: 200px;
  margin: 0 auto;
}

.mockup-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
  position: relative;
}

.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.mockup-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0.5;
}

.mockup-mobile {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24%;
  max-width: 160px;
  background: #0d1117;
  border: 3px solid #21262d;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.mockup-mobile-notch {
  width: 40%;
  height: 10px;
  background: #0d1117;
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.mockup-mobile .mockup-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 14px;
}

.project-info { padding-top: 0.5rem; }

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.project-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-tag {
  padding: 0.2rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--green);
  font-family: var(--font-mono);
}

.project-link {
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: letter-spacing 0.2s ease;
}

.project-link:hover {
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .project-card { padding: 1.25rem; }
  .mockup-mobile { width: 28%; border-radius: 14px; }
  .mockup-mobile .mockup-screen { border-radius: 10px; }
}

.project-hidden {
  display: none;
}

.project-show {
  display: block;
  animation: projectFadeIn 0.5s ease forwards;
}

@keyframes projectFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
