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

/* ── VARIABLES ── */
:root {
  --blue-950: #0a0f1e;
  --blue-900: #0d1b3e;
  --blue-800: #132f6b;
  --blue-700: #1a45a0;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --white: #ffffff;
  --text-muted: #94a3b8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--blue-950);
  color: var(--white);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo span { color: var(--blue-400); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--blue-500);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue-700) !important; color: var(--white) !important; }

/* ── SHARED UTILITIES ── */
section { padding: 6rem 1.5rem; }

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

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-400);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--blue-300);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover { border-color: var(--blue-400); color: var(--white); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: var(--blue-900);
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--blue-400); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 1rem 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

/* ─────────────────────────────────────
   INDEX PAGE
───────────────────────────────────── */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-300);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.hero h1 span { color: var(--blue-400); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── STATS ── */
.stats {
  background: var(--blue-900);
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  padding: 3.5rem 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-400);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--blue-900);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── COLLABORATORS ── */
.reviews-bg {
  background: var(--blue-900);
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.collab-card {
  background: var(--blue-950);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.collab-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.12);
}

.collab-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1rem;
  border: 2px solid rgba(59, 130, 246, 0.35);
  overflow: hidden;
}

.collab-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.collab-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.collab-name a {
  color: inherit;
  text-decoration: none;
}

.collab-role {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-400);
}

/* ── SLIDESHOW ── */
.slideshow {
  position: relative;
  margin-top: 3rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: var(--blue-900);
  user-select: none;
}

.slideshow-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  width: 100%;
  aspect-ratio: 32 / 9;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 15, 30, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
}

.slide-btn:hover {
  background: rgba(37, 99, 235, 0.5);
  border-color: rgba(59, 130, 246, 0.7);
}

.slide-prev { left: 0.75rem; }
.slide-next { right: 0.75rem; }

.slide-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slide-dot.active {
  background: var(--blue-400);
  transform: scale(1.25);
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 8, 20, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  cursor: default;
}

#lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#lightbox-close:hover {
  background: rgba(59, 130, 246, 0.35);
}

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

/* ── CTA BANNER ── */
.cta-banner {
  text-align: center;
  padding: 6rem 1.5rem;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ─────────────────────────────────────
   TEAM PAGE
───────────────────────────────────── */

/* ── PAGE HEADER ── */
.page-header {
  padding: 10rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 10%, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── TEAM GRID ── */
.team-section {
  padding: 4rem 1.5rem 8rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.member-card {
  background: var(--blue-900);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  width: 100%;
  max-width: 320px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
  border-radius: 16px 16px 0 0;
}

.member-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

/* ── AVATAR ── */
.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(59, 130, 246, 0.35);
  letter-spacing: -1px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.member-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.member-role-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--blue-300);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.member-bio {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
}
