.portfolio-item {
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item.hidden {
    display: none;
}

.filter-active {
    @apply bg-blue-500/10 text-blue-500 border-l-4 border-blue-500;
}

.filter-btn {
    @apply w-full text-left px-4 py-3 hover:bg-blue-500/5 transition-all border-l-4 border-transparent;
}

#portfolio {
    background-image: url("https://renderocks.com/images/portfolio_bg.png");

    /* background-repeat: no-repeat; */
}
.text-cyan {
    color: #3bddff;
}

.page-bg {
    background-image: url("https://renderocks.com/images/page-bg.png");

    background-size: cover;
}

.common-bg {
    background-image: url("https://renderocks.com/images/abt_us-bg.png");

    background-size: cover;
}
.custom-btn {
    z-index: 2;
    font-family: "Baloo 2";
    position: relative;
    background: linear-gradient(
        to right,
        rgb(37, 143, 233),
        rgb(57, 187, 199)
    ) !important;
    color: #fff !important;
    transition: all 0.7s ease !important;
    border-radius: 10px !important;
}
.custom-btn::before {
    position: absolute;
    content: "";
    inset: 0; /* same as { top: 0; right: 0; bottom: 0; left: 0; } */
    background-image: linear-gradient(
        to right,
        rgb(40, 103, 159),
        rgb(9, 131, 140)
    ) !important;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.25s linear;
    border-radius: 10px !important;
}

.custom-btn:hover::before {
    opacity: 1;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    flex-flow: column;
    align-items: center;
}
.half-width {
    width: 50% !important;
}

@font-face {
    font-family: "Good Times";

    src: URL("https://renderocks.com/fonts/Good-Times-Rg.otf")
        format("opentype");
}

.font-good-times {
    font-family: "Good Times";
}
.font-balu-thambi {
    font-family: "Baloo Thambi 2";
    src: URL("fonts/BalooThambi2.ttf") format("truetype");
    font-size: 1.1rem;
    line-height: 1.4rem;
}
.font-baloo {
    font-family: "Baloo 2";
    /* src: URL('fonts/Good Times Rg.otf') format('opentype'); */
}
.font-mukta-malar {
    font-family: "Mukta Malar", serif;
    font-weight: 400;
    font-style: normal;
}

.filter-btn {
    @apply w-full px-6 py-3 rounded-full text-left transition-all duration-300
           bg-gray-700/30 hover:bg-blue-500/20 backdrop-blur-sm
           border border-gray-600/30 hover:border-blue-500/30;
    /* width: 75%; */
    display: block;
    margin: 1rem;
    margin-bottom: 3rem;
    padding: 0.1rem 0.5rem;
    border-radius: 0.5rem;
    transition: 0.5s all;
}

.filter-btn:hover {
    background-color: #ffffffb3;
    color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}

.filter-active {
    @apply bg-blue-500/20 text-blue-400 border-blue-500/50
           shadow-lg shadow-blue-500/10;
}

.portfolio-item {
    max-width: 33%;
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.9);
}

/* Optional: Add hover lift effect to portfolio items */
.portfolio-item:hover {
    transform: translateY(-8px);
}

.feature-container {
    position: relative;
    margin-bottom: 2.5rem;
}

.feature-number {
    position: absolute;
    top: -35px;
    left: -10px;
    font-size: 2rem;
    font-weight: 600;
    color: #9d9eaa;
    line-height: 1;
    font-family: "Baloo Thambi 2";
    z-index: 1;
}

.feature-box {
    background: linear-gradient(
        to bottom right,
        rgb(29, 55, 93),
        rgb(32, 60, 95)
    );
    border-radius: 30px 3px 3px 3px;
    padding: 1rem 1.5rem;
    position: relative;
    /* border: 5px solid linear-gradient( to bottom right,
    rgb(37, 81, 128), rgb(66, 243, 255)); */
    border: 5px solid rgb(59, 221, 255);
    box-shadow: 0 0 0 1px rgba(0, 198, 255, 0.1),
        0 0 30px rgba(0, 198, 255, 0.1), inset 0 0 30px rgba(0, 198, 255, 0.05);
    margin-top: 3rem; /* Add space for the number */
    z-index: 2;
    transition: all 0.5s ease-in-out;
}

.feature-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgb(29, 55, 93),
        rgb(32, 60, 95)
    );
    border-radius: inherit;
    z-index: -1;
    transition: opacity 0.5s ease-in-out;
}

.feature-box:hover::before {
    opacity: 0;
}

/* Slide-in animation */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

a {
    transition: all 0.3s ease-in-out;
}
a:hover {
    background: linear-gradient(to right, #57DBFF, #4B8AFF, #E252FF, #FF42AA) !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
}

.feature-box:hover {
    background: linear-gradient(
        to bottom right,
        rgb(18 35 59),
        rgb(32, 60, 95)
    );
    border: 5px solid #fff;
    transform: scale(1.01);
}

.feature-box h5 {
    /* color: #00C6FF; */
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.character-image {
    position: absolute;
    left: 0;
    bottom: 0;
    max-height: 90%;
    width: auto;
}

@media (max-width: 1023px) {
    .character-image {
        position: relative;
        max-height: 400px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 640px) {
    .character-image {
        max-height: 300px;
    }
}

.contact-section {
    /* background: linear-gradient(to bottom, rgba(14, 26, 45, 0.95), rgba(16, 32, 56, 0.95)); */
    /* padding: 5rem 0; */
}

.contact-heading {
    color: #00c6ff;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
}

.contact-form {
    max-width: 600px;
    padding: 2rem 0;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem 0;
    }
}

.contact-input {
    width: 100%;
    background: linear-gradient(to right, rgb(27, 58, 67), rgb(34, 72, 76));
    border: 3px solid #44fcff;
    border-radius: 15px 0px 0px 0px;
    padding: 1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .contact-input {
        padding: 0.875rem;
        margin-bottom: 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-input {
        padding: 0.75rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
}

.contact-input::placeholder {
    color: rgb(255, 255, 255);
}

.contact-input:focus {
    border-color: rgba(0, 198, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.1);
}

.contact-textarea {
    min-height: 150px;
    resize: vertical;
    margin-bottom: 0;
}

.submit-btn {
    background: #00c6ff;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    /* transition: all 0.3s ease; */
}

.submit-btn:hover {
    background: #00a3d4;
    /* transform: translateY(-2px); */
}

.checkbox-wrapper {
    display: flex;
    justify-content: end;
    align-items: start;
    /* margin-bottom: 1.5rem; */
    gap: 0.5rem;
}

.contact-checkbox {
    width: 15px;
    height: 15px;
    appearance: none; /* Removes default styling */
    -webkit-appearance: none; /* Safari compatibility */
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid #00bcd4; /* Customize border color */
    border-radius: 50%; /* Makes it circular */
    outline: none;
    cursor: pointer;
}

.contact-checkbox:checked {
    background-color: #00bcd4; /* Change background when checked */
    border-color: #00bbd400; /* Match border color */
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: -3px;
    /* line-height: 1.5; */
}

.privacy-link {
    color: #00c6ff;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Entire scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
    height: 8px; /* Height of the scrollbar for horizontal scroll */
}

/* Scrollbar track */
::-webkit-scrollbar-track {
    background: #1f2937; /* Dark gray background */
    border-radius: 10px;
}

/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: #3b82f6; /* Blue scrollbar thumb */
    border-radius: 10px;
}

/* Scrollbar thumb hover */
::-webkit-scrollbar-thumb:hover {
    background: #2563eb; /* Darker blue on hover */
}

/* Loader container with blur background */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgb(17 24 39 / 0.95);
    border-top: 5px solid #00e0ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hidden class to hide the loader initially */
.hidden {
    display: none;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Main content styling */
.content {
    padding: 20px;
    text-align: center;
}

/* Modal container */
#successModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

/* Show modal */
#successModal.show {
    opacity: 1;
    pointer-events: auto;
}

/* Modal content */
#modal-content {
    background-color: #001f3fab; /* Navy blue */
    color: #00e0ff; /* #3BDDFF */
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    animation: slideIn 0.5s ease-in-out;
    backdrop-filter: blur(16px);
    border: 1px solid #00e0ff;
}

/* Slide-in animation */
@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* success checkmark css */

/**
 * Extracted from: SweetAlert
 * Modified by: Istiak Tridip
 */
.success-checkmark {
    width: 80px;
    height: 115px;
    margin: 0 auto;

    .check-icon {
        width: 80px;
        height: 80px;
        position: relative;
        border-radius: 50%;
        box-sizing: content-box;
        border: 4px solid #44fcff;

        &::before {
            top: 3px;
            left: -2px;
            width: 30px;
            transform-origin: 100% 50%;
            border-radius: 100px 0 0 100px;
        }

        &::after {
            top: 0;
            left: 30px;
            width: 60px;
            transform-origin: 0 50%;
            border-radius: 0 100px 100px 0;
            animation: rotate-circle 5s ease-in;
        }

        &::before,
        &::after {
            content: "";
            height: 100px;
            position: absolute;
            background: transparent;
            transform: rotate(-45deg);
        }

        .icon-line {
            height: 5px;
            background-color: #44fcff;
            display: block;
            border-radius: 2px;
            position: absolute;
            z-index: 10;

            &.line-tip {
                top: 46px;
                left: 14px;
                width: 25px;
                transform: rotate(45deg);
                animation: icon-line-tip 0.75s;
            }

            &.line-long {
                top: 38px;
                right: 8px;
                width: 47px;
                transform: rotate(-45deg);
                animation: icon-line-long 0.75s;
            }
        }

        .icon-circle {
            top: -4px;
            left: -4px;
            z-index: 10;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            position: absolute;
            box-sizing: content-box;
            border: 4px solid #44fcff;
        }

        .icon-fix {
            top: 8px;
            width: 5px;
            left: 26px;
            z-index: 1;
            height: 85px;
            position: absolute;
            transform: rotate(-45deg);
            background-color: transparent;
        }
    }
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

.modalMessage {
    color: #fff !important;
}

.nav-item-service:hover {
    cursor: pointer;
}

#navbar::before {
    content: "";
    position: absolute; /* Missing this */
    top: 0; /* Missing this */
    left: 0; /* Missing this */
    width: 100%; /* Missing this */
    height: 100%; /* Missing this */
    --tw-backdrop-blur: blur(4px);
    -webkit-backdrop-filter: var(--tw-backdrop-blur)
        var(--tw-backdrop-brightness) var(--tw-backdrop-contrast)
        var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate)
        var(--tw-backdrop-invert) var(--tw-backdrop-opacity)
        var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness)
        var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale)
        var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert)
        var(--tw-backdrop-opacity) var(--tw-backdrop-saturate)
        var(--tw-backdrop-sepia);
    z-index: -1; /* Changed this from 1 to -1 */
    pointer-events: none; /* Add this to ensure clicks pass through */
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: -300px;
    min-width: 50rem;
    /* background-color: rgba(17, 24, 39, 0.95); */
    border: 2px solid #3ba3f9;
    border-radius: 15px;
    padding: 30px 40px;
    margin-top: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    background: linear-gradient(
        135deg,
        rgba(20, 20, 50, 0.7),
        rgba(50, 100, 150, 0.9)
    );
    -webkit-backdrop-filter: blur(64px);
    backdrop-filter: blur(64px);
    z-index: 50;
    transform: translateZ(0);
    /* transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease; */
}

.dropdown-menu li {
    transition: 0.3s;
}

.dropdown-menu li:hover {
    letter-spacing: 1px;
}

.nav-item-service {
    padding-bottom: 30px !important;
}

.gradient-color {
    background: linear-gradient(to right, #00e0ff, #9b00ff) !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
}

.dropdown-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.dropdown-title-container {
    margin: 3rem 0px;
    padding-right: 3rem;
    border-right: 1px solid #eee;
}

.dropdown-column:not(:last-child) {
    border-right: 1px solid #00a3d4;
    /* box-shadow: 9px 2px 20px 10px #00a2d474; */
    padding-right: 10px;
}

.value-div {
    background: linear-gradient(
        to bottom,
        #02457a 5%,
        #013a63 50%,
        #012a4a 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -2px 8px rgba(255, 255, 255, 0.1);
}

/* accordian */

details {
    margin-bottom: 1rem !important;
}

summary {
    padding: 16px 24px;
    background-color: #1f3a5e !important; /* Darker blue background for headers */
    color: white;
    font-weight: 500;
    border: 3px solid #3bddff !important;
    border-radius: 15px 0px 0px 0px !important;
    /* box-shadow: 0 0 4px rgba(74, 165, 255, 0.25); */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

details[open] .accordion-content {
    max-height: 300px;
    border: 3px solid #3bddff;
    border-top: none !important;
}

details[open] summary {
    border-bottom: none !important;
}

.chevron {
    color: #fff !important;
    transition: transform 0.3s ease;
}

details[open] .chevron {
    transform: rotate(180deg);
}

/* Make the content div appear connected to the header when open */
.accordion-content > div {
    background-color: #1f3a5e;
    color: #d1d5db;
    border: 1px solid rgba(74, 165, 255, 0.4);
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 16px 24px;
    margin-top: -1px;
    /* box-shadow: 0 0 4px rgba(74, 165, 255, 0.25); */
}

details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* owl carousel */

.testimonial-card {
    background: linear-gradient(to bottom, #0a2a4a, #05213b, #0d4d89);
    box-shadow: 0 8px 32px rgba(0, 149, 255, 0.15);
    border: 2.5px solid rgba(74, 164, 255, 0.889);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
}
.client-name {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}
.client-role {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.client-role span {
    margin: 0 0.5rem;
}
.testimonial-text {
    color: #e6e6e6;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.testimonial-date {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}
.owl-nav {
    margin-top: 2rem;
}
.owl-prev,
.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px !important;
    height: 48px !important;
    background: rgba(74, 165, 255, 0.1) !important;
    border-radius: 50% !important;
    margin: 0 -60px !important;
}
.owl-prev span,
.owl-next span {
    color: #4aa5ff;
    font-size: 36px;
    line-height: 36px;
    position: relative;
    top: -4px;
}
.owl-dots {
    margin-top: 2rem !important;
}
.owl-dot span {
    width: 10px !important;
    height: 10px !important;
    margin: 0 6px !important;
    background: rgba(74, 165, 255, 0.2) !important;
    border-radius: 50% !important;
}
.owl-dot.active span {
    background: #4aa5ff !important;
}
/* Fix for card height consistency */
.owl-stage {
    display: flex;
}
.owl-item {
    display: flex;
    height: auto;
}

.owl-prev {
    left: 0px;
}

.owl-next {
    right: 0px;
}

.testimonial-section {
    background: linear-gradient(#0496af57, #037fbd4d, #004bbb4f);
    /* opacity: .38; */
}

.owl-carousel .owl-stage {
    background: transparent !important;
    border: none !important;
    height: 100% !important;
}

.faq .relative .flex {
    position: sticky;
    top: 20px;
}

.faq .relative .flex .character-image {
    position: relative;
    left: 0;
    bottom: 0;
    height: 500px;
    width: auto;
}

.fab {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: block;
    z-index: 10;
    /* position: sticky; */
}

.fab-btn {
    padding: 1rem;
}



.fab-btn img {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease-in-out;
}

.fab-btn img:hover {
    transform: scale(1.1);
}

.text-uppercase {
    text-transform: uppercase;
}

.counter-box {
    /* background-color: #001f3f; */
    text-align: center;
    /* box-shadow: 0px 0px 15px 2px #3bddff80,
        inset 0px 2px 15px 4px rgba(0, 0, 0, 0.5),
        4px 4px 10px rgba(0, 0, 0, 0.6) !important; */
    background: transparent;
    /* border: 2px solid #29b0cb; */
    border-radius: 30px;
}

.counter-box i {
    display: none;
}

.counter-box .counter-value {
    font-family: "Exo";
    font-weight: 800;
    margin: 1rem auto;
    font-size: 4rem !important;
}

.counter-box .counter-tag {
    font-family: "Exo";
    font-weight: 600;
    text-transform: uppercase;
}

body * {
    transition: all 0.3s ease-in-out;
}

.hover\:text-blue-400-custom:hover {
    color: rgb(96 165 250 / var(--tw-text-opacity, 1)) !important;
    background: none !important;
}

.hover\:text-blue-400-custom i {
    font-size: 1rem;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

#quoteModal {
    z-index: 100;
}
.modal-container {
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.modal-backdrop {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-content {
    /* border: 3px solid #00a3d4 !important; */
    backdrop-filter: blur(16px);
    border-radius: 15px;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease;
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.2);
    /* padding: inherit 50rem !important; */
}

/* Open State */
.modal-container.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.modal-container.open .modal-backdrop {
    opacity: 1;
    background: #000000a4;
}

.modal-container.open .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Closing State */
.modal-container.closing {
    opacity: 0;
}

.modal-container.closing .modal-backdrop {
    opacity: 0;
}

.modal-container.closing .modal-content {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
}

/* Glow effect on hover for buttons */
button {
    transition: all 0.3s ease;
}

button:hover {
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.modal-bg {
    background-color: #1e2f51a1;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 0px;
    padding: 0px 3rem;
}

.radio-button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    width: 100%;
    /* padding: 0px 3rem; */
}

.radio-button input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.button-text {
    display: inline-block;
    padding: 10px 20px;
    background-color: #16213e00;
    color: white;
    border: 2px solid #00d4ff;
    border-radius: 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    /* box-shadow: 0 0 10px rgba(0, 212, 255, 0.5); */
}

.radio-button input:checked + .button-text {
    background-color: #00d4ff;
    color: #16213e;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.radio-button:hover .button-text {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
}

.nav-item {
    text-transform: uppercase;
}

.overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(6, 182, 212, 0.1);
    border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.5);
    border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.7);
}

/* Custom styles for the range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #06b6d4 0%, #2563eb 100%);
    height: 4px;
    border-radius: 10px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #06b6d4;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #06b6d4;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Custom styles for the radio buttons */
input[type="radio"]:checked + label,
label:has(> input[type="radio"]:checked) {
    border-color: #06b6d4;
    background-color: rgba(6, 182, 212, 0.2);
}

/* floating labels */

/* Floating label styles */
.float-label-group {
  position: relative;
  margin-bottom: 20px;
}

.float-label-group input,
.float-label-group textarea {
  width: 100%;
  height: 40px;
  padding: 12px 0;
  font-size: 16px;
  color: #fff;
  background-color: transparent;
  border: none;
  border-bottom: 1px dashed rgba(6, 182, 212, 0.3);
  outline: none;
  transition: border-color 0.2s ease;
}

.float-label-group textarea {
  height: 80px;
  resize: none;
}

.float-label-group label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: all 0.2s ease;
}

/* When input is focused or has content */
.float-label-group input:focus,
.float-label-group textarea:focus {
  border-bottom: 1px dashed rgba(6, 182, 212, 1);
}

.float-label-group input:focus ~ label,
.float-label-group input:not(:placeholder-shown) ~ label,
.float-label-group textarea:focus ~ label,
.float-label-group textarea:not(:placeholder-shown) ~ label {
  top: -12px;
  font-size: 12px;
  color: rgba(6, 182, 212, 1);
}

/* Empty placeholder required for the :not(:placeholder-shown) selector to work */
.float-label-group input::placeholder,
.float-label-group textarea::placeholder {
  color: transparent;
}



.quote-error {
    display: none;
}

.card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgb(255, 255, 255);
    box-shadow: 0 0 15px rgba(79, 109, 245, 0.2);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2); /* Inner glow */
    pointer-events: none;
    z-index: 2;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(125, 161, 255, 0.5);
}

.card-label {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
    letter-spacing: 1px;
    z-index: 3;
}

.card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

/* Card-specific glow colors */
.card:nth-child(1) {
    box-shadow: 0 0 15px rgba(114, 137, 218, 0.5);
}
.card:nth-child(1)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #43007E, #5a148f82, #527c9300, transparent);
    z-index: 1;
}
.card:nth-child(2) {
    box-shadow: 0 0 15px rgba(255, 124, 67, 0.5);
}

.card:nth-child(2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #6B0000, #7d250070, #527c9300, transparent);
    z-index: 1;
}

.card:nth-child(3) {
    box-shadow: 0 0 15px rgba(129, 27, 129, 0.5);
}

.card:nth-child(3)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #7D0071, #55007d86, #527c9300, transparent);
    z-index: 1;
}

.card:nth-child(4) {
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.card:nth-child(4)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #8E7900, #72650085, #527c9300, transparent);
    z-index: 1;
}

.card:nth-child(5) {
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.5);
}

.card:nth-child(5)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #6A1C6D, #a6009b89, #527c9300, transparent);
    z-index: 1;
}

.card:nth-child(6) {
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.card:nth-child(6)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #003255, #005fee93, #527c9300, transparent);
    z-index: 1;
}

.card:nth-child(7) {
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}

.card:nth-child(7)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #7D4300, #6435008e, #527c9300, transparent);
    z-index: 1;
}

.card:nth-child(8) {
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.card:nth-child(8)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #0019BE, #002a867d, #527c9300, transparent);
    z-index: 1;
}

/* Enhanced hover glow effects */
.card:nth-child(1):hover {
    box-shadow: 0 0 25px rgba(114, 137, 218, 0.8);
}
.card:nth-child(2):hover {
    box-shadow: 0 0 25px rgba(255, 124, 67, 0.8);
}
.card:nth-child(3):hover {
    box-shadow: 0 0 25px rgba(129, 27, 129, 0.8);
}
.card:nth-child(4):hover {
    box-shadow: 0 0 25px rgba(188, 204, 46, 0.8);
}
.card:nth-child(5):hover {
    box-shadow: 0 0 25px rgba(142, 68, 173, 0.8);
}
.card:nth-child(6):hover {
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.8);
}
.card:nth-child(7):hover {
    box-shadow: 0 0 25px rgba(243, 156, 18, 0.8);
}
.card:nth-child(8):hover {
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.8);
}

.card img {
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}


/* Custom thumb styles for better visibility */
.slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #06b6d4;
    border-radius: 50%;
    cursor: pointer;
}
.slider-thumb::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #06b6d4;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.brown-gradient {
    background: linear-gradient(45deg, #473F20, transparent);
}

.service-card {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border: 3px solid #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 1px 2px 10px 4px rgba(0, 0, 0, 0.5);
}

.content-overlay {
    /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), transparent); */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 1.5rem;
}

.content-overlay h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #ffffff;
}

.content-overlay p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: #e5e7eb;
    /* text-align: right; */
}

.explore-btn {
    background: linear-gradient(90deg, #00f7ff, #ffffff);
    color: #1e3a8a;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.explore-btn:hover {
    background: #ffffff31 !important;
    color: #fff !important;
}

.portfolio-content {
    padding-right: 5rem;
    padding-left: 5rem;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
}

.align-items-bottom {
    align-items: end;
}

.align-items-top {
    align-items: start;
}

.portfolio-content h2 {
    font-family: "Exo", sans-serif;
    font-size: 2rem;
    line-height: 2.5rem;
}

.portfolio-content p {
    font-family: "Baloo Thambi 2";
    line-height: 1.5rem;
}

.portfolio-content a {
    background: transparent !important;
    border: 2px solid #fff;
    font-family: "Baloo Thambi 2";
    border-radius: 1rem;
}

.nav-item::after{
    opacity: .4;
}

/* Mobile menu styles */
.mobile-dropdown-icon {
    transition: transform 0.3s ease;
}

.mobile-dropdown-icon.rotate-180 {
    transform: rotate(180deg);
}

/* Responsive image handling */
.absolute.inset-0.w-full.h-full {
    object-fit: cover;
}

.service-card img.w-full {
    object-fit: cover;
}

@media (max-width: 768px) {
    .absolute.inset-0.w-full.h-full,
    .service-card img.w-full {
        object-fit: cover;
    }
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

#mobile-menu.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 100vh;
    overflow-y: auto;
    opacity: 1;
}

.mobile-dropdown-content {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.mobile-dropdown-content.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.mobile-dropdown-content:not(.hidden) {
    max-height: 1000px;
    opacity: 1;
}

.mobile-dropdown-content {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-dropdown-content.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.mobile-dropdown-content:not(.hidden) {
    max-height: 1000px;
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Typography */
    .swiper-slide h1 {
        font-size: 2rem !important;
    }

    .swiper-slide h1 span {
        font-size: 3rem !important;
    }

    .swiper-slide p {
        font-size: 0.9rem;
    }

    /* Layout */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero section */
    .swiper-slide .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Floating action buttons */
    .fab {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .fab-btn img {
        width: 45px;
        height: 45px;
    }

    /* Portfolio grid */
    .portfolio-grid {
        gap: 0.75rem !important;
    }

    /* Footer */
    footer .grid {
        gap: 2rem !important;
    }

    /* Sections padding */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Quote modal */
    .modal-content {
        width: 90% !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
    }

    /* Owl carousel */
    .owl-prev, .owl-next {
        margin: 0 -20px !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .swiper-slide h1 {
        font-size: 1.5rem !important;
    }

    .swiper-slide h1 span {
        font-size: 2.5rem !important;
    }

    .swiper-slide .container {
        padding-left: 1rem;
    }

    .owl-prev, .owl-next {
        display: none !important;
    }

    /* Adjust padding for better mobile view */
    .py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .px-10 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* to be deleted (for portfolio animation) */

.service-card {
    transition: all 0.3s ease;
    position: relative;
}

/* Gentle lift and shadow on hover */
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Subtle shake animation */
@keyframes gentle-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.service-card:hover {
    animation: gentle-shake 0.5s ease-in-out;
}

/* Image zoom effect */
.service-card img {
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Content overlay fade enhancement */
.content-overlay {
    transition: background-color 0.3s ease;
}

.service-card:hover .content-overlay {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Button subtle animations */
.explore-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

/* Subtle text animations */
.service-card:hover h2 {
    animation: gentle-bounce 0.6s ease;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Subtle pulse for description text */
.service-card:hover p {
    animation: text-pulse 1s ease-in-out;
}

@keyframes text-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Optional: Gentle rotation on every other card */
.service-card:nth-child(even):hover {
    transform: translateY(-3px) rotate(0.5deg);
}

.service-card:nth-child(odd):hover {
    transform: translateY(-3px) rotate(-0.5deg);
}

/* Subtle border glow effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent) border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
    body.page-bg {
        background-image: none !important;
        background-color: #0a0f1e !important; /* Solid dark background to match theme */
    }

    .hero-swiper p {
        line-height: 1.8 !important;
        text-shadow: 0 0 1px rgba(0,0,0,0.3);
        transform: translate3d(0,0,0);
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .w-full.relative {
        height: 100% !important;
    }

    .service-card:hover {
        transform: translateY(-2px);
        animation: none;
    }

    .service-card:nth-child(even):hover,
    .service-card:nth-child(odd):hover {
        transform: translateY(-2px);
    }

    .portfolio-content h2 {
        font-size: 1.5rem !important;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    }

    .portfolio-content p {
        font-size: 1rem !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    }

    .service-card {
        position: relative;
        overflow: hidden !important;
        border-radius: 1.5rem !important;
        box-shadow: 0 4px 20px rgba(0,255,255,0.2) !important;
        margin-bottom: 2rem !important;
    }

    .service-card img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        z-index: -1;
        opacity: 0.7 !important;
    }

    .content-overlay {
        position: relative;
        z-index: 1;
        padding: 2rem !important;
        text-align: center !important;
        background: rgba(0, 0, 0, 0.5) !important; /* Increased opacity for better blending */
        min-height: 200px; /* Ensure enough space */
    }

    .portfolio-content {
        width: 100% !important;
    }

    .portfolio-content h2 {
        font-size: 1.8rem !important;
        text-transform: uppercase;
        font-weight: 900;
        color: #00f7ff !important;
    }

    .portfolio-content p {
        font-size: 1.1rem !important;
        margin: 0.5rem 0 1rem 0;
        color: #ffffff !important;
        font-weight: 500;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        line-height: 1.8 !important;
        transform: translate3d(0,0,0);
        text-rendering: optimizeLegibility;
        text-shadow: 0 0 1px rgba(0,0,0,0.3);
        margin-bottom: -1px !important;
    }

    .explore-btn {
        margin-top: 1rem;
        background: linear-gradient(90deg, #00f7ff, #00b8d4) !important;
        color: #ffffff !important;
        font-weight: bold;
        border-radius: 2rem !important;
        padding: 0.75rem 2rem !important;
    }

    .fab {
        bottom: 1.5rem !important;
        right: 1rem !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .service-section {
        padding-bottom: 15rem !important;
    }

    .content-overlay {
        min-height: 150px !important;
    }

    .explore-btn {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
    }
}
