@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url("color-schemes.css");

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar-track {
    background-color: var(--scrollbar-bg);
}

::-webkit-scrollbar {
    width: 6px;
    background-color: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

/* Lazy Loading Styles */
.lazy-load {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: blur(5px);
    position: relative;
    z-index: 2;
}

.lazy-load[src],
.loaded {
    opacity: 1;
    filter: blur(0);
    transition: opacity 1s ease-in-out, filter 1s ease-in-out;
}

/* Image placeholder for lazy loading */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    z-index: 1;
    transform: scale(1.1);
}

/* Background lazy loading */
section[data-src] {
    background-color: var(--dark-bg);
    /* Placeholder color before image loads */
    transition: background-image 0.5s ease-in-out;
    position: relative;
}

/* Section animations */
.section-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: none;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.background-loaded {
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
    }
}

/* Add staggered animation for service cards */
.service-grid .service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease, transform 0.3s ease;
}

.section-visible .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.section-visible .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.section-visible .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.section-visible .service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.section-visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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

/* Header/Navigation Styles */
header {
    background-color: var(--light-bg);
    color: var(--text-secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 10px #dedede;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo img {
    height: 55px;
    margin-right: 0.5rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav ul li a {
    position: relative;
    padding-bottom: 0;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
    transition: color 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.cta-button .btn {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: var(--primary-darker) !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 3;
}

.hero-content {
    flex: 1;
    opacity: 1 !important;
    transform: none !important;
}

.hero-image {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    min-height: 300px;
    background-color: rgba(13, 13, 13, 0.5);
}

.hero-image img {
    position: absolute;
    right: 0;
    top: 0;
}

.hero h2 {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    display: inline-flex;
    padding: 16px 40px;
    align-items: flex-start;
    border-radius: 8px;
    background: var(--secondary-color);
    color: var(--text-light);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    outline: none;
}

.hero-content .btn:focus {
    box-shadow: none;
    outline: none;
}

/* Override section hide/show for hero section to ensure immediate visibility */
.hero.section-hidden {
    opacity: 1 !important;
    transform: none !important;
}

/* About Us Section */
.about-us {
    padding: var(--section-padding);
    background-color: var(--background-white);
}

.about-us .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about-images img:first-child {
    border-radius: 8px;
    overflow: hidden;
}

.about-images img:last-child {
    border-radius: 8px;
    overflow: hidden;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    color: var(--text-medium);
    font-size: 22px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}

.about-content h3 {
    color: var(--text-medium);
    font-size: 48px;
    font-weight: 700;
    line-height: 48px;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    margin-bottom: 10px;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    padding-top: 50px;
    text-align: center;
}

.services h2 {
    color: var(--text-medium);
    font-size: 22px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}

.services h3 {
    color: var(--text-medium);
    font-size: 48px;
    font-weight: 700;
    line-height: 55px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem 1rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(11, 11, 11, 0.05);
}

.service-icon {
    margin-bottom: 1.5rem;
    height: 40px;
    display: flex;
    align-items: center;
}

.service-icon img {
    height: 100%;
}

.service-card h4 {
    color: var(--text-medium);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    margin: 0;
}

/* Footer Styles */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 7rem;
}

.footer-logo img {
    height: 55px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-info {
    display: flex;
    justify-content: end;
}

.footer-info p {
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.contact-info h4 {
    margin-bottom: 1rem;
    font-size: 20px;
    color: var(--text-light);
    font-weight: 800;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

.contact-info a {
    color: var(--text-light);
    transition: color 0.3s ease;
    text-decoration: underline;
}

.footer-logo p {
    font-size: 16px;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--primary-dark);
}

.copyright {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: var(--text-gray);
    font-size: 0.9rem;
}


/* Quote Section */
.about-us.quote-section .container {
    display: block;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-section);
    text-align: center;
}

.inner-banner-bg.capabilities-section .section-header p {
    color: var(--text-section);
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--section-after-bg);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.about-us-content-section h2 {
    font-weight: 200;
    margin-bottom: 20px;
    color: var(--section-after-bg);
    line-height: 45px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 3px;
}

.about-us-content-section h2::after {
    display: none;
}

section.about-us.quote-section {
    padding: 0px 0 50px 0;
    background: var(--quote-page-bg);
}

.quote-section .container {
    max-width: 1340px;
}


.quotation-img-block {
    margin-top: 10px;
}

.quotation-block .form-group {
    margin-bottom: 10px;
    text-align: left;
}

.quotation-block label {
    font-size: 15px;
    margin-bottom: 0px;
    font-weight: 600;
    color: var(--text-form);
}

.astrick {
    color: var(--error-color);
    font-size: 12px;
}

.quotation-block .form-control {
    border: 1px solid var(--border-form);
    margin-top: 2px;
    box-shadow: none;
    font-size: 14px;
    height: 40px;
    color: var(--text-form);
    padding: .375rem .75rem;
    outline: none;
}

.send-btn {
    display: flex;
    gap: 12px;
}

button.btn-reset {
    background: transparent;
    padding: 8px 35px;
    transition: .5s;
    box-shadow: none;
    color: var(--section-after-bg);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--section-after-bg);
    border-radius: 4px;
    outline: none;
}

button.btn-submit {
    padding: 8px 35px;
    background-color: var(--section-after-bg);
    transition: .5s;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--section-after-bg);
    border-radius: 4px;
    outline: none;
}

button.btn-submit:hover {
    background: var(--primary-darker);
}

.about-us.about-us-inner-page .container:first-child {
    display: block;
}

.about-us.about-us-inner-page {
    padding: 50px 0;
}

.capabilities-section {
    padding: 50px 0;
    background: var(--background-light);
}

.single-services {
    -webkit-box-shadow: 0px 0px 10px 0px rgba(154, 154, 154, 0.16);
    -moz-box-shadow: 0px 0px 10px 0px rgba(154, 154, 154, 0.16);
    box-shadow: 0px 0px 10px 0px rgba(154, 154, 154, 0.16);
    -webkit-transition: all 0.3s ease-out 0s;
    -moz-transition: all 0.3s ease-out 0s;
    -ms-transition: all 0.3s ease-out 0s;
    -o-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
    padding: 0;
    margin-bottom: 30px;
    border: solid 1px var(--border-light);
    border-radius: 4px;
    background: var(--background-card);
}

.single-services:last-child {
    margin: 0;
}

.single-services.img-sec img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.portfolio-row .services-content {
    min-height: 230px;
    padding: 12px;
}

.portfolio-row .services-content h3 {
    margin-bottom: 10px;
    margin-top: 0px;
    font-size: 24px;
    color: var(--text-section);
    font-weight: 600;
    text-align: left;
}

.single-services .services-content p {
    color: var(--text-form);
    margin-bottom: 12px;
}

.contact-block {
    color: rgb(0, 0, 0);
    padding: 0;
    border-radius: 4px;
    text-align: left;
}

.white-box {
    background: rgb(238 238 238 / 91%);
    border-radius: 4px;
    padding: 20px;
    margin: 25px 0px;
}

.white-box h4 {
    font-size: 18px;
    color: rgb(14, 14, 14);
    font-weight: 600;
    margin-bottom: 8px;
}

.white-box p,
.white-box p a {
    font-size: 15px;
    color: rgb(0, 0, 0);
    margin-bottom: 0px;
}

/* Contact Form Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-container .loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--loader-bg);
    border-radius: 50%;
    border-top: 5px solid var(--loader-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 100%;
    }
}

/* Responsive Styles */
@media screen and (max-width: 1199px) {
    .hero-image img {
        position: relative;
    }
}

@media screen and (max-width: 1100px) {
    .nav-container {
        gap: 30px;
    }

    nav ul {
        gap: 1.5rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

}

@media screen and (max-width: 992px) {
    .nav-container {
        gap: 20px;
    }

    nav ul {
        gap: 1.2rem;
    }

    nav ul li a {
        font-size: 15px;
    }

    .cta-button .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content h3,
    .services h3 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-logo {
        padding-right: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
        width: 100%;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-bg);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 150;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 18px;
    }

    header .container {
        flex-direction: row;
        gap: 1rem;
    }

    .logo {
        order: 1;
        margin-left: 80px;
    }

    .cta-button {
        order: 2;
    }

    /* Add overlay when menu is open */
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Menu toggle animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Main content layouts */
    .hero .container,
    .about-us .container {
        flex-direction: column;
        gap: 2rem;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        padding: 3rem 0;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        order: -1;
        width: 100%;
    }

    .hero-image img {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
    }

    .about-images img:last-child {
        margin-top: 0;
        margin-left: 0;
    }

    .about-content h3,
    .services h3 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        padding-right: 0;
    }

    .footer-info {
        justify-content: flex-start;
    }

    .single-services {
        margin-bottom: 20px !important;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .about-content h2,
    .services h2 {
        font-size: 1rem;
    }

    .about-content h3,
    .services h3 {
        font-size: 1.5rem;
        line-height: 30px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    footer {
        padding: 3rem 0 0;
    }

    .footer-logo {
        text-align: center;
        align-items: center;
    }

    .footer-info {
        justify-content: center;
        text-align: center;
    }

    .contact-info {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        height: 28px;
    }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .about-us,
    .services {
        padding: 1rem 0;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hero Image Placeholder */
.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--spinner-bg);
    z-index: 1;
}

.hero-image img.loaded~.hero-image-placeholder,
.hero-image img[src]~.hero-image-placeholder {
    display: none;
}

/* Additional responsive styles */
body.menu-open {
    overflow: hidden;
}

/* Make sure images are responsive */
.about-images img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image img {
    max-width: 45%;
    height: 100%;
    display: block;
}


/* Improve touch targets on mobile */
@media (hover: none) and (pointer: coarse) {

    nav ul li a,
    .btn,
    .cta-button .btn {
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Prevent layout shifting during lazy loading */
.lazy-load {
    min-height: 1px;
    min-width: 1px;
}