/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.header {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.contact-details {
    text-align: right;
}

.contact-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.hero.scrolled .hero-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--text-light);
}

.about h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.about .cta-button {
    display: block;
    margin: 40px auto 0;
    width: fit-content;
}

/* Gallery Section - Enhanced with Auto-scroll */
.gallery {
    padding: 80px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.gallery h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    animation: scrollGallery 30s linear infinite;
    width: fit-content;
}

.gallery-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    flex: 0 0 300px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.control-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0);
}

/* Testimonials Section - Enhanced with Auto-scroll */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #654321 100%);
    color: var(--text-light);
    overflow: hidden;
    position: relative;
}

.testimonials::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"><text x="10" y="50" font-size="60" fill="rgba(255,255,255,0.03)" font-family="serif">"</text></svg>');
    opacity: 0.5;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonial-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-scroll {
    display: flex;
    gap: 30px;
    animation: scrollTestimonials 40s linear infinite;
    width: fit-content;
}

.testimonial-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-item {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    text-align: right;
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author::before {
    content: '— ';
}

/* Testimonial Controls */
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-controls .control-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.testimonial-controls .control-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Speed Indicator */
.speed-indicator {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 250px;
    }

    .testimonial-item {
        flex: 0 0 280px;
    }

    @keyframes scrollGallery {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    @keyframes scrollTestimonials {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 200px;
    }

    .gallery-item img {
        height: 200px;
    }

    .testimonial-item {
        flex: 0 0 250px;
        padding: 20px;
    }

    .control-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}
/* Footer Section */
.footer {
    background-color: #2c2c2c;
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .contact-details {
        text-align: center;
        margin-top: 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .about h2,
    .gallery h2,
    .testimonials h2 {
        font-size: 2rem;
    }

    .gallery-item {
        flex: 0 0 250px;
    }

    .testimonial-item {
        flex: 0 0 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .gallery-item {
        flex: 0 0 200px;
    }

    .testimonial-item {
        flex: 0 0 250px;
    }
}