:root {
  /* Colour */
  --primary-color: hotpink;
  --primary-soft: rgba(255, 105, 180, 0.4);
  --primary-faint: rgba(255, 105, 180, 0.2);
  --background-color: #232b2b;
  --card-bg: #2c3434;
  --border-color: #3d3d3d;
  --text-body: #999;
  --text-muted: #bbb;
  --text-faint: #666;
  --white: #fff;

  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;

  /* Radius */
  --radius-card: 15px;
  --radius-pill: 25px;

  /* Motion */
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Arial', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--background-color);
  color: var(--text-body);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--white);
}

h1 {
  font-weight: 700;
  font-size: 5.2rem;
  line-height: 1.1;
  margin: 0 0 var(--space-lg);
}

a {
  color: var(--white);
  text-decoration: none;
}

img {
  width: 100%;
}

.showcase-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: rgba(35, 43, 43, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--primary-faint);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.showcase-top p {
  display: flex;
  gap: 30px;
  margin: 0;
}

.showcase-top a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.showcase-top a:hover {
  color: var(--primary-color);
}

.showcase,
.go-home {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: url("frontdoor.jpg") no-repeat center center / cover;
}

.showcase {
  height: 45vh;
  border-top: 3px solid var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.go-home {
  height: 25vh;
  margin-top: var(--space-xxl);
}

/* Frosting overlay */
.showcase::before,
.go-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(10px) brightness(0.5);
  transform: scale(1.1);
  z-index: 1;
}

/* Content sits above the frosting */
.showcase-content,
#showcase-more {
  position: relative;
  z-index: 2;
  text-align: center;
}

.btn-xl {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 1.2rem var(--space-xl);
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 1);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-xl:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px var(--primary-soft);
  color: var(--white);
}

.container {
  max-width: 90%;
  margin: auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.resource {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.resource:hover {
    transform: translateY(-5px)
}

.resource-title {
  font-size: 1.6rem;
  color: var(--white);
  font-weight: bold;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--primary-color);
}

.resource p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Call-to-action link, pinned to the bottom of the card */
.resource-link {
  margin-top: auto;
  margin-bottom: 0;
}

.resource-link a {
    display: flex;
    justify-content: center;   /* centres the text inside the flex box */
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
  }

.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg) var(--space-lg);
  background: var(--background-color);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-xl);
}

.footer p,
.footer b {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer b {
  display: block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
}

.footer a {
  color: var(--text-body);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-color);
  padding-left: 3px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (max-width: 450px) {
  h1 {
    font-size: 3rem;
  }

  .hide-sm {
    display: none;
  }
}

@media (min-width: 768px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
}