:root {
  --nav-height: 74px;
  --container: 1160px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 22px 70px rgba(42, 10, 88, 0.35);
  --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: 'Space Grotesk', 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html[data-theme="violet"] {
  --bg: #11061d;
  --bg-elevated: rgba(28, 11, 49, 0.78);
  --panel: rgba(41, 16, 70, 0.82);
  --panel-strong: rgba(53, 21, 93, 0.9);
  --text: #f4efff;
  --muted: #c3b4dd;
  --subtle: #8f7ea8;
  --border: rgba(190, 154, 255, 0.12);
  --border-strong: rgba(185, 141, 255, 0.24);
  --accent: #9f69ff;
  --accent-2: #5e9cff;
  --accent-3: #e84dbd;
  --glow: rgba(159, 105, 255, 0.55);
  --accent-gradient: linear-gradient(135deg, #b57dff 0%, #8a58ff 42%, #5bc8ff 100%);
  --hero-gradient: radial-gradient(circle at 22% 18%, rgba(159, 105, 255, 0.26), transparent 34%), radial-gradient(circle at 80% 14%, rgba(232, 77, 189, 0.16), transparent 30%), radial-gradient(circle at 50% 70%, rgba(91, 200, 255, 0.12), transparent 36%);
}

html[data-theme="aurora"] {
  --bg: #06161a;
  --bg-elevated: rgba(5, 28, 31, 0.78);
  --panel: rgba(8, 41, 45, 0.82);
  --panel-strong: rgba(13, 57, 63, 0.9);
  --text: #effdfc;
  --muted: #c1dfdc;
  --subtle: #7ea4a1;
  --border: rgba(147, 255, 240, 0.12);
  --border-strong: rgba(147, 255, 240, 0.24);
  --accent: #67f0dd;
  --accent-2: #54a7ff;
  --accent-3: #9a7bff;
  --glow: rgba(103, 240, 221, 0.5);
  --accent-gradient: linear-gradient(135deg, #67f0dd 0%, #54a7ff 52%, #9a7bff 100%);
  --hero-gradient: radial-gradient(circle at 18% 20%, rgba(103, 240, 221, 0.24), transparent 34%), radial-gradient(circle at 80% 14%, rgba(154, 123, 255, 0.16), transparent 30%), radial-gradient(circle at 50% 72%, rgba(84, 167, 255, 0.12), transparent 36%);
}

html[data-theme="ocean"] {
  --bg: #07111f;
  --bg-elevated: rgba(10, 21, 42, 0.78);
  --panel: rgba(14, 28, 59, 0.82);
  --panel-strong: rgba(18, 37, 78, 0.9);
  --text: #f3f8ff;
  --muted: #c5d4ea;
  --subtle: #8090ae;
  --border: rgba(112, 176, 255, 0.12);
  --border-strong: rgba(112, 176, 255, 0.24);
  --accent: #70b0ff;
  --accent-2: #4de1ff;
  --accent-3: #7a8cff;
  --glow: rgba(112, 176, 255, 0.52);
  --accent-gradient: linear-gradient(135deg, #70b0ff 0%, #4de1ff 46%, #7a8cff 100%);
  --hero-gradient: radial-gradient(circle at 22% 18%, rgba(112, 176, 255, 0.24), transparent 34%), radial-gradient(circle at 80% 14%, rgba(77, 225, 255, 0.16), transparent 30%), radial-gradient(circle at 50% 72%, rgba(122, 140, 255, 0.12), transparent 36%);
}

html[data-theme="sunset"] {
  --bg: #1a0810;
  --bg-elevated: rgba(46, 13, 28, 0.78);
  --panel: rgba(70, 21, 41, 0.82);
  --panel-strong: rgba(89, 25, 50, 0.9);
  --text: #fff4f8;
  --muted: #e4c3d2;
  --subtle: #a98294;
  --border: rgba(255, 145, 196, 0.12);
  --border-strong: rgba(255, 145, 196, 0.24);
  --accent: #ff8ab7;
  --accent-2: #ffb15c;
  --accent-3: #9f78ff;
  --glow: rgba(255, 138, 183, 0.5);
  --accent-gradient: linear-gradient(135deg, #ff8ab7 0%, #ffb15c 48%, #9f78ff 100%);
  --hero-gradient: radial-gradient(circle at 22% 18%, rgba(255, 138, 183, 0.24), transparent 34%), radial-gradient(circle at 80% 14%, rgba(255, 177, 92, 0.16), transparent 30%), radial-gradient(circle at 50% 72%, rgba(159, 120, 255, 0.12), transparent 36%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(120, 62, 255, 0.15), transparent 38%),
    radial-gradient(circle at bottom, rgba(91, 200, 255, 0.09), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

::selection {
  background: rgba(159, 105, 255, 0.35);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.02;
  z-index: 0;
}

#particles-canvas,
.cursor,
.cursor-follower {
  display: none !important;
}

#preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.loader {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 50px var(--glow);
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  opacity: 0.42;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
}

.section-title {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 0 0 42px;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-divider {
  width: min(160px, 28vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 0 28px;
}

#navbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(13, 5, 24, 0.72);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.nav-container {
  width: min(calc(100% - 32px), var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 6px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--accent-gradient);
  color: #fff !important;
  box-shadow: 0 12px 36px rgba(159, 105, 255, 0.3);
}

.nav-cta:hover {
  background: var(--accent-gradient);
  box-shadow: 0 16px 42px rgba(159, 105, 255, 0.45);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.theme-btn {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.theme-btn.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.theme-btn[data-theme="violet"] { background: linear-gradient(135deg, #b57dff, #6b37ff); }
.theme-btn[data-theme="aurora"] { background: linear-gradient(135deg, #67f0dd, #54a7ff); }
.theme-btn[data-theme="ocean"] { background: linear-gradient(135deg, #70b0ff, #4de1ff); }
.theme-btn[data-theme="sunset"] { background: linear-gradient(135deg, #ff8ab7, #ffb15c); }

.hamburger {
  display: none;
  margin-left: auto;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger span + span {
  margin-top: 6px;
}

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

#hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-height) + 34px) 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  filter: blur(12px);
  opacity: 0.95;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 6vw, 72px);
  position: relative;
  z-index: 1;
}

.hero-art {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}

.hero-art-orbit {
  position: absolute;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 18px rgba(159, 105, 255, 0.03), 0 0 90px var(--glow);
}

.hero-art-orbit::before,
.hero-art-orbit::after {
  content: '';
  position: absolute;
  inset: 14% 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-art-orbit::after {
  inset: 26% 20%;
}

.hero-art-core {
  position: relative;
  width: min(280px, 76vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-art-core::before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 105, 255, 0.34), rgba(159, 105, 255, 0.08) 44%, transparent 72%);
  filter: blur(16px);
}

.hero-art-avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 14px rgba(159, 105, 255, 0.08), 0 0 70px rgba(159, 105, 255, 0.45);
  position: relative;
  z-index: 1;
}

.hero-art-card {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero-art-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.hero-art-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 620px;
}

.hero-greeting {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero-eyebrow {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  letter-spacing: -0.04em;
}

.typewriter {
  color: var(--accent);
  font-weight: 700;
}

.cursor-blink {
  color: var(--accent-2);
  animation: blink 1s steps(1) infinite;
}

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

.hero-description {
  margin: 0 0 18px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--subtle);
  font-size: 0.92rem;
}

.hero-location svg {
  color: var(--accent);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-primary,
.btn-secondary,
.overlay-btn,
.project-link,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary,
.btn-secondary {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 18px 40px rgba(124, 74, 255, 0.35);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.btn-primary:hover,
.btn-secondary:hover,
.nav-link:hover,
.social-icon:hover,
.theme-btn:hover,
.project-link:hover,
.form-submit:hover,
.overlay-btn:hover {
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: start center;
  padding-top: 7px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: wheel 1.5s infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

#about,
#experience,
#certifications {
  background: rgba(255, 255, 255, 0.01);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.about-image-container,
.skill-category,
.timeline-card,
.project-card,
.cert-card,
.contact-form-wrapper,
.contact-item,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.about-image-container {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 24px;
  min-height: 520px;
  overflow: hidden;
}

.about-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 18%, rgba(159, 105, 255, 0.24), transparent 32%), radial-gradient(circle at 82% 76%, rgba(91, 200, 255, 0.14), transparent 30%);
  opacity: 0.9;
}

.about-image-placeholder {
  position: relative;
  z-index: 1;
  min-height: 470px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-avatar-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 60px var(--glow);
}

.name-initials {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  color: var(--text);
  font-size: 0.85rem;
}

.about-decoration {
  position: absolute;
  inset: 28px auto auto 28px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 28px rgba(159, 105, 255, 0.05);
}

.about-badge {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 8, 34, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.about-badge-icon {
  font-size: 1.5rem;
}

.about-badge-text {
  font-size: 0.86rem;
  font-weight: 700;
}

.about-badge-sub {
  font-size: 0.74rem;
  color: var(--muted);
}

.about-content h2 {
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.about-content h2 span {
  color: var(--accent);
}

.about-content p,
.contact-info p,
.project-description,
.timeline-list li,
.cert-issuer,
.form-success {
  color: var(--muted);
}

.about-content p {
  margin: 0 0 14px;
  font-size: 1.03rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.info-item svg,
.contact-item-icon,
.timeline-period svg,
.cert-year svg,
.hero-location svg {
  flex-shrink: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-category {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.skill-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.25rem;
}

.skill-category-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.skill-bar-item {
  margin-bottom: 16px;
}

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

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.93rem;
}

.skill-name {
  color: var(--text);
  font-weight: 500;
}

.skill-percent {
  color: var(--accent);
  font-size: 0.85rem;
}

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

.skill-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient);
  box-shadow: 0 0 24px var(--glow);
}

.tech-stack-title {
  margin: 40px 0 18px;
  text-align: center;
  color: var(--subtle);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tech-tag,
.project-tag,
.timeline-period,
.cert-year {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.tech-tag {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.timeline::before,
.timeline-spacer,
.timeline-empty {
  display: none;
}

.timeline-item {
  display: block;
  margin: 0;
}

.timeline-item:nth-child(even) {
  margin-top: 42px;
}

.timeline-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 26px;
}

.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  border-radius: inherit;
  background: var(--accent-gradient);
}

.timeline-header {
  margin-bottom: 14px;
}

.timeline-role {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.timeline-company {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 600;
}

.timeline-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-list {
  display: grid;
  gap: 8px;
}

.timeline-list li {
  display: flex;
  gap: 10px;
  font-size: 0.94rem;
}

.timeline-list li::before {
  content: '•';
  color: var(--accent);
  margin-top: -1px;
}

.projects-grid {
  display: grid;
  gap: 24px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.project-card:nth-child(even) {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.project-card:nth-child(even) .project-image {
  order: 2;
}

.project-image {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 18px 18px auto;
  height: 16px;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, 0.14);
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(159, 105, 255, 0.24), transparent 44%);
}

.project-image-icon {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.16));
}

.project-overlay {
  position: absolute;
  inset: auto 18px 18px auto;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.overlay-btn {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 8, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(14px);
}

.project-content {
  padding: 28px;
}

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

.project-tag {
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.75rem;
}

.project-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.project-description {
  margin: 0 0 22px;
  line-height: 1.85;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.project-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cert-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: var(--radius-lg);
  padding: 20px;
}

.cert-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.cert-title {
  margin: 0 0 4px;
  font-weight: 600;
  line-height: 1.45;
}

.cert-issuer {
  margin: 0 0 10px;
}

.cert-year {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--subtle);
  font-size: 0.75rem;
}

.contact-info h3,
.contact-form-wrapper h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 14px 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.contact-item-label {
  margin: 0 0 2px;
  color: var(--subtle);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-item-value {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.contact-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-form-wrapper {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(159, 105, 255, 0.12);
}

.form-control::placeholder {
  color: var(--subtle);
}

.form-submit {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(159, 105, 255, 0.34);
}

.form-success {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(103, 240, 221, 0.08);
  border: 1px solid rgba(103, 240, 221, 0.18);
}

footer {
  padding: 34px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 3, 12, 0.72);
}

.footer-content {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-links,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-links a {
  color: var(--subtle);
  font-size: 0.92rem;
}

.footer-copy {
  margin: 0;
  color: var(--subtle);
  font-size: 0.86rem;
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 18px 44px rgba(159, 105, 255, 0.36);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  z-index: 999;
}

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

.fade-in,
.fade-in-left,
.fade-in-right,
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left {
  transform: translateX(-28px);
}

.fade-in-right {
  transform: translateX(28px);
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.stagger-children.visible > * {
  opacity: 1;
  transform: none;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }

@media (max-width: 1080px) {
  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 320px;
  }

  .skills-grid,
  .certs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .timeline-item:nth-child(even) {
    margin-top: 0;
  }

  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-image {
    order: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 66px;
  }

  .section {
    padding: 84px 0;
  }

  .nav-container {
    gap: 10px;
  }

  .nav-menu {
    position: fixed;
    inset: var(--nav-height) 0 auto;
    display: grid;
    gap: 6px;
    padding: 16px 20px 20px;
    background: rgba(12, 6, 22, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    margin-left: 0;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    justify-content: flex-start;
  }

  .hamburger {
    display: inline-grid;
  }

  .theme-switcher {
    gap: 6px;
    padding: 5px;
  }

  .theme-btn {
    width: 16px;
    height: 16px;
  }

  .hero-content {
    gap: 18px;
  }

  .hero-art {
    min-height: 260px;
  }

  .hero-art-avatar {
    width: 140px;
    height: 140px;
    font-size: 2.5rem;
  }

  .about-image-container {
    min-height: 400px;
  }

  .about-stats,
  .about-info-list,
  .skills-grid,
  .certs-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-buttons,
  .footer-links,
  .footer-socials,
  .contact-socials {
    justify-content: flex-start;
  }

  .project-content,
  .contact-form-wrapper {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding: 74px 0;
  }

  .hero-name {
    font-size: clamp(2.8rem, 18vw, 4rem);
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .theme-switcher {
    display: none;
  }

  #back-to-top {
    right: 16px;
    bottom: 16px;
  }
}