@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&display=swap');

:root {
  --bg-main: #0a0812;
  --bg-secondary: #13101c;
  --primary: #763cf9;
  --primary-hover: #8f5cff;
  --text-main: #ffffff;
  --text-muted: #a19db3;
  --border-color: rgba(118, 60, 249, 0.2);
}

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

html { scroll-behavior: smooth; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

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

/* Subtelna siatka w tle */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

/* Glow Effects */
.glow-bg {
  position: absolute;
  width: 600px; height: 600px;
  background: var(--primary);
  filter: blur(150px);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
}
.glow-1 { top: -200px; left: -200px; }
.glow-2 { bottom: 20%; right: -200px; }

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(10, 8, 18, 0.9);
  backdrop-filter: blur(15px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-container img { height: 65px; }

.nav-logo {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  outline: none !important;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover { color: var(--primary); }

@keyframes targetGlow {
  0% { box-shadow: inset 0 0 0 rgba(118, 60, 249, 0); }
  30% { box-shadow: inset 0 0 60px rgba(118, 60, 249, 0.4); }
  100% { box-shadow: inset 0 0 0 rgba(118, 60, 249, 0); }
}

.target-highlight {
  animation: targetGlow 1.5s ease-out;
  border-radius: 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.discord-btn {
  background: linear-gradient(90deg, #763cf9, #8f5cff);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(118, 60, 249, 0.3);
}
.discord-btn:hover {
  background: linear-gradient(90deg, #8f5cff, #763cf9);
  box-shadow: 0 0 20px var(--primary);
  transform: translateY(-2px);
}

/* Mobile Menu */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: var(--text-main);
  cursor: pointer;
  transition: 0.3s;
}
.hamburger:hover { color: var(--primary); }

.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 100%; height: 100vh;
  background: rgba(10, 8, 18, 0.98);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease-in-out;
}
.mobile-menu.active { right: 0; }

.close-menu {
  position: absolute;
  top: 30px; right: 30px;
  font-size: 2.5rem;
  color: var(--text-main);
  cursor: pointer;
}
.close-menu:hover { color: var(--primary); }

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.mobile-menu a {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-discord { color: #5865F2 !important; }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

/* Animated Hero Logo */
.hero-logo {
  height: 190px;
  margin-bottom: -15px;
  animation: floatLogo 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(118, 60, 249, 0.4));
}
@keyframes floatLogo {
  0% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 0 20px rgba(118, 60, 249, 0.4)); }
  50% { transform: translateY(-15px) rotate(3deg); filter: drop-shadow(0 0 40px rgba(118, 60, 249, 0.8)); }
  100% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 0 20px rgba(118, 60, 249, 0.4)); }
}

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #9b72ff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 3rem;
}
.highlight { color: var(--primary); font-weight: 600; }

/* Statystyki */
.stats {
  padding: 4rem 5%;
  background: rgba(118, 60, 249, 0.05);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
}
.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  display: inline-block;
}
.stat-item .plus {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
}
.stat-item p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Sekcje nagłówki */
.section-title { text-align: center; margin-bottom: 4rem; padding-top: 50px; }
.section-title h2 { font-size: 3rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.section-title p.subtitle { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 3px; }

/* Usługi */
.services { padding: 4rem 5%; }
.services-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; max-width: 1300px; margin: 0 auto;
}
.service-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  padding: 3rem 2rem; border-radius: 16px; text-align: center; transition: 0.4s; position: relative; overflow: hidden;
  flex: 1 1 350px; max-width: 400px; cursor: pointer;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
  background: var(--primary); transform: scaleX(0); transition: 0.4s; transform-origin: left;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); background: #171224; }
.service-card:hover::before { transform: scaleX(1); }
.service-card i { font-size: 3.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 800; }
.service-card p { color: var(--text-muted); }

/* Portfolio */
.portfolio { padding: 4rem 5%; background: var(--bg-secondary); }
.portfolio-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.portfolio-item {
  background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 16px; width: 350px; overflow: hidden; transition: 0.4s;
}
.portfolio-item:hover { transform: translateY(-10px); border-color: var(--primary); }
.portfolio-img { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: rgba(255,255,255,0.3); }
.bot-img { background: linear-gradient(45deg, #763cf9, #13101c); }
.web-img { background: linear-gradient(45deg, #ff007b, #13101c); }
.plugin-img { background: linear-gradient(45deg, #00d2ff, #13101c); }
.portfolio-content { padding: 2rem; text-align: center; }
.portfolio-content h3 { font-weight: 800; margin-bottom: 10px; color: #fff; }
.portfolio-content p { color: var(--text-muted); font-size: 0.95rem; }

/* Zespół Dynamiczny */
.team { padding: 4rem 5%; }
.team-grid { display: flex; flex-direction: column; gap: 1.5rem; max-width: 800px; margin: 2rem auto 0; }
.team-category {
  background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px;
  overflow: hidden; transition: 0.3s;
}
.team-category-header {
  padding: 20px 25px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: 0.3s;
}
.team-category-header:hover { background: rgba(118, 60, 249, 0.05); }
.team-category-header h3 { font-size: 1.2rem; font-weight: 800; }
.member-count { color: var(--primary); font-size: 1rem; margin-left: 10px; }
.team-category-header i { transition: 0.3s; color: var(--text-muted); }
.team-members-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 15px;
  padding: 0 25px 25px 25px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 10px; padding-top: 20px;
}
.team-member-card {
  background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 10px;
  padding: 15px; display: flex; align-items: center; gap: 15px; transition: 0.3s;
}
.team-member-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.team-member-card img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary); }
.team-member-card h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.team-member-card p { font-size: 0.8rem; color: var(--text-muted); }
.team-member-reps {
  background: linear-gradient(135deg, rgba(118, 60, 249, 0.1), rgba(118, 60, 249, 0.2));
  padding: 5px 15px 5px 6px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--primary);
  box-shadow: 0 0 15px rgba(118,60,249,0.2);
}
.rep-icon {
  background: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 0 10px var(--primary);
}
.rep-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.rep-count {
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}
.rep-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 800;
}

/* Testimonials Slider */
.testimonials { padding: 4rem 5%; background: transparent; }
.carousel-container { position: relative; max-width: 900px; margin: 0 auto; display: flex; align-items: center; }
.carousel-track-container { overflow: hidden; width: 100%; }
.carousel-track { display: flex; list-style: none; transition: 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; padding: 0 1rem; }
.testimonial-card {
  background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 16px;
  padding: 3rem; max-width: 700px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.testimonial-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--primary); }
.testimonial-stars { color: #ffb300; margin-bottom: 1.5rem; font-size: 1.2rem; }
.carousel-btn { background: transparent; border: none; color: var(--text-muted); font-size: 2.5rem; cursor: pointer; transition: 0.3s; z-index: 10; }
.carousel-btn:hover { color: var(--primary); }
.prev-btn { margin-right: 1.5rem; } .next-btn { margin-left: 1.5rem; }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 3rem; }
.carousel-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.2); border: none; cursor: pointer; transition: 0.3s; }
.carousel-indicator.current-slide { background: var(--primary); width: 30px; border-radius: 6px; }

/* FAQ Akordeon */
.faq { padding: 4rem 5%; max-width: 900px; margin: 0 auto; }
.faq-item {
  background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px;
  margin-bottom: 15px; overflow: hidden; transition: 0.3s;
}
.faq-question {
  padding: 20px 25px; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: 0.3s;
}
.faq-question:hover { color: var(--primary); }
.faq-answer {
  padding: 0 25px; max-height: 0; overflow: hidden; transition: all 0.4s ease;
  color: var(--text-muted); line-height: 1.6;
}
.faq-item.active .faq-answer { padding: 0 25px 25px 25px; max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-item.active { border-color: var(--primary); box-shadow: 0 5px 15px rgba(118,60,249,0.1); }
.faq-question i { transition: 0.3s; }

/* CTA */
.cta { padding: 8rem 5%; text-align: center; }
.cta h2 { font-size: 3.5rem; font-weight: 900; margin-bottom: 1.5rem; text-transform: uppercase; }
.cta p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 3rem; }
.cta-btn {
  font-size: 1.2rem; padding: 18px 45px; background: #5865F2; color: white; text-decoration: none; border-radius: 12px; font-weight: 800; text-transform: uppercase; transition: 0.3s; display: inline-block;
}
.cta-btn:hover { background: #4752c4; transform: translateY(-5px); box-shadow: 0 15px 30px rgba(88,101,242,0.5); }

/* Footer */
.main-footer {
  background: var(--bg-secondary);
  padding: 40px 5%;
  border-top: 1px solid var(--border-color);
  text-align: center;
  margin-top: 40px;
}
.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.footer-logo span { color: var(--primary); }
.main-footer p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 20px auto;
  font-size: 0.95rem;
}
.footer-socials a {
  color: #fff;
  background: rgba(118, 60, 249, 0.2);
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.3s;
}
.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(118, 60, 249, 0.4);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 30px;
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: -60px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(118, 60, 249, 0.4);
  transition: 0.3s;
  z-index: 99;
}
.scroll-top-btn.show { bottom: 30px; }
.scroll-top-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-5px);
}
/* Modals */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(10, 8, 18, 0.85); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal-content {
  background: var(--bg-secondary); border: 1px solid var(--primary); border-radius: 16px; width: 90%; max-width: 600px; padding: 30px; box-shadow: 0 10px 40px rgba(118, 60, 249, 0.3); animation: modalFadeIn 0.3s ease; max-height: 80vh; overflow-y: auto;
}
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: var(--bg-main); border-radius: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
@keyframes modalFadeIn { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} }
.close-modal { color: var(--text-muted); float: right; font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: var(--primary); }
#modalTitle { color: #fff; font-size: 1.8rem; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; font-weight: 800; }
.modal-body { color: var(--text-main); }

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 3rem; }
  .section-title h2 { font-size: 2rem; }
  .cta h2 { font-size: 2.5rem; }
  .nav-links { display: none; }
  .desktop-only { display: none; }
  .hamburger { display: block; }
  .carousel-btn { display: none; }
  .stats-container { gap: 1rem; }
  .stat-item { width: 45%; margin-bottom: 20px; }
}
