/********** Template CSS **********/

/* :root {
    --bs-primary: #4C6522;
    --bs-secondary: #FFD700;
    --bs-light: #e5ecd980;
    --bs-dark: #1c2d17;
    --bs-white: #fff;
    --bs-gold-dark: #F7C948;
    --bs-gold-light: #ffe83d;
} */
 :root {
    /* Akash Group of Constructions Brand Colors */
    --bs-primary: #DC143C;          /* Crimson Red from logo */
    --bs-secondary: #DC143C;        /* Red accent */
    --bs-light: #FFF5F5;            /* Light red tint */
    --bs-dark: #8B0000;             /* Dark red */
    --bs-white: #fff;
    --bs-primary-light: #FFF5F512;  /* Very light red for backgrounds */
    --bs-gold-dark: #B8860B;        /* Gold accent */
    --bs-gold-light: #DAA520;       /* Lighter gold */
    --bs-blue: #DC143C;             /* Red accent (reusing for consistency) */
    --bs-blue-light: #FFF5F5;       /* Light red tint */
    --bs-blue-dark: #B22222;        /* Dark red */
}
.text-primary{
    color: var(--bs-blue) !important;
}
.text-secondary{
    color: var(--bs-blue) !important;
}
.text-accent{
    color: var(--bs-blue) !important;
}
.header-border-bottom{
    border-bottom: 1px solid var(--bs-primary) !important;
}

/* Blue accent button */
.btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: var(--bs-blue);
    border-color: var(--bs-blue);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--bs-blue-dark);
    border-color: var(--bs-blue-dark);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 15px rgba(220, 20, 60, 0.4);
}

.btn-outline-secondary {
    color: var(--bs-blue) !important;
    border-color: var(--bs-blue) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--bs-blue) !important;
    border-color: var(--bs-blue) !important;
    color: var(--bs-white) !important;
}

/* Blue background utility */
.bg-blue {
    background-color: var(--bs-blue) !important;
}

.bg-blue-light {
    background-color: var(--bs-blue-light) !important;
}
.btn-primary.active, .btn-primary:focus{
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    transform: translateY(0);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bs-primary);
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 15px rgba(220, 20, 60, 0.4);
}

.btn-primary:hover::before {
    left: 0;
}

.bg-primary{
    background-color: var(--bs-primary) !important;
}
.bg-dark{
    background-color: var(--bs-dark) !important;
}
.bg-light{
    background-color: var(--bs-light) !important;
}
.bg-light-dropdown{
    background-color: var(--bs-light) !important;
}
h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1{
    color: var(--bs-primary) !important;
}
.btn-outline-primary{
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.btn-outline-primary:hover{
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

/*** 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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

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

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

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

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


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

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

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    /* background: url(../img/generated-image.png) top center no-repeat; */
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}
.card-overlay .overlay-content h6 {
    max-width: 220px;
    width: 90%;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    word-break: break-word;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-primary);
}

.service-item.bg-white:hover {
    background: var(--bs-primary-light) !important;
}

.service-item.bg-white p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-white:hover p {
    color: var(--bs-primary);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    /* background: var(--bs-primary); */
    color: var(--bs-primary) !important;
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    /* background: var(--bs-light); */
    color: var(--bs-dark) !important;
}

.service-item.bg-white .service-img h3 {
    /* background: var(--bs-light); */
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-white:hover .service-img h3 {
    /* background: var(--bs-dark); */
    color: var(--bs-secondary) !important;
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.png) bottom right no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-blue);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--bs-blue);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-blue);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Social icons with blue accent */
.footer .btn-outline-primary:hover {
    background-color: var(--bs-blue) !important;
    border-color: var(--bs-blue) !important;
}

/* Blue icon accent class */
.text-blue {
    color: var(--bs-blue) !important;
}

/* Feature icons with blue accent for alternating effect */
.icon-blue {
    color: var(--bs-blue) !important;
}

/* Card with blue accent border on hover */
.card-blue-accent {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.card-blue-accent:hover {
    border-left-color: var(--bs-blue);
}

/* Blue gradient text effect */
.text-gradient-blue {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero section accent */
.hero-header .text-primary {
    position: relative;
}

.hero-header .text-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-blue));
    border-radius: 2px;
}

/* Newsletter section red accents */
.newsletter .form-control:focus {
    border-color: var(--bs-blue);
    box-shadow: 0 0 0 0.25rem rgba(220, 20, 60, 0.25);
}

/* Section divider with blue */
.section-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-blue));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* Breadcrumb blue accent */
.breadcrumb-item a:hover {
    color: var(--bs-blue) !important;
}

/* Testimonial blue accent */
.testimonial-text h3 {
    position: relative;
    display: inline-block;
}

.testimonial-carousel .owl-dot:hover {
    border-color: var(--bs-blue);
}

/* Contact icons blue */
.footer .fa-phone-alt,
.footer .fa-envelope {
    color: var(--bs-blue);
}

/* Form inputs with red focus */
.form-control:focus,
.form-floating .form-control:focus {
    border-color: var(--bs-blue);
    box-shadow: 0 0 0 0.25rem rgba(220, 20, 60, 0.25);
}

/* Spinner with alternating colors */
.spinner-grow.text-primary {
    background-color: var(--bs-blue);
}

/* Link hover blue accent */
a:hover {
    color: var(--bs-blue);
}

/* Back to top button blue hover */
.back-to-top:hover {
    background-color: var(--bs-blue) !important;
    border-color: var(--bs-blue) !important;
}

/* Selection highlight */
::selection {
    background-color: var(--bs-blue);
    color: white;
}

/* Scrollbar styling with blue accent */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-blue);
}

/* Full-width Service Sections */
.service-section {
    padding: 80px 0;
}

.service-section img {
    transition: transform 0.3s ease;
}

.service-section:hover img {
    transform: scale(1.02);
}

.service-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-section ul.list-unstyled li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.service-section ul.list-unstyled li i {
    color: var(--bs-primary);
    margin-right: 0.5rem;
}

/* Mobile responsiveness for service sections */
@media (max-width: 991px) {
    .service-section .flex-row-reverse {
        flex-direction: column !important;
    }
    
    .service-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .service-section h2 {
        font-size: 2rem;
    }
    
    .service-section img {
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .service-section {
        padding: 40px 0;
    }
    
    .service-section h2 {
        font-size: 1.75rem;
    }
    
    .service-section img {
        height: 250px !important;
    }
}