:root {
    /* Earthy color palette */
    --primary-color: #8B7355;    /* Warm brown */
    --secondary-color: #A67B5B;  /* Terracotta */
    --accent-color: #4A5D23;     /* Olive green */
    --text-color: #2C1810;       /* Deep brown */
    --background-color: #F5F1E6; /* Cream */
    --footer-bg: #2C1810;        /* Deep brown */
    --footer-text: #E6DFD5;      /* Light cream */
    --card-bg: #FFF9F0;          /* Soft cream */
    --hover-color: #C1A173;      /* Light brown */
    
    /* Shadows and effects */
    --card-shadow: 0 4px 6px rgba(44, 24, 16, 0.1);
    --hover-shadow: 0 6px 12px rgba(44, 24, 16, 0.15);
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(245, 241, 230, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 24, 16, 0.1);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-speed);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    background-color: rgba(43, 108, 176, 0.1);
}

/* Hero Section and Slider */
.hero {
    margin-top: 80px;
    height: 600px;
    position: relative;
    width: 100%;
    background-color: var(--text-color);
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transform: scale(1.3);
    transition: transform 4s ease-out;
}

.slide.active img {
    transform: scale(1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.2rem;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all var(--transition-speed);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 2rem;
}

.next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 3rem;
    height: 0.3rem;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed);
    border-radius: 0.15rem;
}

.dot.active {
    background: white;
    width: 4rem;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Hero overlay gradient */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero {
        height: 450px;
    }

    .slider-btn {
        padding: 1rem;
        font-size: 1rem;
        width: 3rem;
        height: 3rem;
    }

    .prev {
        left: 1rem;
    }

    .next {
        right: 1rem;
    }

    .dot {
        width: 2rem;
    }

    .dot.active {
        width: 3rem;
    }
}

/* Categories Section */
.categories {
    padding: 6rem 2rem;
    background-color: white;
}

.category-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(44, 24, 16, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    background-color: var(--hover-color);
    color: var(--footer-text);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: color var(--transition-speed);
}

.category-card:hover i {
    color: var(--footer-text);
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.category-card p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 2rem 2rem;
    position: relative;
    margin-top: 4rem;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to right bottom, transparent 49%, var(--footer-bg) 50%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-info h3 {
    color: var(--hover-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.footer-social a {
    color: var(--footer-text);
    transition: color var(--transition-speed);
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(230, 223, 213, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .category-card {
        padding: 2rem 1.5rem;
    }

    .category-card i {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--secondary-color);
        margin: 5px 0;
        transition: all var(--transition-speed);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }
}
