/********** DAMISET TECHNOLOGIES CUSTOM CSS **********/
:root {
    --primary-color: #dc3545; /* Red */
    --secondary-color: #0d6efd; /* Blue */
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.pt-6 {
    padding-top: 5rem;
}

.pb-6 {
    padding-bottom: 5rem;
}


/*** Spinner ***/
#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;
}

.spinner-border.text-primary {
    color: var(--primary-color) !important;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--bs-light) !important;
}

.btn-primary:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--bs-light) !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--bs-light) !important;
}

.btn-outline-secondary {
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color) !important;
    color: var(--bs-light) !important;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

/* Logo Styling */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 40px;
}

.logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

.topbar-logo {
    display: flex;
    align-items: center;
    padding: 0;
}

.topbar-logo-img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

/* IMPROVED HEADER STYLES */
.top-header {
    background: linear-gradient(to right, var(--primary-color), #c82333);
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-contact-item {
    display: flex;
    align-items: center;
    margin-right: 25px;
}

.header-contact-item i {
    color: #ffd700;
    margin-right: 8px;
    font-size: 1rem;
}

.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.header-social a:hover {
    background: white;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.main-header {
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-item {
    margin: 0 2px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 15px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(220, 53, 69, 0.05);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 5px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(220, 53, 69, 0.08);
    color: var(--primary-color);
    padding-left: 25px;
}

.quote-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px !important;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25);
}

.quote-btn:hover {
    background: #c82333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 6px 10px;
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28220, 53, 69, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .logo-img {
        max-height: 60px;
    }
    
    .navbar-nav {
        padding-top: 15px;
        padding-bottom: 10px;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    .quote-btn {
        margin-top: 10px;
        width: 100%;
    }
    
    .header-contact-item {
        margin-bottom: 5px;
        margin-right: 0;
    }
}

@media (max-width: 575.98px) {
    .logo-img {
        max-height: 50px;
    }
    
    .navbar-brand {
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    .navbar-brand img {
        height: 50px;
    }
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}


/*** Header ***/
.carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    background: rgba(13, 110, 253, 0.7);
    padding: 3rem;
    padding-left: 11rem;
    z-index: 1;
}

.carousel .carousel-indicators {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 80px;
    flex-direction: column;
    margin: 0;
    margin-left: 3rem;
}

.carousel .carousel-indicators [data-bs-target] {
    width: 70px;
    height: 70px;
    text-indent: 0;
    margin: 5px 0;
    border: 2px solid #FFFFFF;
    overflow: hidden;
}

.carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .carousel .carousel-item {
        position: relative;
        min-height: 600px;
    }
    
    .carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 60px;
        height: 60px;
    }

    .carousel .carousel-caption {
        padding-left: 10rem;
    }
}

@media (max-width: 768px) {
    .carousel .carousel-item {
        min-height: 500px;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 50px;
        height: 50px;
    }

    .carousel .carousel-caption {
        padding-left: 9rem;
    }
}

@media (min-width: 1200px) {
    .carousel .carousel-item .display-1 {
        font-size: 7rem;
    }
}

.page-header {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color)) !important;
    background-size: cover;
}


/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--primary-color);
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown { 
    0% { 
        top: -25px;
    }
    50% { 
        top: -45px;
    }
    100% { 
        top: -25px;
    } 
}


/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    border-bottom: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.service .service-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.service .service-item img {
    margin-top: -45px;
    padding-left: 45px;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-dark);
}

.service .service-item:hover a {
    padding-left: 45px !important;
    color: var(--primary-color);
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.team .team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .15);
}

.team .team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    transition: .5s;
    background: linear-gradient(transparent, rgba(13, 110, 253, 0.9));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
}

.team .team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}

.team .team-item .team-social .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: .5s;
    margin: 0 5px;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .2s;
}

.team .team-item .team-social .btn-dark {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--secondary-color);
}

.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 15px;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.testimonial-item:before {
    content: '"';
    font-size: 100px;
    color: rgba(220, 53, 69, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.star-rating {
    color: #ffc107;
    font-size: 18px;
}


/*** Contact ***/
.contact {
    background: linear-gradient(rgba(13, 110, 253, 0.9), rgba(220, 53, 69, 0.9)), url(../img/contact-bg.jpg) center center no-repeat !important;
    background-size: cover !important;
}

@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}

.contact-section {
    background: linear-gradient(rgba(13, 110, 253, 0.9), rgba(220, 53, 69, 0.9)), url(../img/contact-bg.jpg);
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.contact-info-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon i {
    font-size: 24px;
    color: var(--primary-color);
}


/*** Newsletter ***/
.newsletter {
    background: var(--bs-white) !important;
    color: var(--bs-dark) !important;
}

.newsletter .bg-white {
    background: var(--bs-white) !important;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary-color);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #222222;
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--primary-color);
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.text-light {
    color: var(--light-color) !important;
}


/*** Custom Styles for DAMISET TECHNOLOGIES ***/

/* Project Portfolio */
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(13, 110, 253, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: white;
}

.project-info h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.project-info .category {
    font-size: 14px;
    background: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.project-filter {
    margin-bottom: 40px;
}

.project-filter button {
    background: none;
    border: 2px solid #e9ecef;
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-filter button.active,
.project-filter button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sector-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.sector-card .card-body {
    padding: 30px;
}

.sector-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sector-icon i {
    font-size: 30px;
    color: white;
}

.stat-box {
    background: var(--secondary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 18px;
    text-transform: uppercase;
}

/* 404 Page */
.error-section {
    padding: 100px 0;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('../img/engineering-bg.jpg');
    background-size: cover;
    background-position: center;
}

.error-icon {
    font-size: 120px;
    color: var(--primary-color);
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.error-message {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.link-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.link-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.link-icon i {
    font-size: 30px;
    color: white;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Working Hours */
.working-hours {
    background: var(--secondary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.working-hours h5 {
    border-bottom: 2px solid white;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Team Page Enhancements */
.team-img {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-item:hover .team-img img {
    transform: scale(1.1);
}

.team-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

.team-experience {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.skill-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
}

/* Service Icon */
.service-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 30px;
    color: white;
}

/* Mission Cards */
.mission-card {
    border-top: 4px solid var(--primary-color);
}

.value-box {
    border-left: 4px solid var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel .carousel-caption {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .carousel .carousel-indicators {
        margin-left: 1rem;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .team-img {
        height: 250px;
    }
    
    .project-img {
        height: 200px;
    }
    
    .error-code {
        font-size: 60px;
    }
}

