/* Modern Reset & Base Styles */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #f72585;
    --dark: #242a38;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --success: #10b981;
    --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f7fa;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    line-height: 1.3;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary);
    border-radius: 50px;
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
}

.btn:hover:before {
    width: 100%;
}

/* Modern Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
}

.logo img,
.secondary-logo img {
    display: block;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    padding: 0.8rem 0;
    position: relative;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    visibility: visible;
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

/* Main Content Section Styling */
main {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 5%;
}

.page-header {
    text-align: center;
    margin-bottom: 4.5rem;
    position: relative;
}

.page-header:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.page-header p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Product Grid */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image:before {
    content: '';
    display: block;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
    font-weight: 600;
}

.product-info p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.product-price:before {
    content: '$';
    font-size: 1.2rem;
    margin-right: 2px;
    opacity: 0.8;
    font-weight: 500;
}

/* Modern Footer */
footer {
    background-color: var(--dark);
    color: white;
    position: relative;
    padding-top: 5rem;
    margin-top: 6rem;
}

footer:before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23242a38' d='M0,64L80,58.7C160,53,320,43,480,48C640,53,800,75,960,74.7C1120,75,1280,53,1360,42.7L1440,32L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 0 5% 4rem;
    position: relative;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-light);
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-weight: 300;
}

.footer-section a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
    font-weight: 300;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        height: auto;
        padding: 1rem 5%;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }

    .secondary-logo {
        display: none;
    }

    .page-header h1 {
        font-size: 2.3rem;
    }
}

@media screen and (max-width: 576px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.5rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-header:after {
        width: 60px;
        height: 3px;
    }
}

/* Add Font Import (optional - add this if you want Poppins font) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Animation for elements when they appear */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}