/********** Template CSS **********/
:root {
    --primary: #da0606;
    --secondary: #da0606;
    --light: #ff9a02;
    --dark: #091E3E;
}

/* Global */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #444;
    background-color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

a {
    text-decoration: none;
}

/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% { -webkit-transform: perspective(120px) }
    50% { -webkit-transform: perspective(120px) rotateY(180deg) }
    100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1, h2, .fw-bold {
    font-weight: 800 !important;
}

h3, h4, .fw-semi-bold {
    font-weight: 700 !important;
}

h5, h6, .fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .3s;
    border-radius: 50px;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.9;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark {
    backdrop-filter: blur(6px);
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 30px 0;
    color: #fcfafa;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: .3s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: #222;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
    font-size: 26px;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    .navbar-dark .navbar-nav {
        padding: 10px 0 15px;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 8px 0;
        margin-left: 0;
        color: #333333;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
        background: transparent;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 50%;
        background: var(--primary);
        transition: .3s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 28px;
        font-weight: 700 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 120px;
    height: 4px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    transform: translateX(-50%);
}

/* removed moving animation for less distraction */


/*** About Section ***/
.about-section {
    background-color: #ffffff;
}

.about-section p {
    font-size: 15px;
    color: #555;
}

/* call icon */
.about-call-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
}

/* image – NO CROP */
.about-img img {
    width: 100%;
    height: auto;          /* keep original aspect ratio */
    max-height: 520px;     /* optional limit; remove if not needed */
    object-fit: contain;   /* make sure full 4032x3024 is visible */
    border-radius: 12px;
}

/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .3s;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 12px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
    color: #ffffff;
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 30px;
    transition: .3s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .3s;
    border-radius: 12px;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    position: relative;
    transition: .3s;
    overflow: hidden;
    border-radius: 12px;
    background-color: #ffffff;
}

.team-item .team-img img {
    width: 100%;
    display: block;
    transition: .3s;
}

/* Social Media Icons */
.team-social {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    opacity: 0;
}

/* Social Media Button Styling */
.team-social a.btn {
    position: relative;
    margin: 0 10px;
    margin-top: 100px;
    opacity: 1;
    padding: 12px 24px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    background-color: transparent;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
}

/* Social Media Specific Colors */
.team-social a.btn.call {
    color: #28a745;
}

.team-social a.btn.facebook {
    color: #3b5998;
}

.team-social a.btn.instagram {
    color: #E4405F;
}

/* Button Hover Effect */
.team-social a.btn:hover {
    background-color: #fff;
    color: #333;
    opacity: 1;
    box-shadow: 0 0 12px 4px rgba(255, 255, 255, 1);
}

/* Show buttons on hover */
.team-item:hover .team-social {
    opacity: 1;
    margin-top: 0;
}

/* Hover effects for each button */
.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition-delay: 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition-delay: .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition-delay: .1s;
}

/* Team Item Hover Effect */
.team-item:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Image Scaling on Team Item Hover */
.team-item:hover .team-img img {
    transform: scale(1.08);
}

/* Light overlay on image hover */
.team-item:hover .team-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.5);
    z-index: 1;
}

/* Ensure that the image is not hidden behind the overlay */
.team-item .team-img {
    position: relative;
}

/* Prevent the overlay from affecting the social icons */
.team-item .team-social {
    z-index: 2;
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 20px;
    bottom: 20px;
    z-index: 99;
}

/* Header background */
.bg-header {
    background: linear-gradient(rgba(220, 53, 69, 0.7), rgba(9, 30, 62, 0.7)),
                url("../img/carousel-1.jpg") center center no-repeat;
    background-size: cover;
}

/* Animated links */
.link-animated a {
    transition: .3s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/*** Certificate Card ***/
.certificate-card {
    transition: 0.3s;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.certificate-card:hover { 
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/*** Footer ***/
.footer {
    background: #0b0b0b;
    color: #bbbbbb;
    padding-top: 60px;
    font-size: 14px;
}

.footer a {
    color: #bbbbbb;
}

.footer a:hover {
    color: var(--light);
}

/* Footer title – gray */
.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #777777;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    border: none;
    box-shadow: none;
    font-weight: 400;
    font-size: 14px;
}

.footer .btn.btn-link::before {
    content: "›";
    margin-right: 6px;
    color: var(--light);
}

.footer .btn.btn-link:hover {
    letter-spacing: 0.5px;
}

/* Footer bottom line */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 30px;
    padding-top: 15px;
    font-size: 13px;
    color: #888888;
    text-align: center;
}

.footer-bottom a {
    color: #cccccc;
}

.footer-bottom a:hover {
    color: var(--light);
}

@media (max-width: 575.98px) {
    .footer {
        text-align: center;
    }

    .footer .btn.btn-link {
        text-align: center;
    }
}
