html,
body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #00AEEF;
    --secondary-color: #2E2E54;
    --text-color: #646464;
    --heading-color: #020E28;
    --white: #ffffff;
    --black: #000000;
    --light-bg: #F8F9FA;
    --font-primary: 'DM Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.8s ease-in-out;
}

.loader {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(0, 174, 239, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

.loader-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    color: var(--secondary-color);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

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

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

.preloader-active {
    overflow: hidden;
}

.preloader-fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 15px 35px;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 0;
    transition: var(--transition) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.3);
}

/* Common Utilities */
.py-100 {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.bg-dark-blue {
    background-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.sub-title {
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 15px;
    position: relative;
}

/* Header */
.header-top {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 14px;
    padding: 10px 0;
}

.header-top a:hover {
    color: var(--primary-color);
}

.header-top i {
    color: var(--primary-color);
    margin-right: 5px;
}

.main-header {
    background-color: var(--white);
    transition: var(--transition);
    z-index: 1000;
}

.main-header .navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 20px 15px !important;
    position: relative;
    transition: var(--transition);
}

.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.main-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.main-header .navbar-nav .nav-link:hover::after,
.main-header .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    height: 800px;
}

.hero-slide {
    height: 800px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(46, 46, 84, 0.9) 0%, rgba(46, 46, 84, 0.4) 100%);
}

.hero-content h1 {
    font-size: 70px;
    line-height: 1.1;
    color: var(--white);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 25px 0 40px;
}

/* About Section */
.about-img-area {
    position: relative;
}

.about-main {
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.about-small {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 250px;
    border: 10px solid var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.services-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.service-card {
    background: #06163A;
    padding: 40px 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-content {
    margin-top: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content .read-more {
    margin-top: auto !important;
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card:hover h3,
.service-card:hover h3 a,
.service-card:hover p,
.service-card:hover .read-more,
.service-card:hover .read-more i {
    color: var(--heading-color) !important;
}

.service-img {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    transition: var(--transition);
    z-index: 2;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}



.transition-link {
    transition: var(--transition);
}

.service-card:hover .transition-link {
    padding-left: 5px;
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    transform: rotateY(180deg);
}

/* Process Card */
.process-card {
    text-align: center;
}

.icon-circle {
    width: 110px;
    height: 110px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.process-card h4 {
    margin-bottom: 15px;
}

.process-card:hover .icon-circle { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-md); 
    border-color: var(--primary-color);
}

.process-card:hover .icon-circle i {
    color: var(--secondary-color) !important;
}

.icon-circle .count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team Card */
.team-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.team-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Quote Form */
.quote-form-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary-color);
}

.form-control,
.form-select {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Projects Section */
.project-box {
    height: 450px;
    overflow: hidden;
    position: relative;
}

.project-main-img {
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(0deg, rgba(46, 46, 84, 0.95) 0%, rgba(46, 46, 84, 0) 100%);
    transition: var(--transition);
}

.project-box:hover .project-main-img {
    transform: scale(1.1);
}

.project-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-box:hover .project-btn {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer */
.main-footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 100px;
}

.footer-widget-title {
    color: var(--white);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-list li {
    margin-bottom: 15px;
}

.footer-list a:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    background: #1a1a3a;
    padding: 25px 0;
    margin-top: 80px;
}

/* Floating-Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    color: var(--white);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .display-5 {
        font-size: 32px;
    }

    .py-100 {
        padding: 50px 0;
    }

    .about-small {
        width: 150px;
        right: 0;
        bottom: -20px;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 10px;
        box-shadow: var(--shadow-md);
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .whatsapp-float, .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
    }
    .whatsapp-float { left: 20px; }
    .back-to-top { right: 20px; font-size: 18px; }

    .about-img-area {
        margin-bottom: 50px;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 14px;
    }

    .sub-title {
        font-size: 12px;
    }
}