/* General Styles */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --text-color: #333;
    --light-gray: #f8f8f8;
    --dark-gray: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Header Styles */
.top-bar {
    background-color: var(--light-gray);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
}

.contact-info span {
    margin-right: 20px;
}

.social-icons a {
    margin-left: 15px;
    color: var(--dark-gray);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Inherit text color */
}

.logo img {
    height: 60px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.logo-text p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .logo img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .logo-text {
        display: none;
    }
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

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

.menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider Styles */
.hero {
    position: relative;
    height: 600px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3, .product-card p {
    padding: 0 20px;
}

.product-card h3 {
    margin: 20px 0 10px;
}

.product-card p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.product-card .btn-small {
    margin: 0 20px 20px;
    display: inline-block;
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px;  /* Add padding for the quote mark */
}

.testimonial p::before {
    content: '"';
    font-size: 50px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -15px;
    left: 0;
    font-family: serif;
    z-index: 0;  /* Place behind the text */
}

.testimonial p {
    position: relative;
    z-index: 1;  /* Ensure text is above the quote mark */
}

.testimonial .rating {
    color: #FFD700;
    margin-bottom: 20px;
}

.client {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.client h4 {
    margin: 0;
    font-size: 18px;
    color: var(--dark-color);
}

.client p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #777;
}

@media (max-width: 768px) {
    .testimonial-slider {
        flex-direction: column;
    }
    
    .testimonial {
        min-width: 100%;
    }
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.cta .btn {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn:hover {
    background-color: var(--light-gray);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 0;
        text-align: center;
    }
    
    .menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .mobile-menu-btn {
        display: block;
        cursor: pointer;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile menu styles - updated with fixed positioning */
@media (max-width: 768px) {
    nav {
        position: relative; /* Ensure the nav has relative positioning */
    }
    
    .mobile-menu-btn {
        display: block;
        cursor: pointer;
        z-index: 101;
        padding: 10px;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 100%; /* Position right below the nav */
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000; /* Higher z-index to ensure it appears above other content */
        padding: 0;
        margin: 0;
    }
    
    .menu.active {
        display: flex !important;
    }
    
    .menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    /* Ensure the menu is visible when active */
    header nav .menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message container styles - modern design */
.message-container {
    margin-bottom: 25px;
}

.message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
}

.success-message {
    background-color: #f0fff4;
    color: #38a169;
    border: 1px solid rgba(56, 161, 105, 0.2);
}

.success-message::before {
    background-color: #38a169;
}

.error-message {
    background-color: #fff5f5;
    color: #e53e3e;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.error-message::before {
    background-color: #e53e3e;
}

.warning-message {
    background-color: #fffbea;
    color: #d69e2e;
    border: 1px solid rgba(214, 158, 46, 0.2);
}

.warning-message::before {
    background-color: #d69e2e;
}

.info-message {
    background-color: #ebf8ff;
    color: #3182ce;
    border: 1px solid rgba(49, 130, 206, 0.2);
}

.info-message::before {
    background-color: #3182ce;
}

.message i {
    font-size: 18px;
}

.message-content {
    flex: 1;
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.message.fade-out {
    animation: fadeOut 0.5s forwards;
}
