/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and general styles */
body {
  font-family: 'Roboto', 'Arial', sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  line-height: 1.6;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/background-texture.jpg');
  background-attachment: fixed;
  background-size: cover;
  cursor: url('images/sword-cursor.png'), auto;
}

/* Links and buttons inherit the custom cursor */
a, button, input[type="submit"], input[type="button"] {
  cursor: url('images/sword-cursor.png'), pointer;
}

/* Navigation */
.navbar {
  background-color: #111;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem;
  background-color: rgba(17, 17, 17, 0.95);
}

.logo img {
  width: 150px;
  height: 150px;
  transition: transform 0.3s, width 0.3s ease, height 0.3s ease;
  object-fit: contain; /* Ensure logo scales properly */
}

.navbar.scrolled .logo img {
  width: 100px;
  height: 100px;
}

.logo img:hover {
  transform: scale(1.1);
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-list li a {
  color: #C0C0C0;
  text-decoration: none;
  font-size: 1.2rem;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-list li a:hover {
  color: #ff4d4d;
  text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #C0C0C0;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero img, .hero h1, .hero p {
  position: relative;
  z-index: 2;
}

.hero img {
  width: 150px;
  height: 150px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.5));
  animation: fadeIn 1s ease-in;
}

.hero h1 {
  font-size: 5rem;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
  color: #C0C0C0;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
  animation: fadeIn 1s ease-in 0.3s;
}

.hero p {
  font-size: 1.8rem;
  max-width: 600px;
  color: #ccc;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-in 0.6s;
}

/* Animation for hero elements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Recent Matches Section */
.recent-matches {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 8px;
  margin-top: 2rem;
  border: 1px solid #C0C0C0;
}

.match-container {
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem 0;
}

.match-container::-webkit-scrollbar {
  width: 8px;
}

.match-container::-webkit-scrollbar-track {
  background: #222;
  border-radius: 4px;
}

.match-container::-webkit-scrollbar-thumb {
  background: #ff4d4d;
  border-radius: 4px;
}

.match-container::-webkit-scrollbar-thumb:hover {
  background: #e03e3e;
}

.match-card {
  background-color: #333;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #C0C0C0;
  transition: box-shadow 0.3s;
  width: 100%;
}

.match-card:hover {
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
}

.match-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #C0C0C0;
  font-family: 'Impact', sans-serif;
  margin-top: 0;
}

.match-card p {
  color: #ccc;
}

/* Match Schedule Section */
.match-schedule {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 8px;
  margin-top: 2rem;
  border: 1px solid #C0C0C0;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th, .schedule-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #C0C0C0;
}

.schedule-table th {
  background-color: #333;
  color: #ff4d4d;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
}

.schedule-table td {
  color: #ccc;
}

/* Team Highlights Section */
.team-highlights {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 8px;
  margin-top: 2rem;
  border: 1px solid #C0C0C0;
  text-align: center;
}

.team-highlights iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border: none;
  border-radius: 8px;
}

/* Sponsors Section */
.sponsors {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 8px;
  margin-top: 2rem;
  border: 1px solid #C0C0C0;
  text-align: center;
}

.sponsor-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sponsor-card {
  background-color: #333;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #C0C0C0;
  transition: transform 0.3s;
}

.sponsor-card img {
  width: 150px;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.sponsor-card:hover {
  transform: scale(1.05);
}

.sponsor-card img:hover {
  filter: grayscale(0%);
}

/* Contact Form */
.contact-form {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 8px;
  margin-top: 200px;
  border: 1px solid #C0C0C0;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  color: #C0C0C0;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #C0C0C0;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  padding: 0.5rem;
  background-color: #ff4d4d;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
  width: fit-content;
  align-self: center;
}

.contact-form button:hover {
  background-color: #e03e3e;
}

.contact-form .form-feedback {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 8px;
  margin-top: 200px;
  border: 1px solid #C0C0C0;
}

h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #ff4d4d;
  text-align: center;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Subheadings for Roster Sections */
h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  color: #C0C0C0;
  text-align: center;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Page */
.about-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.about-content img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  border: 2px solid #C0C0C0;
  filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.3));
}

.about-content p {
  flex: 1;
  color: #ccc;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Roster Page */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.player-card {
  background-color: #333;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #C0C0C0;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  max-width: 200px;
}

.player-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
}

.player-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #ff4d4d;
}

.player-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #C0C0C0;
  font-family: 'Impact', sans-serif;
  margin-top: 0;
  word-break: break-word;
}

.player-card p {
  color: #ccc;
  font-size: 0.9rem;
}

/* Player Profile Page */
.profile-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.profile-content img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ff4d4d;
  filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.3));
}

.profile-details {
  flex: 1;
}

.profile-details h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #C0C0C0;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  text-align: left;
  margin-top: 0;
}

.profile-details p {
  color: #ccc;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.profile-details .stats {
  background-color: #333;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #C0C0C0;
  margin-bottom: 1rem;
}

.profile-details .stats p {
  margin: 0.5rem 0;
}

.profile-details .social-links {
  display: flex;
  gap: 1rem;
}

.profile-details .social-links a {
  color: #C0C0C0;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.profile-details .social-links a:hover {
  color: #ff4d4d;
}

/* News Page */
.news-article {
  background-color: #333;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #C0C0C0;
  transition: box-shadow 0.3s;
}

.news-article:hover {
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
}

.news-article h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #C0C0C0;
  font-family: 'Impact', sans-serif;
  margin-top: 0;
}

.news-article p {
  color: #ccc;
}

/* Footer */
footer {
  background-color: #111;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 2px solid #ff4d4d;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0.1) 52%, transparent 52%), 
              linear-gradient(-45deg, transparent 48%, rgba(255, 0, 0, 0.2) 48%, rgba(255, 0, 0, 0.2) 52%, transparent 52%), 
              linear-gradient(45deg, transparent 48%, rgba(0, 0, 255, 0.2) 48%, rgba(0, 0, 255, 0.2) 52%, transparent 52%);
  opacity: 0.3;
  z-index: 0;
}

footer p, .social-links, .merch-link, .newsletter-form {
  position: relative;
  z-index: 1;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: #C0C0C0;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ff4d4d;
}

.merch-link {
  margin-top: 1rem;
}

.merch-link a {
  color: #C0C0C0;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.merch-link a:hover {
  color: #ff4d4d;
}

/* Newsletter Form */
.newsletter-form {
  margin-top: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form p {
  color: #C0C0C0;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.newsletter-form form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.5rem;
  border: 1px solid #C0C0C0;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  flex: 1;
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  background-color: #ff4d4d;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: 'Impact', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: #e03e3e;
}

.newsletter-feedback {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/background-texture.jpg'); /* Reinforce background */
    background-attachment: scroll; /* Adjust for mobile performance */
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: #111;
    padding: 1rem;
    text-align: center;
  }

  .nav-list.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .logo img {
    width: 100px;
    height: 100px;
  }

  .navbar.scrolled .logo img {
    width: 80px;
    height: 80px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.4rem;
  }

  .hero img {
    width: 100px;
    height: 100px;
  }

  section {
    margin-top: 150px;
    padding: 2rem 1rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-content img {
    width: 100px;
    height: 100px;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .sponsor-card img {
    width: 100px;
  }

  .schedule-table th, .schedule-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .team-highlights iframe {
    height: 300px;
  }

  .newsletter-form form {
    flex-direction: column;
  }

  .match-container {
    max-height: 200px;
  }

  .profile-content {
    flex-direction: column;
    align-items: center;
  }

  .profile-content img {
    width: 200px;
    height: 200px;
  }

  .profile-details h3 {
    text-align: center;
  }

  .roster-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .player-card {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/background-texture.jpg'); /* Reinforce for smaller screens */
  }

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

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

  .navbar {
    padding: 0.5rem;
  }

  .logo img {
    width: 80px;
    height: 80px;
  }

  .navbar.scrolled .logo img {
    width: 60px;
    height: 60px;
  }

  .nav-list li a {
    font-size: 1rem;
  }

  .player-card img {
    height: 150px;
  }

  .player-card h3 {
    font-size: 1.2rem;
  }

  section {
    margin-top: 120px; /* Adjust for smaller screens */
  }
}