/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --accent-color: #ff5722;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #555;
    --white: #fff;
    --black: #000;
    --container-width: 1200px;
    --font-family: 'Poppins', sans-serif;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 60px 0;
}

.cta-button, button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover, button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Header Styles */
header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Product Showcase Section */
.product-showcase {
    background-color: var(--white); /* Changed from light-gray for a cleaner look */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.product-card a {
    color: var(--text-color);
}

.product-card img {
    width: 100%;
    height: 250px; /* Consistent image height */
    object-fit: cover; /* Ensures images cover the area without distortion */
}

.product-card .product-info {
    padding: 20px;
    text-align: center;
}

.product-card .product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card .product-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.product-card .product-info .category {
    font-size: 0.9rem;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--secondary-color);
}

/* Footer Styles */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-weight: 500;
}

.social-links a:hover {
    color: var(--light-gray);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    .hero-image {
        order: -1; /* Image first on smaller screens */
    }
    .hero-content h2 {
        font-size: 2.5rem;
        text-align: center;
    }
    .hero-content p {
        text-align: center;
    }
    .hero-content .cta-button {
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    .menu-toggle {
        display: flex;
    }
    nav ul {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on header height */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    nav ul.active {
        left: 0;
    }
    nav ul li {
        margin: 10px 0;
    }
    footer .container {
        flex-direction: column;
        gap: 10px;
    }
    .social-links a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    .product-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
