.contact-section {
    background-image: url('../images/nicholas-green-unsplash-blur.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding-top: 150px;
    padding-bottom: 150px;
}

.contact-form {
    background: var(--white-color);
    border-radius: var(--border-radius-medium);
    padding: 40px;
}

.contact-form .form-control {
    margin-bottom: 20px;
}

.contact-section .google-map {
    border-radius: var(--border-radius-medium);
}


/* Base Styles */
:root {
    --gema-overlay-opacity: 0.75;
    --navbar-height: 96px;
    --navbar-height-mobile: 76px;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scroll {
    padding: 0.5rem 0;
    background: rgba(0, 0, 0, 0.95);
}

.navbar-brand {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 200px;
    width: auto;
    min-height: 35px;
    max-width: 200px;
    object-fit: contain;
    transform-origin: left center;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--dark-color);
    margin-top: calc(var(--navbar-height) * -1);
    padding-top: var(--navbar-height);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section .section-overlay {
    background-color: var(--dark-color);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: var(--gema-overlay-opacity);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .about-image {
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s;
}

.hero-section .about-image:hover {
    transform: perspective(1000px) rotateY(0);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-section {
        margin-top: calc(var(--navbar-height-mobile) * -1);
        padding-top: var(--navbar-height-mobile);
        text-align: center;
    }

    .hero-section .about-image {
        margin-bottom: 48px;
        transform: none;
    }

    .navbar-logo {
        height: 150px;
    }

    .navbar-brand-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 120px;
    }

    .navbar-brand-text {
        font-size: 0.9rem;
    }
}

/* Full-height Carousel Styles */
#archive-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#archiveCarousel, 
.carousel-inner,
.carousel-item,
.carousel-background {
    height: 100vh;
    width: 100%;
}

.carousel-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Carousel Styles */
.carousel-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)); /* Lighter overlay */
}

.carousel-item .container {
    position: relative;
    z-index: 2;
}

/* Text shadow for better visibility */
.carousel-item h2,
.carousel-item p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Make text larger and more prominent */
.carousel-item h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.carousel-item p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Brighter button */
.carousel-item .custom-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Remove the section overlay from the carousel section */
#archive-carousel .section-overlay {
    display: none;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

/* Animation */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Archive Dashboard Styles */
.archive-dashboard {
    background-color: var(--dark-color);
}

.decade-section {
    position: relative;
    padding: 20px 0;
}

.archive-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.archive-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.archive-card .card-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.archive-card h4 {
    color: var(--white-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.archive-card p {
    color: rgba(255, 255, 255, 1);
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    #archive-carousel {
        margin-top: -76px; /* Adjust for mobile navbar height */
        padding-top: 76px;
    }
}

/* Template Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: calc(var(--navbar-height) * -1);
    padding-top: var(--navbar-height);
    height: 100vh;
}

.hero-section .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-section {
        margin-top: calc(var(--navbar-height-mobile) * -1);
        padding-top: var(--navbar-height-mobile);
    }
}

.photo-gallery {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-gallery h2 {
    text-align: center;
    color: var(--white-color);
    margin-bottom: 40px;
    font-size: 2.5rem;
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

#gallery-grid figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

#gallery-grid figure:hover {
    transform: translateY(-5px);
}

#gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

#gallery-grid figure:hover img {
    transform: scale(1.05);
}

#gallery-grid figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#gallery-grid figure:hover figcaption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .photo-gallery {
        padding: 60px 15px;
    }

    #gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }

    #gallery-grid img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    #gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scroll {
    padding: 0.5rem 0;
}

.navbar-brand {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 200px;
    width: auto;
    min-height: 35px;
    max-width: 200px;
    object-fit: contain;
    transform-origin: left center;
    transition: all 0.3s ease;
}

.navbar-brand-text {
    color: var(--white-color);
    font-size: 1.2rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-left: 15px;
}

.navbar.scroll .navbar-logo {
    transform: scale(0.1);
    margin-right: -30px;
}

.navbar.scroll .navbar-brand-text {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .navbar-logo {
        height: 200px;
    }
    .navbar-brand-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 200px;
    }
    .navbar-brand-text {
        font-size: 0.9rem;
    }
}

/* Lightbox Modal Styles */
#imageModal .modal-dialog {
    max-width: 90vw;
}

#imageModal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
}

#imageModal .modal-img {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

#imageModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    z-index: 1056;
}

#imageModal .modal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    color: white;
}

/* Add cursor pointer to gallery images */
#gallery-grid figure {
    cursor: pointer;
}

.modal-prev,
.modal-next {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 3rem;
    line-height: 1;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.modal-img {
    max-height: 85vh;
    object-fit: contain;
}

.modal-img {
    max-height: 85vh;
    object-fit: contain;
    transition: opacity 0.4s ease;
    opacity: 1;
}
.modal-img.fading {
    opacity: 0;
}

.modal-content {
    background-color: rgba(0,0,0,0.85); /* semi-transparent dark */
    border: none;
}
