html {
    scroll-behavior: smooth;
}

.custom-navbar {
    background-color: #4B0082; 
    border: none;
    
}

.custom-navbar .navbar-brand {
    color: white;
}

.custom-navbar .nav > li > a {
    color: white;
}

.custom-navbar .nav > li > a:hover {
    background-color: #3a0066;
    color: #FFD700; 
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f8f8;
}



.jumbotron {
    position: relative; 
    background: url('images/fdbg5.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    height: 400px;
    padding: 100px 0;
    overflow: hidden; 
    transition: all 0.5s ease-in-out;
}


.jumbotron::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0); 
    transition: background-color 0.5s ease-in-out; 
    z-index: 1;
}


.jumbotron h1, .jumbotron p {
    position: relative;
    z-index: 2; 
    animation: textEnter 1s ease-in-out forwards; 
    transform-origin: center; 
    opacity: 0; 
    animation-delay: 0.4s; 
}

.jumbotron p {
    animation-delay: 0.4s; 
}


.jumbotron:hover::before {
    background-color: rgba(0, 0, 0, 0.5); 
}

.jumbotron:hover h1, .jumbotron:hover p {
    transform: scale(1.1); 
    color: #fff; 
}


@keyframes textEnter {
    20% {
        transform: scale(2); 
        opacity: 0; 
    }
    100% {
        transform: scale(1); 
        opacity: 1; 
    }
}


#about {
    margin-top: 30px;
   /* margin-left: 250px; */
}


#about img {
    max-height: 80%; 
    max-width: 80%;  
    object-fit: cover; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); 
    margin-top: 20px; 
    border-radius: 10px; 
}

.service-box {
    background-color: #f8f8f8; 
    border: 1px solid #ddd; 
    padding: 20px;
    margin-bottom: 30px; 
    transition: all 0.3s ease-in-out; 
    text-align: center;
    border-radius: 8px; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); 
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}


.service-box:hover {
    background-color: #4B0082; 
    color: white;
    transform: translateY(-5px); 
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}


.service-box:hover h3, .service-box:hover p {
    color: white; 
}

 /* 

.row {
   /* display: flex;
    flex-wrap: wrap;
    justify-content: space-between; */
*/

.service-box {
    flex: 0 0 32%;
    box-sizing: border-box;
    margin: 15px 0; 
}

#portfolio .thumbnail {
    border: none;
}


.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
    border-radius: 8px;
}


.details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75); 
    color: white;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    border-radius: 8px;
    font-size: 14px;
}


.portfolio-item:hover img {
    transform: scale(1.1); 
}

.portfolio-item:hover .details-overlay {
    opacity: 1; 
}


.portfolio-item:hover .caption h3, 
.portfolio-item:hover .caption p {
    color: #4B0082; 
}


.btn-custom {
    background-color: #4B0082; 
    color: white; 
    border-color: #4B0082;
    padding: 10px 20px;
    border-radius: 5px; 
    transition: background-color 0.3s ease-in-out, transform 0.3s ease;
}


.btn-custom:hover {
    background-color: #3a0066; 
    border-color: #3a0066; 
    transform: scale(1.05);
    color: white;
}



.scroll-to-top {
    position: fixed;
    bottom: 30px; 
    right: 30px; 
    background-color: #4B0082; 
    color: white;
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1000; 
    transition: opacity 0.3s ease-in-out;
}


.scroll-to-top:hover {
    background-color: #3a0066; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}

footer {
    margin-top: 50px;
    padding: 20px 0;
    background-color: #333;
    color: white;
}

footer p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .jumbotron {
        height: auto;
        padding: 60px 20px;
        text-align: center;
    }

    #about img {
        max-width: 100%;
        height: auto;
        margin-top: 20px;
    }

    .portfolio-item,
    .service-box {
        margin-bottom: 20px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        padding: 10px;
        font-size: 20px;
    }
}
