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

:root {
  --bg: #080b12;
  --bg-2: #0d1120;
  --bg-3: #111827;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --accent: #0856ff;
  --accent-dim: rgba(8,86,255,0.15);
  --accent-glow: rgba(8,86,255,0.35);
  --text: #f0f4ff;
  --text-muted: #8892a4;
  --text-dim: #4a5568;
  --card-bg: rgba(255,255,255,0.03);
  --card-hover: rgba(255,255,255,0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; user-select: none;}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }

#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0.5;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-logo span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--card-bg);
}

.nav-cta {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(8,11,18,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 16px 24px 24px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul { list-style: none; }

.mobile-menu a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--text); }




.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(57, 103, 230, 0.15) 0%, transparent 60%),
    linear-gradient(180deg,
      rgba(8,11,18,0.55) 0%,
      rgba(8,11,18,0.45) 40%,
      rgba(8,11,18,0.65) 80%,
      rgba(8,11,18,1) 100%
    );
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: #d8d5d5;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
  display: none;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.1s both;
}

.naslov {
  background: #0856ff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-discord-link {
  color: #5865F2;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(88,101,242,0.4);
  transition: color 0.2s, border-color 0.2s;
}
.hero-discord-link:hover {
  color: #7983f5;
  border-color: rgba(88,101,242,0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.9s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--card-bg);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeIn 1s ease 1s both;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2s ease infinite;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

@keyframes scrollAnim {
  0% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
}



.join-section, .team-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}

.join-section { background: var(--bg); }
.team-section { background: var(--bg-2); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}





.steps {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-bottom: 56px;
  overflow: visible;
}

@media (max-width: 768px) {
  .steps { flex-direction: column; }
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 40px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 8px;
  transition: border-color var(--transition), background var(--transition);
}

.step:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.step-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.step-arrow {
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: var(--text-dim);
}

.step-arrow.last { display: none; }

@media (max-width: 768px) {
  .step-arrow { display: none; }
  .step { margin: 0 0 12px; }
}

.join-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.server-ip-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
}

.ip-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ip-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(8, 86, 255,0.3);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.copy-btn:hover {
  background: rgba(8, 86, 255,0.25);
  transform: scale(1.04);
}

.copy-btn.copied {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.3);
  color: #22c55e;
}

.discord-btn {
  background: #5865F2;
}

.discord-btn:hover {
  box-shadow: 0 10px 32px rgba(88,101,242,0.4);
}




.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.team-card {
  flex: 0 0 calc(25% - 12px);
}

@media (max-width: 1100px) { .team-card { flex: 0 0 calc(33.333% - 11px); } }
@media (max-width: 780px)  { .team-card { flex: 0 0 calc(50% - 8px); } }
@media (max-width: 480px)  { .team-card { flex: 0 0 100%; } }

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-4px);
}

.team-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-info { display: flex; flex-direction: column; align-items: center; }
.team-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.team-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}
.team-info p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }





.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.8rem;
}

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

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.footer-socials a:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--card-bg);
}

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

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

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

.feature-card, .team-card {
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    border-color var(--transition),
    background var(--transition);
}

.feature-card[data-delay="100"] { transition-delay: 0.1s; }
.feature-card[data-delay="200"] { transition-delay: 0.2s; }
.feature-card[data-delay="300"] { transition-delay: 0.3s; }
.feature-card[data-delay="400"] { transition-delay: 0.4s; }
.feature-card[data-delay="500"] { transition-delay: 0.5s; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .footer-top { gap: 40px; }
  .footer-links { justify-content: flex-start; gap: 32px; }
}

@media (max-width: 600px) {
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.5rem; }
  .modal { border-radius: 14px; }
  .modal-header { padding: 18px 20px 16px; }
  .modal-tabs { padding: 12px 20px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 16px 20px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
