/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}
/* 2. Remove default margin */
* {
  margin: 0;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
#root, #__next {
  isolation: isolate;
}
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

:root {
    --font-lexend: 'Lexend', sans-serif;
    --font-rocksalt: 'Rock Salt', cursive;
    --neon: #A9F500;
    --purple:#3C2D4A;
    --black: #131313;
    --white: #F4F4F4;
    --soft-gray: #CCC;
    --gray: #8D8D8D;
    --dark-gray: #2E2E2E;
    --red: #BA2D2B;
    --orange: #E67C1F; 
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.12);
    --shadow-soft-hover: 0 18px 45px rgba(15, 23, 42, 0.18);
    --radius-card: 1rem;
    --small-img-height: 250px;
    --medium-img-height: 750px;
    --button-padding: 0.75rem 1.5rem;
    --button-width: 300px;
    --button-height: 100px;
    --icon-height: 100px;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

h1 {
    font-family: var(--font-rocksalt);
    font-size: 4rem;
    color: var(--neon);
}

h2 {
    font-family: var(--font-lexend);
    font-size: 2.5rem;
    color: var(--white);
}

h3 {
    font-family: var(--font-lexend);
    font-size: 1.5rem;
    color: var(--white);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-lexend);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/background.jpeg") center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: -100;
}

p {
  padding-left: 3rem;
  padding-right: 3rem;
}

small {
    font-size: 0.75rem;
    color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  border-radius: 0;
}

.pick-img {
    height: 100px;
    margin: 2rem 0;
}

li {
  list-style-position: inside;
}

.feature-font {
    color: var(--neon);
}

.header-button {
    background-color: var(--neon);
    color: var(--black);
    padding: var(--button-padding);
    width: var(--button-width);
    height: var(--button-height);
    font-size: 2.5rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#contact {
    background-color: var(--dark-gray);
    outline: 2px solid var(--neon);
    color: var(--white);
}

#contact:hover,
.header-button:hover {
    box-shadow: var(--shadow-soft-hover);
    transform: translateY(-5px);
}

section {
    margin: 4rem 2rem;
}

article {
    margin-bottom: 2rem;
    gap: 2rem;
    align-items: center;
    width: 350px;
}

div p {
    color: var(--black);
}

#package-1 {
    background-color: var(--neon);
    padding: 1rem;
}

#package-2 {
    background-color: var(--orange);
    padding: 1rem;
}

#package-3 {
    background-color: var(--red);
    padding: 1rem;
}

.cards {
    color: var(--black);
    font-size: 3rem;
    text-shadow: none;
}

#footer-info {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin: 0;
}

#contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  background-color: var(--neon);
  padding: 2rem;
  color: var(--black);
  flex-wrap: wrap;
}

#footer-font {
    color: var(--dark-gray);
    font-size: 4.5rem;
    margin-bottom: 3rem;
}

#follow {
    font-family: var(--font-rocksalt);
    font-size: 2rem;
    color: var(--neon);
    margin-top: 2rem;
}

/* HERO / HEADER */
#header {
  position: relative;
  min-height: 80vh;
  background-image: url("../images/GrungeBassCo_HeroImage.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
}

#header-container {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 3rem 4rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  align-items: center;
}

#header-container h1 {
  align-self: start;
  justify-self: flex-start;
}

.button-row {
  margin-top: auto;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.product-info {
  align-self: end;
  justify-self: end;
  text-align: right;
  margin-top: 0;
}

/* NAV BAR + HAMBURGER */
#nav-bar {
  position: sticky;
  height: 65px;
  top: 0;
  z-index: 1000;
  background: var(--neon);
  box-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#nav-bar ul {
  display: flex;
  justify-content: center;
  gap: 6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  margin-top: .5rem;
}

.nav-link {
  font-family: var(--font-lexend);
  font-size: 1.75rem;
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  line-height: 1;
}

.nav-link:hover {
  color: var(--red);
}

#nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--dark-gray);
  border-radius: 8px;
  padding: 6px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

#nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon);
  border-radius: 2px;
}

/* BASS IMAGE GRID */
#bass-images {
  max-width: 1200px;
  margin: 4rem auto 10rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.5rem;
}

#bass-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

#bass-img-1 {
  grid-column: 1 / 3;
}

#bass-img-2 {
  grid-column: 1 / 2;
}

#bass-img-3 {
  grid-column: 1 / 2;
}

#bass-img-4 {
  grid-column: 2 / 3;
  grid-row: 2 / 4;
  object-fit: contain;
}

/* FEATURES */
#features-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  margin: 4rem auto 10rem;
  max-width: 1200px;
  padding: 0 2rem;
}

#feature-1,
#feature-2,
#feature-3 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

#features-section img {
  max-width: 600px;
  height: auto;
}

#feature-list {
  margin: 0 auto;
  text-align: left;
  width: 100%;
}

#feature-list h2 {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}

#feature-list ul {
  display: flex;
  justify-content: center;
  font-size: 1.75rem;
  gap: 10rem;
  margin-top: 3rem;
}

ul li {
  margin-bottom: 3rem;
}

#list-divider-1, #list-divider-2 {
  max-width: 30rem;
}

.video-container {
  width: 100%;
  max-width: 1050px;
  margin: 5rem auto 10rem;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

.video-container {
  display: flex;
  justify-content: center; /* Centers content horizontally */
  align-items: center;    /* Centers content vertically */
}

/* PACKAGES */
.article-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 1.5rem;
}

/* MAKE ALL CARDS SAME HEIGHT */
.article-container article {
  width: 320px;
  height: 675px;          /* <-- controls total card height */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* pushes pick to the bottom */
  gap: 1rem;
}

.article-container .cards {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

#packages-section p {
  margin: 0;
  line-height: 1.4;
  font-style: 600;
}

.package-img {
  width: 220px;
  height: auto;
  align-self: center;
}

.package-align {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

#intermediate1,
#intermediate2 {
  height: 200px;
  width: auto;
}

.pick-img {
  width: 80px;
  height: auto;
  align-self: center;
  margin-top: auto;
  margin-bottom: 15px;
}

@keyframes card-shake {
  0%   { transform: translateX(0) rotate(0deg); }
  20%  { transform: translateX(-3px) rotate(-1deg); }
  40%  { transform: translateX(3px) rotate(1deg); }
  60%  { transform: translateX(-3px) rotate(-1deg); }
  80%  { transform: translateX(3px) rotate(1deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

.article-container article {
  transition: transform 0.15s ease-out;
}

.article-container article:hover {
  animation: card-shake 0.4s ease-in-out;
}

.package-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* SPECS TABLE */
table {
  background-color: var(--purple);
  margin: 20px auto;
  border-collapse: collapse;
  border-spacing: 20px;
  margin-bottom: 10rem;
}

td {
    padding: 20px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: var(--black);
}

tr:hover {
    background-color: var(--neon);
    color: var(--black);
}

/* CONTACT FORM */
#form input[type="text"],
#form input[type="email"] {
  flex: 1;
  padding: 1.5rem 1.5rem;
  font-size: 1.4rem;
  border: none;
  border-radius: 4px;
  background-color: var(--soft-gray);
  color: var(--black);
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

::placeholder {
  color: var(--black);
  font-size: 25px;
  padding-left: 15px;
  opacity: 0.8;
}

#form {
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  align-items: flex-start;
  margin-bottom: 20px;
}

#join {
  color: var(--white);
  background-color: var(--dark-gray);
  font-size: 55px;
  height: 100px;
  width: 300px;
  border-color: var(--neon);
  border-radius: 6px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

#join-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

#join:hover {
  transform: translateY(-5px);
}

#social-icons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.social-icon {
  height: auto;
  width: 40px;
}

#footer-links {
  word-spacing: 25px;
}

.footer-divider {
  height: 140px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--dark-gray) 0,
    var(--dark-gray) 16px,
    var(--neon) 16px,
    var(--neon) 32px
  );
}

#description-text {
  margin-left: 3rem;
  font-size: 20px;
  margin-top: 3rem;
  margin-bottom: 8rem;
}

/* SMALL EXTRA WIDTH TWEAK */
@media (max-width: 540px) {
  #bass-images {
    max-width: 90%;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {

  /* HERO */
  #header {
    min-height: auto;
    padding-bottom: 2rem;
    align-items: flex-start;
  }

  #header-container {
    padding: 2rem 1.5rem;
    grid-template-rows: auto auto auto;
    row-gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  #header-container h1 {
    font-size: 2.7rem;
    justify-self: center;
  }

  .button-row {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .header-button {
    width: 80%;
    max-width: 320px;
    height: auto;
    font-size: 1.5rem;
  }

  .product-info {
    align-self: center;
    justify-self: center;
    text-align: center;
    margin-top: 0.5rem;
  }

  .product-info h2 {
    font-size: 2rem;
  }

  .product-info h3 {
    font-size: 1.2rem;
  }

#nav-bar {
  position: sticky;
  top: 0;
  background: transparent;
  box-shadow: none;
  height: auto;
  padding: 1rem 0;
  margin-left: 1rem;
}

  .nav-inner {
    max-width: none;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
  }

  #nav-toggle {
    display: flex;
  }

#nav-bar ul {
  display: none;
  position: static;
  width: 50%;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0 1rem;
  background: rgba(0, 0, 0, 0.9);
  list-style: none;
}

  #nav-bar.open ul {
    display: flex;
  }

  .nav-link {
    font-size: 1.4rem;
    color: var(--neon);
  }

  /* BASS IMAGE GRID – same layout as desktop, just tighter */
  #bass-images {
    max-width: 95%;
    margin: 2rem auto 4rem;
    gap: 0.75rem;
  }

  #bass-images img {
    object-fit: cover;
  }

  /* FEATURES – stack image and text */
  #features-section {
    max-width: 100%;
    padding: 0 1.25rem;
    gap: 3rem;
    margin-bottom: 4rem;
  }

  #feature-1,
  #feature-3 {
    flex-direction: column;
    text-align: center;
  }

  #feature-2 {
    flex-direction: column-reverse;
    text-align: center;
  }

  #features-section img {
    max-width: 100%;
  }

  #feature-1 h2,
  #feature-2 h2,
  #feature-3 h2 {
    margin-top: 1rem;
    font-size: 1.4rem;
  }

  /* DESCRIPTION */
  #description-text {
    margin: 2rem 1.25rem 3rem;
    font-size: 1rem;
    padding-left: 0;
    padding-right: 0;
    align-self: center;
  }

  /* FEATURE LIST */
  #feature-list ul {
    display: block;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 1.1rem;
    margin-top: 2rem;
  }

  #list-divider-1,
  #list-divider-2 {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  ul li {
    margin-bottom: 1.25rem;
  }

  /* SPECS TABLE */
  table {
    width: 100%;
    font-size: 0.9rem;
    margin: 2rem auto 4rem;
  }

  tr {
    display: block;
    margin-bottom: 0.75rem;
  }

  td {
    display: block;
    padding: 0.6rem 1.25rem;
  }

  /* CONTACT FORM */
  #contact-section {
    padding: 2.5rem 1.5rem;
  }

  #footer-font {
    font-size: 2.6rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  #form {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  #form input[type="text"],
  #form input[type="email"] {
    width: 100%;
    padding: 1rem 1rem;
    font-size: 1.1rem;
    margin-bottom: -2.75rem;
  }

  ::placeholder {
    font-size: 1.1rem;
    padding-left: 0;
  }

  #join {
    width: 70%;
    max-width: 280px;
    font-size: 2rem;
    height: 70px;
  }

  #footer-links {
    word-spacing: 8px;
    font-size: 0.85rem;
    padding: 0 1rem;
  }
}