/* === IMPORTS & RESET === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-color: #020617;
  --yellow-300: #fde047;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --orange-400: #fb923c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --text-primary: #ffffff;
  --text-secondary: var(--slate-300);
  --text-muted: var(--slate-400);
  --card-bg: rgba(15, 23, 42, 0.6);
  --card-border: rgba(255, 255, 255, 0.03);
  --section-alt-bg: rgba(15, 23, 42, 0.2);
}

/* Light Theme */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(0, 0, 0, 0.08);
  --section-alt-bg: rgba(241, 245, 249, 0.8);
  --slate-50: #0f172a;
  --slate-300: #334155;
  --slate-400: #64748b;
  --slate-500: #94a3b8;
  --slate-800: #e2e8f0;
  --slate-900: #f1f5f9;
}

[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.95));
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar-logo { color: #0f172a; }
[data-theme="light"] .hero-title { color: #0f172a; }
[data-theme="light"] .about-card h3 { color: #0f172a; }
[data-theme="light"] .timeline-role { color: #0f172a; }
[data-theme="light"] .section-heading h2 { color: #0f172a; }
[data-theme="light"] .skill-group-title { color: #0f172a; }
[data-theme="light"] .project-title { color: #0f172a; }
[data-theme="light"] .contact-title { color: #0f172a; }
[data-theme="light"] .stat-number { color: #0f172a; }
[data-theme="light"] .about-info-value { color: #0f172a; }
[data-theme="light"] .language-name { color: #0f172a; }
[data-theme="light"] .cert-title { color: #0f172a; }
[data-theme="light"] .edu-title { color: #0f172a; }
[data-theme="light"] .btn-secondary { background: #e2e8f0; color: #0f172a; border-color: #cbd5e1; }
[data-theme="light"] .btn-secondary:hover { background: #cbd5e1; }
[data-theme="light"] .experience { background: var(--section-alt-bg); }
[data-theme="light"] .projects { background: var(--section-alt-bg); }
[data-theme="light"] .contact { background: var(--section-alt-bg); }
[data-theme="light"] .footer { background: #f1f5f9; border-color: #e2e8f0; }
[data-theme="light"] .skill-tag { background: rgba(241, 245, 249, 0.9); border-color: #e2e8f0; color: #334155; }
[data-theme="light"] .timeline-dot { background: #f8fafc; }
[data-theme="light"] .mobile-menu { background: rgba(248, 250, 252, 0.97); }
[data-theme="light"] .mobile-menu a { color: #334155; }
[data-theme="light"] ::-webkit-scrollbar-track { background: #f8fafc; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cbd5e1; }
[data-theme="light"] .cursor-dot { background: #0f172a; }
[data-theme="light"] .cursor-ring { border-color: rgba(15, 23, 42, 0.3); }
[data-theme="light"] .scroll-to-top { color: #0f172a; }
[data-theme="light"] .preloader { background: #f8fafc; }
[data-theme="light"] .preloader-bar { background: rgba(0,0,0,0.08); }
[data-theme="light"] .navbar-logo-icon { color: #0f172a; }
[data-theme="light"] .hero-blob { opacity: 0.5; }
[data-theme="light"] .hamburger span { background: #334155; }
[data-theme="light"] .btn-download { color: #b45309; border-color: #b45309; }
[data-theme="light"] .btn-download:hover { background: #b45309; color: white; }
[data-theme="light"] .about-avatar-ring { background: linear-gradient(#f8fafc, #f8fafc) padding-box, linear-gradient(to bottom right, var(--yellow-400), var(--amber-500)) border-box; }
[data-theme="light"] .project-tech span { color: #b45309; }
[data-theme="light"] .about-info-icon { background: #e2e8f0; }
[data-theme="light"] .skill-group-icon { background: #e2e8f0; }
[data-theme="light"] .timeline-company { color: #475569; }
[data-theme="light"] .particles-canvas { opacity: 0.4; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background-color: var(--bg-color);
  color: var(--slate-50);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul, ol {
  list-style: none;
}

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

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--yellow-300), var(--amber-500));
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--yellow-400);
}

/* === SELECTION === */
::selection {
  background: rgba(234, 179, 8, 0.3);
  color: var(--yellow-300);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* === GLASSMORPHISM === */
.glass {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.8));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* === ANIMATIONS === */
@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(-25%) translateX(-50%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0) translateX(-50%); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.animate-blink {
  animation: blink 1s step-end infinite;
}

/* === REVEAL ON SCROLL === */
.reveal {
  opacity: 0;
  transition: all 800ms ease-out;
}

.reveal.reveal-up {
  transform: translateY(3rem);
}

.reveal.reveal-down {
  transform: translateY(-3rem);
}

.reveal.reveal-left {
  transform: translateX(3rem);
}

.reveal.reveal-right {
  transform: translateX(-3rem);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
  background: transparent;
  pointer-events: auto;
}

.navbar.scrolled {
  padding: 1rem 0;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom right, var(--yellow-400), var(--amber-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-900);
  font-weight: 700;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-300);
}

.navbar-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--slate-700);
  color: var(--slate-200);
  transition: all 0.3s;
  position: relative;
  pointer-events: auto;
  z-index: 1;
}

.navbar-links a svg {
  width: 1.1rem;
  height: 1.1rem;
}

.navbar-links a:hover {
  color: var(--yellow-400);
  border-color: var(--yellow-400);
  background: color-mix(in srgb, var(--yellow-400) 10%, transparent);
}

.navbar-contact {
  display: block;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-50);
  transition: all 0.3s;
}

.navbar-contact:hover {
  border-color: var(--yellow-400);
  color: var(--yellow-400);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-300);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-300);
  transition: color 0.3s;
  pointer-events: auto;
}

.mobile-menu a:hover {
  color: var(--yellow-400);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(48px);
}

.hero-blob-1 {
  top: 25%;
  left: 25%;
  background: rgba(234, 179, 8, 0.1);
}

.hero-blob-2 {
  top: 33%;
  right: 25%;
  background: rgba(245, 158, 11, 0.1);
}

.hero-blob-3 {
  bottom: -2rem;
  left: 33%;
  background: rgba(249, 115, 22, 0.1);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--slate-400);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--yellow-400), var(--amber-500));
  color: var(--slate-900);
  font-weight: 700;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(234, 179, 8, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: var(--slate-900);
  color: white;
  font-weight: 500;
  border: 1px solid var(--slate-800);
  transition: all 0.3s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--slate-800);
  color: var(--yellow-400);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 1s infinite;
  color: var(--slate-400);
  transition: color 0.3s;
}

.hero-scroll:hover {
  color: var(--yellow-400);
}

.hero-scroll svg {
  width: 2rem;
  height: 2rem;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 0.375rem;
  height: 0.8em;
  background: var(--yellow-400);
  margin-left: 0.25rem;
  transform: translateY(2px);
  animation: blink 1s step-end infinite;
}

/* === SECTION HEADING === */
.section-heading {
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.section-heading .dot {
  color: var(--yellow-400);
}

.section-heading .line {
  width: 5rem;
  height: 0.25rem;
  background: linear-gradient(to right, var(--yellow-400), var(--amber-500));
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--slate-400);
}

/* === ABOUT === */
.about {
  padding: 6rem 0;
  position: relative;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.about-card-wrapper {
  width: 100%;
  position: relative;
}

.about-card-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(to right, var(--yellow-500), var(--amber-500));
  border-radius: 1rem;
  filter: blur(8px);
  opacity: 0.2;
}

.about-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-education {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-300);
}

.about-education svg {
  color: var(--yellow-400);
  flex-shrink: 0;
}

.about-education .edu-title {
  font-weight: 500;
  color: white;
}

.about-education .edu-sub {
  font-size: 0.875rem;
}

.about-info-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-info-item {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(30, 41, 59, 0.5);
  transition: border-color 0.3s;
}

.about-info-item:hover {
  border-color: rgba(234, 179, 8, 0.5);
}

.about-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-400);
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}

.about-info-item:hover .about-info-icon {
  transform: scale(1.1);
}

.about-info-label {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-bottom: 0.25rem;
}

.about-info-value {
  font-weight: 500;
  color: white;
  font-size: 0.875rem;
  word-break: break-all;
}

/* === ABOUT PHOTO CARD === */
.about-photo-wrapper {
  width: 100%;
  position: relative;
}

.about-card-photo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-photo-frame {
  width: 100%;
  max-width: 14rem;
  /*aspect-ratio: 1;*/
  border-radius: 1rem;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
              linear-gradient(to bottom right, var(--yellow-400), var(--amber-500)) border-box;
  box-shadow: 0 0 30px rgba(234, 179, 8, 0.12);
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === EXPERIENCE === */
.experience {
  padding: 6rem 0;
  background: rgba(15, 23, 42, 0.2);
}

.timeline {
  position: relative;
  border-left: 2px solid var(--slate-800);
  margin-left: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 3rem;
}

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

.timeline-dot {
  position: absolute;
  left: -11px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--yellow-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-400);
}

.timeline-card {
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s;
}

.timeline-card:hover {
  transform: translateY(-4px);
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  transition: color 0.3s;
}

.timeline-card:hover .timeline-role {
  color: var(--yellow-300);
}

.timeline-company {
  font-size: 1.125rem;
  color: var(--slate-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-company svg {
  width: 1rem;
  height: 1rem;
  color: var(--slate-400);
}

.timeline-period {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.1);
  color: var(--yellow-400);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(234, 179, 8, 0.2);
  white-space: nowrap;
  align-self: flex-start;
}

.timeline-description {
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.timeline-achievements {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-achievements li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--slate-300);
  font-size: 0.875rem;
}

.timeline-achievements .arrow {
  color: var(--yellow-500);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* === SKILLS === */
.skills {
  padding: 6rem 0;
}

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

.skill-group {
  padding: 1.5rem;
  border-radius: 1rem;
  height: 100%;
  border: 1px solid rgba(30, 41, 59, 0.5);
  transition: border-color 0.3s;
}

.skill-group:hover {
  border-color: rgba(234, 179, 8, 0.3);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.skill-group-icon {
  padding: 0.625rem;
  border-radius: 0.75rem;
  background: var(--slate-900);
  color: var(--yellow-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

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

.skill-tag {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  color: var(--slate-300);
  font-size: 0.875rem;
  border: 1px solid var(--slate-800);
  transition: all 0.3s;
  cursor: default;
}

.skill-tag:hover {
  color: white;
  border-color: rgba(234, 179, 8, 0.5);
}

/* === PROJECTS === */
.projects {
  padding: 6rem 0;
  background: rgba(15, 23, 42, 0.2);
}

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

.project-card {
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  transform: translateY(0);
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(234, 179, 8, 0.1);
}

.project-card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(234, 179, 8, 0.05), rgba(245, 158, 11, 0.05));
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: 1rem;
  pointer-events: none;
}

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

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.project-icon {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--slate-800);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.project-icon.yellow svg { color: var(--yellow-400); }
.project-icon.amber svg { color: var(--amber-400); }
.project-icon.orange svg { color: var(--orange-400); }
.project-icon.yellow-light svg { color: var(--yellow-300); }
.project-icon.amber-light svg { color: var(--amber-300); }

.project-link {
  padding: 0.5rem;
  color: var(--slate-400);
  transition: color 0.3s;
}

.project-link:hover {
  color: var(--yellow-400);
}

.project-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.project-card:hover .project-title {
  color: var(--yellow-300);
}

.project-description {
  color: var(--slate-400);
  font-size: 0.875rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-tech span {
  font-size: 0.75rem;
  font-family: monospace;
  color: rgba(250, 204, 21, 0.8);
  background: rgba(234, 179, 8, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* === CERTIFICATIONS === */
.certifications {
  padding: 6rem 0;
}

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

.cert-card {
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(30, 41, 59, 0.3);
  transition: background 0.3s;
}

.cert-card:hover {
  background: rgba(15, 23, 42, 0.5);
}

.cert-icon {
  margin-top: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(234, 179, 8, 0.1);
  color: var(--yellow-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cert-title {
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* === CONTACT === */
.contact {
  padding: 6rem 0;
  background: rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: rgba(234, 179, 8, 0.05);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.contact-card {
  max-width: 56rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(30, 41, 59, 0.5);
  position: relative;
  z-index: 10;
}

.contact-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.contact-text {
  color: var(--slate-400);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s;
}

.contact-btn-email {
  background: var(--slate-900);
  color: white;
  border: 1px solid var(--slate-800);
}

.contact-btn-email:hover {
  border-color: var(--yellow-400);
  color: var(--yellow-400);
}

.contact-btn-whatsapp {
  background: rgba(234, 179, 8, 0.1);
  color: var(--yellow-400);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.contact-btn-whatsapp:hover {
  background: var(--yellow-400);
  color: var(--slate-900);
}

.contact-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(30, 41, 59, 0.5);
}

.contact-socials a {
  color: var(--slate-400);
  transition: all 0.3s;
}

.contact-socials a:hover {
  color: white;
  transform: translateY(-4px);
}

.contact-socials a:last-child:hover {
  color: var(--yellow-400);
}

.contact-socials svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* === ICON SIZES === */
.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

/* === UTILITY === */
.pos-relative {
  position: relative;
}

/* === FOOTER === */
.footer {
  padding: 2rem 0;
  background: var(--bg-color);
  border-top: 1px solid var(--slate-900);
  text-align: center;
}

.footer p {
  color: var(--slate-500);
  font-size: 0.875rem;
}

.footer .highlight {
  color: var(--yellow-400);
}

/* === SCROLL TO TOP === */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  padding: 0.75rem;
  border-radius: 50%;
  background: var(--yellow-400);
  color: var(--slate-900);
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.25);
  transition: all 0.3s;
  opacity: 0;
  transform: scale(0.5) translateY(2.5rem);
  pointer-events: none;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: var(--yellow-300);
  transform: scale(1) translateY(-4px);
}

.scroll-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .navbar-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .timeline {
    margin-left: 1.5rem;
  }

  .timeline-item {
    padding-left: 3rem;
  }

  .timeline-card {
    padding: 2rem;
  }

  .timeline-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

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

  .contact-card {
    padding: 3rem;
  }

  .contact-title {
    font-size: 3rem;
  }

  .navbar-right {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .about-photo-wrapper {
    width: auto;
    flex-shrink: 0;
  }

  .about-card-wrapper {
    flex: 1;
  }

  .about-info-cards {
    width: auto;
    flex-shrink: 0;
  }

  /* Stretch photo and about cards to match info-cards height */
  .about-photo-wrapper > .reveal,
  .about-photo-wrapper > .reveal > .pos-relative,
  .about-card-wrapper > .reveal,
  .about-card-wrapper > .reveal > .pos-relative {
    height: 100%;
  }

  .about-photo-wrapper .about-card-photo,
  .about-card-wrapper .about-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === PRELOADER === */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, var(--yellow-400), var(--amber-500));
  color: #0f172a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: pulse-logo 1.5s ease-in-out infinite;
}

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

.preloader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--yellow-400), var(--amber-500));
  border-radius: 3px;
  animation: loading-bar 1.8s ease-in-out forwards;
}

@keyframes loading-bar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* === CUSTOM CURSOR === */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--yellow-400);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
  display: none;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(250, 204, 21, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transition: all 0.15s ease-out;
  transform: translate(-50%, -50%);
  display: none;
}

.cursor-ring.hovering {
  width: 50px;
  height: 50px;
  border-color: rgba(250, 204, 21, 0.6);
  background: rgba(250, 204, 21, 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    display: block;
  }
  body {
    cursor: none;
  }
  a, button, .skill-tag, .project-card, .cert-card {
    cursor: none;
  }
}

/* === PARTICLES CANVAS === */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === NAVBAR ACTIVE LINK === */
.navbar-links a.active {
  color: var(--yellow-400);
  position: relative;
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--yellow-400), var(--amber-500));
  border-radius: 2px;
}

.navbar-links a {
  position: relative;
}

/* === NAVBAR RIGHT === */
.navbar-right {
  display: none;
  align-items: center;
  gap: 1rem;
}

/* === THEME TOGGLE === */
.theme-toggle {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: transparent;
  color: var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.theme-toggle:hover {
  color: var(--yellow-400);
  background: rgba(250, 204, 21, 0.1);
}

.theme-icon-light { display: none; }
.theme-icon-dark { display: block; }

[data-theme="light"] .theme-icon-light { display: block; }
[data-theme="light"] .theme-icon-dark { display: none; }

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* === DOWNLOAD CV BUTTON === */
.btn-download {
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--yellow-400);
  font-weight: 600;
  border: 2px solid var(--yellow-400);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-download:hover {
  background: var(--yellow-400);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(234, 179, 8, 0.25);
}

/* === ABOUT AVATAR === */
.about-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.about-avatar-ring {
  position: absolute;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
              linear-gradient(to bottom right, var(--yellow-400), var(--amber-500)) border-box;
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about-avatar-placeholder {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(245, 158, 11, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.about-avatar-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--yellow-400);
}

/* === LANGUAGES === */
.languages-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-name {
  font-weight: 500;
  color: white;
  font-size: 0.875rem;
}

.language-level {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.1);
  color: var(--yellow-400);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

/* === STATS COUNTERS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid rgba(30, 41, 59, 0.5);
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: rgba(234, 179, 8, 0.3);
  transform: translateY(-4px);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  display: inline;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--yellow-300), var(--amber-500));
}

.stat-suffix {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--yellow-300), var(--amber-500));
}

.stat-label {
  color: var(--slate-400);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}


/* === PROJECT GALLERY CARD === */
.project-card-gallery {
  cursor: pointer;
}

.project-card-actions {
  display: flex;
  align-items: center;
}

.project-gallery-hint {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--yellow-400);
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  transition: all 0.3s;
}

.project-card-gallery:hover .project-gallery-hint {
  background: rgba(234, 179, 8, 0.2);
}

/* === GALLERY MODAL === */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: auto !important;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal * {
  cursor: auto !important;
}

.gallery-modal .gallery-nav,
.gallery-modal .gallery-modal-close,
.gallery-modal .gallery-thumb,
.gallery-modal .gallery-modal-overlay {
  cursor: pointer !important;
}

.gallery-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.gallery-modal-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: galleryFadeIn 0.3s ease;
}

@keyframes galleryFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.gallery-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.gallery-modal-close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--yellow-400);
}

.gallery-modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.gallery-modal-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.gallery-modal-img-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
  max-height: 65vh;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
}

.gallery-modal-img-wrapper img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 0.75rem;
  transition: opacity 0.3s ease;
}

.gallery-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.gallery-nav {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.gallery-nav:hover {
  background: rgba(250, 204, 21, 0.2);
  color: var(--yellow-400);
}

.gallery-nav svg {
  width: 1.5rem;
  height: 1.5rem;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--slate-700);
  border-radius: 2px;
}

.gallery-thumb {
  width: 60px;
  height: 45px;
  border-radius: 0.375rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.3s;
  flex-shrink: 0;
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb.active {
  border-color: var(--yellow-400);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === SKILL TAG HOVER ENHANCEMENT === */
.skill-tag {
  transition: all 0.3s ease;
}

.skill-tag:hover {
  color: white;
  border-color: rgba(234, 179, 8, 0.5);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.15);
  background: rgba(234, 179, 8, 0.08);
}

/* === SKILLS GRID 2x2 on medium === */
/* (handled in main responsive section above) */

