/*** Spinner Start ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

/*** Spinner End ***/

.topbar i {
    color: black !important
}

.footer a {
    color: white !important
}

.navbar .text-secondary {
    color: white !important; 
}

.project-content h4 {
    color: white;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-md-square {
    width: 46px;
    height: 46px;
}

.btn-lg-square {
    width: 58px;
    height: 58px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Button End ***/


/*** Topbar Start ***/

.topbar .top-info {
    letter-spacing: 1px;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

#note {
    width: 500px;
    overflow: hidden;
}

#note small {
    position: relative;
    display: inline-block;
    animation: mymove 5s infinite;
    animation-timing-function: all;
}

@keyframes mymove {
    from {left: -100%;}
    to {left: 100%;}
}

/*** Topbar End ***/


/*** Navbar Start ***/
.navbar .navbar-nav {
    padding: 15px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 10px;
    color: var(--bs-white);
    font-size: 18px;
    outline: none;
    
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #000000 !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "font awesome 5 free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
}

.impressum {
    margin-left: 20px !important;
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: red !important; /* Changes hover and active link color to red */
}

.navbar .dropdown-menu .dropdown-item:hover {
    color: red !important; /* Changes dropdown hover color to red */
}



/*** Navbar End ***/

/*** Carousel Start ***/

#carouselId {
    height: 85vh; /* Adjust the height of the entire carousel */
    overflow: hidden;
}

.carousel-item {
    height: 85vh; /* Set the height of each carousel item */
    background-color: black; /* Fallback background color */
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 70vh; /* Adjust the image height to match the carousel */
    object-fit: cover; /* Ensures the image covers the container */
}

.carousel-caption {
    height: auto; /* Allow the caption to adapt to content */
    bottom: 15%; /* Position the caption slightly higher */
}

.carousel-item p {
    max-width: 700px;
    margin: 0 auto 20px auto; /* Reduce spacing for a more compact look */
    font-size: 1rem; /* Adjust font size for readability */
}

.carousel-item h1 {
    font-size: 2.5rem; /* Adjust the heading size */
    margin-bottom: 20px; /* Reduce spacing below the heading */
}

.carousel-control-prev,
.carousel-control-next {
    width: 70px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    transition: 0.5s; /* Faster hover effect transition */
}

#carouselId .carousel-indicators li {
    width: 20px;
    height: 8px;
    margin: 8px; /* Reduce spacing between indicators */
}

/* Media Query Adjustments */
@media (max-width: 992px) {
    #carouselId {
        height: 60vh; /* Further reduce height on medium screens */
    }
    
    .carousel-item {
        height: 60vh;
    }

    .carousel-item img {
        height: 60vh;
    }

    .carousel-item h1 {
        font-size: 2rem;
    }

    .carousel-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #carouselId {
        height: 50vh; /* Reduce height on smaller screens */
    }
    
    .carousel-item {
        height: 50vh;
    }

    .carousel-item img {
        height: 50vh;
    }

    .carousel-item h1 {
        font-size: 1.5rem;
    }

    .carousel-item p {
        font-size: 0.8rem;
    }
}

/*** Carousel End ***/


/* Dots (Indicators) */
#carouselId .carousel-indicators li {
    width: 6px; 
    height: 1px;
    margin: 3px;
    border-radius: 10%; 
    background: white; 
    opacity: 1;
    transition: background-color 0.3s ease, transform 0.3s ease; 
    height: 1px !important;
}

#carouselId .carousel-indicators li.active {
    background: #ff0000;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5); 
}

#carouselId .carousel-indicators li:hover {
    background: #555; /* Darker gray on hover */
    transform: scale(1.1); /* Slight enlargement */
}

/* Arrows (Controls) */
.carousel-control-prev,
.carousel-control-next {
    width: 60px; /* Adjust width */
    height: 60px; /* Adjust height */
    top: 50%; /* Vertically centered */
    transform: translateY(-50%); /* Proper alignment */
    background-color: rgba(255, 0, 0, 0.8); /* Red background with slight transparency */
    border-radius: 50%; /* Circular buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 1;
    transition: background-color 0.3s ease;
    margin: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #ff0000; /* Solid red on hover */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px; /* Adjust arrow size */
    height: 20px;
    background-size: 100%; /* Ensure proper icon scaling */
    filter: brightness(0) invert(1); /* Make arrows white for better visibility */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/*** Services Start ***/

.services .services-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures the button is always at the bottom */
    box-shadow: 0 0 60px rgba(0, 0, 0, .2);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 10px 0;
    position: relative;
}

.services-content {
    flex: 1; /* Fills available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Keeps content spaced out */
    position: relative;
}

.services-content-icon {
    flex-grow: 1; /* Pushes the button to the bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.services-content p {
    margin-bottom: auto; /* Ensures text spacing remains even */
}

.services-content a {
    margin-top: auto; /* Ensures the button is at the bottom */
}

.services-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px 10px 0 0;
    background: #ff0000;
    transition: .5s;
}

.services-content::after {
    top: 0;
    bottom: auto;
    border-radius: 10px 10px 10px 10px;
}

.services-item:hover .services-content::after {
    height: 100%;
    opacity: 1;
    transition: .5s;
}

.services-item:hover .services-content-icon {
    position: relative;
    z-index: 2;
}

.services-item .services-content-icon i,
.services-item .services-content-icon p {
    transition: .5s;
}

.services-item:hover .services-content-icon i {
    color: #000000 !important;
}

.services-item:hover .services-content-icon p {
    color: var(--bs-white);
}

/*** Services End ***/


/*** Project Start ***/

.container .text-secondary {
    color: #ffffff !important;
}


.project-img {
    position: relative;
    padding: 15px;
}

.project-img::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    left: 0;
    background: #000000;
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-img::after {
    content: "";
    width: 150px;
    height: 150px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: #ff0000;
    color: white;
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.project-content a {
    display: inline-block;
    padding: 20px 25px;
    background: #ff0000;
    border-radius: 10px;
}

.project-item:hover .project-content {
    opacity: 1;
    transition: .5s;
}

.project-item:hover .project-img::before,
.project-item:hover .project-img::after {
    opacity: 0;
}

.project-img img {
    width: 100%;
    height: 300px; /* Set a fixed height, adjust as needed */
    object-fit: cover; /* Ensures images cover the area without stretching */
    border-radius: 10px; /* Matches the rounded style you have */
}



/*** Project End ***/



/*** Contact Start ***/
.contact-detail::before {
    position: absolute;
    content: "";
    height: 50%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(255, 79, 79, 0.6), rgba(230, 250, 245, .3)), url(../img/background.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.contact-map {
    background: #000000;
}

.contact-form {
    background: #000000;
}

/*** Contact End ***/


/*** Footer Start ***/

.footer .short-link a,
.footer .help-link a,
.footer .contact-link a {
    transition: .5s;
}

.footer .short-link a:hover,
.footer .help-link a:hover,
.footer .contact-link a:hover {
    letter-spacing: 1px;
}

.footer .hightech-link a:hover {
    background: #000000;
    border: 0;
}

.footer .bg-dark {
    background-color: #000 !important;
}

/*** Footer End ***/


.footer i {
    color: #ff0000 !important;
}