:root {
  --bg: #0b1020;
  --panel: #111935;
  --text: #e6e9f2;
  --muted: #a7b0c3;
  --brand: #4f8cff;
  --accent: #22d3ee;
  --border: #223057;
  --success: #22c55e;
  --warn: #f59e0b;
  --glow-blue: rgba(79, 140, 255, 0.4);
  --glow-cyan: rgba(34, 211, 238, 0.4);
}

* { 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth;
}

html, body { 
  height: 100%; 
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: 
    radial-gradient(1200px 600px at 70% -10%, rgba(79,140,255,.15), transparent),
    radial-gradient(900px 600px at -10% 20%, rgba(34,211,238,.12), transparent),
    radial-gradient(800px 800px at 50% 100%, rgba(124,58,237,.08), transparent),
    var(--bg);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

h1, h2 { 
  font-weight: 800; 
  letter-spacing: .2px; 
}

h1 { 
  line-height: 1.2; 
}

h2 { 
  line-height: 1.25; 
}

.subtle { 
  color: var(--muted); 
}

a { 
  color: inherit; 
  text-decoration: none; 
}

header {
  position: sticky; 
  top: 0; 
  z-index: 10;
  backdrop-filter: saturate(1.1) blur(20px);
  background: linear-gradient(180deg, rgba(11,16,32,.85), rgba(11,16,32,.65));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.container { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 18px 20px; 
}

.nav {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 12px;
}

.brand {
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  font-weight: 700; 
  letter-spacing: .3px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.brand span {
  background: linear-gradient(135deg, #e6e9f2 0%, #a7b0c3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand:hover {
  transform: scale(1.02);
}

.brand:hover span {
  background: linear-gradient(135deg, #4f8cff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo {
  width: 32px; 
  height: 32px; 
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79,140,255,.15), rgba(34,211,238,.15));
  box-shadow: 0 0 0 2px rgba(79,140,255,.3), 
              0 4px 12px rgba(34,211,238,.2),
              0 0 24px rgba(79,140,255,.1);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 0 0 3px rgba(79,140,255,.4), 
              0 6px 16px rgba(34,211,238,.3),
              0 0 32px rgba(79,140,255,.15);
}

.logo img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border-radius: 10px;
}

.nav-link {
  padding: 8px 12px; 
  border-radius: 10px; 
  color: var(--text);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f8cff, #22d3ee);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover { 
  border-color: var(--border); 
  background: rgba(17,25,53,.6);
}

.nav-link:hover::after {
  width: calc(100% - 24px);
}

.gh-link {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 8px 14px; 
  border: 1px solid var(--border); 
  border-radius: 12px;
  background: rgba(17,25,53,.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.gh-link:hover::before {
  left: 100%;
}

.gh-link:hover { 
  border-color: rgba(79, 140, 255, 0.5); 
  box-shadow: 0 0 0 3px rgba(79,140,255,.15) inset, 0 4px 12px rgba(79,140,255,.2);
  transform: translateY(-1px);
}

main { 
  padding: 26px 20px 60px; 
}

.hero {
  max-width: 1100px; 
  margin: 10px auto 30px; 
  padding: 40px 28px; 
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(26,38,80,.7), rgba(18,26,55,.7));
  backdrop-filter: blur(10px);
  display: grid; 
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(79, 140, 255, 0.1), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.1), transparent 50%);
  pointer-events: none;
}

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

.hero h1 { 
  margin: 0; 
  font-size: 48px; 
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #4f8cff 0%, #22d3ee 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.hero p { 
  margin: 0; 
  color: var(--muted); 
  font-size: 17px; 
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.actions { 
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
  margin-top: 10px;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 12px 20px; 
  border-radius: 12px; 
  border: 1px solid var(--border); 
  background: rgba(10,16,35,.6); 
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn:hover { 
  border-color: #3556a8; 
  box-shadow: 0 0 0 3px rgba(79,140,255,.12) inset;
  transform: translateY(-2px);
}

.btn-primary { 
  background: linear-gradient(135deg, #4f8cff, #22d3ee); 
  color: #071329; 
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79,140,255,.25);
}

.btn-primary:hover { 
  box-shadow: 0 8px 24px rgba(79,140,255,.4), 0 0 32px rgba(34,211,238,.2);
  transform: translateY(-2px) scale(1.02);
}

.btn-sm { 
  padding: 10px 20px;
  border-radius: 10px; 
  font-size: 14px;
  font-weight: 600;
  min-width: 110px;
  text-align: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79,140,255,.15), rgba(34,211,238,.15));
  border-color: rgba(79, 140, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm:hover {
  background: linear-gradient(135deg, rgba(79,140,255,.25), rgba(34,211,238,.25));
  border-color: rgba(79, 140, 255, 0.5);
  box-shadow: 0 4px 16px rgba(79,140,255,.3), 0 0 24px rgba(34,211,238,.15);
  transform: translateY(-2px);
}

.intro { 
  max-width: 1100px; 
  margin: 0 auto 14px; 
  display: grid; 
  gap: 10px; 
}

.intro h1 { 
  margin: 10px 0 0; 
  font-size: 28px; 
}

.intro p { 
  margin: 0; 
  color: var(--muted); 
  line-height: 1.6; 
}

.section-title { 
  margin: 32px auto 12px; 
  max-width: 1100px; 
  font-size: 28px; 
  font-weight: 800; 
  letter-spacing: -0.3px; 
  padding-left: 2px;
  position: relative;
}

.section-title .title-row {
  background: linear-gradient(135deg, #e6e9f2 0%, #a7b0c3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after { 
  content: ""; 
  display: block; 
  height: 3px; 
  width: 64px; 
  margin-top: 8px; 
  background: linear-gradient(90deg, #4f8cff, #22d3ee); 
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.3); 
}

.controls { 
  max-width: 1100px; 
  margin: 12px auto 18px; 
  display: grid; 
  gap: 10px; 
  grid-template-columns: 1fr; 
}

@media (min-width: 720px) { 
  .controls { 
    grid-template-columns: 1fr 220px 220px; 
  } 
}

.field { 
  position: relative; 
}

.input, .select {
  width: 100%; 
  padding: 12px 14px; 
  color: var(--text);
  background: rgba(17,25,53,.7);
  border: 1px solid var(--border); 
  border-radius: 12px;
}

.input::placeholder { 
  color: #8593b0; 
}

.select { 
  appearance: none; 
  cursor: pointer; 
}

.grid { 
  max-width: 1100px; 
  margin: 0 auto; 
  display: grid; 
  gap: 14px; 
  grid-template-columns: 1fr; 
}

@media (min-width: 640px) { 
  .grid { 
    grid-template-columns: 1fr 1fr; 
  } 
}

@media (min-width: 980px) { 
  .grid { 
    grid-template-columns: 1fr 1fr 1fr; 
  } 
}

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20,28,56,.9), rgba(14,20,43,.9));
  backdrop-filter: blur(10px);
  border-radius: 16px; 
  padding: 20px; 
  display: grid; 
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(79, 140, 255, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.card:hover { 
  transform: translateY(-4px); 
  border-color: rgba(79, 140, 255, 0.5);
  box-shadow: 0 12px 36px rgba(17,25,53,.5), 
              0 0 0 1px rgba(79, 140, 255, 0.1) inset,
              0 0 24px rgba(79, 140, 255, 0.1); 
}

.card .title { 
  font-weight: 700; 
  letter-spacing: .2px; 
}

.desc { 
  color: var(--muted); 
  min-height: 40px; 
}

.meta { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  color: #c1c9db; 
  font-size: 13px; 
}

.badge {
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  padding: 6px 12px;
  border: 1px solid var(--border); 
  border-radius: 999px; 
  background: rgba(10,16,35,.8);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.badge:hover {
  border-color: rgba(79, 140, 255, 0.4);
  background: rgba(20,30,60,.9);
  transform: scale(1.05);
}

.icon { 
  width: 24px; 
  height: 24px; 
  color: #9fb0d6; 
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 4px rgba(79, 140, 255, 0.2));
  transition: all 0.3s ease;
}

.section-title:hover .icon {
  color: #22d3ee;
  transform: scale(1.1) rotate(5deg);
}

.title-row { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
}

.media { 
  margin-top: 8px; 
}

.media a { 
  display: inline-block; 
  border-radius: 12px; 
  overflow: hidden; 
  border: 1px solid var(--border); 
  background: rgba(10,16,35,.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media a:hover { 
  border-color: rgba(79, 140, 255, 0.5); 
  box-shadow: 0 0 0 3px rgba(79,140,255,.12) inset, 0 8px 24px rgba(79,140,255,.2);
  transform: translateY(-2px) scale(1.02);
}

.media img, .media video { 
  display: block; 
  width: 100%; 
  height: 150px; 
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media a:hover img,
.media a:hover video {
  transform: scale(1.05);
}

.empty, .error { 
  max-width: 1100px; 
  margin: 30px auto; 
  text-align: center; 
  color: var(--muted); 
}

footer { 
  border-top: 1px solid var(--border); 
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(11,16,32,.5), rgba(11,16,32,.8));
  backdrop-filter: blur(10px);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,140,255,.3), transparent);
}

.foot { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 24px 20px; 
  color: var(--muted); 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 16px; 
}

.footer-menu { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
}

.footer-link { 
  padding: 6px 10px; 
  border-radius: 8px;
  transition: all 0.2s ease;
}

.footer-link:hover { 
  background: rgba(17,25,53,.8);
  color: #22d3ee;
  transform: translateY(-1px);
}

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

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4f8cff, #22d3ee);
  border: 1px solid rgba(79, 140, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(79,140,255,.3), 0 0 24px rgba(34,211,238,.15);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(79,140,255,.5), 0 0 36px rgba(34,211,238,.25);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  color: #071329;
}

/* Enhance card title links */
.card .title {
  transition: color 0.3s ease;
}

.card:hover .title {
  color: #22d3ee;
}

/* Add some subtle animations for intro sections */
.intro {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton {
  background: linear-gradient(90deg, 
    rgba(17,25,53,.7) 0%, 
    rgba(30,40,70,.8) 50%, 
    rgba(17,25,53,.7) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
  .hero {
    padding: 32px 20px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .card {
    padding: 16px;
  }
  
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav {
    width: 100%;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-menu {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .brand span {
    font-size: 16px;
  }
  
  .nav-link {
    padding: 6px 8px;
    font-size: 14px;
  }
}
