/* Missing slideOut animation used by JS */
@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* keep only native styles below */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #0f141d;
  --bg-tertiary: #161b26;
  --surface: rgba(24, 32, 47, 0.4);
  --surface-hover: rgba(24, 32, 47, 0.6);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-glow: rgba(102, 126, 234, 0.3);
  --btn-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --btn-glow: rgba(59, 130, 246, 0.3);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.24);
  --shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.36);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color-scheme: dark;
}

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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 2rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  animation: fadeInPage 1s ease-out;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 2;
}

.logo {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2.25rem;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #667eea 25%, #764ba2 75%, #f1f5f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  cursor: default;
  filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.1));
}

.logo:hover {
  transform: translateY(-1px) scale(1.01);
  filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.2));
}

.subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  z-index: 2;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--glass-strong);
  color: var(--text-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    var(--shadow-medium),
    0 0 20px rgba(102, 126, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.btn.primary {
  background: var(--btn-primary);
  border: none;
  color: white;
  font-weight: 700;
  box-shadow: 
    0 4px 16px var(--btn-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.primary::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 32px var(--btn-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: stretch;
  margin: 2rem 0;
}

.panel {
  background: var(--surface);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(24px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  opacity: 0.5;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--glass-strong);
}

.about {
  padding: 2rem;
}

.about h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about p.subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 60ch;
  white-space: pre-line;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-weight: 400;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.08);
  position: relative;
  overflow: hidden;
}

.about p.subtitle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
  opacity: 0.6;
}

.tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.tag {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.tag:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.stats {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  border-radius: 16px;
  text-align: center;
  min-width: 100px;
  flex: 1;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  position: relative;
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--glass-strong), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--glass-strong);
}

.stat:hover::before {
  opacity: 1;
}

.stat b {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 2;
}

.stat .meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filters .btn {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 12px;
  min-height: 44px;
}

.filters .btn.active {
  background: var(--btn-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px var(--btn-glow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.card {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(20px);
  animation: cardSlideIn 0.6s ease forwards;
}

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

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  opacity: 0.5;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(102, 126, 234, 0.4),
    0 0 40px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: var(--glass-strong);
}

.card:hover::after {
  opacity: 1;
}

.card .title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  line-height: 1.4;
}

.card .meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.badge:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

footer {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--glass-border);
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  backdrop-filter: blur(24px);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

footer p {
  margin: 0.5rem 0;
  font-weight: 500;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

footer a:hover::after {
  width: 100%;
}

.modal-wrap {
  position: fixed;
  inset: 0;
  display: none;
  background: var(--bg-primary);
  z-index: 1000;
  animation: fadeIn 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: var(--bg-primary);
  position: relative;
  animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.modal img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
}

.modal video {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  background: #000;
}

html {
  scrollbar-gutter: stable both-edges;
}

body, .modal {
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.45) transparent;
}

.modal {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.35);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.55);
}

.modal::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.modal::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.85), rgba(118, 75, 162, 0.85));
}

.modal h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-body {
  flex: 1 1 auto;
}

.modal-media {
  margin-top: 3rem;
  width: 100%;
}

.modal-media::-webkit-scrollbar {
  width: 8px;
}

.modal-media::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.modal-media::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-media::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.media-gallery {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.media-item {
  position: relative;
  padding: 1.5rem 0;
}

.media-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(102, 126, 234, 0.2) 15%, 
    rgba(102, 126, 234, 0.7) 45%, 
    rgba(118, 75, 162, 0.8) 50%, 
    rgba(118, 75, 162, 0.7) 55%, 
    rgba(102, 126, 234, 0.2) 85%, 
    transparent
  );
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
  border-radius: 2px;
}

.media-item:not(:last-child)::before {
  content: '✦';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(102, 126, 234, 0.9);
  font-size: 16px;
  font-weight: 400;
  background: var(--surface);
  border: 2px solid rgba(102, 126, 234, 0.3);
  z-index: 2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.media-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.media-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.media-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
  max-width: 85%;
  margin: 0 auto;
  opacity: 0.95;
}

.media-content {
  aspect-ratio: 2.2 / 1;
  max-width: 600px;
  margin: 1.5rem auto 0 auto;
  background: #000;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-content:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(102, 126, 234, 0.2),
    0 0 12px rgba(102, 126, 234, 0.08);
}

.media-content.clickable {
  cursor: pointer;
}

.media-content.clickable::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

/* White Magnifying Glass SVG */
.media-content.clickable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
  background: white;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z'/%3e%3c/svg%3e") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z'/%3e%3c/svg%3e") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.media-content.clickable:hover::before {
  opacity: 1;
}

.media-content.clickable:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

.media-content iframe,
.media-content video,
.media-content img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
  border-radius: 16px;
}

.media-content video {
  background: #000;
}


.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: -10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.lightbox-title {
  margin-top: 1rem;
  color: white;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  max-width: 80%;
  opacity: 0.9;
}

form input, 
form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--glass-strong);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

form input::placeholder,
form textarea::placeholder {
  color: var(--text-muted);
}

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

.row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.col {
  flex: 1;
}

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

section#projects {
  margin-top: 2rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

#initialLangOverlay {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

#initialLangOverlay * {
  box-sizing: border-box;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-header h2 { 
  margin: 0; 
}

.profile-panel { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  height: 100%; 
}

.profile-header { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  justify-content: flex-start; 
}

.avatar {
  width: 160px;
  height: 160px;
  position: relative;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  overflow: visible;
}

.avatar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -56%);
  background-image: url("../image/avatar.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  pointer-events: none;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--glass-border);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar {
  width: 160px;
  height: 160px;
  position: relative;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.avatar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -56%);
  background-image: url("../image/avatar.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 16px 48px rgba(102, 126, 234, 0.25),
    0 8px 24px rgba(0,0,0,0.3),
    0 0 0 4px rgba(102, 126, 234, 0.15);
}

.avatar:hover::before {
  box-shadow: inset 0 0 0 3px var(--accent-glow);
}

.avatar:hover::after {
  transform: translate(-50%, -56%) scale(1.05);
  filter: brightness(1.1) contrast(1.1) drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.skills { 
  margin-top: 6px; 
}

.skills .tags { 
  margin-top: 8px; 
}

.contact { 
  margin-top: auto; 
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    var(--shadow-medium),
    0 0 20px rgba(102, 126, 234, 0.15);
}

.contact-card:hover::before {
  left: 100%;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
}

.contact-icon-discord {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
}

.contact-icon-discord::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.14 96.36'%3E%3Cpath d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.contact-icon-youtube {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.contact-icon-youtube::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.contact-icon-github {
  background: linear-gradient(135deg, #333 0%, #24292e 100%);
}

.contact-icon-github::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.contact-icon-vk {
  background: linear-gradient(135deg, #0077FF 0%, #0055CC 100%);
}

.contact-icon-vk::before {
  content: "VK";
  width: 1.25rem;
  height: 1.25rem;
  background: transparent;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}

.contact-icon-telegram {
  background: linear-gradient(135deg, #0088CC 0%, #0066AA 100%);
}

.contact-icon-telegram::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.contact-icon-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.contact-icon-whatsapp::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.465 3.488'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.contact-icon-facebook {
  background: linear-gradient(135deg, #1877F2 0%, #166FE5 100%);
}

.contact-icon-facebook::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

.contact-icon-gmail {
  background: linear-gradient(135deg, #EA4335 0%, #D33B2C 100%);
}

.contact-icon-gmail::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
}

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

.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.contact-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.25rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modal as Full Page Layout */
.modal-header { 
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: var(--bg-primary);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 1rem;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.modal-content-wrapper {
  padding-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 3rem;
  min-height: calc(100vh - 80px);
}

.modal-project-header {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  margin-bottom: 3rem;
}

.modal-project-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  line-height: 1.2;
}

.modal-project-meta {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.modal-project-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.modal-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn {
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-height: 48px;
}

.modal-btn.primary {
  background: var(--btn-primary);
  color: white;
  box-shadow: 0 4px 12px var(--btn-glow);
}

.modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--btn-glow);
}

.modal-btn.secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.modal-btn.secondary:hover {
  background: var(--glass-strong);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Close Button Styles for Modal */
.modal-header .close-btn,
.modal-header button[onclick*="closeModal"] {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-small);
  flex-shrink: 0;
}

.modal-header .close-btn:hover,
.modal-header button[onclick*="closeModal"]:hover {
  color: white;
  background: rgba(220, 38, 127, 0.8);
  border-color: rgba(220, 38, 127, 0.9);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(220, 38, 127, 0.3);
}

/* Improve media gallery for fullscreen */
.media-gallery {
  max-width: 1000px;
  margin: 0 auto;
}

.media-item {
  position: relative;
  padding: 2rem 0;
}

.media-content {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.media-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.media-content iframe,
.media-content video,
.media-content img {
  border-radius: 16px;
  width: 100%;
}

/* Enhanced scrollbar for fullscreen modal */
.modal-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.5) transparent;
}

.modal-wrap::-webkit-scrollbar {
  width: 12px;
}

.modal-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.modal-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.modal-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

/* Additional polish improvements */
.stat:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 
    var(--shadow-strong),
    0 0 24px rgba(102, 126, 234, 0.2);
}

.tag:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 4px 16px rgba(102, 126, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 64px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Loading shimmer effect */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.loading-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

/* Enhanced focus states for accessibility */
.btn:focus,
.card:focus {
  outline: 2px solid rgba(102, 126, 234, 0.8);
  outline-offset: 2px;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Additional hover improvements */
.hero h1 {
  transition: all 0.3s ease;
}

.hero h1:hover {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.9), 
    rgba(118, 75, 162, 0.9), 
    rgba(16, 185, 129, 0.8)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.02);
}

/* Language selector improvements */
.language-option {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-option:hover {
  background: var(--surface-hover);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 12px 32px rgba(102, 126, 234, 0.2),
    0 0 0 2px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.5);
}

.language-option.active {
  background: var(--btn-primary);
  color: white;
  border-color: transparent;
  box-shadow: 
    0 8px 24px var(--btn-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.language-option.active:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 16px 40px var(--btn-glow),
    0 0 0 2px rgba(59, 130, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Improved mobile experience */
@media (max-width: 768px) {
  .card:hover {
    transform: translateY(-8px) scale(1.01);
  }
  
  .btn:hover {
    transform: translateY(-1px) scale(1.01);
  }
  
  .panel:hover {
    transform: translateY(-2px);
  }
  
  .hero h1:hover {
    transform: scale(1.01);
  }
}

.mt-12 { 
  margin-top: 12px; 
}

.toast { 
  position: fixed; 
  bottom: 2rem; 
  right: 2rem; 
  background: rgba(40, 50, 70, 0.95);
  color: #e2e8f0;
  border: 1px solid rgba(100, 116, 139, 0.3);
  padding: 1rem 1.25rem; 
  border-radius: 12px; 
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 9999; 
  animation: slideInFromBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 0.875rem;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
  max-width: 320px;
}

.toast::before {
  content: "✓";
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.countdown-toast {
  background: rgba(255, 152, 0, 0.95) !important;
  border: 1px solid rgba(255, 152, 0, 0.3) !important;
  color: white !important;
  cursor: pointer;
}

.countdown-toast::before {
  display: none !important;
}

.countdown-number {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideInFromBottom {
  from { 
    opacity: 0;
    transform: translateY(100px) scale(0.8);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOutToBottom {
  from { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
  to { 
    opacity: 0; 
    transform: translateY(50px) scale(0.9);
  }
}

.tabs { 
  display: flex; 
  gap: 0.5rem; 
  align-items: center; 
  flex-wrap: wrap; 
}

.tab { 
  padding: 0.5rem 1rem; 
  border-radius: 10px; 
  background: var(--glass); 
  border: 1px solid var(--glass-border); 
  color: var(--text-secondary); 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s ease; 
}

.tab:hover { 
  background: var(--surface-hover); 
  color: var(--text-primary); 
}

.tab.active { 
  background: var(--btn-primary); 
  color: #fff; 
  border: none; 
  box-shadow: 0 4px 12px var(--btn-glow); 
}

.tab-content { 
  margin-top: 1rem; 
}

.search { 
  margin-bottom: 1rem; 
}

.search input { 
  width: 100%; 
  padding: 0.75rem 1rem; 
  border-radius: 12px; 
  border: 1px solid var(--glass-border); 
  background: var(--glass); 
  color: var(--text-primary); 
  font-size: 0.875rem; 
  backdrop-filter: blur(12px); 
}

.search input:focus { 
  outline: none; 
  border-color: var(--glass-strong); 
  background: var(--surface-hover); 
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); 
}

.skills-list { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

.skill { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.progress-label { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  color: var(--text-secondary); 
  font-weight: 600; 
}

.progress { 
  height: 10px; 
  border-radius: 999px; 
  background: var(--glass); 
  border: 1px solid var(--glass-border); 
  overflow: hidden; 
}

.progress-fill { 
  height: 100%; 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  box-shadow: inset 0 4px 12px var(--accent-glow); 
}

.card.simple { 
  min-height: auto; 
  gap: 0.25rem; 
}

.about .row { 
  align-items: stretch; 
}

.about ul { 
  list-style: none; 
  padding-left: 0; 
  margin: 0; 
  display: grid; 
  gap: 8px; 
}

.about li { 
  background: var(--glass); 
  border: 1px solid var(--glass-border); 
  padding: 10px 12px; 
  border-radius: 12px; 
  color: var(--text-secondary); 
}

.about li::before { 
  content: ""; 
  display: inline-block; 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
  background: #8aa2ff; 
  margin-right: 8px; 
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2); 
  vertical-align: middle; 
}


.about .subtitle { 
  margin-bottom: 8px; 
}

.about .col { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

.about .tags { 
  margin: 8px 0 0; 
}

.hero .panel { 
  display: flex; 
  flex-direction: column; 
}

.hero .panel.about .actions { 
  margin-top: auto; 
}

.section-divider {
  position: relative;
  margin: 1.5rem 0;
  text-align: center;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg, 
    transparent, 
    var(--glass-border) 20%, 
    var(--accent-glow) 50%, 
    var(--glass-border) 80%, 
    transparent
  );
}

.section-divider .divider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.section-divider .divider-icon::after {
  content: '✦';
  color: var(--accent-glow);
  font-size: 14px;
  animation: sparkle 3s ease-in-out infinite;
}

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

.games-section {
  margin-top: 0.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.game-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.game-card::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-glow);
  opacity: 0.4;
  z-index: 2;
}

.game-card:hover::before {
  opacity: 0.08;
}

.game-card:hover::after {
  opacity: 0.8;
  animation: pulse 2s ease-in-out infinite;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-glow);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.game-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.8; 
  }
  50% { 
    transform: scale(1.4); 
    opacity: 0.4; 
  }
}

/* Language Modal - Separate from main project modal */
.language-modal-wrap {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(16px);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.language-modal-content {
  max-width: 540px;
  width: 92vw;
  max-height: 70vh;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(24px);
  position: relative;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.language-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.language-modal-close {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-small);
}

.language-modal-close:hover {
  color: white;
  background: rgba(220, 38, 127, 0.8);
  border-color: rgba(220, 38, 127, 0.9);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(220, 38, 127, 0.3);
}

.language-modal-body {
  max-height: 50vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.5) transparent;
}

.language-modal-body::-webkit-scrollbar {
  width: 8px;
}

.language-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.language-modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
  border-radius: 4px;
  transition: all 0.3s ease;
}

.language-modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.language-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
  aspect-ratio: 1;
  min-height: 90px;
}

.language-flag {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.language-option.active {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.4);
  color: var(--accent);
  transform: translateY(-2px);
}

.language-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.language-name {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  color: inherit;
}

.language-code {
  font-weight: 500;
  opacity: 0.6;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: inherit;
}

.language-option.active .language-code {
  opacity: 0.8;
}

@media (max-width: 1024px) {
  body {
    padding: 1.5rem;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero .about { order: 1; }
  .hero aside { order: 2; }
  
  .about h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .panel {
    padding: 1.5rem;
  }
  
  .stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .stat {
    min-width: auto;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .filters {
    justify-content: center;
  }
  
  .modal {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }
  
  .about h2 {
    font-size: 1.5rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }
  
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
    max-width: none;
    font-size: 0.8rem;
    padding: 0.875rem 1rem;
  }
  
  .language-modal-content {
    max-width: 420px;
    width: 95vw;
    max-height: 75vh;
    padding: 1.5rem;
  }
  
  .language-modal-header h3 {
    font-size: 1.25rem;
  }
  
  .language-modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  
  .language-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.75rem;
    max-width: 320px;
  }
  
  .language-option {
    padding: 0.75rem 0.375rem;
    min-height: 70px;
    max-width: 100px;
  }
  
  .language-flag {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
  }
  
  .language-name {
    font-size: 0.8rem;
  }
  
  .language-code {
    font-size: 0.65rem;
  }
  
  .modal-content-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 70px;
  }
  
  .modal-project-header {
    padding: 2rem 0;
  }
  
  .modal-project-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .modal-project-meta {
    font-size: 1rem;
  }
  
  .modal-project-description {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .modal-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-header h3 {
    font-size: 1.1rem;
  }
  
  .media-item {
    padding: 1.5rem 0;
  }
  
  .media-header {
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
  }
  
  .media-description {
    max-width: 90%;
  }
  
  .media-content {
    margin: 1rem auto 0 auto;
    border-radius: 10px;
    max-width: 100%;
    aspect-ratio: 2 / 1;
  }
  
  .media-title {
    font-size: 1rem;
  }
  
  .media-description {
    font-size: 0.85rem;
    max-width: 95%;
  }
}
