/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: #333;
}

section {
    padding: 60px 20px;
    text-align: center;
}

.btn {
    display: inline-block;
    background: #5a2e2e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #7a4e4e;
}

/* Header & Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a:hover {
    color: #5a2e2e;
}

/* Hero Section */
.hero {
    background: url('website_background.png') no-repeat center center/cover;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Portfolio Section - New Styles for Continuous Carousel */
.portfolio-section {
    background: #fdfdfd;
}

.gallery-container {
    overflow: hidden; /* This hides images outside of the visible area */
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px; /* Adds padding on the sides for smaller screens */
}

.gallery {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    /* This is the key change: a continuous CSS animation */
    animation: scroll 40s linear infinite; 
    /* The time '40s' depends on the number of images. Adjust as needed. */
}

/* Pause the animation on hover for user interaction */
.gallery:hover {
    animation-play-state: paused;
}

.portfolio-item {
    min-width: 250px;
    flex-shrink: 0; /* Prevents items from shrinking */
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Define the continuous scrolling animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This value is the negative of the total width of one set of images + gaps */
        /* You have 11 images, so the full width to scroll is 11 * 250px + 10 * 20px = 2950px */
        /* The CSS calc() function makes this more robust */
        transform: translateX(calc(-11 * 250px - 11 * 20px));
    }
}

/* Services Section */
.services-section {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Contact Section */
.contact-section {
    background: #eee;
}

.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}
