:root {
  --bg-primary: #090a0f;
  --bg-secondary: #10121a;
  --bg-card: rgba(22, 25, 38, 0.7);
  --bg-card-hover: rgba(30, 34, 52, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(88, 101, 242, 0.4);
  
  --text-main: #f0f3f6;
  --text-muted: #9ba1b0;
  --text-dim: #646a7c;
  
  --accent-purple: #7928ca;
  --accent-blue: #0070f3;
  --accent-discord: #5865f2;
  --accent-cyan: #00dfd8;
  --accent-green: #10b981;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}
.top-glow {
  top: -200px;
  left: 20%;
  background: radial-gradient(circle, var(--accent-blue), var(--accent-purple));
}
.right-glow {
  top: 400px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-discord), var(--accent-cyan));
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(9, 10, 15, 0.75);
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  color: var(--accent-cyan);
  background: rgba(0, 223, 216, 0.08);
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 223, 216, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-main);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-selector-wrapper {
  position: relative;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #161926;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba1b0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 26px 6px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}
.lang-select:hover, .lang-select:focus {
  border-color: rgba(0, 112, 243, 0.5);
  background-color: #1b1f30;
  box-shadow: 0 0 12px rgba(0, 112, 243, 0.2);
}
.lang-select option {
  background-color: #161926;
  color: #f0f3f6;
  padding: 8px;
}
.btn-discord-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(88, 101, 242, 0.12);
  color: #fff;
  border: 1px solid rgba(88, 101, 242, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.2s;
}
.btn-discord-nav:hover {
  background: var(--accent-discord);
  border-color: var(--accent-discord);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
}

/* Hero Section */
.hero-section {
  padding: 100px 0 60px;
  text-align: center;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #00dfd8 0%, #0070f3 50%, #7928ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 720px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 112, 243, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(121, 40, 202, 0.4);
}
.btn-secondary {
  background: var(--accent-discord);
  color: #fff;
  border: none;
}
.btn-secondary:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Sections */
.section {
  padding: 90px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Projects Filter Bar */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: linear-gradient(135deg, #0070F3, #5865F2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 112, 243, 0.35);
}
.project-card.is-hidden {
  display: none !important;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}
.project-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.project-card.featured {
  border-color: rgba(88, 101, 242, 0.3);
}
.card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(88, 101, 242, 0.15);
  color: #8b97fe;
  border: 1px solid rgba(88, 101, 242, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tech-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.tech-pill.highlight {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}
.tech-pill.primary {
  background: rgba(0, 112, 243, 0.15);
  color: #60a5fa;
  border-color: rgba(0, 112, 243, 0.35);
}
.tech-pill.purple {
  background: rgba(88, 101, 242, 0.15);
  color: #a5b4fc;
  border-color: rgba(88, 101, 242, 0.35);
}
.btn-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.2s;
}
.btn-card:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.cta-card {
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.1) 0%, rgba(22, 25, 38, 0.7) 100%);
  border-color: rgba(88, 101, 242, 0.4);
}

/* About Section */
.about-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.about-container {
  max-width: 800px;
}
.about-content {
  text-align: center;
}
.about-content .section-title {
  margin-bottom: 24px;
}
.about-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s;
}
.social-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.social-icon {
  font-size: 1.8rem;
}
.social-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.social-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.footer-container p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-sub {
  color: var(--text-dim) !important;
  font-size: 0.8rem !important;
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
  .stats-bar {
    flex-direction: column;
    gap: 16px;
  }
  .stat-divider {
    display: none;
  }
}
