/* styles.css */

/* Custom Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.4rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Button Enhancements */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

header {
    background-image: url('images/hero.png'); /* Ensure this path is correct */
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* To ensure content is centered */
    color: white; /* Ensure text is visible over the image */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adds a dark overlay for better text visibility */
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3.5rem;
    font-weight: bold;
}

header p {
    font-size: 1.5rem;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 280px;
    object-fit: contain;
    padding: 20px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffc107 !important;
    text-decoration: none;
}

/* Social Media Icons */
.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

.social-icon:hover {
    background: #ffc107;
    color: #000 !important;
    transform: translateY(-3px);
}

/* Form Enhancements */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Accordion Enhancements */
.accordion-button {
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Shop Section Enhancements */
.shop-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.shop-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="%23ffffff" fill-opacity="0.05" width="50" height="50"/></svg>');
    opacity: 0.3;
}

.shop-section .container {
    position: relative;
    z-index: 1;
}

.shop-section h2 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.shop-section .lead {
    color: rgba(255,255,255,0.95) !important;
}

/* Product Cards in Shop Section */
.shop-section .card {
    border: 3px solid #ffc107;
    background: white;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.shop-section .card:nth-child(even) {
    transform: rotate(1deg);
}

.shop-section .card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: #ff6b35;
}

/* Price Badge Styling */
.price-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff6b35 100%);
    color: white;
    font-size: 1.8rem !important;
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    display: inline-block;
    transform: rotate(-5deg);
}

/* Shop Button Enhancements */
.btn-shop {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    color: white;
}

/* Animated Shop Icon */
.shop-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Product Card Button */
.btn-view-product {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Clickable Product Image Overlay */
.position-relative:hover .product-image-overlay {
    opacity: 1 !important;
}

.card-img-top {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem !important;
    }

    header p {
        font-size: 1.2rem !important;
    }

    .card-body {
        padding: 1rem;
    }

    section {
        padding: 2rem 0;
    }

    .price-badge {
        font-size: 1.4rem !important;
    }
}
