/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #000000;
}

h1, h2, h3, h4, h5 {
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 3.25rem;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.95rem;
    margin: 1.5rem 0 0.5rem;
}

h4 {
    font-size: 1.625rem;
    margin-bottom: 0.5rem;
}

h5 {
    font-size: 1.43rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #4a9eff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #000000;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333;
}

header h4 {
    margin: 0;
    color: #e0e0e0;
}

/* Sections */
section {
    width: 100%;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section > * {
    width: 100%;
    max-width: 1200px;
}

section .carousel,
section .description,
section .image-grid,
section .iframe-container {
    width: 100%;
    max-width: 1200px;
}

.intro-section {
    background-color: #1C0B05;
}

.arbutus-section {
    background-color: #0F1506;
}

.arm-support-section {
    background-color: #020F1B;
}

.description {
    margin: 2rem 0;
    font-size: 1.365rem;
}

/* Carousel Styles */
.carousel {
    position: relative;
    margin: 0.75rem 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

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

.carousel-slide {
    display: none;
    width: 100%;
    text-align: center;
    padding: 2rem;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.caption {
    margin-top: 0.75rem;
    color: #e0e0e0;
    font-size: 1.3rem;
}

.caption h4 {
    margin-bottom: 0.5rem;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    text-align: center;
    padding: 0.25rem 0;
}

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

.indicator.active {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Image Grid */
.image-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin: 0.75rem 0;
}

.image-grid img {
    height: 380px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Iframe Container */
.iframe-container {
    margin: 0.75rem 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.responsive-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none !important;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #999;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 90vh;
}

.lightbox-modal img {
    max-width: 80vw;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    text-align: center;
    max-width: 80vw;
}

.lightbox-caption h4 {
    margin-bottom: 0.5rem;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    font-size: 2.5rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 1001;
}

.lightbox-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-btn.prev {
    left: 2rem;
}

.lightbox-btn.next {
    right: 2rem;
}

/* Footer */
footer {
    background-color: #000000;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #333;
}

footer h5 {
    margin-bottom: 1rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }

    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 2.275rem;
    }

    h3 {
        font-size: 1.755rem;
    }

    .carousel-btn {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }

    .carousel-slide {
        padding: 1.5rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .responsive-iframe {
        height: 400px;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }

    .lightbox-btn {
        font-size: 2rem;
        padding: 1rem 1.5rem;
    }

    .lightbox-btn.prev {
        left: 0.5rem;
    }

    .lightbox-btn.next {
        right: 0.5rem;
    }

    .lightbox-caption {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2.275rem;
    }

    h2 {
        font-size: 1.95rem;
    }

    .carousel-btn {
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
    }

    .carousel-slide {
        padding: 1rem;
    }

    .carousel-slide img {
        max-height: 400px;
    }

    .responsive-iframe {
        height: 300px;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 2rem;
    }

    .lightbox-btn {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }

    .lightbox-btn.prev {
        left: 0;
    }

    .lightbox-btn.next {
        right: 0;
    }

    .lightbox-modal img {
        max-width: 90vw;
        max-height: 65vh;
    }

    .lightbox-caption {
        font-size: 1rem;
        max-width: 90vw;
    }
}
