:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --accent: #f093fb;
  --bg: #f0f2f8;
  --bg-section: #f7f8fc;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --white: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.75);
  --shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
  --shadow-hover: 0 16px 48px rgba(102, 126, 234, 0.22);
  --radius: 16px;
  --transition: 0.3s ease;
  --font-main: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== UTILITY ===== */
.section-padding { padding: 6rem 0; }

.section-title {
  font-family: var(--font-main);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ===== NAVBAR ===== */
#mainNav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.12);
  transition: box-shadow var(--transition);
  padding: 0.8rem 0;
}

#mainNav.scrolled {
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.logo-brand {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none;
}

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

.navbar-nav .nav-link {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary) !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: rgba(102, 126, 234, 0.08);
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f0f2f8 0%, #e8eaf6 50%, #f3e5f5 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #667eea, #764ba2);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f093fb, #f5576c);
  bottom: -80px;
  left: -80px;
}

.hero-text { position: relative; z-index: 1; }

.hero-greeting {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  font-family: var(--font-main);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.cursor {
  -webkit-text-fill-color: var(--primary);
  animation: blink 0.9s step-end infinite;
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2rem;
}

/* Кнопки */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: inline-flex;
  align-items: center;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.55);
  color: var(--white);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.btn-accent-custom {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}

.btn-accent-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
  color: var(--white);
}

/* Соцсети */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(102, 126, 234, 0.2);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

/* ===== HERO IMAGE ===== */
.hero-image-col { position: relative; z-index: 1; }

.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-image-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  animation: spin-ring 8s linear infinite;
  opacity: 0.7;
  z-index: 0;
}

.hero-image-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg);
}

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

.hero-photo {
  position: relative;
  z-index: 1;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
  transition: transform 0.5s ease;
}

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

.hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 2;
  white-space: nowrap;
}

.badge-kotlin {
  bottom: 40px;
  left: -10px;
  color: var(--primary);
  border: 2px solid rgba(102, 126, 234, 0.25);
}

.badge-android {
  top: 40px;
  right: -10px;
  color: var(--secondary);
  border: 2px solid rgba(118, 75, 162, 0.25);
}

/* ===== ABOUT CARDS ===== */
.about-section { background: var(--bg-section); }

.about-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.about-card-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.about-card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}

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

.skill-card-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.skill-icon { font-size: 1.3rem; }

.skill-badge {
  background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.12));
  color: var(--primary-dark);
  border: 1px solid rgba(102,126,234,0.25);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: default;
}

.skill-badge:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.skill-badge-soft {
  background: linear-gradient(135deg, rgba(240,147,251,0.12), rgba(245,87,108,0.12));
  color: #b03a8e;
  border: 1px solid rgba(240,147,251,0.3);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: default;
}

.skill-badge-soft:hover {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

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

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 3px;
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 9px;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
  z-index: 1;
}

.timeline-date {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-company {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.company-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-family: var(--font-main);
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

.timeline-role {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-list {
  padding-left: 1.2rem;
  margin: 0;
}

.timeline-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--white);
  border-top: 1px solid rgba(102, 126, 234, 0.12);
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--primary); }

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== FADE-UP ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-title { font-size: 2.5rem; }
  .hero-photo { width: 280px; height: 280px; }
}

@media (max-width: 767px) {
  .section-padding { padding: 4rem 0; }
  .section-title { font-size: 1.9rem; }
  .hero-title { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .hero-photo { width: 240px; height: 240px; }
  .badge-kotlin { left: 0; bottom: 20px; font-size: 0.72rem; }
  .badge-android { right: 0; top: 20px; font-size: 0.72rem; }
  .timeline::before { left: 12px; }
  .timeline-item { padding-left: 44px; }
  .timeline-dot { left: 3px; width: 16px; height: 16px; }
}

@media (max-width: 479px) {
  .hero-title { font-size: 1.7rem; }
  .hero-desc { font-size: 0.95rem; }
  .glass-card { padding: 1.5rem; }
}
/* ===== PROJECTS PAGE ===== */

/* Page Hero */
.page-hero-section {
  position: relative;
  background: linear-gradient(135deg, #f0f2f8 0%, #e8eaf6 50%, #f3e5f5 100%);
  padding: 140px 0 80px;
  overflow: hidden;
  text-align: center;
}

.page-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.page-hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Filter Buttons */
.filter-btn {
  background: var(--card-bg);
  border: 1px solid rgba(102, 126, 234, 0.2);
  color: var(--text-secondary);
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

/* Project Cards */
.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), opacity 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-item.hidden {
  display: none !important;
}

/* Mockup */
.project-mockup {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7f8fc, #eef0f8);
  border-bottom: 1px solid rgba(102,126,234,0.08);
}

.mockup-phone {
  width: 80px;
  height: 145px;
  background: #1a1a2e;
  border-radius: 14px;
  border: 3px solid #2d2d4e;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.mockup-screen {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-laptop {
  width: 200px;
  height: 130px;
  background: #1a1a2e;
  border-radius: 8px 8px 0 0;
  border: 3px solid #2d2d4e;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.mockup-screen-wide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-label {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Project Body */
.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-platform {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.android-badge { background: rgba(61,220,132,0.15); color: #2a9d5c; border: 1px solid rgba(61,220,132,0.3); }
.csharp-badge  { background: rgba(102,126,234,0.15); color: var(--primary-dark); border: 1px solid rgba(102,126,234,0.3); }
.cpp-badge     { background: rgba(245,87,108,0.12); color: #c0392b; border: 1px solid rgba(245,87,108,0.3); }

.project-github-link {
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
  display: inline-flex;
}

.project-github-link:hover {
  color: var(--primary);
  transform: scale(1.15);
}

.project-title {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.project-role {
  font-family: var(--font-main);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  flex: 1;
}

.project-features {
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.tech-tag {
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
  color: var(--primary-dark);
  border: 1px solid rgba(102,126,234,0.2);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

/* Projects count */
.projects-count {
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Skills table */
.table-wrapper { border-radius: var(--radius); }

.projects-table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.projects-table thead tr {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.projects-table thead th {
  color: white;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1rem 1.2rem;
  border: none;
  white-space: nowrap;
}

.projects-table tbody td {
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-color: rgba(102, 126, 234, 0.08);
  vertical-align: middle;
}

.projects-table tbody tr:hover td {
  background: rgba(102, 126, 234, 0.04);
}

.projects-table tbody tr:last-child td { border-bottom: none; }

.table-badge {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.table-badge.android { background: rgba(61,220,132,0.15); color: #2a9d5c; }
.table-badge.desktop { background: rgba(102,126,234,0.15); color: var(--primary-dark); }

.table-link {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color var(--transition);
  white-space: nowrap;
}

.table-link:hover { color: var(--secondary); }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #f0f2f8, #e8eaf6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .page-hero-section { padding: 120px 0 60px; }
  .project-mockup { height: 150px; }
  .mockup-phone { width: 65px; height: 118px; }
  .mockup-laptop { width: 160px; height: 105px; }
}

/* ===== PAGE HERO (projects / contact) ===== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #f0f2f8 0%, #e8eaf6 50%, #f3e5f5 100%);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 3rem;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  border: 2px solid rgba(102, 126, 234, 0.25);
  color: var(--text-secondary);
  background: var(--white);
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

/* ===== PROJECT CARD ===== */
.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.project-mockup {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
}

.mockup-android { background: linear-gradient(135deg, #667eea, #764ba2); }
.mockup-time    { background: linear-gradient(135deg, #f093fb, #f5576c); }
.mockup-metro   { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.mockup-map     { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.mockup-game    { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.mockup-shop    { background: linear-gradient(135deg, #f6d365, #fda085); }

.mockup-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.project-platform-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: white;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}

.badge-desktop { background: rgba(255,255,255,0.22) !important; }
.badge-game    { background: rgba(255,255,255,0.18) !important; }

.project-body {
  padding: 1.5rem 1.5rem 1rem;
  flex: 1;
}

.project-title {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.project-tech {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-features {
  padding-left: 1.1rem;
  margin: 0;
}

.project-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.project-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.btn-link-github {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-link-github:hover {
  color: var(--secondary);
  gap: 0.6rem;
}

/* ===== SKILLS TABLE ===== */
.skills-table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.skills-table thead tr {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.skills-table thead th {
  color: white;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 1rem 1.2rem;
  border: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.skills-table tbody tr {
  transition: background var(--transition);
}

.skills-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

.skills-table tbody td {
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(102, 126, 234, 0.08);
  vertical-align: middle;
}

.skills-table tbody tr:last-child td { border-bottom: none; }

.table-link {
  color: var(--primary);
  font-family: var(--font-main);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.table-link:hover { color: var(--secondary); }

/* ===== CTA SECTION ===== */
.cta-section { background: var(--bg); }

/* ===== PROJECT ITEM HIDE ANIMATION ===== */
.project-item {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-item.hidden {
  display: none;
}
/* ===== CONTACT CARDS ===== */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
}

.contact-card:hover {
  color: var(--primary);
  transform: translateX(6px) translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(102, 126, 234, 0.3);
}

.contact-card-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
  border-radius: 14px;
  flex-shrink: 0;
  color: var(--primary);
  transition: background var(--transition);
}

.contact-card:hover .contact-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.contact-card-label {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.15rem;
}

.contact-card-value {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

/* ===== FORM CARD ===== */
.form-card { padding: 2.5rem; }

.form-title {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===== FIELDSET ===== */
.form-fieldset {
  border: none;
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, var(--primary), var(--secondary)) 1;
  padding: 0 0 0 1.2rem;
  margin-bottom: 1.8rem;
}

.form-legend {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  padding: 0;
  margin-bottom: 1rem;
  float: none;
  width: auto;
}

/* ===== FORM INPUTS ===== */
.form-label-custom {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  display: block;
}

.required { color: #f5576c; }

.form-input {
  border: 1.5px solid rgba(102, 126, 234, 0.2);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: rgba(255,255,255,0.8);
  transition: all var(--transition);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  background: white;
}

.form-input.is-invalid {
  border-color: #f5576c;
  box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.15);
}

.form-input.is-valid {
  border-color: #43e97b;
  box-shadow: 0 0 0 3px rgba(67, 233, 123, 0.12);
}

.form-select-custom {
  cursor: pointer;
  appearance: auto;
}

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

/* ===== RADIO & CHECKBOX ===== */
.form-check-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-check-custom label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  user-select: none;
}

.form-radio,
.form-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== VALIDATION ===== */
.invalid-msg {
  font-size: 0.78rem;
  color: #f5576c;
  font-family: var(--font-main);
  margin-top: 4px;
  display: none;
}

.invalid-msg.show { display: block; }

/* ===== CHAR COUNTER ===== */
.char-counter {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-main);
}

.char-counter.over { color: #f5576c; }

/* ===== SUCCESS MESSAGE ===== */
.form-success {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(67,233,123,0.12), rgba(56,249,215,0.12));
  border: 1px solid rgba(67, 233, 123, 0.35);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a7a4a;
  text-align: center;
}

@media (max-width: 767px) {
  .form-card { padding: 1.5rem; }
  .contact-card { padding: 1rem 1.2rem; }
}