/********** Template CSS **********/
:root {
    --primary: #0d6efd;
    --secondary: #4777f5;
    --light: #f7faff;
    --dark: #1d1d27;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s ease-out,
        visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition:
        opacity 0.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;
}

body {
    position: relative;
    overflow-x: hidden;
    /* Soft Light Tech Navy Base */
    background-color: #eef2f9;
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(13, 110, 253, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 20%,
            rgba(111, 66, 193, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 65%,
            rgba(13, 202, 240, 0.1),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(111, 66, 193, 0.1),
            transparent 28%
        ),
        linear-gradient(135deg, #eef2f9 0%, #e3e8f3 50%, #dadfe9 100%);
    background-attachment: fixed;
    color: #1e293b; /* Global Default Dark Text */
}

/* Ambient Blue Soft Glow */
body::before {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    top: 2%;
    left: -250px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.12);
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

/* Ambient Purple Soft Glow */
body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    right: -250px;
    bottom: 2%;
    border-radius: 50%;
    background: rgba(111, 66, 193, 0.12);
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
    font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}

.py-15 {
    padding-top: 10rem;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: 0.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;
    border-radius: 50px;
}

/*** Custom Glassmorphism Navbar ***/

.navbar-light,
.sticky-top.navbar-light {
    position: fixed !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999;

    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 30px 0 rgba(13, 110, 253, 0.08);

    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Brand Logo Styling */
.navbar-light .navbar-brand img {
    max-height: 48px;
    transition: all 0.4s ease;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 40px;
}

/* Search Glass Circle Button */
.navbar-light .btn[data-bs-target="#searchModal"] {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    color: #0d6efd !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.navbar-light .btn[data-bs-target="#searchModal"]:hover {
    background: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.25);
}

/* Desktop Styles (Large Screens: 1200px+) */
@media (min-width: 1200px) {
    .navbar-light,
    .sticky-top.navbar-light {
        width: calc(100% - 240px) !important;
        max-width: 1200px;
        padding: 6px 30px !important;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-left: 22px !important;
        font-size: 0.95rem;
    }
}

/* Medium Desktop & Tablets (1024px to 1199.98px Fix) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-light,
    .sticky-top.navbar-light {
        width: calc(100% - 40px) !important;
        padding: 6px 20px !important;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-left: 12px !important;
        font-size: 0.88rem !important;
    }
}

/* Desktop Shared Nav Link & Underline Styles */
@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link {
        position: relative;
        color: #0f172a !important;
        font-weight: 600;
        padding: 12px 0 !important;
        white-space: nowrap !important;
        transition: all 0.3s ease;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: #0d6efd !important;
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 3px;
        bottom: 2px;
        left: 50%;
        background: linear-gradient(90deg, #0d6efd, #6f42c1);
        border-radius: 10px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

/* Mobile & Small Tablets (Under 992px) */
@media (max-width: 991.98px) {
    .navbar-light,
    .sticky-top.navbar-light {
        width: calc(100% - 30px) !important;
        border-radius: 30px !important;
        padding: 8px 18px !important;
    }

    .navbar-light .navbar-collapse {
        margin-top: 10px;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 8px 0;
        margin-left: 0;
        color: #0f172a !important;
        font-weight: 600;
    }
}
/*** Hero Header ***/
.hero-header {
    background:
        url(../img/bg-dot.png), url(../img/bg-dot.png),
        url(../img/bg-round.png), url(../img/bg-tree.png);
    /* url(../img/bg-bottom-hero.png); */
    background-position:
        10px 10px,
        bottom 190px right 10px,
        left 55% top -1px,
        left 45% bottom -1px,
        center bottom -1px;
    background-repeat: no-repeat;
}

/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, 0.5);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}

/*** Testimonial ***/
.newsletter,
.testimonial {
    background: url(../img/bg-top.png), url(../img/bg-bottom.png);
    background-position:
        left top,
        right bottom;
    background-repeat: no-repeat;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--light) !important;
    border-color: var(--light);
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #888888;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
    color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item h6 {
    color: var(--dark) !important;
}

/*** Team ***/
/* --- Pre-defined values for Glassmorphism effects for team --- */
:root {
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-white-hover: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-border-hover: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --glass-shadow-hover: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.team-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
    z-index: 1;
}

.team-item::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition:
        background 0.5s ease,
        backdrop-filter 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.5s ease;
    z-index: -1;
}

.team-item:hover::after {
    background: var(--glass-white-hover);
    backdrop-filter: blur(15px);
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--glass-border-hover);
}

.team-item .image-container {
    position: relative;
    z-index: 2;
}

.team-item img.team-member-img {
    object-fit: cover;
    width: 100%;
    height: auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.team-info {
    background: transparent;
    transition: none;
    position: relative;
    padding: 1.5rem 1rem !important;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-item h5,
.team-item small {
    transition: color 0.3s ease;
    position: relative;
    z-index: 4;
}

.team-item h5 {
    color: #34395e;
}
.team-item small {
    color: #6c757d;
}

.team-item:hover h5 {
    color: #2e314f;
}
.team-item:hover small {
    color: #5b6269;
}

/*** Project Portfolio ***/
.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.portfolio-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.3) 0%,
        rgba(15, 23, 42, 0.85) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 16px; /* Reduced padding to eliminate extra spacing */
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.details-badge {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .details-badge {
    transform: translateY(0);
}

.details-badge i {
    font-size: 14px;
    color: #2563eb;
}

.details-badge span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.portfolio-info {
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 0;
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.portfolio-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

/*** Footer ***/
.footer {
    background: url(../img/footer.png) center center no-repeat;
    background-size: contain;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(256, 256, 256, 0.1);
    border-radius: 40px;
    transition: 0.3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    transition: 0.3s;
}

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

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

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

.footer .copyright a {
    color: var(--light);
}

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

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

/* custom css by Moeen */
.card-glass {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 20px !important;
    box-shadow:
        0 15px 35px -5px rgba(13, 110, 253, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.card-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-btn {
    color: #0d6efd !important;
    background: #ffffff !important;
    border: 1px solid rgba(13, 110, 253, 0.3) !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease !important;
}

.card-btn:hover {
    background: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3) !important;
}

.team-item .d-flex {
    min-width: 0;
}

.team-member-img {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    object-fit: cover;
}

/* Custom Glass Card Styling */
.service-item {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 20px !important;
    padding: 40px 28px !important;
    box-shadow:
        0 15px 35px -5px rgba(13, 110, 253, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

/* Glass Hover State - Fixing Text Contrast */
.service-item:hover {
    border-color: rgba(13, 110, 253, 0.4) !important;
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 45px -10px rgba(13, 110, 253, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 1) !important;
}

/* Premium Gradient Border Accent on Top */
.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-item:hover::before {
    opacity: 1;
}

/* Icon Design */
.service-item .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.12),
        rgba(111, 66, 193, 0.12)
    );
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 5%;
    transition: all 0.4s ease;
}

.service-item:hover .service-icon {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
    transform: rotateY(360deg);
}

/* Typography Solutions (Fixing Visibility) */
.service-item h5 {
    color: #0f172a !important;
    font-weight: 700;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.service-item:hover h5 {
    color: #0d6efd !important;
}

.service-item p {
    color: #475569 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Button Fixes */
.service-item .btn {
    color: #0d6efd !important;
    background: #ffffff !important;
    border: 1px solid rgba(13, 110, 253, 0.3) !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease !important;
}

.service-item:hover .btn {
    background: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3) !important;
}

/* Custom code for project details gallery */
/* Responsive Masonry Layout */
.gallery-masonry {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    border: 1px solid #545353;
    border-radius: 8px;
    overflow: hidden;
}

/* Tablet view */
@media (max-width: 992px) {
    .gallery-masonry {
        column-count: 2;
    }
}

/* Mobile view */
@media (max-width: 576px) {
    .gallery-masonry {
        column-count: 1;
    }
}

.gallery-item img {
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}
