/* ════════════════════════════════════════════════════════
   HOLLMAN OJEDA — PORTFOLIO WEBSITE
   Style: Cyberpunk Elegance · Dark · Glassmorphism
════════════════════════════════════════════════════════ */

/* ─── VARIABLES ──────────────────────────────────────── */
:root {
  --bg: #0a1226;
  --bg2: #162D59;
  --primary: #F2B705;
  --secondary: #F28705;
  --accent: #590209;
  --gold: #F29F05;
  --text: #fdfdfd;
  --text-muted: rgba(253, 253, 253, 0.65);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-b: rgba(255, 255, 255, 0.15);
  --glow-c: rgba(242, 183, 5, 0.25);
  --glow-v: rgba(242, 135, 5, 0.25);
  --radius: 20px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme {
  --bg: #fcfaf5;
  --bg2: #ffffff;
  --primary: #162D59;
  --secondary: #590209;
  --accent: #F28705;
  --gold: #F2B705;
  --text: #162D59;
  --text-muted: rgba(22, 45, 89, 0.7);
  --glass: rgba(22, 45, 89, 0.06);
  --glass-b: rgba(22, 45, 89, 0.15);
  --glow-c: rgba(22, 45, 89, 0.15);
  --glow-v: rgba(89, 2, 9, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}

/* ─── ACCESSIBILITY ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── LOADER ─────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

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

.loader-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.loader-center {
  text-align: center;
  z-index: 1;
}

.loader-initials {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader-bar-wrap {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 12px auto 8px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  animation: loadBar 2s var(--ease) forwards;
}

.loader-msg {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

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

@keyframes loadBar {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* ─── CUSTOM CURSOR ──────────────────────────────────── */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

.cursor-trail {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 245, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: left 0.1s ease, top 0.1s ease;
}

.cursor.expand {
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1.5px solid var(--primary);
  mix-blend-mode: normal;
}

@media (hover: none) {

  .cursor,
  .cursor-trail {
    display: none;
  }
}

/* ─── BACKGROUND ORBS ────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatOrb 12s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--glow-v);
  top: -10%;
  left: -5%;
  animation-duration: 14s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--glow-c);
  top: 50%;
  right: -5%;
  animation-delay: -5s;
  animation-duration: 11s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(255, 110, 199, 0.2);
  bottom: 10%;
  left: 30%;
  animation-delay: -8s;
}

.orb-4 {
  width: 200px;
  height: 200px;
  background: rgba(255, 215, 0, 0.15);
  top: 30%;
  left: 60%;
  animation-delay: -3s;
  animation-duration: 16s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }

  33% {
    transform: translateY(-40px) translateX(20px) scale(1.07);
  }

  66% {
    transform: translateY(25px) translateX(-15px) scale(0.93);
  }
}

/* ─── BUBBLES ────────────────────────────────────────── */
.bubbles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(0, 245, 255, 0.08) 60%,
      transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: riseUp linear infinite;
}

@keyframes riseUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  50% {
    transform: translateY(-40vh) translateX(20px) scale(1.05);
  }

  100% {
    transform: translateY(-110vh) translateX(-15px) scale(0.7);
    opacity: 0;
  }
}

/* ─── NAVBAR ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.logo-bracket {
  color: var(--primary);
}

.logo-text {
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  border-radius: 8px;
  transition: color 0.3s, background 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--glass);
  transition: all 0.3s var(--ease);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: rgba(0, 245, 255, 0.4);
  background: rgba(0, 245, 255, 0.08);
  transform: translateY(-2px);
}

.btn-cv {
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn-cv:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 245, 255, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

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

/* ─── SOCIAL SIDEBAR ─────────────────────────────────── */
.social-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 90;
}

.ss-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-b);
  border-left: none;
  border-radius: 0 12px 12px 0;
  transition: width 0.3s, background 0.3s, padding-left 0.3s, box-shadow 0.3s;
  cursor: none;
}

.ss-icon.wa {
  background: rgba(37, 211, 102, 0.85);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.ss-icon.tg {
  background: rgba(0, 136, 204, 0.85);
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.ss-icon.li {
  background: rgba(10, 102, 194, 0.85);
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
}

.ss-icon:hover {
  width: 75px;
  padding-left: 15px;
}

.ss-icon.wa:hover {
  background: #25D366;
}

.ss-icon.tg:hover {
  background: #0088cc;
}

.ss-icon.li:hover {
  background: #0a66c2;
}

@media (max-width: 768px) {
  .social-sidebar {
    top: auto;
    bottom: 20px;
    left: 20px;
    transform: none;
    flex-direction: row;
    gap: 10px;
  }

  .ss-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border-radius: 50%;
    border-left: 1px solid var(--glass-b);
  }

  .ss-icon:hover {
    width: 50px;
    padding-left: 0;
    transform: translateY(-5px);
  }
}

/* ─── MOBILE MENU ────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 26, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.mobile-menu ul {
  text-align: center;
}

.mobile-menu li {
  margin: 1rem 0;
}

.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s, letter-spacing 0.3s;
}

.mobile-menu a:hover {
  color: var(--primary);
  letter-spacing: 2px;
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
  overflow: hidden;
}

#particlesCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: calc(50% - 580px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.08);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.6);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(0, 245, 255, 0);
  }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 5s ease infinite;
}

@keyframes gradShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
}

.blink-cursor {
  animation: blink 1s step-end infinite;
  color: var(--primary);
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-desc strong,
.hero-desc em {
  color: var(--text);
  font-style: normal;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 245, 255, 0.35);
}

.btn-primary span,
.btn-primary i {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(0, 245, 255, 0.08);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat .counter {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

/* Hero visual */
.hero-visual {
  position: absolute;
  right: calc(50% - 580px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.profile-ring-wrap {
  position: relative;
  width: 320px;
  height: 320px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.2);
  animation: spinRing linear infinite;
}

.r1 {
  inset: 0;
  animation-duration: 20s;
}

.r2 {
  inset: 20px;
  animation-duration: 15s;
  animation-direction: reverse;
  border-color: rgba(123, 47, 247, 0.2);
}

.r3 {
  inset: 45px;
  animation-duration: 25s;
  border-color: rgba(255, 110, 199, 0.15);
}

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

.profile-center {
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(123, 47, 247, 0.15));
  border: 2px solid rgba(0, 245, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.15), transparent 70%);
  animation: glowPulse 3s ease infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.float-icon {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 10, 26, 0.9);
  border: 1px solid rgba(0, 245, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  animation: floatIcon 4s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.fi1 {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.fi2 {
  top: 25%;
  right: 0;
  animation-delay: -0.7s;
  color: var(--secondary);
  border-color: rgba(123, 47, 247, 0.4);
}

.fi3 {
  top: 70%;
  right: 5%;
  animation-delay: -1.4s;
  color: var(--accent);
  border-color: rgba(255, 110, 199, 0.4);
}

.fi4 {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -2.1s;
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.4);
}

.fi5 {
  top: 70%;
  left: 5%;
  animation-delay: -2.8s;
  color: var(--primary);
}

.fi6 {
  top: 25%;
  left: 0;
  animation-delay: -3.5s;
  color: var(--secondary);
  border-color: rgba(123, 47, 247, 0.4);
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.fi1,
.fi4 {
  transform: translateX(-50%);
}

.fi1:hover,
.fi4:hover {
  transform: translateX(-50%) scale(1.15);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  60% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* ─── SECTION BASE ───────────────────────────────────── */
.section {
  padding: 7rem 2rem;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: rgba(0, 0, 0, 0.3);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.06);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.section-line {
  width: 60px;
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-sub {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── REVEAL ANIMATION ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ─── GLASS CARD ─────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  transition: background 0.1s;
}

/* ─── ABOUT ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-lead {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hl {
  color: var(--primary);
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  padding: 0.3rem 0.9rem;
  background: rgba(123, 47, 247, 0.12);
  border: 1px solid rgba(123, 47, 247, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(232, 232, 240, 0.8);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.tag:hover {
  background: rgba(123, 47, 247, 0.25);
  border-color: var(--secondary);
  color: var(--text);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  padding: 1.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.info-card:hover {
  box-shadow: 0 12px 40px rgba(0, 245, 255, 0.1);
}

.ic-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(123, 47, 247, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.info-card h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.info-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── SKILLS ─────────────────────────────────────────── */
.skills-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--bg);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.skill-item {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 12px;
  padding: 1.2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.08);
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.skill-name {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-name i {
  color: var(--primary);
}

.skill-pct {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

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

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 1.4s var(--ease);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.5);
}

/* ─── PROJECTS ───────────────────────────────────────── */
.projects-filter {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--bg);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--glass-b);
  background: var(--glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.project-img {
  height: 200px;
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(123, 47, 247, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-img::before {
  content: '< SuMerceSito >';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.2;
  letter-spacing: 5px;
  color: var(--text);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-cat {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.project-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card.hide {
  display: none;
}

/* ─── EXPERIENCE / TIMELINE ──────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.tl-dot {
  position: absolute;
  left: -28px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px var(--primary);
  animation: dotPulse 2.5s ease infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(0, 245, 255, 0.5);
  }

  50% {
    box-shadow: 0 0 0 4px var(--bg), 0 0 24px rgba(0, 245, 255, 0.8), 0 0 40px rgba(0, 245, 255, 0.3);
  }
}

.tl-card {
  padding: 1.8rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.tl-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tl-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-current {
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 245, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.badge-long {
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.tl-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.tl-card h4 {
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tl-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tl-tags span {
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  background: rgba(123, 47, 247, 0.12);
  color: rgba(232, 232, 240, 0.75);
  border-radius: 50px;
  border: 1px solid rgba(123, 47, 247, 0.2);
}

/* ─── CERTIFICATIONS ─────────────────────────────────── */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.platform-pill {
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  transition: all 0.3s;
}

.platform-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 245, 255, 0.06);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  perspective: 1000px;
  height: 200px;
}

.cert-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

.cert-card:hover .cert-inner {
  transform: rotateY(180deg);
}

.cert-front,
.cert-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.cert-front {
  background: var(--glass);
  border: 1px solid var(--glass-b);
}

.cert-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(123, 47, 247, 0.2));
  border: 1px solid rgba(0, 245, 255, 0.25);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(123, 47, 247, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.cert-front h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.cert-front p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cert-year {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--primary);
}

.cert-back i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.cert-back p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cert-back span {
  font-size: 0.75rem;
  color: var(--primary);
}

/* ─── TESTIMONIALS ───────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testi-card {
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.testi-quote {
  font-size: 2.5rem;
  color: rgba(0, 245, 255, 0.1);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.testi-card p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  flex-grow: 1;
  z-index: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ta-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ta-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.ta-info span {
  font-size: 0.8rem;
  color: var(--primary);
}

/* ─── CONTACT ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.08);
}

.ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(123, 47, 247, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
}

.contact-item h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-item span,
.contact-item p {
  font-size: 0.9rem;
}

.social-row {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.social-btn:hover {
  color: var(--primary);
  border-color: rgba(0, 245, 255, 0.4);
  background: rgba(0, 245, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 245, 255, 0.2);
}

/* Contact form wrap is intentional flex item if needed, but omitted to fix empty rule */

.contact-form {
  padding: 2rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 1.1rem 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.form-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.25s var(--ease);
}

.form-textarea~.form-label {
  top: 1.1rem;
  transform: none;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
  top: 0.5rem;
  font-size: 0.72rem;
  color: var(--primary);
  transform: none;
}

.form-textarea:focus~.form-label,
.form-textarea:not(:placeholder-shown)~.form-label {
  top: 0.3rem;
  font-size: 0.72rem;
  color: var(--primary);
}

.form-success {
  display: none;
  text-align: center;
  margin-top: 1rem;
  color: var(--primary);
  font-size: 0.9rem;
  gap: 0.5rem;
}

.form-success.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}

.footer-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(232, 232, 240, 0.35);
}

/* ─── CHAT WIDGET ────────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.chat-toggle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(123, 47, 247, 0.4);
  border: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: none;
}

.chat-toggle:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(123, 47, 247, 0.6);
}

.chat-window {
  width: 320px;
  background: var(--bg);
  border: 1px solid var(--glass-b);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform-origin: bottom right;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
}

.chat-window.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  padding: 1rem;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-b);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ch-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-header h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.chat-header span {
  font-size: 0.7rem;
  color: #00f5ff;
}

.chat-header button {
  margin-left: auto;
  color: var(--text-muted);
  padding: 5px;
  transition: color 0.3s;
  cursor: none;
}

.chat-header button:hover {
  color: var(--accent);
}

.chat-body {
  padding: 1rem;
  height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-msg {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 85%;
  animation: fadeIn 0.3s ease;
}

.chat-msg.bot {
  background: rgba(0, 245, 255, 0.1);
  color: var(--text);
  border-bottom-left-radius: 0;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--secondary);
  color: #fff;
  border-bottom-right-radius: 0;
  align-self: flex-end;
}

.chat-options {
  padding: 0.8rem;
  border-top: 1px solid var(--glass-b);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.chat-options button {
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: none;
}

.chat-options button:hover {
  background: rgba(0, 245, 255, 0.1);
  color: var(--primary);
  border-color: rgba(0, 245, 255, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── BACK TO TOP ────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  z-index: 50;
}

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

.back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 245, 255, 0.5);
}

/* ─── MAGNETIC BUTTON ────────────────────────────────── */
.magnetic-btn {
  transition: transform 0.4s var(--ease);
}

/* ─── RIPPLE ─────────────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ─── TILT CARD ──────────────────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    margin-left: 0;
  }
}

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

  .hamburger {
    display: flex;
  }

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

  .about-cards {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 600px) {
  .hero-stats {
    gap: 1rem;
  }

  .stat-sep {
    display: none;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

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

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ─── BLOG SECTION ───────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--glow-v);
}

.blog-img {
  height: 180px;
  background: linear-gradient(135deg, rgba(22, 45, 89, 0.1), rgba(242, 183, 5, 0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-s);
  margin-bottom: 1rem;
}

.blog-meta i {
  margin-right: 4px;
  color: var(--secondary);
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--text-s);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.blog-link:hover {
  gap: 0.8rem;
}

.blog-cta {
  margin-top: 4rem;
  text-align: center;
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
}