/*
  Cyberpunk Dark Theme — Modern Portfolio
  - Clean, readable, and responsive
  - Subtle neon accents with improved contrast
*/
:root {
  --bg-color: #02030a;
  --bg-gradient: radial-gradient(
      120% 120% at 80% 0%,
      rgba(124, 35, 255, 0.26),
      transparent 60%
    ),
    radial-gradient(
      120% 120% at 0% 100%,
      rgba(0, 176, 255, 0.24),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(2, 7, 20, 0.95) 0%, rgba(2, 4, 12, 0.95) 100%);
  --surface-glass: rgba(9, 14, 30, 0.65);
  --surface-glass-strong: rgba(9, 14, 30, 0.85);
  --glass-border: rgba(125, 249, 255, 0.2);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --primary: #7df9ff;
  --accent: #c673ff;
  --accent-soft: rgba(198, 115, 255, 0.25);
  --gradient-primary: linear-gradient(
    120deg,
    rgba(125, 249, 255, 0.65),
    rgba(198, 115, 255, 0.75)
  );
  --success: #4ef6c5;
  --warning: #ffd166;
  --danger: #ff6b94;
  --text: rgba(216, 232, 255, 0.88);
  --text-bright: #f8fcff;
  --muted: rgba(182, 199, 228, 0.72);
  --radius: 32px;
  --radius-sm: 18px;
  --radius-lg: 40px;
  --shadow-sm: 0 14px 40px rgba(4, 8, 20, 0.38);
  --shadow-md: 0 24px 60px rgba(4, 8, 20, 0.5);
  --shadow-lg: 0 44px 110px rgba(3, 6, 18, 0.62);
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-default: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: min(1200px, 88vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background: radial-gradient(
      55% 60% at 10% 10%,
      rgba(125, 249, 255, 0.18),
      transparent 70%
    ),
    radial-gradient(
      60% 55% at 90% 35%,
      rgba(198, 115, 255, 0.2),
      transparent 75%
    );
  filter: blur(40px);
  opacity: 0.9;
  animation: auroraShift 48s ease-in-out infinite;
  mix-blend-mode: screen;
}

body::after {
  z-index: -1;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px
  );
  background-size: 140px 140px;
  mix-blend-mode: screen;
  opacity: 0.28;
  animation: gridDrift 72s linear infinite;
}

main {
  position: relative;
  z-index: 0;
  padding-top: clamp(120px, 14vh, 160px);
}

main::before {
  content: '';
  position: absolute;
  left: 50%;
  top: clamp(60px, 14vh, 130px);
  height: clamp(280px, 38vh, 420px);
  width: clamp(620px, 82vw, 1280px);
  background: radial-gradient(
    80% 120% at 50% 0%,
    rgba(125, 249, 255, 0.16),
    rgba(2, 8, 24, 0) 70%
  );
  filter: blur(78px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
  transform: translate3d(-50%, 0, 0);
  animation: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-bright);
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.015em;
}

p {
  margin: 0 0 1.1em;
}

.container {
  width: var(--max-width);
  margin: 0 auto;
}

.section {
  position: relative;
  margin: clamp(80px, 12vw, 140px) auto;
}

.section > h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: clamp(18px, 2.6vw, 30px);
  background: linear-gradient(
    110deg,
    #f8fcff,
    rgba(125, 249, 255, 0.75),
    rgba(198, 115, 255, 0.9)
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
}

.section > h2::after {
  content: '';
  display: inline-flex;
  height: 1px;
  flex: 1 1 auto;
  min-width: clamp(70px, 12vw, 160px);
  background: linear-gradient(
    90deg,
    rgba(125, 249, 255, 0.4),
    rgba(198, 115, 255, 0)
  );
  border-radius: 999px;
  opacity: 0.6;
  transform-origin: left;
  animation: dividerPulse 12s ease-in-out infinite;
}

.glass-panel {
  background: var(--surface-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 60px);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-default),
    box-shadow var(--transition-default), border-color var(--transition-default);
  transform: translateZ(0);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.glass-panel::before,
.glass-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glass-panel::before {
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 38%,
    rgba(255, 255, 255, 0) 70%
  );
  mix-blend-mode: screen;
  opacity: 0.6;
  transform: translateX(-45%);
  transition: opacity var(--transition-default),
    transform var(--transition-default);
}

.glass-panel::after {
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0) 40%
  );
  opacity: 0.55;
}

.glass-panel:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(125, 249, 255, 0.36);
  transform: translate3d(0, -6px, 0);
}

.glass-panel:hover::before {
  opacity: 0.85;
  transform: translateX(0);
  animation: panelSheen 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.glass-panel:hover::after {
  opacity: 0.75;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 40;
  background: rgba(2, 5, 16, 0.72);
  border-bottom: 1px solid rgba(125, 249, 255, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 18px 48px rgba(2, 4, 12, 0.55);
}

.nav-wrap {
  width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(18px, 3vw, 26px) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(125, 249, 255, 0.16);
  border: 1px solid var(--glass-border);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: inset 0 0 20px rgba(125, 249, 255, 0.22);
}

.nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  margin: 0;
  padding: 0;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

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

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(125, 249, 255, 0.2);
  background: rgba(9, 14, 30, 0.7);
  color: var(--text-bright);
  width: 46px;
  height: 46px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: inset 0 0 18px rgba(125, 249, 255, 0.16);
  transition: background var(--transition-fast), border var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(125, 249, 255, 0.18);
  border-color: rgba(125, 249, 255, 0.4);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(92vh, 860px);
  padding: clamp(48px, 6vw, 80px);
  background: linear-gradient(
    150deg,
    rgba(9, 14, 30, 0.72),
    rgba(6, 8, 22, 0.82)
  );
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.65;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -140px;
  background: radial-gradient(
    circle,
    rgba(198, 115, 255, 0.28),
    transparent 70%
  );
  animation: orbFloat 26s ease-in-out infinite;
}

.hero::after {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: -100px;
  background: radial-gradient(
    circle,
    rgba(125, 249, 255, 0.35),
    transparent 70%
  );
  animation: orbFloat 22s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 46px);
  max-width: 620px;
}

.hero-text h1 {
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  line-height: 1.05;
  background: linear-gradient(
    120deg,
    #f8fcff 0%,
    rgba(125, 249, 255, 0.9) 45%,
    rgba(198, 115, 255, 0.95) 75%
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 10px 32px rgba(125, 249, 255, 0.25);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: rgba(218, 233, 255, 0.78);
  max-width: 540px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(125, 249, 255, 0.25);
  background: rgba(10, 16, 32, 0.65);
  color: var(--text-bright);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast);
  overflow: hidden;
  isolation: isolate;
}

.btn.primary {
  background: linear-gradient(
    120deg,
    rgba(125, 249, 255, 0.32),
    rgba(10, 16, 32, 0.9)
  );
  border-color: rgba(125, 249, 255, 0.38);
}

.btn.ghost {
  background: rgba(10, 16, 32, 0.45);
  color: var(--text);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 45%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 249, 255, 0.55);
  box-shadow: 0 20px 40px rgba(3, 6, 18, 0.55);
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.live-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.live-card {
  position: relative;
  padding: clamp(22px, 3vw, 28px);
  border-radius: 24px;
  background: var(--surface-glass-strong);
  border: 1px solid rgba(125, 249, 255, 0.18);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.live-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(125, 249, 255, 0.18),
    transparent 55%
  );
  opacity: 0.7;
}

.live-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.live-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 249, 255, 0.16);
  border: 1px solid rgba(125, 249, 255, 0.28);
  color: var(--primary);
  font-size: 1.35rem;
  box-shadow: inset 0 0 18px rgba(125, 249, 255, 0.26);
}

.live-subtitle {
  color: var(--muted);
  margin: 2px 0 0;
  font-size: 0.9rem;
}

.live-primary {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-bright);
  position: relative;
  z-index: 1;
}

.live-meta {
  color: var(--muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

.live-link {
  position: relative;
  z-index: 1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-link::after {
  content: '\f178';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.live-link:hover::after {
  transform: translateX(4px);
}

.live-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-bright);
}

.status-pill.neutral {
  background: rgba(125, 249, 255, 0.16);
  border-color: rgba(125, 249, 255, 0.3);
}

.status-pill.good,
.status-pill.ok {
  background: rgba(78, 246, 197, 0.14);
  border-color: rgba(78, 246, 197, 0.3);
  color: #bfffe8;
}

.status-pill.warn {
  background: rgba(255, 209, 102, 0.18);
  border-color: rgba(255, 209, 102, 0.36);
  color: #fff2c9;
}

.status-pill.alert,
.status-pill.critical {
  background: rgba(255, 107, 148, 0.18);
  border-color: rgba(255, 107, 148, 0.4);
  color: #ffe0e8;
}

.about-container {
  display: grid;
  gap: clamp(26px, 5vw, 46px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.about-content {
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
}

.about-tagline {
  font-size: clamp(1.05rem, 2.3vw, 1.28rem);
  color: rgba(228, 238, 255, 0.82);
}

.about-focus {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(125, 249, 255, 0.18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.focus-item:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 249, 255, 0.36);
  box-shadow: 0 16px 30px rgba(3, 6, 18, 0.45);
}

.focus-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 249, 255, 0.16);
  border: 1px solid rgba(125, 249, 255, 0.26);
  color: var(--primary);
  font-size: 1.1rem;
}

.about-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero .btn.primary::before,
.focus-item::before,
.live-card::before {
  pointer-events: none;
}

@media (max-width: 1040px) {
  :root {
    --max-width: min(1100px, 92vw);
  }
  .about-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 0;
    padding: clamp(36px, 12vw, 56px);
  }
  .hero-content {
    gap: 28px;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
}

@media (min-width: 2560px) {
  :root {
    --max-width: min(1600px, 70vw);
  }
  body {
    font-size: 1.1rem;
  }
  .hero-text h1 {
    font-size: clamp(4.8rem, 4.6vw, 6.8rem);
  }
  .section > h2 {
    font-size: clamp(2.6rem, 2.5vw, 3.4rem);
  }
}

@keyframes gridDrift {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 70px 50px;
  }
  100% {
    background-position: 140px 100px;
  }
}

@keyframes dividerPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes panelSheen {
  0% {
    transform: translateX(-45%);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-10%);
    opacity: 0.75;
  }
  100% {
    transform: translateX(-45%);
    opacity: 0.5;
  }
}

@keyframes auroraShift {
  0% {
    transform: translate3d(-6%, -4%, 0) scale(1.05);
  }
  50% {
    transform: translate3d(4%, 6%, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-3%, 2%, 0) scale(1.02);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -20px, 0) scale(1.04);
  }
}

@keyframes float {
  0% {
    transform: perspective(800px) rotateY(-10deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: perspective(800px) rotateY(-8deg) rotateX(6deg) translateY(-4px);
  }
  100% {
    transform: perspective(800px) rotateY(-10deg) rotateX(5deg) translateY(0);
  }
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: perspective(800px) rotateY(-10deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  animation: float 8s ease-in-out infinite alternate;
}

.about-grid,
.skills-grid,
.testimonials {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  position: relative;
  background: linear-gradient(
    160deg,
    rgba(13, 13, 30, 0.85),
    rgba(8, 8, 20, 0.95)
  );
  border: 1px solid rgba(42, 42, 84, 0.3);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 26px);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(30, 30, 70, 0.3);
  transition: all var(--transition-default);
  overflow: hidden;
  z-index: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(0, 240, 255, 0.06) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-default);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 240, 255, 0.15),
    inset 0 0 0 1px rgba(40, 40, 100, 0.6);
  border-color: rgba(0, 240, 255, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-top: 0;
  color: var(--text-bright);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 10px;
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.card .cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 30, 60, 0.4);
  margin-bottom: 14px;
  transition: all var(--transition-default);
  box-shadow: var(--shadow-sm);
}

.card:hover .cover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 240, 255, 0.2);
}

/* Contact list */
.contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact li {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact span {
  color: var(--muted);
  min-width: 70px;
}
.contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed #2a2a40;
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.contact a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: 24px;
}

.highlight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(
    150deg,
    rgba(14, 18, 36, 0.85),
    rgba(10, 12, 26, 0.94)
  );
  border: 1px solid rgba(125, 249, 255, 0.14);
  box-shadow: 0 18px 34px rgba(6, 10, 24, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 249, 255, 0.12);
  border: 1px solid rgba(125, 249, 255, 0.2);
  color: var(--primary);
  font-size: 1.4rem;
  box-shadow: inset 0 0 14px rgba(125, 249, 255, 0.16);
}

.highlight-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.highlight-card p {
  margin: 4px 0 0;
  color: rgba(230, 241, 255, 0.75);
  font-size: 0.92rem;
  line-height: 1.5;
}

.projects-intro {
  color: rgba(230, 241, 255, 0.75);
  max-width: 680px;
  margin: 12px 0 28px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Timeline */
.timeline-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.timeline-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(
    155deg,
    rgba(14, 18, 38, 0.88),
    rgba(10, 12, 26, 0.96)
  );
  border: 1px solid rgba(125, 249, 255, 0.12);
  box-shadow: 0 18px 40px rgba(6, 10, 24, 0.38),
    inset 0 0 0 1px rgba(16, 24, 44, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.timeline-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(125, 249, 255, 0.08);
  pointer-events: none;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(6, 10, 24, 0.5);
}

.timeline-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 249, 255, 0.15);
  border: 1px solid rgba(125, 249, 255, 0.25);
  box-shadow: inset 0 0 18px rgba(125, 249, 255, 0.18);
  color: var(--primary);
  font-size: 1.4rem;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.timeline-year {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(230, 241, 255, 0.75);
}

.timeline-card p {
  margin: 0;
  color: rgba(230, 241, 255, 0.72);
  line-height: 1.5;
}

/* Advanced Projects */
.projects {
  display: grid;
  gap: 20px;
}

.project {
  background: linear-gradient(
    140deg,
    rgba(13, 13, 30, 0.7),
    rgba(8, 8, 24, 0.85)
  );
  border: 1px solid rgba(42, 42, 84, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all var(--transition-default);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(0, 240, 255, 0.05) 0%,
    rgba(194, 73, 255, 0.03) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-default);
  z-index: -1;
}

.project:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.1);
  transform: translateY(-4px);
}

.project:hover::before {
  opacity: 1;
}

.project summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  padding: 4px;
}

.project summary::-webkit-details-marker {
  display: none;
}

.project .project-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(10, 10, 30, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(42, 42, 84, 0.3);
  transition: all var(--transition-default);
}

.project:hover .project-icon {
  background: rgba(15, 15, 40, 0.6);
  border-color: rgba(0, 240, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.project .project-icon i {
  font-size: 20px;
  color: var(--primary);
}

.project .title {
  font-weight: 800;
  font-size: 18px;
  color: var(--text-bright);
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

.project:hover .title {
  color: var(--text-bright);
}

.project .stack {
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  background: rgba(10, 10, 30, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(42, 42, 84, 0.2);
  transition: all var(--transition-default);
}

.project:hover .stack {
  background: rgba(15, 15, 40, 0.6);
  border-color: rgba(0, 240, 255, 0.1);
}

.project[open] {
  box-shadow: var(--shadow-md);
}

.project .content {
  padding: 16px 4px 12px 48px;
  color: var(--text);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project .content .thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 42, 84, 0.3);
  margin: 10px 0 16px;
  transition: all var(--transition-default);
  box-shadow: var(--shadow-sm);
}

.project[open] .content .thumb:hover {
  transform: scale(1.01);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: var(--shadow-md), 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Advanced Skill chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  position: relative;
  background: rgba(15, 15, 35, 0.5);
  border: 1px solid rgba(42, 42, 84, 0.4);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: all var(--transition-default);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1;
}

.chips span::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 240, 255, 0.08) 50%,
    transparent 100%
  );
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-default),
    transform var(--transition-default);
  transform: translateX(-100%);
}

.chips span:hover {
  transform: translateY(-3px);
  background: rgba(20, 20, 50, 0.6);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--text-bright);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25), 0 0 10px rgba(0, 240, 255, 0.1);
}

.chips span:hover::before {
  opacity: 1;
  transform: translateX(100%);
  transition-duration: 0.8s;
}

/* Testimonials */
blockquote {
  margin: 0;
}
blockquote footer {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
}

/* Contact section */
.contact-cta {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid #17172a;
  background: #05050a;
  padding: 20px 0;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot .top {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid #22223a;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s;
}
.foot .top:hover {
  color: var(--text);
  border-color: #2a2a40;
}
.foot .top:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Utility classes */
.section-actions {
  margin-top: 12px;
}
.hidden {
  display: none !important;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.muted {
  color: var(--muted);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero {
    padding: clamp(40px, 10vw, 80px);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    right: 12px;
    top: 60px;
    background: rgba(9, 14, 30, 0.88);
    border: 1px solid rgba(125, 249, 255, 0.24);
    border-radius: 18px;
    padding: 16px;
    flex-direction: column;
    gap: 8px;
    display: none;
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
  }
  .nav.open {
    display: flex;
  }
  .about-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .testimonials {
    grid-template-columns: 1fr;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .live-grid {
    grid-template-columns: 1fr;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }
  .actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* 4k+ friendliness */
@media (min-width: 3840px) {
  :root {
    --maxw: min(160ch, 80vw);
  }
  .hero h1 {
    font-size: clamp(64px, 4vw, 144px);
  }
}

/* Preloader */
.preload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preload-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.preload-spinner:before,
.preload-spinner:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
}

.preload-spinner:before {
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-top-color: var(--accent);
  animation: spin 2s linear infinite;
}

.preload-spinner:after {
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-top-color: var(--secondary);
  animation: spin 1.5s linear infinite reverse;
}

.preload.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animation for section transitions */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.ready .fade-in,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.ready .slide-in,
.slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Achievements */
#achievements .subtitle {
  max-width: 640px;
  margin: 0 auto 32px auto;
  text-align: center;
  color: rgba(230, 241, 255, 0.8);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.badge-card {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    rgba(14, 18, 38, 0.9),
    rgba(10, 12, 28, 0.95)
  );
  border: 1px solid rgba(125, 249, 255, 0.12);
  box-shadow: 0 18px 40px rgba(6, 10, 24, 0.4),
    inset 0 0 0 1px rgba(16, 24, 44, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.badge-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(125, 249, 255, 0.08);
  pointer-events: none;
}

.badge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(6, 10, 24, 0.55);
}

.badge-icon {
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(125, 249, 255, 0.25), transparent);
  border: 1px solid rgba(125, 249, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 15px rgba(125, 249, 255, 0.12);
}

.badge-icon i {
  font-size: 1.45rem;
}

.badge-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.badge-card p {
  margin: 0;
  color: rgba(230, 241, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
}

.badge-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.3s ease;
}

.badge-link::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
}

.badge-link:hover {
  color: var(--accent);
}

@media (max-width: 680px) {
  .badge-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-in,
  body.ready .fade-in,
  body.ready .slide-in,
  .fade-in.visible,
  .slide-in.visible {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preload-spinner,
  .preload-spinner:before,
  .preload-spinner:after {
    animation: none;
  }

  .preload {
    display: none;
  }
}
/* Preloader */
.preload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preload-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.preload-spinner:before,
.preload-spinner:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
}

.preload-spinner:before {
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-top-color: var(--accent);
  animation: spin 2s linear infinite;
}

.preload-spinner:after {
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-top-color: var(--secondary);
  animation: spin 1.5s linear infinite reverse;
}

.preload.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animation for section transitions */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.ready .fade-in,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.ready .slide-in,
.slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-in,
  body.ready .fade-in,
  body.ready .slide-in,
  .fade-in.visible,
  .slide-in.visible {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preload-spinner,
  .preload-spinner:before,
  .preload-spinner:after {
    animation: none;
  }

  .preload {
    display: none;
  }
}
