/* Global Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Roboto Slab', serif;
    line-height: 1.6;
    color: #333;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Navigation */
nav {
    background-color: #333;
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.logo { cursor: pointer; }
.logo img { height: 40px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; transition: all 0.3s ease; }
.nav-links li { margin-left: 2rem; }
.nav-links div, .nav-links a { color: white; text-decoration: none; font-weight: bold; cursor: pointer; padding: 0.5rem 1rem; transition: background-color 0.3s ease, color 0.3s ease; display: flex; align-items: center; }
.nav-links div:hover, .nav-links a:hover { background-color: #555; color: #ddd; border-radius: 5px; }
.nav-links a i { font-size: 1.2rem; }
.hamburger { display: none; font-size: 1.5rem; background: none; border: none; color: white; cursor: pointer; }

/* Sections */
.section { display: none; padding: 4rem 1rem; max-width: 1200px; margin: 60px auto 0; }
.section.active { display: block; }

/* Hero Section */
.hero { background-color: #f4f4f4; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; color: #333; }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; }

/* Responsive Images */
.hero-image, .bottom-image, .image-text-container img, .image-text-container-right img, .carousel-item img, .carousel-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
    object-fit: cover;
}

/* Content Sections */
.content-section h2 { font-size: 2rem; margin-bottom: 1rem; color: #333; }
.content-section p { margin-bottom: 0.75rem; }
.first-paragraph { margin-bottom: 1.5rem; }

/* Text & Image Layouts */
.image-text-container, .image-text-container-right { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.image-text-container img, .image-text-container-right img { width: 200px; height: auto; border-radius: 10px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
.image-text-container .text-content, .image-text-container-right .text-content { flex: 1; }
.image-text-container p { margin-bottom: 0; margin-right: 130px; }
.image-text-container-right { flex-direction: row-reverse; }
.image-text-container-right p { margin-bottom: 0; margin-left: 170px; }
.bottom-image { display: block; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); margin: 1rem auto 0; }

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 1rem;
}
.carousel-container {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}
.carousel-item {
    flex: 0 0 33.33%;
    min-width: 33.33%;
    height: 100%;
}
.carousel-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 5px;
    cursor: pointer;
}
.carousel-button { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0, 0, 0, 0.7); 
    color: white; 
    border: none; 
    padding: 15px; 
    cursor: pointer; 
    z-index: 10; 
    font-size: 1.2rem;
    border-radius: 50%;
}
.carousel-button:hover { background-color: rgba(0, 0, 0, 0.9); }
.carousel .prev { left: 15px; }
.carousel .next { right: 15px; }
.carousel-preview {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 10px;
    justify-content: center;
    min-height: 80px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.carousel-preview img { 
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    opacity: 0.6; 
    transition: opacity 0.3s ease, border 0.3s ease; 
    border: 2px solid transparent; 
    border-radius: 5px;
    cursor: pointer;
}
.carousel-preview img.active { opacity: 1; border: 2px solid #333; }
.carousel-preview img:hover { opacity: 0.9; }

/* Footer */
footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: 60px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.lightbox.active { display: flex; }
.lightbox .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1010;
}
.lightbox .prev { left: 5%; }
.lightbox .next { right: 5%; }

/* Mobile Responsive */
@media (max-width: 768px) {
    nav { padding: 0.5rem 1rem; }
    body { padding-top: 50px; }
    .hamburger { display: block; height: 50px; }
    .logo img { height: 30px; }
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background-color: #333; }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 0; width: 100%; text-align: center; }
    .nav-links div, .nav-links a { padding: 0.75rem 0; display: block; width: 100%; }
    .nav-links a i { font-size: 1.5rem; }
    .section { padding: 3rem 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .content-section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .content-section p { font-size: 0.9rem; margin-bottom: 0.5rem; }
    .first-paragraph { margin-bottom: 1rem; }
    .image-text-container, .image-text-container-right { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
    .image-text-container img, .image-text-container-right img { width: 100%; max-width: 250px; }
    .image-text-container p, .image-text-container-right p { margin: 0; }
    .bottom-image { max-width: 90%; }
    .carousel { height: 250px; }
    .carousel-item { flex: 0 0 100%; min-width: 100%; height: 250px; }
    .carousel-preview { min-height: 60px; }
    .carousel-preview img { width: 60px; height: 60px; }
    .carousel-button { padding: 10px; font-size: 1rem; }
    .lightbox .prev { left: 10px; }
    .lightbox .next { right: 10px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.9rem; }
    .carousel { height: 200px; }
    .carousel-preview { min-height: 50px; }
    .content-section h2 { font-size: 1.3rem; }
    .content-section p { font-size: 0.85rem; }
    .carousel-preview img { width: 50px; height: 50px; }
    .carousel-item { height: 200px; }
    footer { font-size: 0.9rem; }
}
