@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===================== CSS VARIABLES ===================== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b5;
  --text-muted: #6b6b80;
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a78bfa;
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-1);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent-1);
  color: #fff;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-3);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 48px;
  line-height: 1.2;
}

/* ===================== HEADER / NAV ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero #particles-js {
  pointer-events: auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-3);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero-name {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-summary {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-accent);
  box-shadow: var(--shadow-glow);
  transition: transform 0.5s ease;
}

.hero-photo:hover {
  transform: scale(1.03);
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.hero-meta-item {
  text-align: left;
}

.hero-meta-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-meta-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
    order: 2;
  }

  .hero-photo-wrap {
    order: 1;
  }

  .hero-photo {
    width: 200px;
    height: 200px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 20px;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-1);
  transform: translateY(-2px);
}

/* ===================== SOCIAL LINKS ===================== */
.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 20px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-1);
  transform: translateY(-2px);
}

/* ===================== SKILLS ===================== */
.skills-section {
  background: var(--bg-secondary);
}

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

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.skill-category-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.skill-category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--accent-1);
  color: var(--accent-3);
  background: rgba(99, 102, 241, 0.1);
}

/* ===================== EXPERIENCE TIMELINE ===================== */
.experience-section {
  background: var(--bg-primary);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.timeline-item.visible {
  opacity: 1;
}

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

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-1);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
  z-index: 1;
}

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

.timeline-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.timeline-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.timeline-logo.logo-scale {
  transform: scale(1.3);
  padding: 0;
}

.timeline-company {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-3);
  margin-bottom: 4px;
}

.timeline-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.timeline-tech {
  margin-top: 12px;
}

.timeline-tech .skill-tag {
  font-size: 11px;
  padding: 4px 10px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* ===================== EDUCATION ===================== */
.education-section {
  background: linear-gradient(rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.9)), url('../img/img-bg-2.jpg') center/cover no-repeat fixed;
}

.education-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 600px;
}

.education-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.education-degree {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.education-school {
  font-size: 15px;
  color: var(--accent-3);
  margin-bottom: 4px;
}

.education-year {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================== CERTIFICATIONS ===================== */
.certifications-section {
  background: var(--bg-primary);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.cert-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.cert-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ===================== PROJECTS ===================== */
.projects-section {
  background: var(--bg-secondary);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

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

.project-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.project-card-body {
  padding: 24px;
}

.project-card-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.project-card-lang .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.project-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-card-title a {
  color: inherit;
}

.project-card-title a:hover {
  color: var(--accent-3);
}

.project-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.project-card-stats {
  display: flex;
  gap: 16px;
}

.project-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===================== GAMES FLOATING PANEL ===================== */
.games-fab {
  position: fixed;
  bottom: 32px;
  left: 24px;
  z-index: 999;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: inherit;
}
.games-fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.3);
}
.games-fab-icon {
  font-size: 30px;
}
.games-fab.hidden { display: none; }

.games-panel {
  position: fixed;
  top: 0;
  left: -400px;
  bottom: 0;
  width: 400px;
  z-index: 1001;
  display: flex;
  flex-direction: row-reverse;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.games-panel.open { left: 0; }

.games-panel-collapse {
  width: 28px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-left: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  color: var(--accent-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 120px;
  transition: var(--transition);
  flex-shrink: 0;
}
.games-panel-collapse:hover { background: rgba(99, 102, 241, 0.1); }
.collapse-arrow-games {
  font-size: 22px;
  font-weight: 300;
  animation: glowPulse 2s infinite;
  display: block;
  line-height: 1;
}
.games-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 26, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-right: 1px solid var(--border-accent);
}

.games-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.games-tab {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}
.games-tab:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
}
.games-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.games-panel-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}
.game-container {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}
.game-container.active { display: flex; }

/* Game Menu Cards */
.game-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.game-card:hover {
  border-color: var(--accent-1);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}
.game-card-icon {
  font-size: 32px;
  background: rgba(255, 255, 255, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.game-card-info {
  flex: 1;
}
.game-card-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.game-card-info p {
  font-size: 13px;
  color: var(--text-secondary);
}
.game-card-btn {
  padding: 8px 16px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s;
  line-height: 1.3;
  text-align: center;
}
.game-card:hover .game-card-btn { transform: scale(1.05); }

/* Triki */
.triki-status {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--accent-3);
  text-align: center;
}
.triki-board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 8px;
  margin-bottom: 24px;
}
.triki-cell {
  width: 100px;
  height: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.triki-cell:hover { background: var(--bg-card-hover); }
.triki-cell.playerX { color: var(--accent-1); }
.triki-cell.playerO { color: #ec4899; }
.triki-reset {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: inherit;
  font-size: 15px;
}
.triki-reset:hover { transform: scale(1.05); }

/* Doom JS / DOSBox */
.doom-note {
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 12px;
  text-align: center;
}
.dosbox-container {
  width: 320px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  background: #000;
}
.dosbox-container > .dosbox-overlay {
  background: url(https://js-dos.com/cdn/DOOM.png) center center no-repeat;
  background-size: cover;
}

/* Ping Pong */
.pingpong-status {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-3);
  text-align: center;
}
#pingpongCanvas {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
  background: #12121a;
  cursor: crosshair;
}

.games-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.games-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 480px) {
  .games-panel { width: 100%; left: -100%; flex-direction: column; }
  .games-panel-collapse { margin: 0; width: 100%; height: 28px; border-radius: 0 0 8px 8px; border-left: 1px solid var(--border-accent); border-top: none; }
  .collapse-arrow-games { transform: rotate(-90deg); }
  .games-fab { bottom: 20px; left: 16px; width: 60px; height: 60px; }
  .games-fab-icon { font-size: 26px; }
  .triki-board { grid-template-columns: repeat(3, 80px); }
  .triki-cell { width: 80px; height: 80px; font-size: 40px; }
}

/* ===================== AI NEWS FLOATING PANEL ===================== */
.news-fab {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 999;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: inherit;
}

.news-fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.3);
}

.news-fab-icon {
  font-size: 30px;
}

.news-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.news-fab-badge.show {
  display: flex;
}

.news-fab.hidden {
  display: none;
}

.news-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  z-index: 1001;
  display: flex;
  flex-direction: row;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-panel.open {
  right: 0;
}

.news-panel-collapse {
  width: 28px;
  min-width: 28px;
  height: 100%;
  background: rgba(18, 18, 26, 0.95);
  border: none;
  border-right: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.news-panel-collapse:hover {
  background: rgba(99, 102, 241, 0.1);
}

.collapse-arrow {
  font-size: 22px;
  font-weight: 300;
  color: var(--accent-3);
  animation: glowPulse 2s ease-in-out infinite;
  display: block;
  line-height: 1;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    text-shadow: 0 0 4px rgba(167, 139, 250, 0.2);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
  }
}

.news-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 26, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.news-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.news-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.news-panel .news-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  flex-wrap: wrap;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.news-panel .news-tab {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: var(--transition);
}

.news-panel .news-tab:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
}

.news-panel .news-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.news-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.news-card-source {
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 100px;
  width: fit-content;
}

.news-card-source.openai {
  background: rgba(16, 163, 127, 0.15);
  color: #10a37f;
}

.news-card-source.hf {
  background: rgba(255, 213, 0, 0.15);
  color: #ffd500;
}

.news-card-source.mit {
  background: rgba(163, 31, 52, 0.15);
  color: #e8485f;
}

.news-card-source.bbc {
  background: rgba(187, 29, 29, 0.15);
  color: #bb1d1d;
}

.news-card-source.gnews {
  background: rgba(66, 133, 244, 0.15);
  color: #4285f4;
}

.news-card-source.dlai {
  background: rgba(49, 130, 206, 0.15);
  color: #3182ce;
}

.news-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.news-card-title a {
  color: inherit;
}

.news-card-title a:hover {
  color: var(--accent-3);
}

.news-card-snippet {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-date {
  font-size: 11px;
  color: var(--text-muted);
}

.news-loading,
.news-error {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Panel overlay */
.news-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.news-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 480px) {
  .news-panel {
    width: 100%;
    right: -100%;
  }

  .news-fab {
    bottom: 20px;
    right: 16px;
    width: 60px;
    height: 60px;
  }

  .news-fab-icon {
    font-size: 26px;
  }
}

/* ===================== CONTACT ===================== */
.contact-section {
  background: linear-gradient(rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.9)), url('../img/img-bg-1.jpg') center/cover no-repeat fixed;
}

.contact-wrap {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.contact-social-btn:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px;
  height: 47px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  background: #25D366;
  border: 1px solid #25D366;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: #20BA56;
  border-color: #20BA56;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
  width: 22px;
  height: 22px;
}

.email-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.email-reveal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.email-revealed {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-3);
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: inline-block;
  user-select: all;
}

@media (max-width: 600px) {
  .contact-socials {
    flex-direction: column;
    align-items: center;
  }
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-credits {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-craft {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.footer-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.footer-download:hover {
  color: var(--accent-3);
}

@media (max-width: 600px) {
  .footer-inner {
    justify-content: center;
    flex-direction: column;
  }
}

/* ===================== ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-1);
}

/* ===================== UTILITIES ===================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}