
:root {
    --primary-color: #6a11cb; 
    --secondary-color: #2575fc; 
    --accent-color: #ff6f61; 
    --background-light: #f0f4f8; 
    --background-dark: #1a1a2e; 
    --text-light: #e0e0e0; 
    --text-dark: #333333;
    --card-background: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
    --border-radius: 15px; 
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    animation: fadeInDown 1s ease-in-out;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    font-weight: 600;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons i {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.header-icons i:hover {
    color: var(--accent-color);
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: var(--border-radius);
}

.search-bar input {
    border: none;
    background: transparent;
    color: var(--text-light);
    outline: none;
    padding: 5px;
    width: 200px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 100px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    font-size: 3.5rem;
    margin: 0;
    animation: fadeInDown 1s ease-in-out;
}

.hero p {
    font-size: 1.5rem;
    margin: 20px 0;
    animation: fadeInUp 1s ease-in-out;
}

.hero button {
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 0 20px;
}

.filters select {
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    font-size: 1rem;
    cursor: pointer;
    background: var(--card-background);
    color: var(--text-dark);
}

.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 20px;
    gap: 20px;
}

.product {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    width: 280px;
}

.product::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.product:hover::before {
    opacity: 0.1;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product img {
    max-width: 100%;
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.product:hover img {
    transform: scale(1.1);
}

.product h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 15px 0;
}

.product p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product button {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

.wishlist-icon.active {
    color: var(--accent-color);
}


.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta p {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    animation: fadeInUp 1s ease-in-out;
}

.cta button {
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 50px 20px;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 1.2rem;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}
.created-by {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.created-by a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.created-by a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.created-by a:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.created-by a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .cta p {
        font-size: 2rem;
    }

    .product {
        width: 100%;
        margin: 10px 0;
    }
}
