/* ===== GLOBAL STYLES ===== */
body {
  color: grey;
  text-align: center;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ===== PAGE-SPECIFIC BACKGROUNDS ===== */
.home-page {
  background-image: url('mascot.png');
  background-size: 800px;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.shop-page {
  background-image: url('background-shop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.about-page {
  background-image: url('background-about.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.contact-page {
  background-image: url('background-contact.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* ===== NAVIGATION ===== */
nav {
  background-color: rgba(0, 0, 255, 0.9);
  padding: 10px;
}

nav a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
}

nav a:hover {
  color: white;
}

/* ===== HEADINGS ===== */
h1 {
  color: blue;
}

/* ===== BUTTONS ===== */
button,
.buy-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: red;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

button:hover,
.buy-button:hover {
  background-color: darkred;
  color: white;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px auto;
  width: 90%;
  max-width: 1400px;
}

/* Product cards */
.product {
  border: 2px solid blue;
  padding: 20px;
  border-radius: 12px;
  background-color: rgba(0, 0, 50, 0.85);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.product img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  object-fit: contain;
}

/* Product text */
.product h2 {
  color: red;
  margin: 12px 0 5px;
  font-size: 1.2rem;
}

.product p {
  margin: 5px 0 10px;
  font-size: 1rem;
  color: #fff;
}

/* Buttons */
.buy-button {
  display: inline-block;
  background-color: red;
  color: black;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s;
}

.buy-button:hover {
  background-color: darkred;
  color: white;
}

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

/* Tablets (2–3 columns) */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .product h2 {
    font-size: 1.1rem;
  }
}

/* Mobile (1–2 columns) */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }

  .product {
    padding: 15px;
  }

  .product img {
    max-width: 150px;
  }

  .product h2 {
    font-size: 1rem;
  }

  .product p {
    font-size: 0.9rem;
  }

  .buy-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background-image: url('background-home.jpg'); /* your background */
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.hero-content {
  background: rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  background-color: red;
  color: black;
  padding: 12px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: darkred;
  color: white;
}

/* ===== FEATURED SECTION ===== */
.features {
  padding: 60px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
}

.features h2 {
  color: orange;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background-color: rgba(0, 0, 50, 0.8);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.feature-item img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.feature-item h3 {
  color: red;
  margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
  background-color: rgba(0, 0, 255, 0.9);
  color: black;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE HERO ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 15px;
  }

  .hero-content {
    padding: 25px;
  }

  .cta-button {
    padding: 10px 20px;
  }
}

/* ===== HOME PAGE ===== */
.home-page {
  background-image: url('mascot.png'); /* Replace with your image name */
  background-size: contain;
  background-color: grey;             /* ✅ Added missing semicolon */
  background-position: center center;  /* Centers it */
  background-repeat: no-repeat;
  background-attachment: scroll;       /* Moves with the page */
  min-height: 100vh;
  position: relative;
  text-align: center;
  padding: 0 20px;
  color: white;
  overflow: auto;
}

/* Overlay for readability */
.home-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Ensure content stays clickable and visible */
.home-page h1,
.home-page p,
.home-page button,
.home-page a,
nav {
  position: relative;
  z-index: 1;
}

/* Add dark overlay for readability */
.home-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Adjust opacity for darkness */
  z-index: 0;
}

/* Make sure text and buttons stay visible above overlay */
.home-page h1,
.home-page p,
.home-page button,
nav {
  position: relative;
  z-index: 1;
}

/* Home text styling */
.home-page h1 {
  font-size: 2.8rem;
  color: orange;
  margin-bottom: 15px;
}

.home-page p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 700px;
  color: #f1f1f1;
  margin-bottom: 20px;
}

/* Home button */
.home-page button {
  margin-top: 10px;
  background-color: red;
  color: black;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.home-page button:hover {
  background-color: darkred;
  color: white;
  transform: scale(1.05);
}

/* Mobile readability improvements */
@media (max-width: 768px) {
  .home-page h1 {
    font-size: 2rem;
  }
  .home-page p {
    font-size: 1rem;
    padding: 0 10px;
  }
  .home-page button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* ===== ABOUT PAGE ===== */
.about-page {
  background-image: url('mascot.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: white;
  text-align: center;
  padding-bottom: 60px;
}

.about-hero {
  background: rgba(0, 0, 0, 0.7);
  padding: 80px 20px 40px;
}

.about-hero h1 {
  font-size: 2.5rem;
  color: orange;
  margin-bottom: 10px;
}

.about-hero .tagline {
  font-style: italic;
  color: #ccc;
  font-size: 1.2rem;
}

.story, .bio {
  background: rgba(0, 0, 50, 0.8);
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  text-align: left;
}

.story h2, .bio h2 {
  color: red;
  text-align: center;
  margin-bottom: 15px;
}

.story p, .bio p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #f1f1f1;
}

.story a, .bio a {
  color: orange;
  text-decoration: underline;
}

.logos {
  margin-top: 50px;
}

.logo-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-logo {
  width: 200px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  transition: transform 0.3s ease;
}

.about-logo:hover {
  transform: scale(1.08);
}

/* ===== SCROLL FADE-IN EFFECTS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  background-image: url('mascot.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  text-align: center;
  min-height: 100vh;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

.contact-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* 0.6 = darker overlay, adjust as needed */
  z-index: 0;
}

/* Make all page content appear above the overlay */
.contact-page nav,
.contact-page h1,
.contact-page p,
.contact-page form,
.contact-page footer,
.contact-page section {
  position: relative;
  z-index: 1;
}

.contact-hero {
  background: rgba(0, 0, 0, 0.7);
  padding: 80px 20px 40px;
}

.contact-hero h1 {
  font-size: 2.5rem;
  color: orange;
}

.contact-hero p {
  color: #ccc;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Form section */
.contact-form-section {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.contact-form {
  background-color: rgba(0, 0, 50, 0.85);
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: bold;
  color: orange;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

textarea {
  resize: none;
}

.send-button {
  background-color: red;
  color: black;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.send-button:hover {
  background-color: darkred;
  color: white;
}

/* Extra Section */
.contact-extra {
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.7);
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-extra a {
  color: orange;
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .contact-form {
    padding: 25px;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }
}
