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

  font-family:
    "Trebuchet MS",
    Arial,
    sans-serif;
}

/* ==================================================
   YEEPS NIGHT SKY COMMUNITY THEME
================================================== */

:root {

  /* SKY */

  --bg: #1a2433;
  --bg-secondary: #24354d;

  /* CARDS */

  --card: #31465f;
  --card-hover: #3d5878;

  /* TEXT */

  --text: #f4f8ff;
  --muted: #bfd0e6;

  /* ACCENTS */

  --primary: #7db2ff;
  --primary-hover: #98c3ff;

  /* EFFECTS */

  --shadow:
    0 20px 50px rgba(0,0,0,0.35);

  --transition:
    0.3s ease;
}

/* ==================================================
   GLOBAL STYLES
================================================== */

body {

  background:
    linear-gradient(
      to bottom,
      var(--bg),
      #121926
    );

  color: var(--text);

  min-height: 100vh;
}

img,
video {

  max-width: 100%;

  display: block;
}

/* ==================================================
   NAVBAR
================================================== */

.navbar {

  width: min(92%, 1800px);

  margin: 24px auto;

  padding: 16px 24px;

  border-radius: 22px;

  background:
    rgba(49,70,95,0.65);

  backdrop-filter: blur(12px);

  border:
    1px solid rgba(255,255,255,0.08);

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  box-shadow: var(--shadow);
}

.logo {

  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 1.4rem;
  font-weight: 700;

  letter-spacing: 0.5px;

  flex-shrink: 0;
}

/* =========================================
   NAV BUTTONS
========================================= */

.nav-btn,
.discord-login-btn {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 10px 16px;

  border-radius: 12px;

  text-decoration: none;

  font-weight: 600;

  white-space: nowrap;

  transition: var(--transition);
}

.nav-btn {

  color: var(--muted);

  background:
    rgba(255,255,255,0.04);
}

.nav-btn:hover {

  color: var(--text);

  background:
    rgba(255,255,255,0.10);
}

.discord-login-btn {

  background: #5865F2;

  color: white;
}

.discord-login-btn:hover {

  transform: translateY(-2px);

  filter: brightness(1.08);
}

/* =========================================
   NAV ICONS
========================================= */

.nav-icon {

  width: 24px;
  height: 24px;

  object-fit: contain;

  flex-shrink: 0;
}

.discord-icon {

  width: 20px;
  height: 20px;

  flex-shrink: 0;
}

/* =========================================
   LOGO ICON
========================================= */

.logo img {

  width: 56px;
  height: 56px;

  object-fit: contain;

  border-radius: 12px;

  flex-shrink: 0;
}

.nav-links {

  display: flex;

  align-items: center;

  gap: 14px;

  list-style: none;

  flex-wrap: wrap;

  justify-content: flex-end;
}

.nav-links a {

  color: var(--muted);

  text-decoration: none;

  font-size: 1rem;

  font-weight: 600;

  padding: 8px 12px;

  border-radius: 10px;

  transition: var(--transition);
}

.nav-links a:hover {

  color: var(--text);

  background:
    rgba(255,255,255,0.08);
}

.nav-links a {

  color: var(--muted);

  text-decoration: none;

  transition: var(--transition);
}

.nav-links a:hover {

  color: var(--text);
}

.nav-user-area {
    display: flex;
    align-items: center;
}

/* =========================================
   DISCORD USER
========================================= */

.discord-user {

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 8px 14px;

  border-radius: 14px;

  background:
    rgba(255,255,255,0.08);

  color: var(--text);

  font-weight: 600;
}

.discord-avatar {

  width: 42px;
  height: 42px;

  border-radius: 50%;

  object-fit: cover;

  flex-shrink: 0;
}

/* ==================================================
   HERO SECTION
================================================== */

.hero {

  width: min(92%, 1800px);

  aspect-ratio: 16 / 7;

  min-height: 420px;
  max-height: 720px;

  margin: 40px auto;

  border-radius: 40px;

  position: relative;

  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow: var(--shadow);

  isolation: isolate;
}

/* =========================================
   DEFAULT BACKGROUND
========================================= */

.hero.default-hero {

  background:

    linear-gradient(
      to bottom,
      #35527a 0%,
      #273b56 40%,
      #1b2635 100%
    );
}

/* =========================================
   DEFAULT STARS
========================================= */

.hero.default-hero::before {

  content: "";

  position: absolute;

  inset: 0;

  background-image:

    radial-gradient(
      rgba(255,255,255,0.75) 1px,
      transparent 1px
    );

  background-size:
    50px 50px;

  opacity: 0.22;

  z-index: 0;
}

/* =========================================
   DEFAULT GLOW
========================================= */

.hero.default-hero::after {

  content: "";

  position: absolute;

  inset: 0;

  background:

    radial-gradient(
      circle at top,
      rgba(125,178,255,0.22),
      transparent 60%
    );

  z-index: 0;
}

/* =========================================
   HERO LIGHT BLOOM
========================================= */

.hero::before {

  content: "";

  position: absolute;

  inset: 0;

  background:

    radial-gradient(
      circle at top,
      rgba(255,255,255,0.08),
      transparent 60%
    );

  z-index: 1;

  pointer-events: none;
}

/* =========================================
   CUSTOM HERO MEDIA
========================================= */

.hero-media {

  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 0;
}

.hero-media img,
.hero-media video {

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  image-rendering: auto;

  transform: scale(1.02);

  will-change: transform;
}

/* =========================================
   HERO OVERLAY
========================================= */

.hero-overlay {

  position: absolute;

  inset: 0;

  background:

    linear-gradient(
      to bottom,
      rgba(0,0,0,0.2),
      rgba(0,0,0,0.55)
    );

  z-index: 1;
}

/* =========================================
   HERO CONTENT
========================================= */

.hero-content {

  position: relative;

  z-index: 2;

  max-width: 820px;

  padding: 50px;
}

.hero-title {

  font-size: clamp(2.8rem, 5vw, 5rem);

  margin-bottom: 20px;

  line-height: 1.05;
}

.hero-text {

  color: var(--muted);

  font-size: 1.15rem;

  line-height: 1.8;

  margin-bottom: 35px;
}

.hero-buttons {

  display: flex;

  justify-content: center;

  gap: 18px;

  flex-wrap: wrap;
}

.hero-btn {

  padding:
    14px 28px;

  border-radius: 14px;

  text-decoration: none;

  font-weight: bold;

  transition: var(--transition);
}

.hero-btn.primary {

  background: var(--primary);

  color: #102033;
}

.hero-btn.primary:hover {

  background: var(--primary-hover);

  transform: translateY(-2px);
}

.hero-btn.secondary {

  background:
    rgba(255,255,255,0.08);

  color: var(--text);

  border:
    1px solid rgba(255,255,255,0.12);
}

.hero-btn.secondary:hover {

  background:
    rgba(255,255,255,0.14);
}

/* ==================================================
   SECTION HEADINGS
================================================== */

.section {

  width: 92%;

  margin:
    80px auto;
}

.section-header {

  margin-bottom: 30px;
}

.section-title {

  font-size: 2rem;

  margin-bottom: 10px;
}

.section-subtitle {

  color: var(--muted);

  line-height: 1.7;
}

/* ==================================================
   WEBSITE GRID
================================================== */

.website-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 28px;
}

/* ==================================================
   WEBSITE CARD
================================================== */

.website-card {

  background: var(--card);

  border-radius: 24px;

  overflow: hidden;

  border:
    1px solid rgba(255,255,255,0.08);

  transition: var(--transition);

  box-shadow: var(--shadow);
}

.website-card:hover {

  transform: translateY(-6px);

  background: var(--card-hover);
}

/* ==================================================
   WEBSITE THUMBNAILS
================================================== */

.website-thumbnail {

  width: 100%;

  aspect-ratio: 16 / 9;

  position: relative;

  overflow: hidden;

  background:

    linear-gradient(
      to bottom,
      #496b8f,
      #2c4259
    );
}

/* =========================================
   CUSTOM CARD MEDIA
========================================= */

.website-thumbnail img,
.website-thumbnail video {

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  position: absolute;

  inset: 0;

  z-index: 0;

  transition: transform 0.4s ease;
}

.website-card:hover .website-thumbnail img,
.website-card:hover .website-thumbnail video {

  transform: scale(1.04);
}

/* =========================================
   DEFAULT STARS
========================================= */

.website-thumbnail.default-thumbnail::before {

  content: "";

  position: absolute;

  inset: 0;

  background-image:

    radial-gradient(
      rgba(255,255,255,0.7) 1px,
      transparent 1px
    );

  background-size:
    40px 40px;

  opacity: 0.25;
}

/* =========================================
   DEFAULT GRASS
========================================= */

.website-thumbnail.default-thumbnail::after {

  content: "";

  position: absolute;

  bottom: 0;
  left: 0;

  width: 100%;
  height: 50px;

  background:

    linear-gradient(
      to top,
      rgba(121,184,109,0.8),
      transparent
    );
}

/* ==================================================
   CARD CONTENT
================================================== */

.website-content {

  padding: 24px;
}

.website-title {

  font-size: 1.3rem;

  margin-bottom: 12px;
}

.website-description {

  color: var(--muted);

  line-height: 1.7;

  margin-bottom: 20px;
}

.website-actions {

  display: flex;

  gap: 14px;

  flex-wrap: wrap;
}

.website-link {

  padding:
    10px 18px;

  border-radius: 12px;

  text-decoration: none;

  font-size: 0.95rem;
  font-weight: bold;

  transition: var(--transition);
}

.website-link.primary {

  background: var(--primary);

  color: #102033;
}

.website-link.primary:hover {

  background: var(--primary-hover);
}

.website-link.secondary {

  background:
    rgba(255,255,255,0.08);

  color: var(--text);
}

.website-link.secondary:hover {

  background:
    rgba(255,255,255,0.14);
}

/* ==================================================
   FOOTER
================================================== */

.footer {

  width: 92%;

  margin:
    80px auto 40px;

  padding:
    30px;

  border-radius: 24px;

  background:
    rgba(49,70,95,0.55);

  border:
    1px solid rgba(255,255,255,0.08);

  text-align: center;

  color: var(--muted);
}

/* ==================================================
   CONTAIN MEDIA
================================================== */

.contain-media img,
.contain-media video {

  object-fit: contain !important;

  background:

    linear-gradient(
      to bottom,
      #24354d,
      #1a2433
    );
}

/* ==================================================
   HIGH QUALITY MEDIA
================================================== */

.high-quality img,
.high-quality video {

  image-rendering: auto;

  filter:
    contrast(1.02)
    saturate(1.03);
}

/* ==================================================
   RESPONSIVE DESIGN
================================================== */

@media (max-width: 900px) {

  .hero {

    min-height: clamp(320px, 55vw, 500px);
  }

  .hero-content {

    padding: 40px 28px;
  }

  .hero-title {

    font-size: 3rem;
  }
}

@media (max-width: 700px) {

  .navbar {

    flex-direction: column;

    gap: 16px;

    padding: 16px;
  }

  .logo {

    font-size: 1.2rem;
  }

  .logo img {

    width: 52px;
    height: 52px;
  }

  .nav-links {

    gap: 10px;

    justify-content: center;
  }

  .nav-links a {

    font-size: 0.95rem;

    padding: 8px 10px;
  }

  .hero {

    min-height: clamp(280px, 65vw, 460px);

    border-radius: 28px;
  }

  .hero-title {

    font-size: 2.4rem;
  }

  .hero-text {

    font-size: 1rem;
  }

  .section-title {

    font-size: 1.7rem;
  }
}

@media (max-width: 500px) {

  .hero-buttons,
  .website-actions {

    flex-direction: column;
  }

  .hero-btn,
  .website-link {

    width: 100%;
  }
}