/* Basic Reset & Global Styles */
:root 
{   
    --primary-color: #0056b3; /* Darker blue for accents */
    --secondary-color: #6c757d; /* Grey for secondary text */
    --background-color: #f8f9fa; /* Light background */
    --card-background: #ffffff; /* White for cards/sections */
    --text-color: #343a40; /* Dark grey for main text */
    --heading-color: #212529; /* Even darker for headings */
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

body 
{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.container 
{
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 
{
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 30px;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover 
{
    color: darken(var(--primary-color), 10%);
}

section 
{
    padding: 80px 20px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

/* Header & Navigation */
header 
{
    background-color: var(--card-background);
    box-shadow: 0 2px 5px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

.cart-icon {
    display: flex;
    align-items: center;
}

.cart-icon .fas {
    margin-right: 5px;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
}

.burger div {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    background: linear-gradient(to right, #007bff, #00bfff);
    color: #fff;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    background-color: #28a745; /* Green for call to action */
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Product Grid */
.product-grid {
    text-align: center;
}

.filters {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filters select,
.filters input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    min-width: 150px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-light);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.product-card .price {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-card .add-to-cart {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-card .add-to-cart:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Cricketer Gallery */
#featured-cricketers {
    background-color: #f0f4f7;
}

.cricketer-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    justify-items: center;
}

.cricketer-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    padding: 15px;
    text-align: center;
}

.cricketer-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
}

.cricketer-card h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.cricketer-card p {
    font-size: 0.9em;
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--heading-color);
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default for mobile */
        text-align: center;
        margin-top: 15px;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .burger {
        display: flex;
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    section {
        padding: 50px 15px;
    }

    .hero-content p {
        font-size: 1em;
    }

    .filters {
        flex-direction: column;
    }

    .filters select,
    .filters input {
        width: 100%;
    }

    .product-list {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .cricketer-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

}

