/* ==========================================
   İhsan Deniz Tüfekci — Portfolio CSS
   Design: Bold & Colorful, Dark Base
   Accent: Electric Orange #FF4D00
   Fonts: Bricolage Grotesque (display) + Plus Jakarta Sans (body)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────── */
:root {
  --bg-base:       #0D1117;
  --bg-elevated:   #161B22;
  --bg-card:       #1C2128;
  --bg-sidebar:    #111318;
  --accent:        #FF4D00;
  --accent-muted:  rgba(255, 77, 0, 0.12);
  --accent-glow:   rgba(255, 77, 0, 0.25);
  --text-primary:  #F0F6FC;
  --text-muted:    #8B949E;
  --text-dim:      #484F58;
  --border:        rgba(255, 255, 255, 0.06);
  --border-hover:  rgba(255, 77, 0, 0.4);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2);
  --shadow-md:     0 4px 8px rgba(0,0,0,0.4), 0 12px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-lg:     0 8px 16px rgba(0,0,0,0.5), 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-accent: 0 0 0 1px rgba(255,77,0,0.3), 0 8px 32px rgba(255,77,0,0.2);
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  48px;
  --space-2xl: 80px;
  --sidebar-w: 260px;
}

/* ── Reset & Base ─────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Sidebar ──────────────────────────── */
nav.yan-menu {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

/* noise texture overlay */
nav.yan-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* accent line top */
nav.yan-menu::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* ── Profile Card ─────────────────────── */
.profil-card-algın {
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  text-align: center;
  position: relative;
}

.profil-card-blok {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.profil-card-blok a {
  text-decoration: none;
}

.avatar-ring {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto var(--space-sm);
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), #FF8C00, var(--accent));
  animation: spin 8s linear infinite;
  z-index: 0;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--bg-sidebar);
  z-index: 1;
}

.avatar-ring img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  display: block;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.menu-site-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.menu-site-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Social Icons ─────────────────────── */
.sosyal-icon {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.sosyal-icon a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.sosyal-icon a:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ── Nav Menu ─────────────────────────── */
.menu-divider {
  width: calc(100% - 48px);
  margin: 0 24px;
  height: 1px;
  background: var(--border);
}

.menu-list-title {
  list-style: none;
  padding: var(--space-lg) var(--space-lg);
  flex: 1;
}

.menu-list-title li {
  margin: 2px 0;
}

.menu-list-title a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s, padding-left 0.2s;
  position: relative;
}

.menu-list-title a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.2s;
}

.menu-list-title a:hover {
  color: var(--text-primary);
  background: var(--accent-muted);
  padding-left: calc(var(--space-md) + 4px);
}

.menu-list-title a:hover::before {
  height: 60%;
}

.menu-list-title a.active {
  color: var(--accent);
  background: var(--accent-muted);
}

.menu-list-title a.active::before {
  height: 60%;
}

.nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* ── Hamburger (mobile) ───────────────── */
.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

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

/* ── Main Wrapper ─────────────────────── */
#wapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-base);
}

#wapper-content {
  padding: 0;
}

/* ── Section shared ───────────────────── */
.section {
  padding: var(--space-2xl) var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

/* ── Custom Cursor ────────────────────── */
* { cursor: none !important; }

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 77, 0, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s,
              left 0.08s linear,
              top 0.08s linear;
}

body.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
}

/* ── Scroll Progress Bar ──────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 500;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Page Load Entrance ───────────────── */
.page-enter {
  animation: pageEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ── Word-Split Reveal ────────────────── */
.word-reveal {
  overflow: hidden;
  display: inline-block;
}

.word-reveal .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.word-reveal.visible .word {
  transform: translateY(0);
  opacity: 1;
}

/* ── Reveal Animation ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays */
.reveal-1 { transition-delay: 0.12s; }
.reveal-2 { transition-delay: 0.22s; }
.reveal-3 { transition-delay: 0.32s; }
.reveal-4 { transition-delay: 0.42s; }

/* ── HERO ─────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* background gradient mesh */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 77, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 140, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-greeting {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-greeting::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: var(--space-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 77, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--accent-muted);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.stat-item {}

.stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Image */
.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-img-wrap {
  position: relative;
  width: 380px;
  height: 460px;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: conic-gradient(from 180deg, var(--accent), #FF8C00, #FFB800, var(--accent));
  animation: spin 6s linear infinite;
  z-index: 0;
}

.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--bg-elevated);
  z-index: 1;
}

.hero-img-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  z-index: 3;
  box-shadow: var(--shadow-md);
}

.hero-badge-text {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-badge-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

/* ── ABOUT / Yetenekler — Editorial Numbered ── */
/* ── SERVICES / EXPERTISE — Bento Grid ─ */
.svc-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: var(--space-xl);
}

.svc-card:nth-child(1) { grid-column: 1 / span 7; }
.svc-card:nth-child(2) { grid-column: 8 / span 5; }
.svc-card:nth-child(3) { grid-column: 1 / span 5; }
.svc-card:nth-child(4) { grid-column: 6 / span 7; }

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: default;
  transition:
    border-color 0.35s,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s;
}

.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(255,77,0,0.08) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.svc-card:hover {
  border-color: rgba(255, 77, 0, 0.45);
  transform: translateY(-5px);
  box-shadow:
    0 2px 4px rgba(255,77,0,0.04),
    0 8px 24px rgba(255,77,0,0.09),
    0 24px 48px rgba(0,0,0,0.22);
}

.svc-card:hover::after { opacity: 1; }

.svc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.svc-icon-wrap {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  border-radius: 12px;
  color: var(--accent);
  border: 1px solid rgba(255,77,0,0.18);
  transition: background 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.svc-card:hover .svc-icon-wrap {
  background: rgba(255,77,0,0.16);
  transform: scale(1.1) rotate(-4deg);
}

.svc-num-tag {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.3s, color 0.3s;
}

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

.svc-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}

.svc-card:hover .svc-title { color: #fff; }

.svc-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  position: relative;
  z-index: 1;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.svc-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.svc-card:hover .svc-tags span {
  color: var(--accent);
  border-color: rgba(255,77,0,0.25);
  background: var(--accent-muted);
}

.svc-watermark {
  position: absolute;
  bottom: -24px;
  right: 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 110px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  user-select: none;
}

.svc-card:hover .svc-watermark {
  opacity: 0.09;
  transform: scale(1.06);
}

/* ── TECH STACK — Marquee ─────────────── */
.tech-section {
  background: var(--bg-elevated);
}

.tech-marquee-wrap {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow: hidden;
  /* fade out edges */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.tech-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marqueeLeft 32s linear infinite;
}

.tech-track--rev {
  animation-name: marqueeRight;
  animation-duration: 28s;
}

.tech-marquee-wrap:hover .tech-track {
  animation-play-state: paused;
}

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

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

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-pill:hover {
  border-color: var(--border-hover);
  background: var(--bg-base);
  transform: translateY(-3px) scale(1.04);
}

/* branded icon badge */
.tpi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: white;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* tech name */
.tpn {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* level badge */
.tpl {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  padding: 2px 8px;
  background: var(--accent-muted);
  border-radius: 20px;
}

/* ── PORTFOLIO ────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.portfolio-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.06);
}

.portfolio-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.8) 0%, transparent 60%);
}

.portfolio-tag {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
}

.portfolio-body {
  padding: var(--space-lg);
}

.portfolio-body h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.portfolio-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}

.portfolio-link:hover {
  gap: var(--space-sm);
}

/* ── TESTIMONIALS ─────────────────────── */
.testimonials-section {
  background: var(--bg-elevated);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: border-color 0.2s, transform 0.25s;
}

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

.testimonial-quote {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  line-height: 0.8;
  margin-bottom: var(--space-md);
  display: block;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-muted);
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── CONTACT ──────────────────────────── */
.contact-section {}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  align-items: start;
}

.contact-info h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-item-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  padding: 12px var(--space-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-control::placeholder {
  color: var(--text-dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 77, 0, 0.35);
}

.btn-submit:active {
  transform: translateY(0) scale(0.98);
}

.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  transform: none;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── FOOTER ───────────────────────────── */
.footer {
  padding: var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 13px;
  color: var(--text-dim);
}

.footer span {
  color: var(--accent);
}

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: var(--space-xl);
  }

  .hero::before, .hero::after { display: none; }

  .hero-image {
    order: -1;
  }

  .hero-img-wrap {
    width: 260px;
    height: 320px;
  }

  .hero-desc { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-greeting { justify-content: center; }
  .hero-stats { justify-content: center; }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .svc-bento {
    grid-template-columns: 1fr 1fr;
  }
  .svc-card:nth-child(1),
  .svc-card:nth-child(2),
  .svc-card:nth-child(3),
  .svc-card:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  nav.yan-menu {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 150;
    width: 280px;
  }

  nav.yan-menu.open {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  #wapper {
    margin-left: 0;
  }

  .scroll-progress {
    left: 0;
  }

  .section {
    padding: var(--space-xl) var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px var(--space-lg) var(--space-xl);
  }

  .tech-marquee-wrap {
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }

  .svc-bento {
    grid-template-columns: 1fr;
  }
  .svc-card:nth-child(1),
  .svc-card:nth-child(2),
  .svc-card:nth-child(3),
  .svc-card:nth-child(4) {
    grid-column: 1 / -1;
  }
}
