/* Global Styles */
* {
    font-family: Montserrat;
}

body {
    background: rgb(192, 192, 192);
    overflow-x: hidden;
}

.section-padding {
    padding: 100px 0;
}
.section-padding-small {
    padding: 25px 0;
}


/* Carousel Styles */
.carousel-item {
    height: automatic; /* Fixing the missing unit (pixels) */
    min-height: 300px;
    transform-origin: center center;
}

.carousel-item img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    bottom: 220px;
    z-index: 2;
}

.carousel-caption h5 {
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 25px;
}

.carousel-caption p {
    width: 60%;
    margin: auto;
    font-size: 18px;
    line-height: 1.9;
}

.carousel-inner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.fixed-carousel-card {
    height: 600px; /* Set your preferred fixed height */
}

/* Navbar Styles */
.navbar-nav a {
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
}

.navbar-dark .navbar-brand {
    font-size: 25px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.navbar-dark .navbar-brand:focus,
.navbar-dark .navbar-brand:hover {
    color: #000;
}

.navbar-dark .navbar-nav .navbar-link {
    color: #000;
}

.card {
    max-width: 100%;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6); 
}
.aboutme-img img
{
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    display: block;
    margin: 0 auto;
    transform: translateX(-50%);
}
.card-body {
    padding: 20px;
}

/* Particle.js Background Styles */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Set a negative z-index to place it behind other elements */
}

/* About Me and Projects Section Styles */
#aboutme,
#projects {
    position: relative;
    z-index: 1;
}

/* Responsive Styles */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .carousel-caption {
        bottom: 350px;
    }

    .carousel-caption p {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .navbar-nav {
        text-align: center;
    }

    .carousel-caption {
        bottom: 125px;
    }

    .carousel-caption h5 {
        font-size: 17px;
    }

    .carousel-caption a {
        padding: 10px 15px;
    }

    .carousel-caption p {
        width: 100%;
        line-height: 1.6;
        font-size: 12px;
    }
}

/* Loading Spinner Overlay Styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #505050;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #707070;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loading-overlay.fade-out {
    opacity: 0;
}

.custom-line {
    height: 1px;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
}