:root {
  --bg:      #0A0F1E;
  --bg-alt:  #0D1528;
  --surface: #111D35;
  --border:  rgba(255,255,255,0.07);
  --text:    #E8EDF8;
  --text-2:  #8A96B0;
  --text-3:  #4A5470;
  --accent:  #4A90D9;
  --card:    #0E1830;
  --nav-bg:  rgba(10,15,30,0.92);
  --ease:    0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

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


#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 58px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-row {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 640px) { .nav-row { padding: 0 22px; } }

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-2);
  position: relative;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.22s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
@media (max-width: 480px) { .nav-links { gap: 16px; } }


#hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 130px 0 88px;
}
#hero .wrap { width: 100%; }
.hero-content { max-width: 700px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  opacity: 0;
  animation: up 0.65s 0.1s ease forwards;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.hero-name {
  font-weight: 800;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 22px;
  opacity: 0;
  animation: up 0.75s 0.22s ease forwards;
}
.hero-name em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-role {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-2);
  margin-bottom: 44px;
  opacity: 0;
  animation: up 0.75s 0.34s ease forwards;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: up 0.75s 0.46s ease forwards;
}
.chip {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
}
.chip-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-2);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3daf6e;
  flex-shrink: 0;
  animation: pulse 2.2s ease infinite;
}


.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-label::after { content: ''; width: 40px; height: 1px; background: var(--border); }

.sec-title {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 10px;
}
.sec-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 48px;
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .skills-grid { grid-template-columns: 1fr; } }

.sk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.sk-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
}
.sk-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sk-card:hover::before { opacity: 1; }

.sk-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.sk-card:hover .sk-ico {
  background: rgba(74,144,217,0.12);
  border-color: rgba(74,144,217,0.3);
}
.sk-ico svg {
  width: 20px; height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sk-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
}
.sk-desc {
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 100px;
}


.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.wc-lg { grid-column: span 7; }
.wc-sm { grid-column: span 5; }
.wc-hf { grid-column: span 6; }
@media (max-width: 860px) { .wc-lg, .wc-sm, .wc-hf { grid-column: 1 / -1; } }

.wcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.22s ease;
}
.wcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.45);
  border-color: rgba(74,144,217,0.4);
}

.wthumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.wthumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  filter: brightness(0.75) saturate(0.8);
}
.wcard:hover .wthumb img {
  transform: scale(1.05);
  filter: brightness(0.88) saturate(1);
}
.wthumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.65) 0%, transparent 55%);
  pointer-events: none;
}

.wbody { padding: 20px 22px 10px; }
.wtag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.wtitle {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.wdesc {
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
}

.wfoot {
  padding: 12px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wyear { font-size: 0.60rem; color: var(--text-3); letter-spacing: 0.08em; }

.wcta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74,144,217,0.1);
  border: 1px solid rgba(74,144,217,0.25);
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease, transform 0.2s ease;
}
.wcta:hover {
  background: rgba(74,144,217,0.2);
  border-color: var(--accent);
  gap: 9px;
  transform: translateY(-1px);
}
.wcta svg {
  width: 11px; height: 11px;
  stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}


.connect-circles { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.circ {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.circ:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.circ svg { width: 20px; height: 20px; stroke: var(--text-2); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.18s; }
.circ svg.f { stroke: none; fill: var(--text-2); transition: fill 0.18s; }
.circ:hover svg { stroke: var(--accent); }
.circ:hover svg.f { fill: var(--accent); }
.circ::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: var(--bg);
  font-size: 0.58rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.circ:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }


#footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 44px;
}
.foot-brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 9px;
}
.foot-brand span { color: var(--accent); }
.foot-tag { font-size: 0.76rem; font-weight: 300; color: var(--text-2); line-height: 1.75; max-width: 290px; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 520px) { .foot-nav { align-items: flex-start; } }
.foot-nav a { font-size: 0.72rem; font-weight: 400; color: var(--text-2); transition: color 0.18s; }
.foot-nav a:hover { color: var(--accent); }
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-copy { font-size: 0.62rem; color: var(--text-3); }
.foot-status { display: flex; align-items: center; gap: 7px; font-size: 0.62rem; color: var(--text-3); }

@keyframes up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.nav-showcase {
color: var(--accent) !important;
border: 1px solid rgba(74,144,217,0.3);
padding: 5px 14px;
border-radius: 100px;
font-size: 0.72rem !important;
transition: background 0.2s ease, border-color 0.2s ease !important;
}
.nav-showcase::after { display: none !important; }
.nav-showcase:hover {
background: rgba(74,144,217,0.12) !important;
border-color: var(--accent) !important;
color: var(--accent) !important;
}

.hero-showcase-btn {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 32px;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--accent);
background: rgba(74,144,217,0.1);
border: 1px solid rgba(74,144,217,0.3);
padding: 12px 24px;
border-radius: 100px;
opacity: 0;
animation: up 0.75s 0.58s ease forwards;
transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease, transform 0.2s ease;
}
.hero-showcase-btn:hover {
background: rgba(74,144,217,0.2);
border-color: var(--accent);
gap: 12px;
transform: translateY(-2px);
}
.hero-showcase-btn svg {
width: 13px; height: 13px;
stroke: currentColor; fill: none;
stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

@media (max-width: 640px) {
#hero {
  align-items: center;
}
}

.nav-social { display: none; }

@media (max-width: 640px) {
.nav-links { display: none; }
.nav-social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
}
.nav-icon svg {
  width: 17px; height: 17px;
  stroke: var(--text-2); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  display: block;
}
.nav-icon svg.f { stroke: none; fill: var(--text-2); }
}