/* General Styles */
:root {
    --primary-color: #c0392b; /* Darker shade of red */
    --secondary-color: #e74c3c; /* Red gradient */
    --accent-color: #e67e22; /* Orange for buttons */
    --background-color: #f8d7da; /* Lighter background */
    --text-color: #34495e; /* Darker text color */
    --light-gray: #7f8c8d; /* Softer color for paragraphs */
    --white: #ffffff; /* White color for cards and text */
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    color: var(--primary-color);
    margin: 20px 0;
    font-size: 28px;
    animation: fadeIn 0.8s ease;
}

p {
    color: var(--light-gray);
    font-size: 16px;
}

/* Home Button */
.header {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    padding: 15px 0;
    animation: slideIn 0.5s ease;
}

.btn-home {
    color: var(--white);
    text-decoration: none;
    font-size: 22px;
    padding: 15px 30px;
    background: linear-gradient(90deg, #ff6b6b, #ff3f3f);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    animation: pulse 1s infinite;
    outline: none; /* Remove default focus outline */
}

.btn-home:hover {
    background: linear-gradient(90deg, #ff3f3f, #ff6b6b);
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-home:focus {
    box-shadow: 0 0 5px var(--primary-color); /* Add focus outline */
}

.btn-home:active {
    transform: scale(0.95);
}

/* Product Showcase */
.product-showcase {
    padding: 40px 20px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    animation: fadeIn 0.8s ease;
}

.product-card {
    background-color: var(--white);
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    margin: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.1);
}

.product-card h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin: 15px 0;
}

.product-card p {
    color: var(--text-color);
    font-size: 15px;
}

/* Button styles */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 5px var(--accent-color); /* Add focus outline */
}

/* Footer */
.footer {
    background-color: var(--white);
    color: rgb(0, 0, 0);
    padding: 30px 0;
    margin-top: 30px;
}

.footer p {
    margin: 0;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        width: 90%;
    }

    .btn-home {
        font-size: 16px;
        padding: 10px 20px;
    }

    h1 {
        font-size: 24px;
    }

    .footer p {
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Automatic Animation for Product Cards */
@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-2px, 0); }
    50% { transform: translate(2px, 0); }
    75% { transform: translate(-2px, 0); }
    100% { transform: translate(0); }
}

/* Applying Shake Animation to Product Cards */
.product-card:hover {
    animation: shake 0.5s ease forwards;
}

/* Automatic Transition for Product Grid */
.product-grid {
    animation: fadeIn 0.8s ease;
}
