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

:root {
  --red:        #e03c28;
  --red-dark:   #c0321e;
  --red-glow:   rgba(224, 60, 40, 0.22);
  --bg:         #07070e;
  --bg2:        #0c0c18;
  --bg3:        #121220;
  --surface:    #16162a;
  --surface2:   #1c1c32;
  --border:     rgba(255, 255, 255, 0.06);
  --border-hi:  rgba(255, 255, 255, 0.13);
  --text:       #e8e8f0;
  --muted:      #5e5e90;
  --accent:     #5f50e0;
  --f-display:  'Geist Variable', sans-serif;
  --f-body:     'Geist Variable', sans-serif;
  --f-mono:     'Geist Mono', monospace;
}

html { scroll-behavior: smooth; }

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

/* Grain overlay */
body::after {
  content: '';
  position: fixed; 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)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9998;
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--red-glow);
}

/* Custom cursor */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, background 0.2s, opacity 0.3s;
  will-change: left, top;
}

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }

i[data-lucide] { display: inline-flex; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7, 7, 14, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.15rem; font-weight: 800;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.03em;
}

.nav-logo .dev-tag { color: #e03c28 !important; font-size: 0.62em; font-weight: 700; vertical-align: baseline; }

.nav-logo-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-icon img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }

/* ── AVATAR PARTICLES ── */
#avatar-particles {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  pointer-events: none;
  z-index: 2;
}

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s; letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 7px 18px; border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

.lang-btn {
  background: transparent;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted);
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500;
  padding: 6px 12px; cursor: pointer;
  letter-spacing: 0.08em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
}

.lang-btn:hover { color: var(--text); border-color: var(--border-hi); background: var(--surface); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }

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

.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); }

/* ── SECTIONS ── */
section { padding: 110px 5%; }

/* ── GEOMETRIC SHAPES ── */
.geo-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.geo { position: absolute; }
.geo-1  { width: 170px; height: 170px; top: 8%;   right: 6%;  animation: geo-float 9s  ease-in-out infinite; }
.geo-2  { width: 110px; height: 110px; bottom: 18%; left: 4%;  animation: geo-float 12s ease-in-out infinite reverse 1s; }
.geo-3  { width: 75px;  height: 75px;  top: 28%;  left: 2%;   animation: geo-float 14s ease-in-out infinite 2s; }
.geo-4  { width: 55px;  height: 55px;  top: 18%;  left: 22%;  animation: geo-float 10s ease-in-out infinite 0.5s; }
.geo-5  { width: 145px; height: 145px; bottom: 8%;  right: 4%;  animation: geo-float 11s ease-in-out infinite reverse 3s; }
.geo-6  { width: 85px;  height: 85px;  top: 55%;  right: 14%; animation: geo-float 8s  ease-in-out infinite 1.5s; }
.geo-7  { width: 60px;  height: 60px;  bottom: 30%; right: 22%; animation: geo-float 13s ease-in-out infinite 4s; }

@keyframes geo-float {
  0%,  100% { transform: translateY(0px)   rotate(0deg); }
  33%        { transform: translateY(-14px) rotate(5deg); }
  66%        { transform: translateY(-8px)  rotate(-3deg); }
}

/* ── Mobile performance: disable heavy animations on touch devices ── */
@media (hover: none) and (pointer: coarse) {
  .geo { animation: none !important; display: none; }
  .project-thumb-skeleton { animation: none; }
  .project-thumb-5 svg { animation: none; }
  #avatar-particles { display: none; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(224, 60, 40, 0.11) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(95, 80, 224, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(224, 60, 40, 0.05) 0%, transparent 50%);
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 80%);
}

.hero-content { position: relative; z-index: 1; max-width: 860px; padding: 40px 20px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224, 60, 40, 0.09);
  border: 1px solid rgba(224, 60, 40, 0.25);
  border-radius: 100px; padding: 6px 16px;
  font-family: var(--f-mono); font-size: 0.68rem;
  color: var(--red); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 36px;
}

.status-dot {
  width: 6px; height: 6px;
  background: #22c55e; border-radius: 50%;
  animation: pulse-dot 2s infinite; flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.hero-intro {
  font-family: var(--f-body);
  font-size: 1.05rem; color: var(--muted);
  font-weight: 400; letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.hero-name {
  font-family: var(--f-display);
  font-size: clamp(5rem, 14vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.05em; line-height: 0.88;
  color: var(--text); margin-bottom: 14px;
}

/* ── TYPEWRITER ── */
.hero-role {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700; color: var(--red);
  letter-spacing: -0.01em; margin-bottom: 26px;
  min-height: 2.2rem;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px; height: 1.1em;
  background: var(--red);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}

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

.hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--muted);
  max-width: 500px; margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  font-family: var(--f-body); font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer; border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 22px var(--red-glow); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 8px 30px rgba(224,60,40,0.36); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-hi); }
.btn-outline:hover { background: var(--surface); border-color: rgba(255,255,255,0.2); }
.btn svg { width: 16px; height: 16px; }

/* Stats strip */
.hero-stats {
  display: flex; justify-content: center;
  margin-top: 72px;
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  background: rgba(22, 22, 42, 0.45);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.stat { flex: 1; min-width: 110px; padding: 22px 18px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }

.stat-value { display: block; font-family: var(--f-mono); font-size: 1.75rem; font-weight: 500; color: var(--text); letter-spacing: -0.04em; }
.stat-label { display: block; font-family: var(--f-mono); font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ── SECTION HEADERS ── */
.section-label {
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--red); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}

.section-label::before { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--red); flex-shrink: 0; }
.section-label.center { justify-content: center; }
.section-label.center::before { display: none; }

.section-title { font-family: var(--f-display); font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 16px; }
.section-desc { color: var(--muted); max-width: 520px; font-size: 0.95rem; line-height: 1.75; }

/* ── ABOUT ── */
.about { background: var(--bg2); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1100px; margin: 0 auto; }
.about-visual { position: relative; }

.avatar-wrapper { width: 280px; height: 280px; margin: 0 auto; position: relative; }

.avatar-ring {
  position: absolute; inset: -16px; border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(var(--red), var(--accent), var(--red)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 10s linear infinite;
}

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

.avatar { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--surface), var(--surface2)); display: flex; align-items: center; justify-content: center; border: 3px solid var(--surface2); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-placeholder { display: none; align-items: center; justify-content: center; color: var(--muted); }
.avatar-placeholder svg { width: 80px; height: 80px; }

.floating-badge {
  position: absolute;
  background: rgba(22, 22, 42, 0.88);
  border: 1px solid var(--border-hi);
  border-radius: 12px; padding: 10px 16px;
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500;
  white-space: nowrap; display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(14px); letter-spacing: 0.04em;
}

.floating-badge svg { width: 14px; height: 14px; }
.floating-badge.top-right  { top: 10px;    right: -20px; color: #22c55e; }
.floating-badge.bottom-left { bottom: 10px; left: -20px;  color: var(--accent); }

.about-text .section-desc { margin-bottom: 28px; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.about-list li::before { content: '→'; color: var(--red); font-weight: 700; flex-shrink: 0; font-family: var(--f-mono); }

/* ── SKILLS ── */
.skills-section { background: var(--bg); }
.skills-inner { max-width: 1100px; margin: 0 auto; }
.skills-header { text-align: center; margin-bottom: 64px; }
.skills-header .section-desc { margin: 0 auto; }

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

.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  transition: transform 0.2s, border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
  cursor: pointer;
}

.skill-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0; transition: opacity 0.25s;
}

.skill-card:hover { transform: translateY(-4px); border-color: rgba(224, 60, 40, 0.25); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.skill-card:hover::before { opacity: 1; }

.skill-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }

.skill-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(224, 60, 40, 0.1); display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; }
.skill-icon svg { width: 22px; height: 22px; }

.skill-expand-btn {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.3s;
}
.skill-expand-btn svg { width: 14px; height: 14px; pointer-events: none; }
.skill-card.expanded .skill-expand-btn { background: rgba(224,60,40,0.12); color: var(--red); transform: rotate(180deg); }

.skill-name { font-family: var(--f-display); font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.01em; }
.skill-bar-track { height: 3px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 4px; width: 0%; background: linear-gradient(90deg, var(--red), #ff7058); transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1); }
.skill-level { font-family: var(--f-mono); font-size: 0.66rem; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }

/* Skill expand panel */
.skill-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  opacity: 0;
}
.skill-card.expanded .skill-panel { max-height: 600px; opacity: 1; }

.skill-panel-inner {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background: var(--bg3);
}

/* Colored top band */
.skill-panel-header {
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, rgba(224,60,40,0.18) 0%, rgba(95,80,224,0.12) 100%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.skill-panel-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(224,60,40,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); flex-shrink: 0;
}
.skill-panel-icon svg { width: 15px; height: 15px; }
.skill-panel-title {
  font-family: var(--f-display); font-size: 0.86rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.skill-panel-sub {
  font-family: var(--f-mono); font-size: 0.6rem;
  color: var(--muted); margin-top: 1px; letter-spacing: 0.06em;
}

/* Body */
.skill-panel-body { padding: 14px 16px 16px; }

.skill-panel-desc {
  font-size: 0.8rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 12px;
}

.skill-panel-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.skill-panel-bullets li {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 0.78rem; color: var(--muted);
}
.skill-panel-bullets li::before {
  content: '✓'; color: #22c55e;
  font-weight: 700; font-family: var(--f-mono); flex-shrink: 0;
}

/* Footer row: price + CTA */
.skill-panel-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--border);
}

.skill-price {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(224, 60, 40, 0.12);
  border: 1px solid rgba(224, 60, 40, 0.3);
  border-radius: 100px; padding: 5px 12px;
  font-family: var(--f-mono); font-size: 0.7rem;
  color: var(--red); font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(224,60,40,0.12);
}

.skill-panel-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600;
  color: var(--accent); text-decoration: none; letter-spacing: 0.04em;
  transition: gap 0.2s, color 0.2s;
}
.skill-panel-cta svg { width: 12px; height: 12px; }
.skill-panel-cta:hover { gap: 8px; color: #a78bfa; }

/* ── PROJECTS ── */
.projects { background: var(--bg2); }
.projects-inner { max-width: 1100px; margin: 0 auto; }
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 20px; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; cursor: pointer; isolation: isolate; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45); border-color: rgba(224, 60, 40, 0.22); }

.project-card.featured-card { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; }
.project-card.featured-card .project-thumb { height: 100%; min-height: 230px; }

.project-thumb { height: 180px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: rgba(255, 255, 255, 0.25); }
.project-thumb svg { width: 48px; height: 48px; }
.project-roblox-thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.project-thumb-skeleton { position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.project-thumb-1 { background: linear-gradient(135deg, #1a0a2e, #3d1060); }
.project-thumb-2 { background: linear-gradient(135deg, #0a1a2e, #103d60); }
.project-thumb-3 { background: linear-gradient(135deg, #1a2e0a, #3d6010); }
.project-thumb-4 { background: linear-gradient(135deg, #2e1a0a, #603d10); }
.project-thumb-5 { background: linear-gradient(135deg, #2e0a0a, #601010); }

/* Clock tick animation in "Coming Soon" card */
@keyframes clock-tick { to { transform: rotate(360deg); } }
.project-thumb-5 svg { animation: clock-tick 60s steps(60, end) infinite; }


.project-badge { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px); border-radius: 100px; padding: 4px 10px; font-family: var(--f-mono); font-size: 0.64rem; font-weight: 500; color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); letter-spacing: 0.07em; }
.project-badge.featured { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }

.project-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.project-title { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.02em; }
.project-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-family: var(--f-mono); font-size: 0.65rem; color: var(--muted); font-weight: 400; letter-spacing: 0.05em; }
.project-meta { display: flex; justify-content: space-between; align-items: center; }
.project-stats { display: flex; gap: 14px; }
.project-stat { font-family: var(--f-mono); font-size: 0.73rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.project-stat svg { width: 12px; height: 12px; }
.project-link { font-family: var(--f-mono); font-size: 0.73rem; color: var(--red); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 4px; letter-spacing: 0.05em; transition: gap 0.2s; }
.project-link svg { width: 13px; height: 13px; }
.project-link:hover { gap: 8px; }

/* ── BUILDING GALLERY ── */
.building-section { background: var(--bg); }
.building-inner { max-width: 1100px; margin: 0 auto; }
.building-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); cursor: pointer; aspect-ratio: 16/10; transition: border-color 0.25s; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: unset; }
.gallery-item:hover { border-color: rgba(224, 60, 40, 0.22); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder { width: 100%; height: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); background: linear-gradient(135deg, var(--surface), var(--surface2)); }
.gallery-placeholder svg { width: 32px; height: 32px; opacity: 0.28; }
.gallery-placeholder span { font-family: var(--f-mono); font-size: 0.68rem; opacity: 0.38; letter-spacing: 0.04em; }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 52%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 18px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { font-family: var(--f-display); font-size: 0.9rem; font-weight: 700; color: #fff; }
.gallery-caption small { display: block; font-family: var(--f-mono); font-size: 0.66rem; font-weight: 400; color: rgba(255,255,255,0.5); margin-top: 2px; letter-spacing: 0.04em; }

/* ── LIGHTBOX ── */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 12px; object-fit: contain; box-shadow: 0 32px 80px rgba(0,0,0,0.6); }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: color 0.2s, background 0.2s; }
.lightbox-close:hover { color: var(--text); background: var(--surface2); }
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: color 0.2s, background 0.2s; }
.lightbox-nav:hover { color: var(--text); background: var(--surface2); }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-info { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); text-align: center; }
.lightbox-title { font-family: var(--f-display); font-size: 0.95rem; font-weight: 700; color: #fff; }
.lightbox-sub   { font-family: var(--f-mono); font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 2px; }
.lightbox-counter { font-family: var(--f-mono); font-size: 0.66rem; color: rgba(255,255,255,0.3); margin-top: 6px; letter-spacing: 0.06em; }

/* ── EXPERIENCE ── */
.experience { background: var(--bg); }
.experience-inner { max-width: 1100px; margin: 0 auto; }
.exp-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 17px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { display: flex; gap: 20px; padding-bottom: 36px; cursor: pointer; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; transition: border-color 0.2s, background 0.2s; color: var(--muted); }
.timeline-dot svg { width: 16px; height: 16px; }
.timeline-item.active .timeline-dot, .timeline-item:hover .timeline-dot { border-color: var(--red); background: rgba(224, 60, 40, 0.1); color: var(--red); }
.timeline-info { padding-top: 6px; }
.timeline-title { font-family: var(--f-display); font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; letter-spacing: -0.01em; }
.timeline-company { font-size: 0.8rem; color: var(--muted); }
.timeline-date { font-family: var(--f-mono); font-size: 0.66rem; color: var(--red); font-weight: 500; margin-top: 4px; letter-spacing: 0.07em; }
.exp-detail { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; position: relative; overflow: hidden; }
.exp-detail::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent); }
.exp-detail-title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -0.03em; }
.exp-detail-sub { font-family: var(--f-mono); font-size: 0.73rem; color: var(--muted); margin-bottom: 24px; display: flex; gap: 18px; flex-wrap: wrap; letter-spacing: 0.04em; }
.exp-detail-sub span { display: flex; align-items: center; gap: 6px; }
.exp-detail-sub svg { width: 13px; height: 13px; flex-shrink: 0; }
.exp-detail-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }
.exp-achievements { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exp-achievements li { display: flex; gap: 10px; font-size: 0.85rem; color: var(--text); }
.exp-achievements li::before { content: '→'; color: var(--red); flex-shrink: 0; font-weight: 700; font-family: var(--f-mono); }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--bg2); }
.testimonials-inner { max-width: 1100px; margin: 0 auto; }
.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-header .section-desc { margin: 0 auto; }

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

.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  position: relative; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.testi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.testi-card:hover { transform: translateY(-4px); border-color: rgba(95,80,224,0.28); box-shadow: 0 12px 40px rgba(0,0,0,0.32); }

.testi-quote {
  font-size: 2.4rem; line-height: 1; color: var(--accent);
  font-family: Georgia, serif; margin-bottom: 14px; opacity: 0.5;
}

.testi-text { font-size: 0.88rem; color: var(--muted); line-height: 1.75; margin-bottom: 22px; font-style: italic; }

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 0.9rem; font-weight: 700;
  color: #fff; flex-shrink: 0;
}

.testi-name { font-family: var(--f-display); font-size: 0.88rem; font-weight: 700; color: var(--text); }
.testi-role { font-family: var(--f-mono); font-size: 0.66rem; color: var(--muted); margin-top: 2px; letter-spacing: 0.04em; }

.testi-stars { display: flex; gap: 2px; margin-left: auto; color: #f59e0b; }
.testi-stars svg { width: 13px; height: 13px; fill: currentColor; }

/* ── BLOG ── */
.blog-section { background: var(--bg); }
.blog-inner { max-width: 720px; margin: 0 auto; }
.blog-header { text-align: center; margin-bottom: 52px; }
.blog-header .section-desc { margin: 0 auto; }

.blog-feed { display: flex; flex-direction: column; gap: 20px; }

.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 28px 22px;
  position: relative; overflow: hidden;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.blog-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--red), var(--accent));
  border-radius: 3px 0 0 3px;
}
.blog-card:hover { transform: translateY(-3px); border-color: rgba(224,60,40,0.2); box-shadow: 0 10px 36px rgba(0,0,0,0.28); }

.blog-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.blog-date {
  font-family: var(--f-mono); font-size: 0.64rem; color: var(--muted);
  letter-spacing: 0.08em;
}
.blog-tag {
  font-family: var(--f-mono); font-size: 0.6rem; font-weight: 600;
  padding: 2px 8px; border-radius: 100px; letter-spacing: 0.07em;
  background: rgba(224,60,40,0.1); color: var(--red);
  border: 1px solid rgba(224,60,40,0.2);
}

.blog-title {
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em; margin-bottom: 8px;
}

.blog-body {
  font-size: 0.88rem; color: var(--muted); line-height: 1.75;
}

/* ── CONTACT ── */
.contact { background: var(--bg2); }
.contact-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.contact-inner .section-desc { margin: 0 auto 48px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; font-family: var(--f-body); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; outline: none; resize: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.form-group select option { background: var(--surface); }
.form-group textarea { min-height: 130px; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; }
.social-links { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.social-link { width: 48px; height: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.2s, border-color 0.2s, background 0.2s; color: var(--muted); }
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { transform: translateY(-3px); border-color: var(--red); background: rgba(224, 60, 40, 0.08); color: var(--red); }

/* ── FOOTER ── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 28px 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-family: var(--f-mono); font-size: 0.73rem; color: var(--muted); letter-spacing: 0.04em; }
.footer-copy span { color: var(--red); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: var(--f-mono); font-size: 0.73rem; color: var(--muted); text-decoration: none; transition: color 0.2s; letter-spacing: 0.04em; }
.footer-links a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── NOTIFICATION ── */
.notification { position: fixed; bottom: 32px; right: 32px; background: var(--surface); border: 1px solid var(--border-hi); border-radius: 14px; padding: 16px 20px; font-size: 0.85rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 12px; z-index: 999; transform: translateY(100px); opacity: 0; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s; pointer-events: none; }
.notification.show { transform: translateY(0); opacity: 1; }
.notification-icon { display: flex; align-items: center; color: #22c55e; }
.notification-icon svg { width: 20px; height: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: rgba(7, 7, 14, 0.98); backdrop-filter: blur(18px); flex-direction: column; gap: 0; padding: 20px 0; border-bottom: 1px solid var(--border); transform: translateY(-200%); transition: transform 0.3s; }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { padding: 0 5%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links li:last-child a { border-bottom: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .about-list li { justify-content: center; }
  .exp-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured-card { grid-column: span 1; grid-template-columns: 1fr; }
  .project-card.featured-card .project-thumb { height: 180px; min-height: unset; }
  .hero-stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 16/10; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
