/* Reset and global box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

.my-title {
    margin-top: 100px;
}

/* Global body and HTML styling */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
}

.h-100 {
    height: 100% !important;
}

.card {
    min-height: 350px;
}

/* Full-screen jumbotron */
.full-screen-jumbotron {
    width: 100%;
    height: 70vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-screen-jumbotron video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.full-screen-jumbotron .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.full-screen-jumbotron .container-fluid {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.full-screen-jumbotron h1, .full-screen-jumbotron h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.full-screen-jumbotron .btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.25rem;
}

/* Typography */
.bebas-neue-regular {
    font-family: "Bebas Neue", sans-serif;
    font-size: 4rem; /* Adjusted to make it more responsive */
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: #7A638E;
}

.cursive {
    font-family: 'Flaemische Kanzleischrift', sans-serif;
}

.brand-purple, .p-purple {
    color: #7A638E;
}

/* Button styles */
.button-text {
    font-size: 20px;
}

a {
    text-decoration: none;
}

/* Card and Feature Box Styling */
.feature-box, .card {
    height: auto; /* Adjust card height based on content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
    min-height: 400px; /* Consistent height for all cards */
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure even distribution of content */
    align-items: center;
    text-align: center;
    padding: 10px;
    height: auto; /* Ensure content adjusts height dynamically */
}

/* Responsive images within cards */
.service-card .card-img-top {
    height: 150px;
    object-fit: cover;
    width: 100%;
}

.service-image {
    width: 100%; /* Ensure the image takes the full width of the card */
    height: 200px; /* Set a consistent height */
    object-fit: cover; /* Ensure the image scales correctly without distortion */
    border-radius: 5px; /* Optional: Keep a rounded look for consistency */
}


/* Section Spacing */
section {
    padding: 60px 0; /* Add padding to create space between sections */
}

footer {
    margin-bottom: 0px;
}

.top-spacing {
    margin-top: 60px;
}

/* Mobile and Tablet Adjustments */
@media (max-width: 768px) {
    .full-screen-jumbotron h1 {
        font-size: 2.5rem;
    }

    .full-screen-jumbotron h3 {
        font-size: 1.5rem;
    }

    .full-screen-jumbotron .btn {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .bebas-neue-regular {
        font-size: 3rem;
    }

    .cursive {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    .card {
        min-height: 340px; /* Reduce card height for smaller screens */
    }

    .service-card .card-img-top {
        height: 120px; /* Adjust image height for mobile */
    }

    section {
        padding: 40px 0; /* Reduce padding between sections on mobile */
    }
}

@media (max-width: 576px) {
    .bebas-neue-regular {
        font-size: 2.5rem;
        line-height: 1.1;
        letter-spacing: 0.03em;
    }

    .cursive {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .h-100 {
        height: 29em !important;
    }

    .top-spacing {
        margin-top: 100px;
    }

    .card-body {
        height: auto;
        padding: 10px;
    }
}
