@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Bakbak+One&display=swap');

:root {
  /* Fonts */
  --font-sans: 'Poppins', sans-serif;
  --font-heading: 'Bakbak One', sans-serif;

  /* Colors */
  --bg-gradient: linear-gradient(135deg, #e0f7ee 0%, #d4eef8 25%, #e8e0f7 50%, #fce4d6 75%, #d9f5e3 100%);
  --text-dark: #0f172a;
  --text-light: #ffffff;
  --text-muted: #64748b;
  --text-green-dark: #274c00;
  --text-gold-dark: #5c3c00;

  /* Accent Colors */
  --accent-lime: #a2e800;
  --accent-lime-hover: #bbf81d;
  --accent-blue: #29b6f6;
  --accent-discord: #5865F2;
  
  /* Gradients */
  --gradient-play: linear-gradient(135deg, #b0f400 0%, #87cf00 100%);
  --gradient-vote: linear-gradient(135deg, #7ad3fc 0%, #3ca0df 100%);
  --gradient-discord: linear-gradient(135deg, #8c8bfb 0%, #5d5ae6 100%);
  --gradient-gold: #fed83a;

  /* Shadows */
  --shadow-card: 0 16px 36px rgba(18, 33, 54, 0.08);
  --shadow-card-hover: 0 24px 48px rgba(18, 33, 54, 0.16);
  --shadow-button: 0 6px 20px rgba(135, 207, 0, 0.4);
  --shadow-button-gold: 0 6px 20px rgba(254, 216, 58, 0.4);

  /* Layout Constants */
  --max-width: 1800px;
  --border-radius: 20px;
  --transition-default: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-default);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-default);
}

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


/* Floating Bees */
.floating-bee {
  position: absolute;
  z-index: 100;
  pointer-events: none;
  width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.bee-2 {
  bottom: 12%;
  right: 15%;
}

/* Hero Logo */
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-logo-img {
  height: 150px;
  width: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.12));
}

/* Hero Section */
.hero {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* 3-Column Symmetrical Grid Setup */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 20px;
  align-items: stretch;
  min-height: 600px;
}

.hero-column-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

/* Hero Cards */
.hero-card {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: var(--transition-default);
  cursor: pointer;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

/* Right Stack Cards */
.card-play-now {
  background: linear-gradient(135deg, #b0f400 0%, #5a9a00 100%);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: calc(50% - 8px);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.play-now-title {
  font-family: var(--font-heading);
  font-size: 62px;
  line-height: 1.1;
  text-shadow: 0 3px 0px rgba(0, 0, 0, 0.15);
  letter-spacing: 1px;
}

.play-now-top {
  position: relative;
  z-index: 2;
}

.play-triangle-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon-center {
  width: 80px;
  height: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: var(--transition-default);
}

.card-play-now:hover .play-icon-center {
  opacity: 0.7;
  transform: scale(1.1);
}

.card-vote {
  background: var(--gradient-vote);
  color: var(--text-light);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: calc(50% - 8px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.vote-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 2;
}

.vote-title {
  font-family: var(--font-heading);
  font-size: 62px;
  line-height: 1.1;
  text-shadow: 0 3px 0px rgba(0, 0, 0, 0.15);
  letter-spacing: 1px;
}

/* Centerpiece Banner Card */
.card-join {
  background: url('images/maxresdefault.jpg') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  height: 100%;
  cursor: default;
}

.card-join:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.join-content {
  max-width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.join-title {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1.25;
  text-shadow: 0 3px 0px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
}

.join-tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.btn-join-server {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-gold);
  color: var(--text-gold-dark);
  font-weight: 700;
  font-size: 18px;
  padding: 14px 36px;
  border-radius: 30px;
  box-shadow: var(--shadow-button-gold);
  align-self: flex-start;
}

.btn-join-server:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254, 216, 58, 0.6);
}


/* Right Stack Cards */
.card-shop {
  background: #fcd843; /* Solid yellow-gold */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 16px;
  height: calc(50% - 8px);
  text-align: center;
}

.shop-title {
  font-family: var(--font-heading);
  font-size: 62px;
  color: #fff;
  text-shadow: 0 3px 0px rgba(0, 0, 0, 0.15);
  letter-spacing: 1px;
}

.card-discord {
  background: var(--gradient-discord);
  color: var(--text-light);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: calc(50% - 8px);
}

.discord-top {
  position: relative;
  z-index: 2;
}

.discord-title {
  font-family: var(--font-heading);
  font-size: 62px;
  line-height: 1.1;
  text-shadow: 0 3px 0px rgba(0, 0, 0, 0.15);
  letter-spacing: 1px;
}

.discord-logo-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-logo-center {
  width: 120px;
  height: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: var(--transition-default);
}

.card-discord:hover .discord-logo-center {
  opacity: 0.7;
  transform: scale(1.1);
}

/* Modals & Popups */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
  animation: modalScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btn-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-muted);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 16px;
}

.modal-input:focus {
  border-color: var(--accent-blue);
  outline: none;
}

.btn-modal-submit {
  display: block;
  width: 100%;
  background: var(--text-dark);
  color: white;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
}

.btn-modal-submit:hover {
  background: var(--accent-blue);
}

.ip-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
}

.ip-text-val {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-dark);
  margin-right: 16px;
  letter-spacing: 0.5px;
}

.btn-copy-ip {
  background: var(--text-dark);
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 10px;
}

.btn-copy-ip:hover {
  background: var(--accent-blue);
  transform: translateY(-1px);
}

.btn-copy-ip.copied {
  background: var(--accent-lime);
  color: var(--text-green-dark);
}

/* How to Join Section */
.how-to-join {
  padding: 80px 0;
  text-align: center;
}

.htj-title {
  font-family: var(--font-heading);
  font-size: 56px;
  margin-bottom: 8px;
}

.htj-subtitle {
  color: var(--text-muted);
  font-size: 19px;
  margin-bottom: 48px;
}

.htj-steps {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 48px;
}

.htj-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.htj-step-number {
  width: 48px;
  height: 48px;
  background: var(--accent-lime);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.htj-step h3 {
  font-family: var(--font-heading);
  font-size: 20px;
}

.htj-step p {
  font-size: 15px;
  color: var(--text-muted);
}

.htj-screenshot {
  width: 280px;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.htj-ip-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: white;
  border-radius: var(--border-radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-card);
}

.htj-ip-text {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.5px;
}


/* Card Background Image System */
.card-bg-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.card-bg-img {
  position: absolute;
  left: -10px;
  top: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  object-position: center;
  transition: var(--transition-default);
}

.hero-card:hover .card-bg-img {
  transform: scale(1.05);
}

/* Ensure contents sit above background */
.shop-header, .vote-info {
  position: relative;
  z-index: 2;
}

/* Responsiveness Media Queries */

/* Large laptops / small desktops */
@media (max-width: 1300px) {
  .floating-bee { display: none; }

  .hero-logo { padding-top: 60px; padding-bottom: 50px; }
  .hero-logo-img { height: 100px; }

  .hero-grid {
    grid-template-columns: minmax(180px, 260px) 1fr minmax(180px, 260px);
    min-height: 420px;
  }

  .play-now-title,
  .vote-title,
  .shop-title,
  .discord-title { font-size: 44px; }

  .join-title { font-size: 40px; }
  .join-tagline { font-size: 17px; }
  .btn-join-server { font-size: 15px; padding: 10px 24px; }

  .play-icon-center { width: 60px; }
  .discord-logo-center { width: 80px; }

  .htj-title { font-size: 42px; }
  .htj-subtitle { font-size: 16px; }
  .htj-ip-text { font-size: 18px; }
}

/* Tablets */
@media (max-width: 900px) {
  .hero-logo { padding-top: 40px; padding-bottom: 30px; }
  .hero-logo-img { height: 80px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
  }

  .hero-column-stack {
    flex-direction: row;
    height: auto;
    gap: 20px;
  }

  .card-play-now, .card-vote, .card-shop, .card-discord {
    width: calc(50% - 10px);
    height: 180px;
  }

  .card-join {
    height: 280px;
    padding: 28px;
  }

  .join-content {
    max-width: 100%;
    margin-bottom: 0;
    gap: 12px;
  }

  .join-title { font-size: 34px; }
  .join-tagline { font-size: 15px; }

  .play-now-title,
  .vote-title,
  .shop-title,
  .discord-title { font-size: 36px; }

  .play-icon-center { width: 50px; }
  .discord-logo-center { width: 60px; }

  .htj-title { font-size: 34px; }
  .htj-subtitle { font-size: 15px; }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-logo { padding-top: 30px; padding-bottom: 20px; }
  .hero-logo-img { height: 60px; }

  .hero-column-stack {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .card-play-now, .card-vote, .card-shop, .card-discord {
    width: 100%;
    height: auto;
    min-height: 120px;
    padding: 20px;
  }

  .play-now-title,
  .vote-title,
  .shop-title,
  .discord-title { font-size: 30px; }

  .card-join {
    padding: 20px;
    height: auto;
    min-height: 200px;
  }

  .join-content {
    max-width: 100%;
    gap: 14px;
    margin-bottom: 0;
  }

  .join-title { font-size: 28px; }
  .join-tagline { font-size: 14px; }
  .btn-join-server { font-size: 14px; padding: 10px 22px; }

  .play-icon-center { width: 40px; }
  .discord-logo-center { width: 50px; }

  .htj-title { font-size: 28px; }
  .htj-subtitle { font-size: 14px; margin-bottom: 24px; }
  .htj-steps { flex-direction: column; gap: 24px; margin-bottom: 32px; }
  .htj-ip-text { font-size: 16px; }
}
