﻿:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #e6eaf2;
  --text-muted: #9aa4bd;
  --primary: #e5e5e5;
  --primary-2: #9ca3af;
  --accent: #c8cdd8;
  --glow: rgba(255, 255, 255, 0.45);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

::selection { background: var(--primary); color: #000000; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2c2c2e, #4a4a4e);
  border-radius: 10px;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ===== Animated background ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 255, 255, 0.045), transparent),
    radial-gradient(ellipse 60% 50% at 90% 45%, rgba(255, 255, 255, 0.02), transparent),
    var(--bg);
}

.blob {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.06;
  pointer-events: none;
}

.blob-1 {
  width: 520px; height: 520px;
  top: -140px; left: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 70%);
  animation: floatBlob 16s ease-in-out infinite alternate;
}

.blob-2 {
  width: 440px; height: 440px;
  top: 40%; right: -160px;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.6), transparent 70%);
  animation: floatBlob 20s ease-in-out infinite alternate-reverse;
}

.blob-3 {
  width: 480px; height: 480px;
  bottom: -160px; left: 20%;
  background: radial-gradient(circle, rgba(150, 150, 150, 0.55), transparent 70%);
  animation: floatBlob 24s ease-in-out infinite alternate;
}

@keyframes floatBlob {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

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

/* ===== Scroll progress ===== */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 200;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

/* ===== Navbar ===== */
header {
  position: sticky;
  top: 0;
  z-index: 150;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  margin-top: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: margin-top 0.4s var(--ease), box-shadow 0.4s var(--ease-soft), transform 0.3s var(--ease-soft);
  will-change: margin-top;
}

nav.scrolled {
  margin-top: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.07);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 160;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Sections ===== */
section { padding: 100px 0; position: relative; }

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title .num {
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 400;
}

.section-title::after {
  content: "";
  flex: 0 0 90px;
  height: 1px;
  background: linear-gradient(90deg, var(--surface-border), transparent);
  margin-left: 6px;
}

/* ===== Hero ===== */
.hero {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-greeting {
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 14px;
  background: linear-gradient(120deg, #fff 20%, var(--primary-2) 50%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: fadeUp 0.8s 0.15s ease both, gradientShift 6s linear infinite;
}

.hero h2 {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  min-height: 1.6em;
  animation: fadeUp 0.8s 0.3s ease both;
}

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

@keyframes blink { 50% { opacity: 0; } }

.hero p {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.45s ease both;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; animation: fadeUp 0.8s 0.6s ease both; }

/* Hold hero intro until the preloader fades out, for a clean entrance */
#preloader:not(.hidden) ~ .hero .hero-greeting,
#preloader:not(.hidden) ~ .hero h1,
#preloader:not(.hidden) ~ .hero h2,
#preloader:not(.hidden) ~ .hero p,
#preloader:not(.hidden) ~ .hero .btn-row,
#preloader:not(.hidden) ~ .hero .hero-art {
  animation-play-state: paused;
}

/* ===== Uiverse-inspired: dark glass shimmer pill ===== */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 17px 38px;
  border-radius: 9999px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px -18px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.btn::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 55%;
  height: 140%;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
  transform: translateX(-180%) skewX(-16deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 30px rgba(255, 255, 255, 0.08),
    0 22px 46px -18px rgba(0, 0, 0, 0.8);
}

.btn:hover::after { transform: translateX(260%) skewX(-16deg); }

.btn:active { transform: translateY(0) scale(0.97); }

.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ===== Uiverse-inspired: tinted glass glow button ===== */
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: var(--text);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px -16px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.35s, transform 0.25s;
}

.btn-outline:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 18px 40px -14px rgba(255, 255, 255, 0.15);
}

.btn-outline:active { transform: translateY(0) scale(0.98); }

/* ===== Uiverse-inspired: animated "Watch" button (white theme) ===== */
/* Adapted from uiverse.io/marcelodolza/stupid-vampirebat-24, recolored to white. */
.button {
  --btn-text: #ffffff;                    /* letters + arrow */
  --btn-100: rgba(168, 85, 247, 0.55);    /* wrap border (lightest) */
  --btn-200: rgba(192, 132, 252, 0.3);    /* inner glow tint */
  --btn-300: rgba(147, 51, 234, 0.25);    /* face gradient (light) */
  --btn-400: rgba(107, 33, 168, 0.4);     /* face gradient (dark) */
  --btn-500: rgba(147, 51, 234, 0.75);    /* edge / offset body */
  --btn-border: rgba(216, 180, 254, 0.55);        /* content border */
  --btn-border-hover: rgba(233, 213, 255, 0.9);   /* content border on hover */
  --btn-glow: rgba(192, 132, 252, 0.3);           /* hover glow */
  --btn-stroke: rgba(192, 132, 252, 0.8);         /* splash + path stroke */
  --radius: 9999px;
  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  font-size: 22px;
  font-family: var(--font);
  letter-spacing: -1px;
  border: 0;
  position: relative;
  width: 220px;
  height: 90px;
  background: transparent;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.button.button-cv {
  --btn-text: #ffffff;
  --btn-100: rgba(255, 255, 255, 0.4);
  --btn-200: rgba(255, 255, 255, 0.25);
  --btn-300: rgb(0, 107, 179);
  --btn-400: rgb(0, 84, 148);
  --btn-500: rgba(0, 130, 220, 0.6);
  --btn-border: rgba(255, 255, 255, 0.3);
  --btn-border-hover: rgba(255, 255, 255, 0.9);
  --btn-glow: rgba(0, 140, 255, 0.35);
  --btn-stroke: rgba(255, 255, 255, 0.8);
}
.button .wrap {
  border-radius: inherit;
  overflow: hidden;
  height: 100%;
  padding: 2px;
  background: linear-gradient(to bottom, var(--btn-500) 0%, var(--btn-100) 100%);
  position: relative;
  transition: box-shadow 0.3s ease;
}
.button .content {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  height: 100%;
  gap: 16px;
  border-radius: calc(var(--radius) * 0.85);
  font-weight: 700;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(to bottom, var(--btn-300) 0%, var(--btn-400) 100%);
  border: 3px solid var(--btn-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 16px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.button .content::before {
  content: "";
  inset: 0;
  position: absolute;
  z-index: 2;
  width: 80%;
  top: 45%;
  bottom: 35%;
  opacity: 0.7;
  margin: auto;
  background: linear-gradient(to bottom, transparent, var(--btn-400));
  filter: brightness(1.3) blur(5px);
}
.button .char { transition: opacity 0.3s ease, transform 0.3s ease; display: flex; align-items: center; justify-content: center; position: relative; z-index: 3; }
.button .char span { display: block; color: transparent; position: relative; }
.button .char.state-1 span { animation: btnCharAppear 1.2s ease backwards calc(var(--i) * 0.03s); }
.button .char.state-1 span::before,
.button .char span::after {
  content: attr(data-label);
  position: absolute;
  color: var(--btn-text);
  text-shadow: -1px 1px 2px rgba(0, 0, 0, 0.45);
  left: 0;
}
.button .char span::before { opacity: 0; transform: translateY(-100%); }
.button .char.state-2 { position: absolute; left: 62px; }
.button .char.state-2 span::after { opacity: 0; }
.button .icon {
  animation: btnResetArrow 0.8s cubic-bezier(0.7, -0.5, 0.3, 1.2) forwards;
  position: relative;
  z-index: 3;
}
.button .icon div,
.button .icon div::before,
.button .icon div::after { height: 3px; border-radius: 1px; background-color: var(--btn-text); }
.button .icon div::before,
.button .icon div::after {
  content: "";
  position: absolute;
  right: 0;
  transform-origin: center right;
  width: 14px;
  border-radius: 15px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.button .icon div {
  position: relative;
  width: 24px;
  box-shadow: -2px 2px 5px var(--btn-400);
  transform: scale(0.9);
  background: linear-gradient(to bottom, var(--btn-text), var(--btn-100));
  animation: btnSwingArrow 1s ease-in-out infinite;
  animation-play-state: paused;
}
.button .icon div::before {
  transform: rotate(44deg);
  top: 1px;
  box-shadow: 1px -2px 3px -1px var(--btn-400);
  animation: btnRotateArrowLine 1s linear infinite;
  animation-play-state: paused;
}
.button .icon div::after {
  bottom: 1px;
  transform: rotate(316deg);
  box-shadow: -2px 2px 3px 0 var(--btn-400);
  background: linear-gradient(200deg, var(--btn-text), var(--btn-100));
  animation: btnRotateArrowLine2 1s linear infinite;
  animation-play-state: paused;
}
.button .path {
  position: absolute;
  z-index: 12;
  bottom: 0;
  left: 0;
  right: 0;
  stroke-dasharray: 150 480;
  stroke-dashoffset: 150;
  pointer-events: none;
}
.button .splash {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  stroke-dasharray: 60 60;
  stroke-dashoffset: 60;
  transform: translate(-17%, -31%);
  stroke: var(--btn-stroke);
}
/* States */
.button:hover .wrap { box-shadow: 0 0 34px var(--btn-glow); }
.button:hover .content { border-color: var(--btn-border-hover); }
.button:hover .icon div::before,
.button:hover .icon div::after,
.button:hover .icon div { animation-play-state: running; }
.button:active .content {
  box-shadow:
    inset -1px 12px 8px -5px rgba(0, 0, 0, 0.35),
    inset 0px -3px 8px 0px var(--btn-200);
}
.button:active .splash { animation: btnSplash 0.8s cubic-bezier(0.3, 0, 0, 1) forwards 0.05s; }
.button:focus .path { animation: btnPath 1.6s ease forwards 0.2s; }
.button:focus .icon { animation: btnArrow 1s cubic-bezier(0.7, -0.5, 0.3, 1.5) forwards; }
.button:focus .char.state-1 span { animation: btnCharDisappear 0.5s ease forwards calc(var(--i) * 0.03s); }
.button:focus .char.state-2 span::after { animation: btnCharAppear 1s ease backwards calc(var(--i) * 0.03s); }
.button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .button .char.state-1 span,
  .button .char span::before,
  .button .char span::after,
  .button .icon,
  .button .icon div,
  .button .icon div::before,
  .button .icon div::after,
  .button .splash,
  .button .path { animation: none !important; }
}

/* Keyframes */
@keyframes btnCharAppear {
  0% { transform: translateY(50%); opacity: 0; filter: blur(20px); }
  20% { transform: translateY(70%); opacity: 1; }
  50% { transform: translateY(-15%); opacity: 1; filter: blur(0); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes btnCharDisappear {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-70%); opacity: 0; filter: blur(3px); }
}
@keyframes btnArrow {
  0% { opacity: 1; }
  50% { transform: translateX(60px); opacity: 0; }
  51% { transform: translateX(-200px); opacity: 0; }
  100% { transform: translateX(-128px); opacity: 1; }
}
@keyframes btnSwingArrow { 50% { transform: translateX(5px) scale(0.9); } }
@keyframes btnRotateArrowLine { 50% { transform: rotate(30deg); } 80% { transform: rotate(55deg); } }
@keyframes btnRotateArrowLine2 { 50% { transform: rotate(330deg); } 80% { transform: rotate(300deg); } }
@keyframes btnResetArrow { 0% { transform: translateX(-128px); } 100% { transform: translateX(0); } }
@keyframes btnPath {
  from { stroke: #ffffff; }
  to { stroke-dashoffset: -480; stroke: var(--btn-stroke); }
}
@keyframes btnSplash { to { stroke-dasharray: 2 60; stroke-dashoffset: -60; } }

.hero-art {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  animation: fadeScale 1s 0.4s ease both;
}

.hero-art .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  animation: spin 20s linear infinite;
}

.hero-art .ring:nth-child(2) { inset: -24px; animation-direction: reverse; animation-duration: 30s; }
.hero-art .ring:nth-child(3) { inset: 24px; animation-duration: 14s; }

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

.hero-art .core {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(255, 255, 255, 0.03);
  animation: pulse 3.5s ease-in-out infinite;
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.hero-art .core img,
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

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

.hero-art .orb {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
  animation: orbitFloat 6s ease-in-out infinite;
}

.orb-1 { top: 4%; left: 30%; }
.orb-2 { bottom: 10%; right: 12%; background: rgba(255, 255, 255, 0.45); box-shadow: 0 0 14px rgba(255, 255, 255, 0.18); animation-delay: 2s; }
.orb-3 { top: 30%; right: 2%; background: rgba(255, 255, 255, 0.25); box-shadow: 0 0 12px rgba(255, 255, 255, 0.12); animation-delay: 4s; }

@keyframes orbitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ===== Glass card base ===== */
.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

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

.about-img-wrap {
  position: relative;
  width: 240px;
  margin: 0 auto;
}

.about-img {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: pulse 4s ease-in-out infinite;
  overflow: hidden;
}

.about-img-wrap::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  animation: spin 24s linear infinite;
}

.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-text strong { color: var(--text); }

.tech-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.tech-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
  cursor: default;
}

.tech-list li:hover { color: var(--accent); transform: translateX(4px); }

.tech-list li::before {
  content: "\25B9";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Skills bar ===== */
.skills { margin-top: 36px; }

.skill { margin-bottom: 18px; }

.skill .label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.skill .bar {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill .fill {
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #3a3a3a, #8a8a8e);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
  perspective: 1200px;
}

.project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.7s var(--ease), transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 60%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: rotate(25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.project-card:hover::before { left: 120%; }

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.07);
}

.project-thumb {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  transition: transform 0.5s ease;
}

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

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.thumb-1 { background: linear-gradient(135deg, #1e1e20, #34343a); }
.thumb-2 { background: linear-gradient(135deg, #29292d, #414148); }
.thumb-3 { background: linear-gradient(135deg, #18181b, #303036); }

.project-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(200, 200, 200, 0.08);
  border: 1px solid rgba(200, 200, 200, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s;
}

.tag:hover { background: rgba(200, 200, 200, 0.18); box-shadow: 0 0 14px rgba(200, 200, 200, 0.3); }

.project-body h3 { font-size: 1.2rem; margin-bottom: 10px; }

.project-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }

.project-links { margin-top: auto; display: flex; gap: 18px; }

.project-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, filter 0.2s;
}

.project-links a:hover { gap: 10px; filter: drop-shadow(0 0 8px rgba(200, 200, 200, 0.6)); }

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.stat {
  text-align: center;
  padding: 28px 16px;
}

.stat .value {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat .label-stat { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }

/* ===== Contact (uiverse glass form) ===== */
.fg-07,
.fg-07 *,
.fg-07 *::before,
.fg-07 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.fg-07 {
  --c-a: #ffffff;
  --c-a2: #9ca3af;
  --c-text: #e6eaf2;
  --c-muted: rgba(230, 234, 242, 0.5);
  --c-glass: rgba(255, 255, 255, 0.035);
  --c-border: rgba(255, 255, 255, 0.09);
  --c-field: rgba(255, 255, 255, 0.05);
  --c-fborder: rgba(255, 255, 255, 0.09);
  --t: 0.25s ease;
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.fg-07 ::selection {
  background: rgba(255, 255, 255, 0.4);
  color: #000;
}

/* ── animated background ── */
.fg-02__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fg-02__glow {
  position: absolute;
  border-radius: 50%;
}

.fg-02__glow--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  top: -130px;
  left: -130px;
  animation: fg-07-g1 20s ease-in-out infinite alternate;
}

.fg-02__glow--2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(156, 163, 175, 0.1), transparent 70%);
  bottom: -110px;
  right: -110px;
  animation: fg-07-g2 26s ease-in-out infinite alternate;
}

.fg-02__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

@keyframes fg-07-g1 {
  to { transform: translate(100px, 80px) scale(1.22); }
}

@keyframes fg-07-g2 {
  to { transform: translate(-90px, -110px) scale(1.18); }
}

/* ── split glass card ── */
.fg-02__card {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  background: var(--c-glass);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

/* ── info sidebar ── */
.fg-02__info {
  position: relative;
  overflow: hidden;
  padding: 44px 36px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fg-02__info-body {
  position: relative;
  z-index: 1;
}

.fg-02__avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--c-a);
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
  width: fit-content;
}

.fg-02__avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-a);
  box-shadow: 0 0 8px var(--c-a);
  animation: fg-07-pulse 2s ease-in-out infinite;
}

@keyframes fg-07-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.75); }
}

.fg-02__info-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--c-text);
  line-height: 1.25;
  margin-bottom: 12px;
}

.fg-02__info-sub {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 30px;
}

.fg-02__contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fg-02__ci {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(230, 234, 242, 0.8);
}

.fg-02__ci a { color: inherit; }
.fg-02__ci a:hover { color: #fff; text-decoration: underline; }

.fg-02__ci-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-a);
}

/* ── decorative rotating rings ── */
.fg-02__deco {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 210px;
  height: 210px;
  pointer-events: none;
}

.fg-02__deco-r {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fg-02__deco-r--b { animation: fg-07-rot 32s linear infinite; }
.fg-02__deco-r--c { animation: fg-07-rot 19s linear infinite reverse; }

@keyframes fg-07-rot {
  to { transform: rotate(360deg); }
}

/* ── form wrap ── */
.fg-02__form-wrap {
  padding: 44px 40px;
}

.fg-02__form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.3px;
  margin-bottom: 22px;
}

.fg-02__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── floating-label field ── */
.fg-02__field {
  position: relative;
  margin-bottom: 14px;
}

.fg-02__input {
  width: 100%;
  background: var(--c-field);
  border: 1px solid var(--c-fborder);
  border-radius: 12px;
  padding: 20px 16px 8px;
  color: var(--c-text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.fg-02__input:focus {
  border-color: var(--c-a);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.fg-02__input.error {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.fg-02__label {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--c-muted);
  font-size: 14px;
  pointer-events: none;
  transition: top 0.2s, font-size 0.2s, letter-spacing 0.2s, color 0.2s;
}

.fg-02__input:focus ~ .fg-02__label,
.fg-02__input:not(:placeholder-shown) ~ .fg-02__label {
  top: 6px;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--c-a);
}

.fg-02__label--top {
  top: 6px;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--c-a);
}

/* ── select ── */
.fg-02__field--sel .fg-02__input {
  padding-right: 44px;
  cursor: pointer;
}

.fg-02__sel-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--c-muted);
  display: flex;
  align-items: center;
}

.fg-02__sel option { background: #0a0a0a; color: #e6eaf2; }

/* ── textarea + counter ── */
.fg-02__ta {
  resize: none;
  padding-bottom: 28px;
}

.fg-02__field--area {
  margin-bottom: 18px;
}

.fg-02__cnt {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 11px;
  color: var(--c-muted);
  transition: color 0.2s;
  pointer-events: none;
}

.fg-02__cnt.is-warn { color: #f59e0b; }
.fg-02__cnt.is-limit { color: #f87171; }

/* ── submit button ── */
.fg-02__btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #e5e5e5 0%, #9ca3af 100%);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 22px rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.fg-02__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
  animation: fg-07-shine 2.8s linear infinite;
}

@keyframes fg-07-shine {
  to { left: 160%; }
}

.fg-02__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(255, 255, 255, 0.28);
}

.fg-02__btn:active:not(:disabled) {
  transform: translateY(0);
}

.fg-02__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.fg-02__btn-spin {
  display: none;
}

.fg-02__btn-spin svg {
  animation: fg-07-spin 0.75s linear infinite;
}

@keyframes fg-07-spin {
  to { transform: rotate(360deg); }
}

/* ── success overlay ── */
.fg-02__ok {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 44px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 10;
}

.fg-02__ok.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fg-02__ok-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(74, 222, 128, 0.55);
}

.fg-02__ok.is-visible .fg-02__ok-ring {
  animation: fg-07-pop 0.52s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes fg-07-pop {
  from { transform: scale(0) rotate(-25deg); }
  to { transform: scale(1) rotate(0); }
}

.fg-02__ok-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.5px;
}

.fg-02__ok-msg {
  font-size: 14px;
  color: var(--c-muted);
  max-width: 280px;
  line-height: 1.65;
}

.fg-02__ok-back {
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 10px 26px;
  color: var(--c-a);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--t), transform 0.15s;
}

.fg-02__ok-back:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 36px 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

footer p { color: var(--text-muted); font-size: 0.9rem; }

.footer-logo {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-findme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-findme::before,
.footer-findme::after {
  content: "";
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border));
}

.footer-findme::after {
  background: linear-gradient(90deg, var(--surface-border), transparent);
}

footer .socials { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; row-gap: 12px; }

.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
  backdrop-filter: blur(8px);
}

.social-chip svg { flex-shrink: 0; }

.social-label { line-height: 1; white-space: nowrap; }

.social-chip:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.social-chip:active { transform: translateY(-2px) scale(0.99); }

.social-chip[data-brand="email"]:hover {
  border-color: rgba(192, 132, 252, 0.75);
  background: rgba(147, 51, 234, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(192, 132, 252, 0.45);
}

.social-chip[data-brand="linkedin"]:hover {
  border-color: rgba(0, 126, 187, 0.75);
  background: rgba(0, 126, 187, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 126, 187, 0.45);
}

.social-chip[data-brand="youtube"]:hover {
  border-color: rgba(255, 0, 0, 0.75);
  background: rgba(255, 0, 0, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 0, 0, 0.45);
}

.social-chip[data-brand="instagram"]:hover {
  border-color: rgba(238, 42, 123, 0.75);
  background: rgba(238, 42, 123, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(238, 42, 123, 0.45);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-border);
}

.footer-copy { font-size: 0.85rem !important; }

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-top:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

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

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

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

/* ===== Mouse glow follower ===== */
#cursorGlow {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 60%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tech-list { text-align: left; max-width: 340px; margin: 16px auto 0; }
}

@media (max-width: 1000px) {
  .site-page .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 12px;
    padding: 100px 28px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid var(--surface-border);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    z-index: 155;
  }
  .site-page .nav-links.open { transform: translateX(0); }
  .site-page .nav-links a { font-size: 1.1rem; padding: 14px 18px; }
  .site-page .hamburger { display: block; }
}

/* ===== New sections: Skills / Services / Showreel / Experience / Testimonials / Form ===== */

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.skill-card {
  padding: 24px;
  transition: opacity 0.7s var(--ease), transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.05);
}

.skill-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.skill-ico {
  width: 48px; height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.skill-top h3 { font-size: 1rem; margin-bottom: 2px; }
.skill-top p { color: var(--text-muted); font-size: 0.8rem; }

.skill-card .bar { height: 6px; }
.skill-card .fill { background: linear-gradient(90deg, #3a3a3a, #8a8a8e); }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.7s var(--ease), transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 70%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: rotate(25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.service-card:hover::before { left: 130%; }

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 255, 255, 0.05);
}

.service-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 18px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
  animation: floatIco 5s ease-in-out infinite;
}

@keyframes floatIco {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.service-card:nth-child(2) .service-ico { animation-delay: 1s; }
.service-card:nth-child(3) .service-ico { animation-delay: 2s; }
.service-card:nth-child(4) .service-ico { animation-delay: 3s; }

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }

.service-card ul { list-style: none; }
.service-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.service-card li::before {
  content: "\25B9";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Showreel ===== */
.showreel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.reel-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  display: block;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: opacity 0.7s var(--ease), transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.reel-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 255, 255, 0.05);
}

.reel-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.reel-card:hover .reel-thumb { transform: scale(1.06); }

.reel-1 { background: linear-gradient(135deg, #232326, #38383e); }
.reel-2 { background: linear-gradient(135deg, #2a2a2e, #45454c); }
.reel-3 { background: linear-gradient(135deg, #1a1a1d, #333338); }
.reel-4 { background: linear-gradient(135deg, #303036, #1f1f22); }
.reel-5 { background: linear-gradient(135deg, #2c2c30, #3d3d43); }
.reel-6 { background: linear-gradient(135deg, #26262a, #3a3a40); }

.reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
  border: none;
  cursor: pointer;
}

.reel-card:hover .reel-play { opacity: 1; }

.play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s, background 0.3s;
}

.reel-card:hover .play-btn { transform: scale(1.1); }

.reel-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.reel-info .reel-meta {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reel-info h3 { font-size: 1rem; color: #fff; }

/* ===== Video modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-soft);
}

.modal.open { opacity: 1; pointer-events: auto; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: #000000;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal.open .modal-box { transform: scale(1) translateY(0); }

.modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-frame iframe { width: 100%; height: 100%; border: none; }

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.35); transform: rotate(90deg); }

/* ===== Experience timeline ===== */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, #555, #2a2a2a, transparent);
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px 0;
}

.tl-item:nth-child(even) {
  left: 50%;
  padding: 0 0 40px 40px;
}

.tl-item::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #3a3a3a;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 0 16px rgba(255, 255, 255, 0.12);
  right: -7px;
  animation: dotPulse 4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05), 0 0 14px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.14), 0 0 26px rgba(255, 255, 255, 0.28); }
}

.tl-item:nth-child(2)::before { animation-delay: 1s; }
.tl-item:nth-child(3)::before { animation-delay: 2s; }
.tl-item:nth-child(4)::before { animation-delay: 3s; }

.tl-item:nth-child(even)::before { right: auto; left: -7px; }

.tl-card { padding: 22px 24px; }

.tl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tl-head .date { margin-bottom: 0; }

.tl-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0a;
  flex-shrink: 0;
}

.tl-card .date {
  display: inline-block;
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(200, 200, 200, 0.25);
  background: rgba(200, 200, 200, 0.08);
}

.tl-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.tl-card .org { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.tl-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.7s var(--ease), transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.1);
}

.t-stars { color: #e5e5e5; letter-spacing: 2px; font-size: 0.9rem; }

.t-quote {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  flex: 1;
}

.t-author { display: flex; align-items: center; gap: 14px; }

.t-avatar {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.t-author h4 { font-size: 0.95rem; }
.t-author p { color: var(--text-muted); font-size: 0.8rem; }

/* ===== Responsive for new sections ===== */
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .footer-bottom { justify-content: center; text-align: center; }
  .section-title { font-size: 1.8rem; margin-bottom: 36px; }
  .section-title::after { flex-basis: 40px; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3rem); }
  .about-img-wrap, .about-img { width: 200px; height: 200px; }
  .stats { gap: 12px; margin-top: 40px; }
  .stat .value { font-size: 2rem; }
  .btn-row .btn { padding: 12px 22px; }
  .fg-02__card { grid-template-columns: 1fr; }
  .fg-02__info { padding: 32px 28px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .fg-02__deco { display: none; }
  .fg-02__form-wrap { padding: 32px 28px; }
  .fg-02__row2 { grid-template-columns: 1fr; }
  .modal { padding: 16px; }
  #cursorGlow { display: none; }
  #particles { opacity: 0.5; }
  .tl-item,
  .tl-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 0 0 36px 32px;
  }
  .timeline::before { left: 7px; }
  .tl-item::before,
  .tl-item:nth-child(even)::before { left: 0; right: auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .section-title { font-size: 1.45rem; margin-bottom: 28px; gap: 10px; }
  .section-title::after { display: none; }
  .hero { padding: 76px 0 48px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .hero-grid, .about-grid { gap: 32px; }
  .hero-art { width: 220px; height: 220px; }
  .hero-art .core { inset: 30px; }
  .about-img-wrap, .about-img { width: 170px; height: 170px; }
  .stats { gap: 8px; }
  .stat { padding: 20px 8px; }
  .stat .value { font-size: 1.7rem; }
  .tech-list { max-width: 100%; }
  .btn-row .button { flex: 1 1 100%; justify-content: center; transform: scale(0.85); }
  .modal { padding: 8px; }
  .modal-close { top: 8px; right: 8px; }
  #particles { display: none; }
  #toTop { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .tl-card { padding: 18px 20px; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== Uiverse-inspired: preloader spinner ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

.loader {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary);
  animation: spinLoader 0.8s linear infinite;
}

.loader::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  animation: spinLoader 6s linear infinite reverse;
}

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

/* ===== Uiverse-inspired: back to top button ===== */
#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 250;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
}

#toTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#toTop:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* ===== Respect reduced motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #particles,
  #cursorGlow,
  .blob { display: none; }
}

/* ===== Touch devices: disable sticky hover effects ===== */
@media (hover: none) {
  .button:hover .wrap { box-shadow: none; }
  .button:hover .content { border-color: var(--btn-border); }
  .button:hover .icon div,
  .button:hover .icon div::before,
  .button:hover .icon div::after { animation-play-state: paused !important; }

  .service-card:hover,
  .skill-card:hover,
  .project-card:hover,
  .reel-card:hover,
  .testimonial-card:hover,
  .social-chip:hover { transform: none !important; }

  .service-card:hover,
  .skill-card:hover,
  .project-card:hover,
  .reel-card:hover,
  .testimonial-card:hover {
    border-color: var(--surface-border) !important;
    box-shadow: none !important;
  }

  .reel-card:hover .reel-thumb,
  .project-card:hover .project-thumb { transform: none !important; }
}
      .cv-page {
        max-width: 900px;
        margin: 40px auto;
        padding: 0 24px;
      }

      .cv-actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        margin-bottom: 20px;
      }

      .btn-print {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 13px 26px;
        border-radius: 50px;
        font-family: inherit;
        font-weight: 700;
        font-size: 0.95rem;
        color: #000;
        background: #fff;
        border: 1px solid #fff;
        cursor: pointer;
        overflow: hidden;
        transition:
          transform 0.3s,
          box-shadow 0.3s,
          letter-spacing 0.3s;
      }

      .btn-print svg {
        flex-shrink: 0;
      }

      .btn-print::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 60%;
        height: 100%;
        background: linear-gradient(
          100deg,
          transparent,
          rgba(0, 0, 0, 0.15),
          transparent
        );
        transform: skewX(-20deg);
        transition: left 0.6s;
      }

      .btn-print:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
        letter-spacing: 0.03em;
      }

      .btn-print:hover::after {
        left: 150%;
      }

      /* ===== CV card ===== */
      .cv-card {
        display: grid;
        grid-template-columns: 280px 1fr;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--surface-border);
        backdrop-filter: blur(18px) saturate(150%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
        border-radius: var(--radius);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
        overflow: hidden;
      }

      /* ===== Sidebar ===== */
      .cv-aside {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        border-right: 1px solid var(--surface-border);
        padding: 40px 28px;
      }

      .cv-head {
        margin-bottom: 32px;
      }

      .cv-avatar {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 0 34px rgba(0, 0, 0, 0.55);
        margin-bottom: 20px;
        overflow: hidden;
      }

      .cv-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .cv-head h1 {
        font-size: 1.7rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        background: linear-gradient(120deg, #fff 20%, var(--primary-2) 50%, var(--accent) 80%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 4px;
      }

      .cv-head .role {
        color: var(--accent);
        font-weight: 600;
        font-size: 0.95rem;
      }

      .cv-head .role::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
        margin-right: 8px;
        box-shadow: 0 0 10px rgba(200, 205, 216, 0.6);
      }

      .cv-block {
        margin-bottom: 30px;
      }

      .cv-block:last-child {
        margin-bottom: 0;
      }

      .cv-block h3 {
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--surface-border);
      }

      .cv-contact-list {
        list-style: none;
      }

      .cv-contact-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 0.82rem;
        color: var(--text-muted);
        line-height: 1.5;
        overflow-wrap: break-word;
      }

      .cv-contact-list li:last-child {
        margin-bottom: 0;
      }

      .cv-contact-list .ic {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        margin-top: 2px;
        color: var(--primary);
      }

      .cv-contact-list a {
        color: var(--text-muted);
        transition: color 0.2s;
      }

      .cv-contact-list a:hover {
        color: var(--accent);
      }

      .cv-skills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .cv-skills .tag {
        font-size: 0.72rem;
        padding: 5px 12px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        line-height: 1.2;
      }

      .cv-skills .tag svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
      }

      .cv-skill-group {
        margin-bottom: 14px;
      }

      .cv-skill-group:last-child {
        margin-bottom: 0;
      }

      .cv-skill-group h4 {
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text);
        margin-bottom: 8px;
      }

      .cv-skill-group .tag {
        margin-bottom: 0;
      }

      /* ===== Main column ===== */
      .cv-main {
        padding: 40px 40px 40px 36px;
        min-width: 0;
      }

      .cv-section {
        margin-bottom: 30px;
      }

      .cv-section:last-child {
        margin-bottom: 0;
      }

      .cv-section h2 {
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text);
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .cv-section h2 .num {
        font-family: "Courier New", monospace;
        font-size: 0.9rem;
        font-weight: 400;
        color: var(--accent);
      }

      .cv-section h2::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, var(--surface-border), transparent);
      }

      .cv-section p {
        color: var(--text-muted);
        font-size: 0.92rem;
        margin-bottom: 10px;
        line-height: 1.7;
      }

      .cv-item {
        position: relative;
        margin-bottom: 20px;
        padding-left: 18px;
      }

      .cv-item:last-child {
        margin-bottom: 0;
      }

      .cv-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        width: 3px;
        height: calc(100% - 12px);
        border-radius: 3px;
        background: linear-gradient(180deg, rgba(200, 205, 216, 0.6), rgba(200, 205, 216, 0.1));
      }

      .cv-item .head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 4px;
      }

      .cv-item .title {
        font-weight: 700;
        color: var(--text);
        font-size: 0.98rem;
      }

      .cv-item .org {
        color: var(--accent);
        font-weight: 500;
        font-size: 0.85rem;
        margin-top: 2px;
      }

      .cv-item .date {
        display: inline-block;
        color: var(--text-muted);
        font-size: 0.75rem;
        font-family: "Courier New", monospace;
        white-space: nowrap;
        padding: 2px 10px;
        border-radius: 20px;
        border: 1px solid rgba(200, 200, 200, 0.22);
        background: rgba(200, 200, 200, 0.07);
      }

      .cv-item .desc {
        color: var(--text-muted);
        font-size: 0.87rem;
        margin-top: 6px;
        line-height: 1.65;
      }

      .cv-item .desc ul {
        list-style: none;
        margin-top: 6px;
      }

      .cv-item .desc li {
        position: relative;
        padding-left: 16px;
        margin-bottom: 4px;
        color: var(--text-muted);
        font-size: 0.85rem;
      }

      .cv-item .desc li::before {
        content: "\25B9";
        position: absolute;
        left: 0;
        color: var(--primary);
        font-weight: 700;
      }

      @media (max-width: 720px) {
        .cv-card {
          grid-template-columns: 1fr;
        }
        .cv-aside {
          border-right: none;
          border-bottom: 1px solid var(--surface-border);
        }
        .cv-main {
          padding: 32px 24px;
        }
      }

      @media print {
        @page {
          margin: 0;
        }
        header,
        footer,
        #progress,
        #particles,
        .bg,
        .blob,
        #cursorGlow,
        .cv-actions,
        .hero,
        section:not(#cv),
        #toTop,
        #preloader {
          display: none !important;
        }
        #cv {
          padding: 0 !important;
        }
        #cv .container {
          max-width: 100%;
          padding: 0;
        }
        body {
          background: #fff;
          color: #111;
        }
        .cv-page {
          margin: 0 auto;
          max-width: 100%;
        }
        .cv-card {
          background: #fff;
          border: none;
          box-shadow: none;
          backdrop-filter: none;
          border-radius: 0;
          grid-template-columns: 240px 1fr;
        }
        .cv-aside {
          background: #f4f4f5;
          border-right: 1px solid #ddd;
          padding: 20px 18px;
          -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
        }
        .cv-main {
          padding: 20px 24px;
        }
        .cv-avatar {
          width: 72px;
          height: 72px;
          margin-bottom: 14px;
        }
        .cv-head {
          margin-bottom: 20px;
        }
        .cv-head h1 {
          font-size: 1.4rem;
        }
        .cv-block {
          margin-bottom: 18px;
        }
        .cv-block h3 {
          font-size: 0.72rem;
          margin-bottom: 10px;
          padding-bottom: 6px;
        }
        .cv-contact-list li {
          margin-bottom: 8px;
          font-size: 0.75rem;
        }
        .cv-skills .tag {
          font-size: 0.68rem;
          padding: 4px 9px;
        }
        .cv-skill-group {
          margin-bottom: 10px;
        }
        .cv-skill-group h4 {
          font-size: 0.7rem;
          margin-bottom: 6px;
        }
        .cv-section {
          margin-bottom: 18px;
        }
        .cv-section h2 {
          font-size: 0.9rem;
          margin-bottom: 10px;
        }
        .cv-section p {
          font-size: 0.85rem;
          line-height: 1.5;
          margin-bottom: 8px;
        }
        .cv-item {
          margin-bottom: 14px;
        }
        .cv-item .title {
          font-size: 0.9rem;
        }
        .cv-item .desc,
        .cv-item .desc li {
          font-size: 0.8rem;
          line-height: 1.5;
        }
        .cv-block,
        .cv-section,
        .cv-item,
        .cv-head,
        .cv-skill-group {
          break-inside: avoid;
          page-break-inside: avoid;
        }
        .cv-contact-list .ic {
          color: #111;
          flex-shrink: 0;
        }
        .cv-head h1 {
          color: #111;
          -webkit-text-fill-color: #111;
          background: none;
        }
        .cv-head .role {
          color: #333;
        }
        .cv-block h3 {
          color: #000;
          border-bottom-color: #ddd;
        }
        .cv-contact-list li {
          color: #333;
        }
        .cv-contact-list a {
          color: #111;
        }
        .cv-section h2 {
          color: #000;
        }
        .cv-section h2 .num {
          color: #666;
        }
        .cv-section h2::after {
          background: #ddd;
        }
        .cv-item .title {
          color: #111;
        }
        .cv-item .org,
        .cv-section p,
        .cv-item .desc,
        .cv-item .desc li,
        .cv-item .date {
          color: #333;
        }
        .cv-skill-group h4 {
          color: #111;
        }
        .cv-skills .tag {
          color: #111;
          background: #eee;
          border-color: #ccc;
        }
        .cv-item::before {
          background: #aaa;
        }
      }

