:root {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
}

/* Deep blue-black body for dark mode */
html.dark body {
  background: #070b18;
}

/* More vibrant gradient text in dark mode */
html.dark .gradient-text {
  background-image: linear-gradient(135deg, #38bdf8 0%, #06b6d4 25%, #818cf8 60%, #c084fc 100%);
}

#nav.nav-scrolled {
  background: rgba(248, 250, 252, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html.dark #nav.nav-scrolled {
  background: rgba(7, 11, 24, 0.8);
  border-bottom-color: rgba(99, 102, 241, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.8s ease,
             transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
             filter 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.gradient-text {
  background-image: linear-gradient(135deg, #4f46e5 0%, #06b6d4 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========== Apple Glassmorphism Cards =========== */
.glass-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.glass-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.85);
}

html.dark .glass-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.dark .glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 0 20px rgba(99, 102, 241, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.filter-btn[data-active="true"] {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}

.filter-btn[data-active="false"] {
  background: rgba(255, 255, 255, 0.5);
  color: #475569;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

html.dark .filter-btn[data-active="false"] {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.08);
}

#themeToggle .icon-sun {
  display: none;
}

html.dark #themeToggle .icon-sun {
  display: block;
}

html.dark #themeToggle .icon-moon {
  display: none;
}

@media (max-width: 767px) {
  #nav.nav-scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* =========== Aurora Background =========== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
  animation: auroraMove 20s ease-in-out infinite alternate;
}

.aurora-blob:nth-child(1) {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 70%);
  top: -15%;
  left: -10%;
}

.aurora-blob:nth-child(2) {
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.08), transparent 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: -7s;
  animation-direction: alternate-reverse;
}

.aurora-blob:nth-child(3) {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.06), transparent 70%);
  top: 40%;
  left: 50%;
  animation-delay: -14s;
}

html.dark .aurora-blob:nth-child(1) {
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
}

html.dark .aurora-blob:nth-child(2) {
  background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%);
}

html.dark .aurora-blob:nth-child(3) {
  background: radial-gradient(circle, rgba(167,139,250,0.08), transparent 70%);
}

@keyframes auroraMove {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -3%) scale(1.05); }
  66% { transform: translate(-3%, 4%) scale(0.97); }
  100% { transform: translate(2%, -2%) scale(1.02); }
}

/* =========== Mouse Spotlight =========== */
.mouse-spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.04), transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: left, top;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mouse-spotlight.active {
  opacity: 1;
}

html.dark .mouse-spotlight {
  background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 65%);
}

@media (pointer: coarse) {
  .mouse-spotlight { display: none; }
}

/* =========== Custom Cursor =========== */
.cursor-dot,
.cursor-ring {
  display: none;
}

@media (pointer: fine) {
  .has-custom-cursor,
  .has-custom-cursor a,
  .has-custom-cursor button,
  .has-custom-cursor [role="button"] {
    cursor: none !important;
  }

  .cursor-dot {
    display: block;
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
    mix-blend-mode: difference;
  }

  .cursor-ring {
    display: block;
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(99,102,241,0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.2,0.8,0.2,1),
               height 0.35s cubic-bezier(0.2,0.8,0.2,1),
               border-color 0.3s,
               opacity 0.2s;
  }

  .cursor-ring.hovering {
    width: 56px;
    height: 56px;
    border-color: rgba(99,102,241,0.5);
  }

  .cursor-dot.hovering {
    width: 6px;
    height: 6px;
  }
}

/* =========== Marquee Band =========== */
.marquee-band {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(99,102,241,0.06);
  border-bottom: 1px solid rgba(99,102,241,0.06);
  position: relative;
  z-index: 2;
}

html.dark .marquee-band {
  border-color: rgba(129,140,248,0.08);
  background: rgba(7, 11, 24, 0.4);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 45s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(99,102,241,0.15);
}

html.dark .marquee-track span {
  -webkit-text-stroke-color: rgba(129,140,248,0.4);
}

.marquee-track .dot {
  font-size: 8px;
  -webkit-text-stroke: none;
  color: rgba(99,102,241,0.2);
}

html.dark .marquee-track .dot {
  color: rgba(129,140,248,0.45);
}

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

/* =========== Hero Background Image =========== */
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  transition: opacity 0.6s ease;
}

html.dark .hero-bg-image {
  opacity: 0.75;
}

/* =========== Hero Stat Frosted Glass Cards =========== */
.hero-stat-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s ease,
              background 0.35s ease,
              border-color 0.35s ease;
}

.hero-stat-card:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* =========== Dynamic Hero Background Canvas =========== */
.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  transition: opacity 0.6s ease;
}

html.dark .hero-bg-canvas {
  opacity: 0.15;
}

.section-bg {
  position: absolute;
  inset: 0;
  background: url('assets/section-bg.png') center/cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: multiply;
}

html.dark .section-bg {
  opacity: 0.2;
  mix-blend-mode: lighten;
}

/* =========== Hero Flowing Waves =========== */
.hero-waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  filter: blur(80px);
  will-change: transform;
  opacity: 0.08;
  transition: opacity 0.6s ease;
}

html.dark .hero-wave {
  opacity: 0.3;
}

.hero-wave-1 {
  width: 140%;
  height: 60%;
  bottom: -30%;
  left: -20%;
  background: linear-gradient(135deg,
    rgba(79, 70, 229, 0.7) 0%,
    rgba(99, 102, 241, 0.5) 25%,
    rgba(6, 182, 212, 0.45) 55%,
    rgba(59, 130, 246, 0.4) 100%);
  border-radius: 35% 65% 50% 50% / 55% 45% 55% 45%;
  animation: heroWave1 20s ease-in-out infinite alternate;
}

.hero-wave-2 {
  width: 85%;
  height: 50%;
  top: 0;
  right: -30%;
  background: linear-gradient(220deg,
    rgba(6, 182, 212, 0.55) 0%,
    rgba(79, 70, 229, 0.45) 40%,
    rgba(139, 92, 246, 0.35) 100%);
  border-radius: 65% 35% 45% 55% / 45% 55% 35% 65%;
  animation: heroWave2 24s ease-in-out infinite alternate;
}

.hero-wave-3 {
  width: 100%;
  height: 45%;
  bottom: 0;
  right: 0;
  background: linear-gradient(180deg,
    rgba(167, 139, 250, 0.5) 0%,
    rgba(79, 70, 229, 0.4) 50%,
    rgba(6, 182, 212, 0.3) 100%);
  border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
  animation: heroWave3 18s ease-in-out infinite alternate;
}

.hero-wave-4 {
  width: 65%;
  height: 40%;
  top: 10%;
  left: -15%;
  background: linear-gradient(315deg,
    rgba(99, 102, 241, 0.45) 0%,
    rgba(139, 92, 246, 0.4) 45%,
    rgba(167, 139, 250, 0.3) 100%);
  border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;
  animation: heroWave4 22s ease-in-out infinite alternate;
}

.hero-wave-5 {
  width: 50%;
  height: 35%;
  top: 30%;
  left: 30%;
  background: linear-gradient(45deg,
    rgba(56, 189, 248, 0.3) 0%,
    rgba(6, 182, 212, 0.4) 50%,
    rgba(99, 102, 241, 0.25) 100%);
  border-radius: 40% 60% 55% 45% / 50% 50% 55% 45%;
  animation: heroWave5 26s ease-in-out infinite alternate;
}

@keyframes heroWave1 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 35% 65% 50% 50% / 55% 45% 55% 45%;
  }
  33% {
    transform: translate(3%, -4%) rotate(2deg) scale(1.04);
    border-radius: 45% 55% 60% 40% / 50% 50% 45% 55%;
  }
  66% {
    transform: translate(-2%, 3%) rotate(-1deg) scale(0.97);
    border-radius: 40% 60% 45% 55% / 55% 45% 50% 50%;
  }
  100% {
    transform: translate(1%, -2%) rotate(1deg) scale(1.02);
    border-radius: 50% 50% 55% 45% / 45% 55% 50% 50%;
  }
}

@keyframes heroWave2 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 65% 35% 45% 55% / 45% 55% 35% 65%;
  }
  50% {
    transform: translate(-4%, 3%) rotate(-2deg) scale(1.06);
    border-radius: 55% 45% 55% 45% / 55% 45% 45% 55%;
  }
  100% {
    transform: translate(2%, -3%) rotate(1deg) scale(0.97);
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
  }
}

@keyframes heroWave3 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(4%, -3%) rotate(3deg) scale(1.03);
    border-radius: 55% 45% 50% 50% / 50% 50% 45% 55%;
  }
  100% {
    transform: translate(-3%, 2%) rotate(-2deg) scale(0.96);
    border-radius: 45% 55% 55% 45% / 60% 40% 55% 45%;
  }
}

@keyframes heroWave4 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;
  }
  50% {
    transform: translate(-3%, -4%) scale(1.05);
    border-radius: 45% 55% 50% 50% / 50% 50% 55% 45%;
  }
  100% {
    transform: translate(4%, 3%) scale(0.97);
    border-radius: 60% 40% 45% 55% / 55% 45% 50% 50%;
  }
}

@keyframes heroWave5 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(5%, -2%) rotate(1deg) scale(1.03);
  }
  66% {
    transform: translate(-3%, 4%) rotate(-2deg) scale(0.98);
  }
  100% {
    transform: translate(2%, -1%) rotate(1deg) scale(1.01);
  }
}

/* =========== Hero Title Style =========== */
.hero-title-main {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.12;
  -webkit-text-stroke: 1.5px currentColor;
}

html.dark .hero-title-main {
  text-shadow: 0 0 80px rgba(99, 102, 241, 0.15);
}

.hero-title-main .hero-line-reveal:first-child,
.hero-title-main .hero-line:first-child {
  margin-bottom: 0.15em;
}

/* =========== Dark Mode Hero Badge Glow =========== */
html.dark [id="hero"] .rounded-full.border-brand-200 {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.12);
}

/* =========== Dark Mode Section Backgrounds =========== */
html.dark .bg-slate-100\/70 {
  background: rgba(7, 11, 24, 0.6) !important;
}

/* =========== Hero Title Entrance =========== */
.hero-line-reveal {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
}

.hero-line-reveal:nth-child(2) {
  animation-delay: 0.35s;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* =========== Scroll Hint =========== */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInHint 1s 1.5s ease forwards;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: rgba(148,163,184,0.2);
  position: relative;
  overflow: hidden;
}

html.dark .scroll-hint-line {
  background: rgba(148,163,184,0.12);
}

.scroll-hint-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, #6366f1, #06b6d4);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -50%; }
  100% { top: 120%; }
}

@keyframes fadeInHint {
  to { opacity: 1; }
}

/* =========== Skill Card Hover Glow =========== */
.skill-card-glow {
  position: relative;
  overflow: hidden;
}

.skill-card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(56, 189, 248, 0.08) 0%,
    rgba(99, 102, 241, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

html.dark .skill-card-glow::before {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(56, 189, 248, 0.12) 0%,
    rgba(99, 102, 241, 0.06) 40%,
    transparent 70%
  );
}

.skill-card-glow:hover::before {
  opacity: 1;
}

html.dark .skill-card-glow:hover {
  border-color: rgba(99, 102, 241, 0.25) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(99, 102, 241, 0.08),
    0 0 60px rgba(56, 189, 248, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html:not(.dark) .skill-card-glow:hover {
  box-shadow:
    0 16px 40px rgba(99, 102, 241, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* =========== Skill Icon 3D & Glow =========== */
.skill-icon-box {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  transform: perspective(600px) rotateX(2deg) rotateY(-1deg);
}

.skill-icon-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: linear-gradient(135deg,
    rgba(56, 189, 248, 0.4),
    rgba(99, 102, 241, 0.4),
    rgba(139, 92, 246, 0.3));
  z-index: -1;
  filter: blur(12px);
}

html.dark .skill-icon-box {
  background: linear-gradient(135deg,
    rgba(15, 23, 42, 0.8) 0%,
    rgba(30, 27, 75, 0.6) 100%) !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.glass-card:hover .skill-icon-box {
  transform: perspective(600px) rotateX(0deg) rotateY(0deg) translateY(-4px) scale(1.05);
}

html.dark .glass-card:hover .skill-icon-box {
  box-shadow:
    0 12px 32px rgba(99, 102, 241, 0.25),
    0 4px 12px rgba(6, 182, 212, 0.15),
    0 0 40px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  ring-color: rgba(99, 102, 241, 0.3);
}

.glass-card:hover .skill-icon-box::after {
  opacity: 1;
}

html:not(.dark) .glass-card:hover .skill-icon-box {
  box-shadow:
    0 12px 28px rgba(99, 102, 241, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.06);
}

.skill-icon-box svg {
  filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.2));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.glass-card:hover .skill-icon-box svg {
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.4))
          drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
  transform: scale(1.08);
}

/* =========== Cursor Image Preview =========== */
.cursor-preview {
  position: fixed;
  width: 300px;
  height: 190px;
  border-radius: 12px;
  background-size: cover;
  background-position: center top;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.3s ease,
             transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.cursor-preview.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (pointer: coarse) {
  .cursor-preview { display: none; }
}

/* =========== About Ability Cards =========== */
.about-ability-card {
  position: relative;
}

.about-ability-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.about-ability-card:nth-child(1)::before {
  background: linear-gradient(to bottom, #06b6d4, #6366f1);
}

.about-ability-card:nth-child(2)::before {
  background: linear-gradient(to bottom, #8b5cf6, #d946ef);
}

.about-ability-card:nth-child(3)::before {
  background: linear-gradient(to bottom, #f59e0b, #f97316);
}

.about-ability-card:hover::before {
  opacity: 1;
}

html.dark .about-ability-card:hover {
  border-color: rgba(0, 245, 255, 0.12) !important;
}

/* =========== Magnetic Buttons =========== */
.magnetic {
  transition: transform 0.15s ease-out;
}

@media (max-width: 767px) {
  .scroll-hint {
    bottom: 20px;
  }
}

@media not all {
/* ========================================
   CSS Variables & Reset
   Light Mode (Default)
   ======================================== */
:root {
  --bg-primary: #f5f7fb;
  --bg-secondary: #edf0f7;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border: rgba(99, 102, 241, 0.1);
  --border-hover: rgba(99, 102, 241, 0.22);
  --text-primary: #1a1a2e;
  --text-secondary: #5a5a7a;
  --text-muted: #9a9ab0;
  --accent-1: #6366f1;
  --accent-2: #6366f1;
  --accent-3: #0891b2;
  --gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #818cf8 100%);
  --gradient-text: linear-gradient(135deg, #6366f1, #0891b2, #6366f1);
  --glow: 0 8px 40px rgba(99, 102, 241, 0.1);
  --card-shadow: 0 2px 20px rgba(99, 102, 241, 0.06);
  --nav-bg: rgba(245, 247, 251, 0.55);
  --mobile-bg: rgba(245, 247, 251, 0.96);
  --thumb-bg: linear-gradient(135deg, #e8ecf4 0%, #f0f2f8 100%);
  --particle-color: 99, 102, 241;
  --particle-alpha: 0.25;
  --particle-line-alpha: 0.08;
  --icon-surface: #ffffff;
  --icon-surface-2: #f0f2ff;
  --icon-inner: #e8ecf8;
  --icon-depth: rgba(99, 102, 241, 0.12);
  --icon-depth-2: rgba(99, 102, 241, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ========================================
   Dark Mode
   ======================================== */
[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f0f0f5;
  --text-secondary: #8a8a9a;
  --text-muted: #55556a;
  --accent-1: #6366f1;
  --accent-2: #818cf8;
  --accent-3: #06b6d4;
  --gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #818cf8 100%);
  --gradient-text: linear-gradient(135deg, #818cf8, #06b6d4, #6366f1);
  --glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --card-shadow: none;
  --nav-bg: rgba(10, 10, 15, 0.45);
  --mobile-bg: rgba(10, 10, 15, 0.95);
  --thumb-bg: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  --particle-color: 99, 102, 241;
  --particle-alpha: 0.3;
  --particle-line-alpha: 0.12;
  --icon-surface: #1a1a2e;
  --icon-surface-2: #12122a;
  --icon-inner: #0f0f1a;
  --icon-depth: rgba(99, 102, 241, 0.08);
  --icon-depth-2: rgba(15, 15, 26, 0.9);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* ========================================
   Particle Canvas
   ======================================== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav.scrolled {
  padding: 12px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: var(--transition);
}

/* ========================================
   Theme Toggle Button
   ======================================== */
.theme-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.12);
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--accent-1);
  box-shadow: 0 4px 32px rgba(99, 102, 241, 0.25);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

/* Sun icon (visible in dark mode) */
.theme-toggle .icon-sun {
  display: none;
  color: #fbbf24;
}

/* Moon icon (visible in light mode) */
.theme-toggle .icon-moon {
  display: block;
  color: var(--accent-1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--mobile-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-link:hover {
  color: var(--text-primary);
}

/* ========================================
   Container & Section
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent-2);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 15px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 120px 32px 80px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-hint span {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-hover);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: var(--gradient);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { top: -60%; }
  100% { top: 120%; }
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .info-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .info-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  color: var(--accent-2);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   Timeline (Experience)
   ======================================== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-3), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 28px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
  z-index: 1;
}

.timeline-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .timeline-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .timeline-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline-company {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 500;
}

.timeline-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.timeline-achievements {
  margin-bottom: 16px;
}

.timeline-achievements li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 16px;
  margin-bottom: 8px;
  position: relative;
}

.timeline-achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-3);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 50px;
  letter-spacing: 0.5px;
}

/* ========================================
   Portfolio Section
   ======================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.filter-btn.active {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 2px 16px rgba(99, 102, 241, 0.3);
}

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

.portfolio-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.portfolio-card:hover {
}

[data-theme="dark"] .portfolio-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .portfolio-card:hover {
}

.portfolio-thumb {
  aspect-ratio: 16 / 10;
  background: var(--thumb-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.portfolio-thumb img {
  transition: transform 0.4s ease;
}

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

.portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(6, 182, 212, 0.04));
  pointer-events: none;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-placeholder svg {
  width: 60%;
  height: 60%;
  opacity: 0.7;
}

.portfolio-card:hover .portfolio-placeholder svg {
}

.portfolio-info {
  padding: 20px 24px;
}

.portfolio-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.portfolio-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.portfolio-tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-3);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 50px;
}

/* ========================================
   Skills Section
   ======================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.skill-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .skill-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .skill-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.skill-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 14px;
  color: var(--accent-2);
  transition: var(--transition);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.15));
}

.skill-card:hover .skill-icon-wrap {
  filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.35));
  transform: translateY(-4px);
}

.skill-icon-wrap svg {
  width: 80px;
  height: 80px;
}

.skill-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Tools */
.tools-section {
  text-align: center;
}

.tools-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tool-item {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: var(--transition);
}

.tool-item:hover {
  color: var(--text-primary);
  border-color: var(--accent-1);
  background: rgba(99, 102, 241, 0.05);
}

/* ========================================
   Education
   ======================================== */
.edu-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  max-width: 560px;
  margin: 0 auto;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.edu-card:hover {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .edu-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .edu-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.edu-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 14px;
  color: var(--accent-2);
}

.edu-icon svg {
  width: 28px;
  height: 28px;
}

.edu-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.edu-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

.edu-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ========================================
   Animations
   ======================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-stats {
    gap: 32px;
  }

  .stat-num {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .timeline {
    padding-left: 28px;
  }

  .timeline-dot {
    left: -28px;
    width: 12px;
    height: 12px;
  }

  .timeline-card {
    padding: 24px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }

  .edu-card {
    padding: 24px;
  }

  .theme-toggle {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}
