/* ============================================================
   GLOBAL STYLES — Base, Reset, Layout, Typography
   Portfolio | AI Engineer & Full Stack Developer
   ============================================================ */

/* Fonts loaded via <link> in HTML for performance — @import removed to avoid double-load */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  overflow-x: hidden;
  cursor: none; /* Custom cursor active */
  transition: background-color var(--duration-slow) var(--ease-in-out),
              color var(--duration-slow) var(--ease-in-out);
}

body.loading { overflow: hidden; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: rgba(37, 99, 235, 0.30);
  color: #fff;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
  color: var(--text-primary);
}

h1 { font-size: var(--fs-6xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 65ch;
}

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

img, video { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

button { cursor: none; border: none; background: none; font-family: inherit; }

input, textarea, select {
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
}

/* ── Gradient Text Utility ───────────────────────────────── */
.text-gradient {
  background: var(--gradient-text-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.text-primary-color  { color: var(--color-primary); }
.text-secondary-color{ color: var(--color-secondary); }
.text-accent-color   { color: var(--color-accent); }
.text-muted          { color: var(--text-muted); }

/* ── Layout Containers ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 80px);
}

.container--sm  { max-width: var(--container-sm); }
.container--md  { max-width: var(--container-md); }
.container--lg  { max-width: var(--container-lg); }
.container--2xl { max-width: var(--container-2xl); }

/* ── Section Base ────────────────────────────────────────── */
.section {
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}

.section__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: rgba(6, 182, 212, 0.10);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--border-radius-full);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-snug);
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 55ch;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

/* ── Gradient Divider ────────────────────────────────────── */
.divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  margin: var(--space-4) auto 0;
}

.divider--left { margin-inline: 0; }

/* ── Background Canvas (Three.js / Particles) ────────────── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── Page Wrapper ────────────────────────────────────────── */
#page-wrapper {
  position: relative;
  z-index: var(--z-base);
  min-height: 100vh;
}

/* ── Background Blobs ────────────────────────────────────── */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: var(--border-radius-full);
  filter: blur(80px);
  opacity: 0.25;
  animation: blobFloat 20s ease-in-out infinite;
}

.bg-blob--1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: var(--color-primary);
  top: -15%; left: -10%;
  animation-duration: 22s;
}

.bg-blob--2 {
  width: clamp(250px, 35vw, 500px);
  height: clamp(250px, 35vw, 500px);
  background: var(--color-secondary);
  top: 30%; right: -12%;
  animation-duration: 26s;
  animation-delay: -8s;
}

.bg-blob--3 {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  background: var(--color-accent);
  bottom: -10%; left: 25%;
  animation-duration: 20s;
  animation-delay: -14s;
}

/* ── Noise Texture Overlay ───────────────────────────────── */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Page Loader ─────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  transition: opacity var(--duration-slower) var(--ease-out),
              visibility var(--duration-slower) var(--ease-out);
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  background: var(--gradient-text-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: var(--ls-tight);
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: var(--border-default);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  animation: loaderProgress 1.6s var(--ease-out) forwards;
}

.loader__text {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  z-index: var(--z-sticky);
  transition: background var(--duration-slow) var(--ease-in-out),
              box-shadow var(--duration-slow) var(--ease-in-out),
              backdrop-filter var(--duration-slow) var(--ease-in-out);
}

.navbar.scrolled {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 0 var(--glass-border), var(--shadow-lg);
}

.navbar__inner {
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 80px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight);
  flex-shrink: 0;
  text-decoration: none;
}

.navbar__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  color: #fff;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-spring);
}

.navbar__logo:hover .navbar__logo-mark {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: var(--shadow-glow-primary);
}

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

/* Nav Links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.navbar__link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  letter-spacing: var(--ls-normal);
  border-radius: var(--border-radius-xs);
  transition: var(--transition-base);
  white-space: nowrap;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  transition: transform var(--duration-base) var(--ease-spring);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Nav Actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: none;
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: left center;
}

.navbar__hamburger.open span:nth-child(1) { transform: rotate(42deg) translateY(-2px); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.open span:nth-child(3) { transform: rotate(-42deg) translateY(2px); }

/* Mobile Nav Drawer */
.navbar__mobile {
  position: fixed;
  top: var(--navbar-height);
  left: 0; right: 0;
  background: var(--bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--duration-slow) var(--ease-out),
              opacity var(--duration-slow) var(--ease-out);
  z-index: var(--z-dropdown);
}

.navbar__mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.navbar__mobile .navbar__link {
  font-size: var(--fs-base);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius-sm);
}

.navbar__mobile .navbar__link:hover {
  background: var(--bg-card);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  position: relative;
  padding-block: var(--space-20) var(--space-10);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-block: var(--space-4);
  max-width: 32ch;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: var(--transition-base);
}

.footer__link:hover { color: var(--text-primary); transform: translateX(4px); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

.footer__back-top {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-spring);
  cursor: none;
}

.footer__back-top:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary);
}

/* ── Animated Gradient Divider ───────────────────────────── */
.gradient-line {
  height: 1px;
  background: var(--gradient-border);
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
}

/* ── Scroll Progress Bar ─────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: calc(var(--z-sticky) + 1);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--color-primary);
}

/* ── Utility Classes ─────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2       { gap: var(--space-2); }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }
.w-full      { width: 100%; }
.text-center { text-align: center; }
.mt-auto     { margin-top: auto; }
.overflow-hidden { overflow: hidden; }
.relative    { position: relative; }

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 10);
  background: var(--bg-base);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ── Hidden utility (used by theme toggle icons) ─────────── */
.hidden { display: none !important; }

/* ── Particles canvas z-index ───────────────────────────── */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Select dark-mode appearance reset ──────────────────── */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-card) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A1A1AA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  color: var(--text-primary) !important;
  cursor: none;
}

.form-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* ── Toast notification (utility, used in contact form) ─── */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-xl);
  backdrop-filter: var(--glass-blur);
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-spring),
              opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.toast--success { border-color: rgba(16,185,129,0.4); }
.toast--success::before { content: '✅'; }
.toast--error   { border-color: rgba(239,68,68,0.4); }
.toast--error::before { content: '❌'; }

/* ── Glass card section alt background ──────────────────── */
.section--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(37,99,235,0.03) 50%, transparent 100%);
}

/* ── Gradient border card wrapper ───────────────────────── */
.card-gradient-border {
  position: relative;
  border-radius: var(--border-radius-lg);
  padding: 1px;
  background: var(--gradient-border);
}

.card-gradient-border > .card {
  border: none;
  border-radius: calc(var(--border-radius-lg) - 1px);
}

/* ── Code / mono text inline ────────────────────────────── */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xs);
  color: var(--color-accent-light);
}

/* ── Horizontal Rule ────────────────────────────────────── */
hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin-block: var(--space-8);
}

/* ── No-JS Fallback: show content immediately ───────────── */
.no-js #page-loader { display: none; }
.no-js body { cursor: auto; }
.no-js #cursor, .no-js #cursor-follower { display: none; }

/* ============================================================
   LOADING & POLISH — Final visual touches (Prompt 1 complete)
   ============================================================ */

/* ── Loader enhanced ─────────────────────────────────────── */
#page-loader {
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.08) 0%,
    var(--bg-base) 70%
  );
}

.loader__logo {
  animation: loaderLogoPulse 1.8s ease-in-out infinite;
}

@keyframes loaderLogoPulse {
  0%, 100% { opacity: 1; transform: scale(1); filter: brightness(1); }
  50% { opacity: 0.85; transform: scale(1.04); filter: brightness(1.2); }
}

.loader__text {
  animation: loaderTextBlink 1.4s ease-in-out infinite;
}

@keyframes loaderTextBlink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Loader dots after text */
.loader__text::after {
  content: '';
  animation: loaderDots 1.4s steps(4, end) infinite;
}

@keyframes loaderDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ── Scroll progress glow pulse ──────────────────────────── */
#scroll-progress {
  box-shadow: 0 0 10px var(--color-primary), 0 0 20px rgba(37,99,235,0.3);
  transition: width 0.08s linear;
}

/* ── Gradient text animated (vivid titles) ───────────────── */
.text-gradient-animated {
  background: var(--gradient-text-vivid);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 4s linear infinite;
}

/* ── Section alternating accent background ───────────────── */
.section:nth-child(even) {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(37, 99, 235, 0.02) 30%,
    rgba(124, 58, 237, 0.02) 70%,
    transparent 100%
  );
}

/* ── Light rays overlay ──────────────────────────────────── */
.light-rays {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.04;
}

.light-rays::before,
.light-rays::after {
  content: '';
  position: absolute;
  top: -40%;
  width: 1px;
  height: 180%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(37, 99, 235, 0.8),
    rgba(124, 58, 237, 0.6),
    transparent
  );
  transform-origin: top center;
  animation: rayRotate 20s linear infinite;
}

.light-rays::before {
  left: 30%;
  transform: rotate(-25deg);
}

.light-rays::after {
  left: 60%;
  transform: rotate(20deg);
  animation-delay: -10s;
  animation-duration: 26s;
}

@keyframes rayRotate {
  from { transform: rotate(-30deg) scaleY(1); }
  50%  { transform: rotate(10deg) scaleY(1.1); }
  to   { transform: rotate(-30deg) scaleY(1); }
}

/* ── Card glow border on focus (keyboard nav) ────────────── */
.card:focus-within {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-primary);
}

/* ── Button active press depth ───────────────────────────── */
.btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

/* ── Smooth page wrapper entrance ────────────────────────── */
#page-wrapper {
  animation: pageEnter 0.5s var(--ease-out) both;
  animation-delay: 0.1s;
}

/* ── Eyebrow pill animated border ────────────────────────── */
.eyebrow {
  position: relative;
  overflow: hidden;
}

.eyebrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.15),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* ── Navbar logo letter spacing polish ───────────────────── */
.navbar__logo-mark {
  letter-spacing: 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-black);
}

/* ── Active nav underline glow ───────────────────────────── */
.navbar__link.active::after {
  box-shadow: 0 0 8px var(--color-primary);
}

/* ── Footer gradient line animated ──────────────────────── */
.gradient-line {
  background: var(--gradient-border);
  background-size: 300% auto;
  animation: gradientShift 5s linear infinite;
}

/* ── Highlight box accent ────────────────────────────────── */
.highlight-box {
  border-left-color: var(--color-primary);
  position: relative;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -3px;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  box-shadow: 0 0 8px var(--color-primary);
}

/* ── Status dot live animation ───────────────────────────── */
.status-dot::before {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: statusPing 2.5s ease-in-out infinite;
}

@keyframes statusPing {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  60%  { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ── Divider animated gradient ───────────────────────────── */
.divider {
  background: var(--gradient-primary);
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
}

/* ── Placeholder block pulse ─────────────────────────────── */
.placeholder-block {
  animation: placeholderPulse 3s ease-in-out infinite;
}

@keyframes placeholderPulse {
  0%, 100% { border-color: var(--border-default); }
  50% { border-color: rgba(37, 99, 235, 0.3); box-shadow: 0 0 20px rgba(37,99,235,0.05); }
}

/* ── Glass card shimmer on hover ─────────────────────────── */
.card--glass::before {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.02) 50%,
    transparent 100%
  );
  transition: opacity var(--duration-slow) var(--ease-in-out);
}

.card--glass:hover::before {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
}

/* ── Skill chip icon glow ────────────────────────────────── */
.skill-chip:hover .skill-chip__icon {
  filter: drop-shadow(0 0 6px currentColor);
  transform: scale(1.15);
  transition: transform var(--duration-base) var(--ease-spring);
}

/* ── Progress bar fill gradient animate ──────────────────── */
.progress-bar__fill {
  background: var(--gradient-primary);
  background-size: 200% auto;
  animation: gradientShift 3s linear infinite;
}

/* ── Badge glow pulse ────────────────────────────────────── */
.badge--glow {
  animation: badgeGlowPulse 2.5s ease-in-out infinite;
}

@keyframes badgeGlowPulse {
  0%, 100% { box-shadow: var(--shadow-primary); }
  50% { box-shadow: var(--shadow-glow-primary), var(--shadow-primary); }
}

/* ── Light theme specific polish ─────────────────────────── */
[data-theme="light"] .bg-blob {
  opacity: 0.12;
}

[data-theme="light"] #page-loader {
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.06) 0%,
    var(--bg-base) 70%
  );
}

[data-theme="light"] .placeholder-block {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 255, 0.9);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
}

[data-theme="light"] .text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Page transition final polish ────────────────────────── */
.page-transition {
  background: linear-gradient(135deg, var(--bg-base) 0%, rgba(37,99,235,0.05) 100%);
}
