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

/* Defining color variables and base font */
:root {
    --primary: #282561;    /* Dark blue for primary elements */
    --secondary: #F26330;  /* Vibrant orange for accents */
    --light: #F4F6F8;      /* Light background */
    --dark: #1A1A3A;       /* Darker shade for contrast */
    --gray: #6C757D;       /* Neutral gray for secondary text */
    font-family: "Josefin Sans", sans-serif;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Animation Classes */
.animate-slide-in-down { animation: slideInDown 0.6s ease-out; }
.animate-slide-in-up { animation: slideInUp 0.6s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.6s ease-out; }
.animate-zoom-in { animation: zoomIn 0.8s ease-out; }
.animate-fade-in { animation: fadeIn 1s ease-out; }
.animate-pulse:hover { animation: pulse 0.5s ease; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    color: var(--dark);
}

p, a, span {
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300; /* Fixed incomplete value */
    font-style: normal; /* Fixed from '300' to 'normal' for consistency */
}

/* Padding Classes */
.pt-6 { padding-top: 90px; }
.pb-6 { padding-bottom: 90px; }
.py-6 { padding-top: 90px; padding-bottom: 90px; }

/* Button Styles */
.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 24px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: var(--secondary);
    transition: all 0.3s ease;
}

.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

.btn-md-square {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary);
    transition: background 0.3s ease;
}

.btn-md-square:hover {
    background: var(--secondary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    display: none;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

/* Backgrounds */
.bg-dark-radial {
    background: radial-gradient(circle, var(--dark) 0%, rgba(26, 26, 58, 0.8) 100%);
}

.bg-light-radial {
    background: radial-gradient(circle, var(--light) 0%, rgba(255, 255, 255, 0.9) 100%);
}

/* Navbar */
.navbar-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0 20px;
}

.navbar-dark .navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-dark .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 300;
    color: var(--light);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link i {
    font-size: 18px;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover i,
.navbar-dark .navbar-nav .nav-link.active i {
    transform: scale(1.2);
    color: var(--secondary);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 25%;
    background: var(--secondary);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 50%;
}

.navbar-dark .navbar-nav .nav-link.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link.bg-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    .navbar-dark .navbar-nav .nav-link i {
        font-size: 16px;
        margin-right: 6px;
    }
    .navbar-dark .navbar-nav .nav-link.bg-primary {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

/* Carousel */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 26, 58, 0.85), rgba(26, 26, 58, 0.85));
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    object-fit: cover;
    height: 700px;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    background: rgba(26, 26, 58, 0.5);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary);
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 16px;
        font-weight: 500;
    }
    .carousel-caption h1 {
        font-size: 28px;
        font-weight: 600;
    }
    .carousel-item img {
        height: 400px;
    }
}

/* Page Header */
.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(26, 26, 58, 0.7), rgba(26, 26, 58, 0.7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/* Service Items */
.service-item {
    position: relative;
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-item img {
    transition: transform 0.5s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: var(--secondary);
}

.service-item:hover .service-icon i {
    color: #FFFFFF;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

/* Portfolio */
.portfolio-item {
    margin-bottom: 60px;
}

.portfolio-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-box {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.portfolio-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    text-align: center;
    border-top: 2px solid var(--secondary);
    transition: transform 0.3s ease;
}

.portfolio-title h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.portfolio-title span {
    font-size: 14px;
    color: var(--gray);
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: width 0.5s ease;
    z-index: 1;
    background: rgba(26, 26, 58, 0.7);
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    width: 50%;
}

.portfolio-item .carousel-item img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item .carousel-item.active img {
    animation: slideInRight 0.6s ease-out;
}

.portfolio-item:hover .carousel-item img {
    transform: scale(1.05);
}

.portfolio-item .carousel-control-prev,
.portfolio-item .carousel-control-next {
    width: 12%;
    background: rgba(26, 26, 58, 0.5);
    transition: all 0.3s ease;
}

.portfolio-item .carousel-control-prev:hover,
.portfolio-item .carousel-control-next:hover {
    background: var(--secondary);
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
}

.contact-section .display-5 {
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.contact-section .display-5::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.map-container {
    height: 600px;
    width: 650px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

.contact-form {
    background: var(--light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.form-input {
    height: 55px;
    border: none;
    border-bottom: 2px solid var(--gray);
    background: transparent;
    padding: 10px 15px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.form-input::placeholder {
    color: var(--gray);
}

textarea.form-input {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.gradient-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
    .map-container {
        height: 400px;
        width: 100%;
    }
    .contact-form {
        margin-top: 30px;
    }
}

/* Architecture Services Section */
.architecture-services {
    padding: 60px 20px;
}

.architecture-services .display-4 {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.architecture-services .display-4::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.service-card {
    background: var(--light);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.text-justify {
    text-align: justify;
}

@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 20px;
    }
    .architecture-services .display-4 {
        font-size: 2rem;
    }
}

/* Construction Services Section */
.construction-services {
    padding: 60px 20px;
}

.construction-services .display-4 {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.construction-services .display-4::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.service-card {
    background: var(--light);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-card .row {
    align-items: center;
}

.service-card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.text-justify {
    text-align: justify;
}

@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 20px;
    }
    .service-card .col-md-4,
    .service-card .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .construction-services .display-4 {
        font-size: 2rem;
    }
}

/* Painting Services Section */
.painting-services {
    padding: 60px 20px;
}

.painting-services .display-4 {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.painting-services .display-4::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.service-card {
    background: var(--light);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.text-justify {
    text-align: justify;
}

@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 20px;
    }
    .painting-services .display-4 {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background: var(--dark) url('../img/footer.jpg') no-repeat center center;
    background-size: contain;
    background-attachment: fixed;
    color: var(--primary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for readability */
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-card {
    background: #FFFFFF;
    border: 2px solid var(--secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-card h4 {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
}

.footer-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary);
}

.footer-card a {
    color: var(--primary);
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-card a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-card .btn-primary {
    background: var(--primary);
    border: none;
    transition: background 0.3s ease;
}

.footer-card .btn-primary:hover {
    background: var(--secondary);
}

.footer .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.footer .form-control::placeholder {
    color: var(--primary);
    opacity: 0.7;
}

/* Remove footer-shape::before from previous design */
.footer-shape::before {
    display: none;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .portfolio-title {
        padding: 10px;
    }
    .portfolio-item .carousel-item img {
        height: 200px;
    }
    .carousel-item img {
        height: 400px;
    }
    .footer-card {
        margin-bottom: 20px;
    }
}