*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
}

  body{
    font-family: "Montserrat", sans-serif;
    background: #101936;
  }
/* Hero Section Styles */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://static.vecteezy.com/system/resources/previews/026/952/013/non_2x/textured-soccer-game-field-with-neon-fog-center-midfield-created-with-generative-ai-technology-free-photo.jpeg') no-repeat center center/cover;
    color: #FFF;
    padding: 100px 0;
    text-align: center;
    /* clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); */
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.hero .btn {
    background-color: #e8c606;
    color: #1A1A1A;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s;
}

.hero .btn:hover {
    background-color: #FFC107;
    transform: scale(1.05);
}
section{
    min-height: 100vh;
}
@media screen and (max-width: 620px) {
    .hero-heading {
         font-size: 2.3rem !important;
         line-height: normal;
     }
 }
 
/* Player Gallery Section */
.player-gallery-section {
    /* background-color: #101c48; Light background */
    padding: 30px;
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

/* Search and Filter */
.player-search-filter {
    display: flex;
    justify-content: center; /* Center the search/filter */
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.player-search-input, .player-team-filter {
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Increased font size */
}

.player-filter-button {
    background-color: #dcd808; /* Green button */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px; /* Increased font size */
}

.player-filter-button:hover {
    background-color: #cfcc16; /* Darker green on hover */
}

/* Player List */
.player-list {
    display: grid; /* Use grid layout for uniformity */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive cards */
    gap: 20px; /* Space between cards */
}

/* Player Card */
.player-card {
    position: relative; /* Position relative for absolute child */
    overflow: hidden; /* Hide overflow */
    border-radius: 8px; /* Rounded corners */
    cursor: pointer; /* Pointer on hover */
    height: 300px; /* Fixed height for uniformity */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s; /* Smooth transition */
    color: #fff;
}

.player-card img {
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    object-fit: cover; /* Cover image */
}

/* Overlay for text on hover */
.player-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay */
    opacity: 0; /* Invisible by default */
    transition: opacity 0.3s; /* Smooth transition */
}

.player-card:hover::after {
    opacity: 1; /* Show overlay on hover */
}

.player-card .player-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center text */
    color: #fff; /* White text */
    text-align: center;
}

.player-card h3 {
    margin: 0;
    font-family: 'Arial', sans-serif;
    font-size: 1.2em; /* Slightly larger title */
}

.player-card p {
    margin: 0;
    font-size: 0.9em; /* Slightly smaller text */
}

/* Hover Effects */
.player-card:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow */
}

/* Modal Styles */
.player-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Darker background for contrast */
    backdrop-filter: blur(8px); /* Subtle blur effect */
}

.player-modal-content {
    background-color: #0f0f41; /* White background for content */
    margin: 5% auto;
    padding: 30px; /* Increased padding for better spacing */
    width: 90%;
    max-width: 600px; /* Limit max width for larger screens */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 6px 30px rgb(0 91 255 / 44%);; /* Soft shadow for depth */
    animation: fadeIn 0.5s; /* Fade in animation */
    text-align: center; /* Center align text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-image-container {
    width: 250px;
    height: 250px; /* Fixed height for uniformity */
    overflow: hidden; /* Hide overflow */
    border-radius: 10px; /* Rounded corners for image container */
    margin-bottom: 20px; /* Space below the image */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Light gray background for contrast */
    box-shadow: 0 0 30px #0d2e8994;
}

.player-modal-image {
    width: 100%; /* Make image responsive */
    height: 100%; /* Make image responsive to container */
    object-fit: cover; /* Crop image to fit */
}

.player-close-button {
    color: #cac300; /* Red color for close button */
    float: right;
    align-self: flex-end;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s; /* Smooth color transition */
}

.player-close-button:hover {
    color: #ff0000; /* Darker red on hover */
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Additional Styling for Text */
.player-modal-name {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
    color: white;
}

.player-modal-biography, .player-modal-stats, .player-modal-team, .player-modal-position {
    font-size: 16px;
    margin: 5px 0;
    text-align: justify;
    color: #cdcbcb; /* Dark gray text for better readability */
}

