/* ==========================================================================
   HYCORVUS - Hytale Server Website
   Inspired by the official Hytale website design
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary-dark: #1a1d24;
  --primary-darker: #0f1114;
  --secondary-blue: #2a3a5c;
  --accent-gold: #c9a050;
  --accent-red: #8b2e3a;
  --accent-red-light: #a84252;
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --text-light: #e5e7eb;
  --gradient-top: #1e2530;
  --gradient-bottom: #141820;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Borders & Shadows */
  --border-radius: 8px;
  --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --glow-gold: 0 0 30px rgba(201, 160, 80, 0.3);
  --glow-red: 0 0 30px rgba(168, 66, 82, 0.3);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--gradient-top) 0%, var(--gradient-bottom) 100%);
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--accent-gold);
  text-shadow: 0 2px 20px rgba(201, 160, 80, 0.3);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15, 17, 20, 0.95) 0%, rgba(15, 17, 20, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 160, 80, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--accent-gold);
  background: rgba(201, 160, 80, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-white);
  border-radius: 2px;
  transition: 0.3s;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a88439 100%);
  color: var(--primary-dark);
  box-shadow: var(--glow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(201, 160, 80, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
  color: var(--text-white);
  box-shadow: var(--glow-red);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(168, 66, 82, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

.btn i {
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  background-image: url('assets/banner-home-site.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(15, 17, 20, 0.3) 0%, rgba(15, 17, 20, 0.9) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-logo {
  max-width: 500px;
  margin: 4rem auto 2rem;
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 99999;
}

.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: rise 8s infinite;
}

@keyframes rise {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Sections Common Styles
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 1.5rem auto;
}

/* --------------------------------------------------------------------------
   About Hytale Section
   -------------------------------------------------------------------------- */
.about-hytale {
  background: linear-gradient(180deg, transparent 0%, rgba(42, 58, 92, 0.1) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: linear-gradient(145deg, rgba(26, 29, 36, 0.8) 0%, rgba(15, 17, 20, 0.9) 100%);
  border: 1px solid rgba(201, 160, 80, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(201, 160, 80, 0.3);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a88439 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.about-card h3 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-gray);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Server Features Section
   -------------------------------------------------------------------------- */
.features {
  background: linear-gradient(180deg, transparent 0%, rgba(139, 46, 58, 0.08) 50%, transparent 100%);
}

.features-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-content h2 {
  text-align: left;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(26, 29, 36, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(201, 160, 80, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(26, 29, 36, 0.8);
  border-color: rgba(201, 160, 80, 0.3);
  transform: translateX(10px);
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-text h4 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-gray);
}

.features-visual {
  position: relative;
}

.server-badge {
  background: linear-gradient(145deg, rgba(26, 29, 36, 0.95) 0%, rgba(15, 17, 20, 0.98) 100%);
  border: 2px solid rgba(201, 160, 80, 0.3);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.server-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 160, 80, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.server-badge .badge-content {
  position: relative;
  z-index: 1;
}

.badge-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.badge-type {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.badge-mode {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--text-white), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.badge-description {
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Join Section
   -------------------------------------------------------------------------- */
.join-section {
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.5) 0%, rgba(15, 17, 20, 0.8) 100%);
  padding: var(--space-xl) var(--space-md);
}

.join-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.join-container h2 {
  margin-bottom: 1.5rem;
}

.join-container p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.join-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.join-card {
  background: linear-gradient(145deg, rgba(26, 29, 36, 0.9) 0%, rgba(15, 17, 20, 0.95) 100%);
  border: 1px solid rgba(201, 160, 80, 0.2);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
}

.join-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.join-card.discord {
  border-color: rgba(88, 101, 242, 0.3);
}

.join-card.discord:hover {
  border-color: rgba(88, 101, 242, 0.6);
  box-shadow: 0 20px 60px rgba(88, 101, 242, 0.2);
}

.join-card.server {
  border-color: rgba(201, 160, 80, 0.3);
}

.join-card.server:hover {
  border-color: rgba(201, 160, 80, 0.6);
  box-shadow: 0 20px 60px rgba(201, 160, 80, 0.2);
}

.join-card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.join-card h3 {
  color: var(--text-white);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.join-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.join-card .server-ip {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--accent-gold);
  background: rgba(201, 160, 80, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(201, 160, 80, 0.2);
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  color: white;
}

.btn-discord:hover {
  box-shadow: 0 15px 40px rgba(88, 101, 242, 0.4);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-darker);
  border-top: 1px solid rgba(201, 160, 80, 0.1);
  padding: 3rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo img {
  height: 50px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-text {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.footer-text a {
  color: var(--accent-gold);
}

.footer-text a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .features-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-content h2 {
    text-align: center;
  }

  .feature-item:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 17, 20, 0.98);
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(201, 160, 80, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
    min-height: auto;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .section {
    padding: var(--space-lg) var(--space-sm);
  }

  .about-card {
    padding: 2rem;
  }

  .join-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-logo img {
    height: 45px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Animations & Utilities
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}