:root {
  --color-primary: #81a6c6;
  --color-primary-soft: rgba(129, 166, 198, 0.25);
  --color-bg: #050713;
  --color-surface: rgba(15, 20, 40, 0.9);
  --color-surface-soft: rgba(15, 20, 40, 0.6);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #f5f5f7;
  --color-muted: #9ca3af;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.6);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --nav-height: 76px;
  --transition-fast: 0.18s ease-out;
  --transition-mid: 0.3s ease;
  --transition-slow: 0.6s ease;
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(148, 163, 184, 0.35);
  --gradient-primary: linear-gradient(135deg, #81a6c6, #b794f4);
  --gradient-soft: radial-gradient(circle at top left, rgba(129, 166, 198, 0.28), transparent 55%),
    radial-gradient(circle at bottom right, rgba(40, 28, 89, 0.7), transparent 55%);
  --bg-point-color: #38bdf8;
}

[data-theme='light'] {
  --color-bg: #f3f4f6;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-soft: rgba(255, 255, 255, 0.7);
  --color-border: rgba(15, 23, 42, 0.08);
  --color-text: #020617;
  --color-muted: #4b5563;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(148, 163, 184, 0.6);
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.12);
  --bg-point-color: #0ea5e9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Background animated gradients and blobs */

.bg-gradient {
  position: fixed;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.55), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(8, 47, 73, 0.9), transparent 60%),
    radial-gradient(circle at 50% 105%, rgba(56, 189, 248, 0.28), transparent 60%);
  opacity: 0.9;
  filter: blur(16px);
  z-index: -3;
  animation: bgShift 18s ease-in-out infinite alternate;
  transform: translate3d(0, calc(var(--scroll-offset, 0) * -0.04px), 0);
}

.blob {
  position: fixed;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: -2;
}

.blob-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 30% 0%, rgba(59, 130, 246, 0.9), transparent 60%);
  top: 4%;
  left: 6%;
  animation: floatBlob1 26s ease-in-out infinite alternate;
  transform: translate3d(0, calc(var(--scroll-offset, 0) * -0.06px), 0);
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 0%, rgba(8, 47, 73, 0.95), transparent 60%);
  bottom: 0%;
  right: -2%;
  animation: floatBlob2 30s ease-in-out infinite alternate;
  transform: translate3d(0, calc(var(--scroll-offset, 0) * 0.04px), 0);
}

.blob-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.9), transparent 65%);
  top: 55%;
  left: 45%;
  animation: floatBlob3 34s ease-in-out infinite alternate;
  transform: translate3d(0, calc(var(--scroll-offset, 0) * -0.02px), 0);
}

.bg-points {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-point {
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: var(--bg-point-color);
  box-shadow: 0 0 44px rgba(56, 189, 248, 0.9);
  opacity: 0.32;
  animation: floatPoint 10s linear infinite;
  pointer-events: auto;
  cursor: default;
  transition:
    transform 0.6s ease,
    box-shadow 0.6s ease,
    opacity 0.6s ease;
}

.bg-point:hover {
  animation-play-state: paused;
  transform: translate3d(0, -18px, 0) scale(1.5);
  opacity: 0.4;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.9);
}

.bg-point:nth-child(1) {
  bottom: -10%;
  left: 12%;
  animation-duration: 9s;
}


.bg-point:nth-child(2) {
  bottom: -16%;
  right: 18%;
  animation-duration: 11s;
}

.bg-point:nth-child(3) {
  bottom: -12%;
  left: 30%;
  animation-duration: 10.5s;
}

.bg-point:nth-child(4) {
  bottom: -18%;
  right: 30%;
  animation-duration: 12s;
}

.bg-point:nth-child(5) {
  bottom: -20%;
  left: 48%;
  animation-duration: 13s;
}

.bg-point:nth-child(6) {
  bottom: -15%;
  right: 8%;
  animation-duration: 9.5s;
}

.bg-point:nth-child(7) {
  bottom: -22%;
  left: 65%;
  animation-duration: 12.5s;
}

.bg-point:nth-child(8) {
  bottom: -18%;
  left: 5%;
  animation-duration: 11.5s;
}

.bg-point:nth-child(9) {
  bottom: -14%;
  left: 40%;
  animation-duration: 9.8s;
}

.bg-point:nth-child(10) {
  bottom: -19%;
  right: 22%;
  animation-duration: 10.7s;
}

.bg-point:nth-child(11) {
  bottom: -21%;
  left: 20%;
  animation-duration: 12.2s;
}

.bg-point:nth-child(12) {
  bottom: -17%;
  right: 40%;
  animation-duration: 13.1s;
}
.bg-point:nth-child(13) {
  bottom: -18%;
  left: 72%;
  animation-duration: 11s;
}

.bg-point:nth-child(14) {
  bottom: -14%;
  right: 55%;
  animation-duration: 9s;
}

.bg-point:nth-child(15) {
  bottom: -20%;
  left: 80%;
  animation-duration: 12s;
}

.bg-point:nth-child(16) {
  bottom: -22%;
  right: 10%;
  animation-duration: 13s;
}

.bg-point:nth-child(17) {
  bottom: -19%;
  left: 35%;
  animation-duration: 10s;
}

.bg-point:nth-child(18) {
  bottom: -16%;
  right: 45%;
  animation-duration: 11.5s;
}

.bg-point:nth-child(19) {
  bottom: -23%;
  left: 55%;
  animation-duration: 12.5s;
}

.bg-point:nth-child(20) {
  bottom: -21%;
  right: 70%;
  animation-duration: 10.8s;
}
.bg-point:nth-child(21) {
  bottom: -18%;
  left: 72%;
  animation-duration: 11s;
}

.bg-point:nth-child(22) {
  bottom: -14%;
  right: 55%;
  animation-duration: 9s;
}

.bg-point:nth-child(23) {
  bottom: -20%;
  left: 80%;
  animation-duration: 12s;
}

.bg-point:nth-child(24) {
  bottom: -22%;
  right: 10%;
  animation-duration: 13s;
}

.bg-point:nth-child(25) {
  bottom: -19%;
  left: 35%;
  animation-duration: 10s;
}

.bg-point:nth-child(26) {
  bottom: -16%;
  right: 45%;
  animation-duration: 11.5s;
}

.bg-point:nth-child(27) {
  bottom: -23%;
  left: 55%;
  animation-duration: 12.5s;
}

.bg-point:nth-child(28) {
  bottom: -21%;
  right: 70%;
  animation-duration: 10.8s;
}
.bg-point:nth-child(29) {
  bottom: -18%;
  left: 72%;
  animation-duration: 11s;
}

.bg-point:nth-child(30) {
  bottom: -14%;
  right: 55%;
  animation-duration: 9s;
}

.bg-point:nth-child(31) {
  bottom: -20%;
  left: 80%;
  animation-duration: 12s;
}

.bg-point:nth-child(32) {
  bottom: -22%;
  right: 10%;
  animation-duration: 13s;
}

.bg-point:nth-child(33) {
  bottom: -19%;
  left: 35%;
  animation-duration: 10s;
}

.bg-point:nth-child(34) {
  bottom: -16%;
  right: 45%;
  animation-duration: 11.5s;
}

.bg-point:nth-child(35) {
  bottom: -23%;
  left: 55%;
  animation-duration: 12.5s;
}

.bg-point:nth-child(36) {
  bottom: -21%;
  right: 70%;
  animation-duration: 10.8s;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  padding-inline: 1.5rem;
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0 96px;
}

.section:nth-of-type(odd) .float-card {
  backdrop-filter: blur(26px);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.section-subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Navbar */

.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), transparent);
}

[data-theme='light'] .navbar {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.9), transparent);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: 1.75rem;
  margin-inline: auto;
  max-width: 1120px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(129, 166, 198, 0.7);
}

.logo-text {
  font-size: 0.92rem;
}

.logo-text span {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.88rem;
}

.nav-link {
  position: relative;
  color: var(--color-muted);
  transition: color var(--transition-fast);
  padding-block: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  height: 2px;
  width: 18px;
  background: var(--color-text);
  border-radius: 999px;
  transform-origin: center;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.nav-mobile .nav-link {
  padding: 0.5rem 0;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.theme-icon {
  position: absolute;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-mid), transform var(--transition-mid);
}

body[data-theme='dark'] .theme-icon.moon,
body:not([data-theme='light']) .theme-icon.moon {
  opacity: 1;
  transform: translateY(0);
}

body[data-theme='light'] .theme-icon.sun {
  opacity: 1;
  transform: translateY(0);
}

body[data-theme='light'] .theme-icon.moon {
  opacity: 0;
  transform: translateY(-6px);
}

body[data-theme='dark'] .theme-icon.sun,
body:not([data-theme='light']) .theme-icon.sun {
  opacity: 0;
  transform: translateY(-6px);
}

/* Home */

.section-home {
  padding-top: calc(120px + var(--nav-height));
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 3.5rem;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  background: radial-gradient(circle at 30% 0%, rgba(129, 166, 198, 0.4), rgba(15, 23, 42, 0.7));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f7f8f0;
  animation: scrollDotBounce 1.8s ease-in-out infinite;
}

[data-theme='light'] .scroll-indicator {
  background: radial-gradient(circle at 30% 0%, rgba(58, 139, 149, 0.3), rgba(255, 255, 255, 0.9));
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.home-title {
  font-size: clamp(2.6rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.home-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typing-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  margin: 0 0 1.25rem;
  color: var(--color-muted);
}

.typing-prefix {
  opacity: 0.8;
}

.typing-text {
  font-weight: 600;
  color: var(--color-text);
}

.typing-cursor {
  width: 2px;
  height: 1.1em;
  background: var(--color-primary);
  display: inline-block;
  animation: blink 0.9s steps(2, start) infinite;
}

.home-subtitle {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tech-pill {
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(129, 166, 198, 0.35), rgba(15, 23, 42, 0.4));
  backdrop-filter: blur(16px);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #050816;
  box-shadow: 0 22px 45px rgba(129, 166, 198, 0.65);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 28px 60px rgba(129, 166, 198, 0.8);
}

.btn-ghost {
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--color-text);
}

.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

.ripple::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.35), transparent 65%);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ripple.is-rippling::after {
  opacity: 1;
  transform: scale(1.8);
}

.home-image-wrapper {
  position: relative;
}

.image-orbit {
  position: absolute;
  inset: -14%;
  border-radius: 999px;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  border: 1px dashed rgba(148, 163, 184, 0.25);
}

.orbit-ring-1 {
  animation: orbitSpin 20s linear infinite;
}

.orbit-ring-2 {
  inset: 10%;
  border-style: solid;
  border-color: rgba(129, 166, 198, 0.45);
  opacity: 0.6;
  animation: orbitSpin 26s linear infinite reverse;
}

.orbit-ring-3 {
  inset: 0;
  border-style: dotted;
  opacity: 0.3;
  animation: orbitSpin 32s linear infinite;
}

.profile-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  background: radial-gradient(circle at 0 0, rgba(129, 166, 198, 0.3), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  transform-origin: center;
  animation: floatSoft 8s ease-in-out infinite alternate;
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 190deg, rgba(129, 166, 198, 0.1), rgba(183, 148, 244, 0.5), transparent 65%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
}

.profile-img {
  border-radius: calc(var(--radius-xl) - 10px);
  object-fit: cover;
  width: 100%;
  height: auto;
}

.profile-floating-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.8);
  font-size: 0.78rem;
  backdrop-filter: blur(14px);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 3.25rem;
  align-items: center;
}

.about-card {
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(129, 166, 198, 0.35);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.about-img {
  border-radius: calc(var(--radius-xl) - 12px);
  object-fit: cover;
  width: 100%;
}

.about-text .section-title {
  text-align: left;
}

.about-text .section-subtitle {
  text-align: left;
  margin-bottom: 1.35rem;
}

.about-body {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.about-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-highlight {
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(129, 166, 198, 0.25), rgba(15, 23, 42, 0.6));
  min-width: 210px;
}

.about-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}

.about-value {
  font-size: 0.9rem;
}

/* Services */

.section-services {
  position: relative;
}

.services-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
}

.service-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 110deg, rgba(129, 166, 198, 0.7), rgba(183, 148, 244, 0.4), transparent 65%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(129, 166, 198, 0.9), rgba(40, 28, 89, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  margin-bottom: 1rem;
  box-shadow: 0 18px 40px rgba(129, 166, 198, 0.7);
}

.skill-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.skill-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.project-card {
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform-origin: center;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
  border-color: rgba(129, 166, 198, 0.7);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transform-origin: center;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(129, 166, 198, 0.4), rgba(183, 148, 244, 0.35), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.project-card:hover::before {
  opacity: 0.8;
}

.project-body {
  position: relative;
  padding: 1.3rem 1.35rem 1.4rem;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.8));
}

[data-theme='light'] .project-body {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.96));
}

.project-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.project-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Education / Timeline */

.timeline-wrapper {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 1.5rem;
}

.timeline-line {
  position: absolute;
  left: 0.85rem;
  top: 0.5rem;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, #81a6c6, #b794f4);
  border-radius: 999px;
  transform-origin: top;
  transition: height 1.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.timeline-wrapper.is-visible .timeline-line {
  height: 100%;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.4rem;
}

.timeline-dot {
  position: absolute;
  left: -0.2rem;
  top: 0.95rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #81a6c6;
  box-shadow: 0 0 0 0 rgba(129, 166, 198, 0.8);
  animation: pulseDot 2.8s infinite;
}

.timeline-card {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.timeline-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.timeline-role {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.timeline-date {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-card {
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform-origin: center;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-mid),
    background var(--transition-mid);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  border-color: rgba(129, 166, 198, 0.7);
  background: radial-gradient(circle at 0 0, rgba(129, 166, 198, 0.35), rgba(15, 23, 42, 0.95));
}

.contact-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(129, 166, 198, 0.9), rgba(40, 28, 89, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 18px 40px rgba(129, 166, 198, 0.75);
  transform-origin: center;
  transition: transform var(--transition-mid);
}

.contact-card:hover .contact-icon-wrapper {
  transform: scale(1.08) rotate(-6deg);
}

.contact-body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.contact-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Footer */

.footer {
  padding: 1.5rem 0 1.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(12px);
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
}

[data-theme='light'] .footer {
  background: linear-gradient(to top, rgba(248, 250, 252, 0.96), transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-note {
  opacity: 0.8;
}

/* Shared float card subtle animation */

.float-card {
  transform: translateY(0);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.float-card:hover {
  transform: translateY(-6px);
}

/* Scroll reveal animations */

.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.in-view,
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
}

.reveal-left.in-view,
.reveal-right.in-view {
  transform: translateX(0);
  opacity: 1;
}

/* Keyframes */

@keyframes bgShift {
  from {
    transform: translate3d(-15px, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(15px, -15px, 0) scale(1.08);
  }
}

@keyframes floatBlob1 {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(40px, 30px, 0);
  }
}

@keyframes floatBlob2 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-50px, 0, 0) scale(1.1);
  }
}

@keyframes floatBlob3 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(20px, -35px, 0) scale(1.15);
  }
}

@keyframes floatSoft {
  from {
    transform: translate3d(0, 0, 0) rotate(-0.5deg);
  }
  to {
    transform: translate3d(0, -12px, 0) rotate(0.5deg);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  to {
    opacity: 0;
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(129, 166, 198, 0.8);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(129, 166, 198, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(129, 166, 198, 0);
  }
}

@keyframes floatPoint {
  0% {
    transform: translate3d(0, 0, 0) scale(0.85);
    opacity: 0;
  }
  50% {
    transform: translate3d(8px, -60vh, 0) scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: translate3d(-6px, -100vh, 0) scale(0.9);
    opacity: 0;
  }
}

@keyframes scrollDotBounce {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  40% {
    transform: translateY(6px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
}

/* Responsive */

@media (max-width: 1024px) {
  .home-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 2.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-mobile {
    display: flex;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      max-height 0.32s ease,
      opacity 0.28s ease,
      transform 0.28s ease;
    overflow: hidden;
  }

  .nav-mobile.is-open {
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-image-wrapper {
    order: -1;
    max-width: 360px;
    margin-inline: auto;
  }

  .section-home {
    padding-top: calc(110px + var(--nav-height));
  }
}

@media (max-width: 768px) {
  .section {
    padding: 96px 0 80px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-image-wrapper {
    order: -1;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .nav-inner {
    padding-inline: 1rem;
  }

  .home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-wrapper {
    padding-left: 1rem;
  }

  .timeline-item {
    padding-left: 1.2rem;
  }

  .timeline-line {
    left: 0.7rem;
  }
}

