.nav-item {
    border: transparent;
    background: transparent;
    color: #7e7e7e;
    padding: 0.15rem .3rem;
    margin: 0.25rem;
    border-radius: 999px;
    transition: all 0.25s ease;
}

:root {
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lora', sans-serif;
    --nav-bar-font: 'Open-sans', sans-serif;
}

.nav-link {
    font-family: var(--nav-bar-font);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

body {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main {
    background-color: #e4e4e4;
}

.hero {
    height: fit-content;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
}

.nav-item:hover {
    background-color: #202020;
    color: white;
    transform: translateY(-1px);
}

.nav-item.active {
    background-color: #fcfcfc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-item.active .nav-link {
    color: rgb(0, 0, 0) !important;
}

.Padding1rem {
    padding: 1rem;
}

.card {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #ffffff;
}

.card-plain {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #ffffff;
}

.card-plain:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.card-resume {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #ffffff;
    margin: 1rem;
}

.card-no-size-change {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #ffffff;
}

.card-resume:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: default;

}

.card-no-size-change:hover {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.card-body {
    transition: background-color 0.3s ease;
    padding: 1.5rem;
    height: 100%;
}

.card:hover .card-body {
    background-color: rgba(42, 82, 152, 0.1);
}

.card-resume:hover .card-body {
    background-color: rgba(42, 82, 152, 0.1);
}

.card-no-size-change:hover .card-body {
    background-color: rgba(42, 82, 152, 0.1);
}



img {
    max-width: 100%;
    border-radius: 1rem;
}

.about-section {
    padding: 4rem 0;
}

.hero .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #e9ecfd;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #141729;
}

.btn-primary {
    background-color: #2a5298;
    border-color: #2a5298;
}

.btn-primary:hover {
    background-color: #1e3c72;
    border-color: #1e3c72;
}

footer {
    font-size: 0.9rem;
    background-color: #1e3c72;
    color: white;
}

.accordion-button {
    font-weight: 600;
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #2a5298;
}

.accordion-body {
    background-color: #fdfdfd;
    line-height: 1.6;
}

.carousel {
    height: 50vh;
    background-color: #d6d6d6;
    border: 2px solid #d6d6d6;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    background-color: #d6d6d6;
    padding: 1rem;
    object-fit: cover;

}

.carouselImage {
    height: auto;
    max-height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;

}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 5;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    /* Darker background for better visibility */
    border-radius: 50%;
    background-size: 50%;
    /* Make the arrows a bit smaller/neater */
    padding: 25px;
}

/* --- Responsive Heights --- */
@media (max-width: 768px) {

    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item img {
        height: 350px;
        /* Synchronized height for mobile */
    }
}

.photo-feature {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.photo-img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.photo-feature img.vertical {
    max-height: 45rem;
    width: auto;
}

.photo-feature img.horizontal {
    width: 50rem;
    height: auto;
    margin-bottom: 1rem;
    flex-direction: column;
}

.photo-text {
    max-width: 500px;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .photo-feature.horizontal {
        flex-direction: column;
    }

    .photo-feature.vertical {
        flex-direction: row;
    }

    .photo-feature.vertical.reverse {
        flex-direction: row-reverse;
    }
}

/* Container for the slideshow */
#photoCarousel {
    max-width: 1000px;
    /* Or whatever width fits your layout */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background-color: transparent;
    /* Black bars for vertical photos */
}

/* Force images to stay inside the frame */
.carouselImage {
    width: 100%;
    height: 500px;
    /* Adjust this height to your preference */
    object-fit: contain;
    /* Keeps the whole photo visible without cropping */
    background-color: transparent;
}

.displayNone {
    display: none !important;
}

@media (max-width: 991px) {
    .navbar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Portfolio Button Group */
.portfolio-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* center new lines */
    gap: 0.5rem;
}

/* Base button style */
.portfolio-btn {
    background-color: transparent;
    border: 2px solid #1e3c72;
    color: #1e3c72;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.portfolio-btn:hover {
    background-color: #1e3c72;
    color: white;
    transform: translateY(-2px);
}

/* Active button style */
.portfolio-btn.active {
    background-color: #1e3c72;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Underline animation on hover */
.portfolio-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    /* gold accent */
    transition: 0.3s;
    transform: translateX(-50%);
}

.portfolio-btn:hover::after {
    width: 80%;
}


/* ===== Service Page Styling ===== */

.packageCard {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.packageCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Card titles (neutral navy-gray, not bright blue) */
.packageCard h4 {
    color: #203a43;
    font-weight: 700;
}

/* Muted description text */
.packageCard p.text-muted {
    color: #6c757d;
}

/* Pricing text */
.packageCard p.fw-semibold {
    color: #2c5364;
    font-weight: 600;
}

/* Buttons */
.packageCard .btn-outline-primary {
    color: #2c5364;
    border-color: #2c5364;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.packageCard .btn-outline-primary:hover {
    background-color: #2c5364;
    color: white;
}

/* Collapse area */
.packageCard .collapse {
    transition: all 0.3s ease;
}

.packageCard .collapse img {
    border-radius: 0.5rem;
}

/* Self-contained card details */
.packageCard {
    transition: all 0.3s ease;
}

/* Optional: smooth fade for collapse content */
.packageCard .cardDetails {
    transition: max-height 0.35s ease, opacity 0.35s ease;
    overflow: hidden;
}

/* Add spacing inside collapse content */
.packageCard .cardDetails p {
    margin-bottom: 0.5rem;
}

/* Collapse content layout */
.packageCard .collapse-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    /* make the collapse content take full width */
}

@media (min-width: 768px) {
    .packageCard .collapse-content {
        flex-direction: row;
        align-items: center;
        /* vertical centering */
        justify-content: flex-start;
        /* text on left, image on right */
        gap: 1.5rem;
        /* space between text and image */
        width: 100%;
        /* full width of card */
    }

    .packageCard .collapse-text {
        flex: 1;
        /* text takes available space */
    }

    .packageCard .collapse-image img {
        max-width: 25rem;
        /* smaller image */
        height: auto;
        object-fit: cover;
        border-radius: 0.5rem;

    }
}

/* Collapse text styling */
.packageCard .collapse-text p {
    color: #495057;
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Gallery Card Style */
.service-card {
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

/* Fix image aspect ratio for a uniform grid */
.service-img-container {
    height: 250px;
    overflow: hidden;
    background-color: #f4f4f4;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img-container img {
    transform: scale(1.025);
}

.price-text {
    font-family: 'Playfair Display', serif;
    /* Or chosen heading font */
    font-size: 1.4rem;
    color: #1a2a33;
}

/* Modal Styling */
.modal-content {
    border-radius: 1rem;
    border: none;
}

/* Ensure the container is the reference point for the overlay */
.service-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #f4f4f4;
}

/* The Overlay */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 51, 0.4);
    /* Matches price-text color with transparency */
    backdrop-filter: blur(2px);
    /* Subtle glass effect */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.overlay-text {
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 1px solid white;
    padding: 10px 20px;
    transform: translateY(10px);
    /* Starts slightly lower for a "slide up" effect */
    transition: transform 0.4s ease;
}

/* Hover States */
.service-card:hover .service-overlay {
    opacity: 1;
}

.service-card:hover .overlay-text {
    transform: translateY(0);
}