@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --clr-primary: #DC2626;
  --clr-primary-dark: #991B1B;
  --clr-secondary: #3B82F6;
  --clr-secondary-dark: #1D4ED8;
  --clr-accent: #FBBF24;
  --clr-accent-dark: #D97706;
  --clr-success: #22C55E;
  --clr-success-dark: #16A34A;
  --clr-bg: #0f0f23;
  --clr-bg-alt: #141432;
  --clr-bg-card: #1a1a3e;
  --clr-bg-card-hover: #222255;
  --clr-bg-nav: rgba(15, 15, 35, 0.85);
  --clr-text: #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-text-white: #ffffff;
  --clr-border: rgba(255,255,255,0.08);
  --clr-border-hover: rgba(255,255,255,0.15);
  --clr-glow-red: rgba(220,38,38,0.4);
  --clr-glow-blue: rgba(59,130,246,0.4);
  --clr-glow-yellow: rgba(251,191,36,0.4);
  --clr-glow-green: rgba(34,197,94,0.4);
  --font-display: 'Press Start 2P', cursive;
  --font-body: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow-red: 0 0 30px var(--clr-glow-red);
  --shadow-glow-blue: 0 0 30px var(--clr-glow-blue);
  --shadow-glow-yellow: 0 0 30px var(--clr-glow-yellow);
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68,-0.55,0.265,1.55);
}

[data-theme='light'] {
  --clr-bg: #f8f9fc;
  --clr-bg-alt: #eef0f5;
  --clr-bg-card: #ffffff;
  --clr-bg-card-hover: #f1f5f9;
  --clr-bg-nav: rgba(248,249,252,0.9);
  --clr-text: #1e293b;
  --clr-text-muted: #64748b;
  --clr-text-white: #0f172a;
  --clr-border: rgba(0,0,0,0.08);
  --clr-border-hover: rgba(0,0,0,0.15);
}

/* 1. CSS Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Base */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  overflow-x: hidden;
  cursor: url('assets/pixel-cursor.png') 0 0, auto;
}

a {
  text-decoration: none;
  cursor: url('assets/pixel-cursor.png') 0 0, pointer;
}

button {
  cursor: url('assets/pixel-cursor.png') 0 0, pointer;
  border: none;
  background: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 4px;
}

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

.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2;
}

ul {
  list-style: none;
}

/* 4. Particles */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: var(--radius-full);
  animation: float var(--duration, 10s) infinite ease-in-out;
  opacity: 0.3;
}

/* 5. Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  background: var(--clr-bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  height: 60px;
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  color: var(--clr-accent);
}

.nav-logo {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  animation: pulse 2s infinite;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  position: relative;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--clr-accent);
  transition: var(--transition-normal);
}

.nav-link:hover, .nav-link:active {
  color: var(--clr-text);
}

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

.nav-link.active {
  color: var(--clr-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  color: var(--clr-text-muted);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
}

.language-switcher > .lucide {
  width: 16px;
  height: 16px;
  margin-right: 2px;
}

.language-option {
  width: 28px;
  height: 28px;
  color: var(--clr-text-muted);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  transition: var(--transition-fast);
}

.language-option:hover {
  color: var(--clr-text-white);
}

.language-option.active {
  color: #111827;
  background: var(--clr-accent);
}

.language-divider {
  color: var(--clr-border-hover);
  font-size: 0.7rem;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-normal);
}

.theme-toggle:hover {
  transform: rotate(180deg);
  border-color: var(--clr-accent);
}

.theme-toggle .lucide {
  width: 20px;
  height: 20px;
  color: var(--clr-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--clr-text);
  transition: var(--transition-normal);
}

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

/* 6. Sections (shared) */
.section {
  padding: 104px 48px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  text-align: center;
  color: var(--clr-text-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.55;
}

.title-decorator {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: var(--clr-accent);
}

.section-subtitle {
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  margin-bottom: 64px;
}

/* 7. Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, var(--clr-glow-blue) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, var(--clr-glow-red) 0%, transparent 40%);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  animation: fadeInUp 1s forwards;
}

/* 8. Trainer Card */
.trainer-card {
  background: linear-gradient(135deg, var(--clr-bg-card) 0%, var(--clr-bg-alt) 100%);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-xl);
  width: min(820px, calc(100vw - 64px));
  padding: 56px;
  box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.trainer-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,0.03) 90deg, transparent 180deg);
  animation: rotate 10s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.trainer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), 0 0 50px var(--clr-glow-blue);
  border-color: var(--clr-secondary);
}

.trainer-card > * {
  position: relative;
  z-index: 1;
}

.trainer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.trainer-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--clr-accent);
  background: rgba(251,191,36,0.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

.trainer-id {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--clr-text-muted);
}

.trainer-card-body {
  display: flex;
  flex-direction: row;
  gap: 56px;
  align-items: center;
  margin-bottom: 44px;
}

.trainer-info {
  min-width: 0;
}

.trainer-avatar {
  position: relative;
  flex-shrink: 0;
}

.trainer-avatar img {
  width: 184px;
  height: 184px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--clr-accent);
  box-shadow: var(--shadow-glow-yellow);
}

.avatar-glow {
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  background: linear-gradient(45deg, var(--clr-glow-red), var(--clr-glow-blue), var(--clr-glow-yellow));
  filter: blur(15px);
  animation: pulse 3s infinite;
  z-index: -1;
  border-radius: var(--radius-lg);
}

.trainer-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--clr-text-white);
  line-height: 1.8;
  margin-bottom: 8px;
}

.trainer-title {
  font-size: 1rem;
  color: var(--clr-accent);
  font-weight: 600;
  min-height: 1.5em;
  margin-bottom: 16px;
}

.trainer-title .cursor {
  display: inline-block;
  animation: blink 1s infinite;
}

.trainer-location {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trainer-location .lucide {
  width: 17px;
  height: 17px;
  color: var(--clr-primary);
}

.trainer-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--clr-accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
}

.trainer-card-footer {
  display: flex;
  justify-content: center;
  gap: 26px;
  border-top: 1px solid var(--clr-border);
  padding-top: 28px;
}

.social-link {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background-color: var(--clr-bg);
  border: 1px solid var(--clr-border);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-bounce);
}

.social-link:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-glow-yellow);
}

.social-link .lucide {
  width: 24px;
  height: 24px;
  color: var(--clr-text-white);
}

/* 9. Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--clr-text-muted);
  animation: float 3s infinite;
  gap: 8px;
  font-size: 0.8rem;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--clr-text-muted);
  border-bottom: 2px solid var(--clr-text-muted);
  transform: rotate(45deg);
  animation: scroll-bounce 2s infinite;
}

/* 10. About Section */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-section > .section-title {
  margin-bottom: 56px;
}

.about-text {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  background: var(--clr-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  padding: 52px;
  position: relative;
  margin-bottom: 72px;
}

.about-text::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--clr-glow-blue);
  line-height: 1;
}

/* 11. Timeline */
.timeline {
  padding-left: 40px;
  position: relative;
  margin-bottom: 64px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--clr-primary), var(--clr-secondary), var(--clr-success));
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 500ms ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-marker {
  position: absolute;
  left: -29.5px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--clr-primary);
  border: 3px solid var(--clr-bg);
  box-shadow: var(--shadow-glow-red);
}

.timeline-item:nth-child(2) .timeline-marker { background: var(--clr-secondary); box-shadow: var(--shadow-glow-blue); }
.timeline-item:nth-child(3) .timeline-marker { background: var(--clr-accent); box-shadow: var(--shadow-glow-yellow); }
.timeline-item:nth-child(4) .timeline-marker { background: var(--clr-success); box-shadow: var(--shadow-glow-green); }

.timeline-content {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition-normal);
}

.timeline-content:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-border-hover);
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--clr-accent);
  margin-bottom: 12px;
  display: block;
}

.timeline-content h3 {
  font-size: 1.15rem;
  color: var(--clr-text-white);
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-company {
  color: var(--clr-secondary);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.timeline-content ul {
  padding-left: 0;
}

.timeline-content li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  color: var(--clr-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.timeline-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
}

/* 12. Education */
.subsection-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--clr-text-white);
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.6;
}

.subsection-title .lucide {
  width: 22px;
  height: 22px;
  color: var(--clr-secondary);
  flex: 0 0 auto;
}

.education-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.education-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition-bounce);
}

.education-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-secondary);
  box-shadow: var(--shadow-glow-blue);
}

.education-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-secondary);
  background: color-mix(in srgb, var(--clr-secondary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--clr-secondary) 35%, transparent);
  border-radius: var(--radius-sm);
}

.education-icon .lucide {
  width: 30px;
  height: 30px;
}

.education-card h4 {
  font-size: 1rem;
  color: var(--clr-text-white);
  font-weight: 700;
  margin-bottom: 8px;
}

.education-card p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.education-date {
  font-family: var(--font-display);
  font-size: 0.5rem;
  color: var(--clr-accent);
  display: block;
}

/* 13. Projects */
.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 64px;
  padding: 12px 0 72px;
  border-bottom: 1px solid var(--clr-border);
}

.project-showcase > * {
  min-width: 0;
}

.project-visual {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-bg-card);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-visual:hover {
  transform: translateY(-4px);
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-xl), var(--shadow-glow-yellow);
}

.project-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  transition: transform 500ms ease;
}

.project-visual:hover img {
  transform: scale(1.015);
}

.project-index {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #111827;
  background: var(--clr-accent);
  font-family: var(--font-display);
  font-size: 0.5rem;
  box-shadow: var(--shadow-md);
}

.project-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--clr-accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-copy h3 {
  margin-bottom: 18px;
  color: var(--clr-text-white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.55;
}

.project-copy > p {
  margin-bottom: 24px;
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.project-highlights {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.project-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--clr-text);
  font-size: 0.96rem;
  line-height: 1.5;
}

.project-highlights .lucide {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--clr-success);
}

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

.project-tags span {
  padding: 7px 10px;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  color: var(--clr-text-muted);
  background: var(--clr-bg-card);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--clr-accent);
  border-radius: var(--radius-sm);
  color: #111827;
  background: var(--clr-accent);
  font-weight: 800;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-yellow);
}

.project-link .lucide {
  width: 19px;
  height: 19px;
}

/* 14. Skills Section */
.skills-section {
  overflow: hidden;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.category-tab {
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  padding: 8px 16px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.category-tab .lucide {
  width: 15px;
  height: 15px;
}

.category-tab:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

.category-tab.active {
  background: var(--clr-accent);
  color: #000;
  border-color: var(--clr-accent);
  font-weight: 700;
}

/* 14. Tech Carousel */
.tech-carousel {
  overflow: hidden;
  padding: 24px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  margin-bottom: 48px;
}

.carousel-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.carousel-item {
  flex-shrink: 0;
  padding: 16px 32px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.carousel-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
}

.carousel-icon .lucide {
  width: 22px;
  height: 22px;
}

/* 15. Skill Cards */
.skill-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.skill-card {
  perspective: 1000px;
  height: 230px;
  cursor: url('assets/pixel-cursor.png') 0 0, pointer;
}

.skill-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--clr-bg-card);
  border: 2px solid var(--clr-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  overflow: hidden;
}

.skill-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--card-color, var(--clr-accent));
}

.skill-card-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: var(--transition-slow);
}

.skill-card:hover .skill-card-inner {
  transform: translateY(-8px);
  border-color: var(--card-color, var(--clr-accent));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--card-color, var(--clr-accent)) 30%, transparent);
}

.skill-card:hover .skill-card-inner::after {
  animation: shimmer 1s forwards;
}

.skill-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.6rem;
  color: var(--clr-text-muted);
  background: rgba(255,255,255,0.05);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.skill-type-badge .lucide {
  width: 13px;
  height: 13px;
  color: var(--card-color, var(--clr-accent));
}

.skill-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--card-color, var(--clr-accent));
  background: color-mix(in srgb, var(--card-color, var(--clr-accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color, var(--clr-accent)) 35%, transparent);
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.skill-icon .lucide {
  width: 38px;
  height: 38px;
}

.skill-name {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--clr-text-white);
  text-align: center;
  margin-bottom: 0;
}

.skill-card.hidden {
  display: none;
}

/* 16. Hackathon Section */
.hackathons-grid {
  display: grid;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.hackathon-card {
  display: flex;
  flex-direction: row;
  gap: 32px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  opacity: 0;
}

.hackathon-card:nth-child(odd) {
  transform: translateX(-40px);
}
.hackathon-card:nth-child(even) {
  transform: translateX(40px);
}

.hackathon-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.hackathon-info {
  flex: 1;
  min-width: 0;
}

.hackathon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(251,191,36,0.05), transparent 50%);
  pointer-events: none;
}

.hackathon-card:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-glow-yellow);
  transform: translateY(-4px);
}

.gym-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-glow-yellow);
  animation: float 4s infinite ease-in-out;
  position: relative;
  flex-shrink: 0;
}

.badge-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.badge-icon .lucide {
  width: 42px;
  height: 42px;
  color: #111827;
}

.badge-shine {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 40%);
  pointer-events: none;
}

.hackathon-event {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--clr-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  overflow-wrap: anywhere;
}

.hackathon-name {
  font-size: 1.4rem;
  color: var(--clr-text-white);
  font-weight: 800;
  margin-bottom: 8px;
}

.hackathon-date {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  display: block;
}

.hackathon-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--clr-text);
  margin-bottom: 24px;
}

.hackathon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59,130,246,0.1);
  color: var(--clr-secondary);
  border: 1px solid rgba(59,130,246,0.2);
}

.hackathon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hackathon-link {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: var(--clr-text-white);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hackathon-link .lucide {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.hackathon-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

/* 17. Certifications */
.certifications-section .section-subtitle {
  margin-bottom: 20px;
}

.cert-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.credly-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  color: var(--clr-text);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-normal);
}

.credly-profile-link:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-yellow);
}

.credly-profile-link .lucide {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.cert-badge {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 500ms ease;
  color: var(--clr-text);
}

.cert-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-badge:hover {
  transform: translateY(-6px);
}

.cert-badge--obtained {
  border-color: rgba(251,191,36,0.2);
}
.cert-badge--obtained:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-glow-yellow);
}

.cert-badge--credly {
  min-height: 340px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.credly-badge-image {
  width: 118px;
  height: 118px;
  object-fit: contain;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
  transition: transform var(--transition-normal);
}

.cert-badge--credly:hover .credly-badge-image {
  transform: scale(1.04);
}

.cert-badge--credly h4 {
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge--credly .cert-date {
  display: block;
}

.credential-action {
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--clr-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: color var(--transition-fast);
}

.credential-action .lucide {
  width: 15px;
  height: 15px;
}

.cert-badge--credly:hover .credential-action {
  color: var(--clr-accent);
}

.badge-medal {
  width: 52px;
  height: 52px;
  animation: float 3s infinite ease-in-out;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: var(--clr-accent);
}

.badge-medal .lucide {
  width: 42px;
  height: 42px;
}

.cert-badge--obtained .badge-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, transparent 70%);
  z-index: 0;
}

.cert-badge--progress {
  border: 1px dashed rgba(59,130,246,0.2);
}
.cert-badge--progress:hover {
  border-color: var(--clr-secondary);
  box-shadow: var(--shadow-glow-blue);
}

.cert-badge--progress .badge-medal {
  animation: pulse 2s infinite;
}

.cert-badge--planned {
  opacity: 0.6;
  border: 1px solid rgba(255,255,255,0.05);
}
.cert-badge--planned:hover {
  opacity: 0.85;
}

.cert-badge--planned .badge-medal {
  filter: grayscale(100%);
}

.cert-badge h4 {
  font-size: 0.9rem;
  color: var(--clr-text-white);
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.cert-badge p {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cert-date {
  font-family: var(--font-display);
  font-size: 0.45rem;
  color: var(--clr-accent);
  position: relative;
  z-index: 1;
}

/* 18. Languages */
.languages-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.language-item {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  text-align: center;
  min-width: 200px;
  transition: var(--transition-bounce);
}

.language-item:hover {
  transform: translateY(-4px);
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-glow-yellow);
}

.language-code {
  width: 64px;
  height: 52px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  background: color-mix(in srgb, var(--clr-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--clr-accent) 35%, transparent);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.72rem;
}

.language-item h4 {
  font-size: 1.1rem;
  color: var(--clr-text-white);
  font-weight: 700;
  margin-bottom: 8px;
}

.language-item p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 0;
}

/* 19. Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
}

.form-input {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  cursor: text;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.2);
}

.form-input::placeholder {
  color: var(--clr-text-muted);
}

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

.form-submit {
  padding: 16px 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: var(--clr-text-white);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition-bounce);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

.submit-icon {
  width: 19px;
  height: 19px;
  transition: var(--transition-normal);
}

.form-submit:hover .submit-icon {
  transform: rotate(15deg) scale(1.2);
}

.form-status {
  min-height: 1.4em;
  color: var(--clr-accent);
  font-size: 0.85rem;
  line-height: 1.4;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--clr-text);
  transition: var(--transition-normal);
}

.contact-link:hover {
  border-color: var(--clr-accent);
  background: var(--clr-bg-card-hover);
  transform: translateX(4px);
}

.contact-link .lucide {
  width: 21px;
  height: 21px;
  color: var(--clr-accent);
  flex: 0 0 auto;
}

.contact-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 20. Footer */
.footer {
  text-align: center;
  padding: 48px;
  border-top: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(8px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* Scroll Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .navbar {
    padding: 0 24px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--clr-border);
    background: var(--clr-bg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: var(--transition-normal);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--clr-border);
  }

  .nav-links li:last-child .nav-link {
    border-bottom: 0;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 980px) {
  .project-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-copy {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }

  .nav-actions {
    gap: 7px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--clr-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    transform: translateY(-120%);
    transition: var(--transition-normal);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.open {
    transform: translateY(0);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .section {
    padding: 64px 16px;
  }
  
  .section-title {
    font-size: 0.85rem;
  }

  .section-title span,
  .subsection-title span {
    text-align: center;
  }
  
  .hero-section {
    padding: 96px 16px;
  }
  
  .trainer-card {
    width: 100%;
    padding: 24px;
  }
  
  .trainer-card-body {
    flex-direction: column;
    text-align: center;
  }

  .trainer-location {
    justify-content: center;
  }
  
  .trainer-avatar img {
    width: 120px;
    height: 120px;
  }
  
  .trainer-name {
    font-size: 0.7rem;
  }
  
  .hackathon-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 32px;
  }

  .hackathon-card:nth-child(odd),
  .hackathon-card:nth-child(even) {
    transform: translateY(24px);
  }

  .hackathon-card.visible {
    transform: translateY(0);
  }

  .hackathon-event {
    font-size: 0.68rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .skill-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .skill-card {
    height: 210px;
  }
  
  .cert-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .project-showcase {
    padding-bottom: 56px;
  }

  .project-link {
    width: 100%;
  }
  
}

@media (max-width: 480px) {
  .language-switcher {
    height: 38px;
    padding: 4px;
  }

  .language-switcher > .lucide {
    display: none;
  }

  .language-option {
    width: 27px;
    height: 27px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .trainer-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .languages-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .education-cards {
    grid-template-columns: 1fr;
  }
  
  .category-tabs {
    gap: 4px;
  }
  
  .category-tab {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .trainer-card-footer {
    gap: 12px;
  }

  .social-link {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .project-index {
    top: 10px;
    left: 10px;
    font-size: 0.44rem;
  }

  .project-copy h3 {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}

@media (pointer: coarse) {
  body,
  a,
  button {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }
}
