/* ===============================
   Muhavan Portfolio — Dark Aesthetic
   Custom modern dark theme with bold animations
================================== */

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

:root {
  --bg-0: #05080f;
  --bg-1: #0a0f1a;
  --bg-2: #0f1622;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-1: #e6ebf5;
  --text-2: #9aa3b5;
  --text-3: #5a6378;
  --accent: #4a6fa8;       /* muted navy blue */
  --accent-2: #1a2942;     /* deep navy */
  --accent-3: #6c8bc4;     /* lighter navy on hover */
  --accent-ink: #ffffff;   /* text color on accent fills */
  --grad: linear-gradient(135deg, #5b80bf 0%, #1a2942 100%);
  --shadow-glow: 0 0 60px rgba(74, 111, 168, 0.18);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(74, 111, 168, 0.16), transparent 70%),
    radial-gradient(900px 500px at 100% 10%, rgba(74, 111, 168, 0.08), transparent 70%),
    var(--bg-0);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a {
  color: var(--text-1);
  text-decoration: none;
  transition: color 0.3s var(--easing);
}

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

h1,
h2,
h3,
h4 {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- Custom Cursor (desktop) ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: none;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  transition: transform 0.2s var(--easing), width 0.3s var(--easing),
    height 0.3s var(--easing), border-color 0.3s var(--easing);
}
.cursor-ring.is-hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  mix-blend-mode: difference;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    display: block;
  }
  body {
    cursor: none;
  }
  a,
  button {
    cursor: none;
  }
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s var(--easing), visibility 0.6s var(--easing);
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
}
.preloader-text {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.8s ease-in-out infinite;
}
.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.preloader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: translateX(-100%);
  animation: loadbar 1.4s var(--easing) infinite;
}
@keyframes loadbar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes shimmer {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 200;
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ---------- Top Header ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 5%;
  background: rgba(5, 8, 15, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--easing), background 0.4s var(--easing),
    border-color 0.4s var(--easing);
  transform: translateY(-100%);
  animation: slideDown 0.9s var(--easing) 0.2s forwards;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

#header.scrolled {
  padding: 10px 5%;
  background: rgba(5, 8, 15, 0.88);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-1);
  transition: opacity 0.3s var(--easing);
}

.brand:hover {
  color: var(--text-1);
  opacity: 0.85;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px dashed rgba(74, 111, 168, 0.5);
  animation: spin 18s linear infinite;
  opacity: 0;
  transition: opacity 0.3s var(--easing);
}

.brand:hover .brand-mark::before {
  opacity: 1;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-1) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

/* Nav menu */
.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu ul {
  list-style: none;
  padding: 6px;
  margin: 0;
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
  position: relative;
  transition: color 0.3s var(--easing);
  white-space: nowrap;
}

.nav-menu a i {
  font-size: 1.05rem;
  transition: transform 0.35s var(--easing);
}

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

.nav-menu a:hover i {
  transform: translateY(-2px);
}

.nav-menu a.active {
  color: var(--text-1);
  background: rgba(74, 111, 168, 0.18);
  box-shadow: inset 0 0 0 1px rgba(74, 111, 168, 0.32);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.4s var(--easing);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  opacity: 0;
  transition: opacity 0.4s var(--easing);
}

.header-cta span,
.header-cta i {
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--easing);
}

.header-cta:hover {
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 111, 168, 0.4);
}

.header-cta:hover::before {
  opacity: 1;
}

.header-cta:hover i {
  transform: translate(3px, -3px);
}

/* Mobile burger */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-1);
  transition: transform 0.4s var(--easing), opacity 0.3s var(--easing);
  transform-origin: center;
}

body.mobile-nav-active .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.mobile-nav-active .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.mobile-nav-active .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 900px) {
  #header {
    padding: 14px 5%;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 5%;
    right: 5%;
    background: rgba(10, 15, 26, 0.96);
    backdrop-filter: blur(28px);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 10px;
    flex: unset;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s var(--easing);
  }
  body.mobile-nav-active .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 14px;
  }
  .nav-menu a {
    padding: 12px 18px;
    border-radius: 12px;
  }
  .brand-sub {
    display: none;
  }
}

/* ---------- Main layout ---------- */
#main {
  margin: 0;
  padding-top: 92px;
  position: relative;
  z-index: 2;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 5% 80px;
  overflow: hidden;
  background: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-portrait {
    order: -1;
  }
}

#hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 111, 168, 0.28), transparent 70%);
  border-radius: 50%;
  top: 10%;
  right: -10%;
  filter: blur(60px);
  animation: float 12s ease-in-out infinite;
}
#hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 111, 168, 0.16), transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  left: -8%;
  filter: blur(60px);
  animation: float 16s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, -40px);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 32px;
  font-family: "JetBrains Mono", monospace;
  position: relative;
  z-index: 2;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 111, 168, 0.65);
  animation: pulse 2s ease-in-out infinite;
}

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

#hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  #hero h1 {
    font-size: clamp(1.9rem, 9.5vw, 3rem);
  }
}

#hero h1 .word {
  display: inline-block;
  vertical-align: top;
  padding: 0.05em 0.08em;
  margin: -0.05em -0.08em;
}
#hero h1 .word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  animation: rise 0.9s var(--easing) forwards;
}
#hero h1 .word:nth-child(1) span { animation-delay: 0.1s; }
#hero h1 .word:nth-child(2) span { animation-delay: 0.2s; }
#hero h1 .word:nth-child(3) span { animation-delay: 0.3s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: bold;
  font-weight: 500;
}

#hero p {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.9s var(--easing) 0.6s forwards;
}

#hero p .typed {
  color: var(--accent);
  font-weight: 600;
}

.typed-cursor {
  color: var(--accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.9s var(--easing) 0.8s forwards;
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all 0.4s var(--easing);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #ffffff;
  color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 111, 168, 0.24);
}

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

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

.btn-primary i,
.btn-ghost i {
  transition: transform 0.35s var(--easing);
}

.btn-primary:hover i,
.btn-ghost:hover i {
  transform: translateX(4px);
}

/* ---------- Hero Portrait ---------- */
.hero-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--easing) 0.5s forwards;
}

.portrait-frame {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-photo {
  position: relative;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b2e, #050810);
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 80px -20px rgba(74, 111, 168, 0.35);
  z-index: 3;
  transition: transform 0.6s var(--easing);
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--easing);
}

.portrait-frame:hover .portrait-photo {
  transform: scale(1.02);
}

.portrait-frame:hover .portrait-photo img {
  transform: scale(1.06);
}

.portrait-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 55%);
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 1.2s var(--easing);
}

.portrait-frame:hover .portrait-shine {
  transform: translateX(100%);
}

.portrait-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(74, 111, 168, 0.45), transparent 60%);
  filter: blur(40px);
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

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

.portrait-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.portrait-ring.ring-1 {
  inset: 0;
  border: 1px dashed rgba(108, 139, 196, 0.45);
  animation: spinSlow 28s linear infinite;
}

.portrait-ring.ring-1::before,
.portrait-ring.ring-1::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(74, 111, 168, 0.8);
}
.portrait-ring.ring-1::before {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}
.portrait-ring.ring-1::after {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-3);
  box-shadow: 0 0 14px rgba(108, 139, 196, 0.9);
}

.portrait-ring.ring-2 {
  inset: 6%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(108, 139, 196, 0.5);
  border-right-color: rgba(74, 111, 168, 0.4);
  animation: spinReverse 14s linear infinite;
}

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

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

/* Floating tech badges */
.portrait-badge {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(13, 27, 46, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(108, 139, 196, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 4;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  animation: floatBadge 5s ease-in-out infinite;
}

.portrait-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portrait-badge--1 {
  top: 8%;
  left: -2%;
  animation-delay: 0s;
}

.portrait-badge--2 {
  top: 38%;
  right: -6%;
  animation-delay: 0.7s;
  width: 60px;
  height: 60px;
}

.portrait-badge--3 {
  bottom: 14%;
  left: 2%;
  animation-delay: 1.4s;
  width: 50px;
  height: 50px;
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

/* Status tag pill */
.portrait-tag {
  position: absolute;
  bottom: 4%;
  right: -2%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(13, 27, 46, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(108, 139, 196, 0.3);
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-1);
  z-index: 4;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  animation: floatBadge 6s ease-in-out 0.3s infinite;
}

.portrait-tag-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 980px) {
  .portrait-frame {
    width: min(360px, 80%);
  }
  .portrait-badge {
    width: 44px;
    height: 44px;
    padding: 9px;
  }
  .portrait-badge--2 {
    width: 48px;
    height: 48px;
  }
  .portrait-tag {
    font-size: 0.66rem;
    padding: 8px 12px;
  }
}

@media (max-width: 600px) {
  .portrait-frame {
    width: min(280px, 80%);
  }
  .portrait-badge {
    width: 38px;
    height: 38px;
    padding: 7px;
  }
  .portrait-badge--1 { left: 0%; }
  .portrait-badge--3 { left: 6%; }
}
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s var(--easing) 1.2s forwards;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--text-3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollLine 2s var(--easing) infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- Section base ---------- */
section {
  padding: 120px 8% 100px;
  position: relative;
  z-index: 2;
}

.section-title {
  margin-bottom: 64px;
  position: relative;
}

.section-title .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title .label::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-title h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.section-title h2 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}

.section-title p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-top: 18px;
  max-width: 600px;
}

/* ---------- About ---------- */
.about {
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

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

.about-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  aspect-ratio: 4/5;
  transition: transform 0.6s var(--easing);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 7, 11, 0.6));
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--easing);
}

.about-image:hover {
  transform: translateY(-6px);
}
.about-image:hover img {
  transform: scale(1.05);
}

.about-image .badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(7, 7, 11, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
}

.about-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 24px;
  line-height: 1.15;
}

.about-content p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: justify;
  margin-bottom: 32px;
}

.about-info {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .about-info {
    grid-template-columns: 1fr;
  }
}

.about-info li {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.35s var(--easing);
}

.about-info li:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.about-info li strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.about-info li span {
  font-size: 0.95rem;
  color: var(--text-1);
  font-weight: 500;
}

/* ---------- Skills ---------- */
.skills {
  background: linear-gradient(180deg, transparent, rgba(74, 111, 168, 0.04), transparent);
}

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

.skill-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--easing);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s var(--easing);
}

.skill-card:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.skill-card:hover::before {
  transform: translateX(100%);
}

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

.skill-card .skill-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.skill-card .skill-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.skill-card .skill-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.skill-card .skill-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.skill-card .skill-bar span {
  display: block;
  height: 100%;
  background: var(--grad);
  border-radius: 2px;
  width: 0;
  transition: width 1.4s var(--easing);
}

.skill-card.in-view .skill-bar span {
  width: var(--skill-w, 100%);
}

.skill-card .skill-meta {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-card .skill-pct {
  color: var(--accent);
}

/* ---------- Certificate ---------- */
.certificate {
  background: transparent;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.cert-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--easing);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 240px;
}

.cert-card .cert-logo {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  flex-shrink: 0;
}

.cert-card .cert-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(74, 111, 168, 0.14), transparent 70%);
  top: -140px;
  right: -140px;
  opacity: 0;
  transition: opacity 0.6s var(--easing);
}

.cert-card:hover {
  border-color: rgba(74, 111, 168, 0.38);
  background: var(--surface-strong);
  transform: translateY(-6px);
}

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

.cert-card .cert-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.18em;
}

.cert-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: "Syne", sans-serif;
}

.cert-card .cert-issuer {
  font-size: 0.85rem;
  color: var(--text-3);
}

.cert-card .cert-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text-1);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s var(--easing);
  font-family: inherit;
}

.cert-card .cert-btn i {
  transition: transform 0.4s var(--easing);
}

.cert-card .cert-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.cert-card .cert-btn:hover i {
  transform: translate(4px, -4px);
}

/* ---------- Experience Timeline ---------- */
.experience {
  background: linear-gradient(180deg, transparent, rgba(74, 111, 168, 0.03), transparent);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 28px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--bg-0);
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.3;
  animation: pulse 2.5s ease-in-out infinite;
}

.timeline-card {
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.5s var(--easing);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--easing);
}

.timeline-card:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.timeline-card:hover::before {
  transform: scaleY(1);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-period {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.timeline-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(74, 111, 168, 0.12);
  border: 1px solid rgba(74, 111, 168, 0.24);
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent-3);
  letter-spacing: 0.08em;
}

.timeline-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.timeline-company {
  font-size: 0.92rem;
  color: var(--accent-3);
  margin-bottom: 14px;
  font-weight: 500;
}

.timeline-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.6;
}

.timeline-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--text-3);
}

.timeline-points li strong {
  color: var(--text-1);
}

@media (max-width: 600px) {
  .timeline {
    padding-left: 26px;
  }
  .timeline::before {
    left: 8px;
  }
  .timeline-marker {
    left: -26px;
  }
  .timeline-card {
    padding: 22px 22px;
  }
}

/* ---------- GitHub Stats ---------- */
.github-stats {
  margin-top: 60px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(13, 27, 46, 0.6) 0%, rgba(10, 15, 26, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.github-stats::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 111, 168, 0.18), transparent 70%);
  top: -50%;
  right: -10%;
  filter: blur(40px);
  pointer-events: none;
}

.github-stats-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.github-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.github-eyebrow i {
  font-size: 1rem;
}

.github-stats-head h3 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.github-handle {
  color: var(--accent-3);
  border-bottom: 1px dashed transparent;
  transition: border-color 0.3s var(--easing);
}

.github-handle:hover {
  border-bottom-color: var(--accent-3);
}

.github-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-1);
  transition: all 0.4s var(--easing);
}

.github-cta:hover {
  background: #ffffff;
  color: var(--accent-2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.github-stats-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.github-card {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid var(--border);
  padding: 8px;
  transition: transform 0.4s var(--easing), border-color 0.4s var(--easing);
}

.github-card:hover {
  border-color: rgba(74, 111, 168, 0.34);
  transform: translateY(-2px);
}

.github-card--wide {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .github-stats-grid {
    grid-template-columns: 1fr;
  }
  .github-stats {
    padding: 24px;
  }
}

/* ---------- Projects ---------- */
.projects {
  background: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.5s var(--easing);
}

.project-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(74, 111, 168, 0.12), transparent 70%);
  top: -160px;
  right: -160px;
  opacity: 0;
  transition: opacity 0.6s var(--easing);
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(74, 111, 168, 0.34);
  background: var(--surface-strong);
  transform: translateY(-6px);
}

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

.project-card .project-link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  color: var(--text-1);
  height: 100%;
}

.project-card .project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--border);
}

.project-card .project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--easing);
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-card .project-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-3);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-card .project-thumb-placeholder i {
  font-size: 2rem;
  color: var(--text-3);
}

.project-card .project-inner {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.project-tag {
  padding: 4px 10px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--accent);
}

.project-body h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.project-desc {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.project-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-stack span {
  padding: 5px 10px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.project-arrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-1);
  flex-shrink: 0;
  transition: all 0.4s var(--easing);
}

.project-card:hover .project-arrow {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: rotate(0deg) scale(1.05);
}

.project-desc code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* ---------- LinkedIn card ---------- */
.linkedin-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #0d1b2e 0%, #0a0f1a 100%);
  color: var(--text-1);
  transition: all 0.5s var(--easing);
}

.linkedin-card::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 102, 194, 0.18), transparent 70%);
  top: -50%;
  left: -10%;
  filter: blur(40px);
  pointer-events: none;
}

.linkedin-card:hover {
  border-color: rgba(74, 111, 168, 0.42);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.linkedin-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.16) 0%, rgba(10, 15, 26, 0) 100%);
}

.linkedin-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--easing);
  position: relative;
  z-index: 2;
}

.linkedin-card:hover .linkedin-photo img {
  transform: scale(1.04);
}

.linkedin-photo-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(74, 111, 168, 0.4);
  animation: spin 22s linear infinite;
}

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

.linkedin-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.linkedin-overlay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.linkedin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.linkedin-pill img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.linkedin-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 1.15rem;
  transition: all 0.4s var(--easing);
  flex-shrink: 0;
}

.linkedin-card:hover .linkedin-arrow {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  transform: translate(4px, -4px);
}

.linkedin-body h3 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-1);
}

.linkedin-body h3 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}

.linkedin-body .linkedin-sub {
  color: var(--text-2);
  font-size: 0.92rem;
  margin: 8px 0 0;
  line-height: 1.6;
}

.linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.4s var(--easing);
  align-self: flex-start;
}

.linkedin-cta i {
  transition: transform 0.4s var(--easing);
}

.linkedin-card:hover .linkedin-cta {
  color: var(--text-1);
}

.linkedin-card:hover .linkedin-cta i {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .linkedin-card {
    grid-template-columns: 1fr;
  }
  .linkedin-photo {
    padding: 32px;
  }
  .linkedin-photo img {
    width: 140px;
    height: 140px;
  }
  .linkedin-photo-ring {
    width: 180px;
    height: 180px;
  }
}

/* ---------- Contact ---------- */
.contact {
  background: transparent;
  padding-bottom: 140px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: stretch;
}

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

.contact-cta {
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.contact-cta::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 111, 168, 0.2), transparent 70%);
  top: -50%;
  right: -20%;
  filter: blur(40px);
}

.contact-cta h3 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  overflow-wrap: break-word;
}

.contact-cta h3 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}

.contact-cta .contactme {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  align-self: flex-start;
  transition: all 0.4s var(--easing);
  position: relative;
  z-index: 1;
}

.contact-cta .contactme:hover {
  background: #ffffff;
  color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(74, 111, 168, 0.32);
}

.contact-cta .contactme i {
  transition: transform 0.4s var(--easing);
}

.contact-cta .contactme:hover i {
  transform: translate(4px, -4px);
}

.contact-list {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.4s var(--easing);
}

.contact-list a:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.contact-list .icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.4s var(--easing);
}

.contact-list .icon.brand {
  background: #ffffff;
  padding: 9px;
  border-color: transparent;
}

.contact-list .icon.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-list a:hover .icon {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.contact-list a:hover .icon.brand {
  background: #ffffff;
  border-color: transparent;
  transform: scale(1.06);
}

.contact-list .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-list .meta h4 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-list .meta p {
  font-size: 0.95rem;
  color: var(--text-1);
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-list .arrow {
  color: var(--text-3);
  transition: all 0.4s var(--easing);
}

.contact-list a:hover .arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ---------- Footer ---------- */
#footer {
  padding: 48px 5%;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 15, 0.6);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
}

#footer .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-3);
  font-family: "JetBrains Mono", monospace;
}

#footer .footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#footer .footer-inner strong {
  color: var(--text-1);
}

#footer a {
  color: var(--text-2);
  position: relative;
}

#footer a:hover {
  color: var(--accent-3);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 1.1rem;
  transition: all 0.4s var(--easing);
}

.footer-social a:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px) rotate(-6deg);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--easing);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Marquee strip */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  padding: 28px 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-3);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee span::after {
  content: "✦";
  color: var(--accent);
  -webkit-text-stroke: 0;
  font-size: 0.6em;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* small screens */
@media (max-width: 768px) {
  section {
    padding: 80px 6% 60px;
  }
  #hero {
    padding: 100px 6% 100px;
  }
  .contact-cta {
    padding: 32px;
  }
}
