/* *
    CSS Variables
-----------------------------
-----------------------------
01/ Global Style
02/ Hero Section
03/ Services Section
04/ About Section
05/ Testimonials Section
06/ Case Studies Section
07/ Feature Section
08/ Development Approach Section
09/ Blog Section
10/ Contact Card
11/ Contact Footer
12/ App Footer

 */
:root {
    --body-background: #f9f9fb;
    --primary-color: #4CAF50;
    --secondary-color: #FF9800;
    --font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --text-primary: #d63384;
    --case-studies-background: #cce9ff71;
    --white: #ffffff;
    --main-color: linear-gradient(90deg, #ff007a, #8b00ff);
    --bg-services-color: #f0f4ff;
    --dark: #222222;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-background);
    color: #333;
}

/* =============================
   01. Global Style
============================= */
.btn-gradient {
    background: var(--main-color);
    color: var(--white);
    border: none;
}

.btn-gradient:hover {
    opacity: 0.9;
    color: var(--white);
}

.span-primary {
    color: var(--text-primary);
}

.link {
    text-decoration: underline;
    color: var(--text-primary);
}

.nav-link:hover{
    color: var( --text-primary) !important;
    font-weight: 600;
}

.active{
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* =============================
   02. Hero Section
============================= */
.hero {
    padding: 100px 0;
}

.hero h1 {
    font-size: 2.8rem;
}

.hero h1 .text-primary {
    color: var(--text-primary) !important;
}

.hero h1 .text-bold {
    font-weight: 700;
}

/* =============================
   03.services section
============================= */
.section-title {
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }
}

.bg-services {
    background: var(--bg-services-color);
    padding: 30px 0;
}

/* services mobile scroll snap */
@media (max-width: 767.98px) {

    .mobile-scroll-snap {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-left: 1rem;
        padding-right: 0.5rem;
    }

    /* Hide the scrollbar for aesthetics */
    .mobile-scroll-snap::-webkit-scrollbar {
        display: none;
    }

    /* 2. Style the Columns for Mobile Scroll */
    .mobile-scroll-snap>.col-md-3 {
        flex: 0 0 auto;
        width: calc(100% - 40px);
        scroll-snap-align: start;
        margin-right: 10px;
    }

    /* 3. Adjust Card Margin/Padding to keep it clean */
    .mobile-scroll-snap>.col-md-3>.card {
        margin-bottom: 0 !important;
    }

    /* Optional: Remove the last card's margin to prevent extra scroll space */
    .mobile-scroll-snap>.col-md-3:last-child {
        margin-right: 0;
    }
}

/* =============================
   04.about section
============================= */
.grayscale {
    filter: grayscale(100%);
    transition: 0.3s ease-in-out;
}

.grayscale:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* =============================
   05.testimonials section
============================= */
.testimonial-card {
    background-color: var(--white);
    /* White background for the card */
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Ensure space for indicators */
    padding-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    margin-left: 8px;
    opacity: 0.8;
    transition: opacity 0.3s, background-color 0.3s;
}

.carousel-indicators .active {
    background-color: var(--bs-primary);
    /* Primary color when active */
    opacity: 1;
    transform: scale(1.2);
}

/* Custom styling for controls (arrows) to match modern theme */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(30%) sepia(90%) saturate(1000%) hue-rotate(220deg) brightness(80%) contrast(90%);
}

/* Avatar specific styles */
.avatar-img {
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    border: 4px solid var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Star rating alignment and color */
.star-rating {
    color: #facc15;
}

/* =============================
   06.case study section
============================= */
.bg-case-studies {
    background: var(--case-studies-background);
}

.object-fit-cover {
    object-fit: cover;
    height: 100%;
}

@media (max-width: 767.98px) {
    .case-studies img {
        border-radius: .5rem .5rem 0 0;
    }
}

.case-studies-bg-one {
    background: #F1F2FF;
    color: var(--dark);
}

.case-studies-bg-two {
    background-color: #F0FFF7;
    color: var(--dark);
}

.case-studies-bg-three {
    background-color: #FFF4F4;
    color: var(--dark);
}

/* =============================
   07.feature Section
============================= */
.feature-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 5rem;
}

/* Decorative Shapes */
.feature-section:nth-child(1)::before {
    content: '';
    position: absolute;
    top: -50px;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.4);
    /* Orange-ish */
    z-index: 0;
    filter: blur(50px);
}

.feature-section:nth-child(1)::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 20%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(128, 0, 128, 0.3);
    /* Purple-ish */
    z-index: 0;
    filter: blur(40px);
}

.feature-section:nth-child(2)::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.4);
    /* Orange-ish */
    z-index: 0;
    filter: blur(50px);
}

.feature-section:nth-child(2)::after {
    content: '';
    position: absolute;
    top: -50px;
    right: 30%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(128, 0, 128, 0.3);
    /* Purple-ish */
    z-index: 0;
    filter: blur(40px);
}

/* Quote Block Styling */
.testimonial-block {
    border-left: 4px solid #dc3545;
    /* Bootstrap danger color for the pink line */
    padding-left: 1.5rem;
    margin-top: 1rem;
    font-style: italic;
    color: #dc3545;
    font-size: 0.95rem;
}

.ceo-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.content-image {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =============================
   08.development Approach section
============================= */
.icon-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* Specific background colors (approximation of the image) */
.bg-ux-eng {
    background-color: #5d2b63;
    color: var(--white);
}

.bg-shared-und {
    background-color: #5d88f0;
    color: var(--white);
}

.bg-proven-exp {
    background-color: #ff559f;
    color: var(--white);
}

.bg-security {
    background-color: #20e98f;
    color: var(--white);
}

.bg-code-rev {
    background-color: #ffaa55;
    color: var(--white);
}

.bg-qa-test {
    background-color: #9d5dff;
    color: var(--white);
}

/* =============================
   09.Blog Section
============================= */
.blog-link {
    text-decoration: none;
    color: var(--text-primary);
}

.blog-link:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

/* =============================
   10.Contact Card
============================= */
.promo-card {
    background-color: #f4f6fa;
    /* Light grey/blue background from image */
    border: none;
    border-radius: 1rem;
    /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    max-width: 100%;
    padding: 2.5rem !important;
    /* Increased padding */
}

/* Custom Gradient Button */
.btn-gradient {
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa94d 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
    min-width: 150px;
    /* Ensure button size consistency */
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(255, 107, 107, 0.7);
}

/* Glow Effect Customization (The "Sun Rays") */
.glow-ray {
    position: absolute;
    width: 10px;
    height: 30px;
    background-color: #ffa94d;
    border-radius: 5px;
    opacity: 0.7;
    transform-origin: bottom center;
    /* Animation to simulate subtle pulsing/glow */
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.7;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Positioning the rays around the button */
/* Top right rays */
.ray-1 {
    top: -10px;
    right: 20px;
    transform: rotate(-30deg);
    animation-delay: 0s;
    transform: rotate(-10deg) translate(0, 50px)
}

.ray-2 {
    top: 0px;
    right: 0px;
    transform: rotate(0deg);
    animation-delay: 0.2s;
    transform: rotate(-40deg) translate(0, 50px)
}

.ray-3 {
    top: 20px;
    right: -10px;
    transform: rotate(30deg);
    animation-delay: 0.4s;
    transform: rotate(-70deg) translate(0, 50px);
}

/* Bottom right rays (inverted vertically) */
.ray-4 {
    bottom: -10px;
    right: 20px;
    transform: rotate(30deg);
    animation-delay: 0.6s;
    transform: rotate(10deg) translate(0, -50px)
}

.ray-5 {
    bottom: 0px;
    right: 0px;
    transform: rotate(0deg);
    animation-delay: 0.8s;
    transform: rotate(40deg) translate(0, -50px)
}

.ray-6 {
    bottom: 20px;
    right: -10px;
    transform: rotate(-30deg);
    animation-delay: 1.0s;
    transform: rotate(70deg) translate(0, -50px);
}

/* Ensure the button wrapper handles the glow positioning */
.button-wrapper {
    position: relative;
    display: inline-block;
}

/* Responsive adjustments using Bootstrap breakpoints */
@media (max-width: 576px) {
    .promo-card {
        padding: 1.5rem !important;
        margin: 1rem;
    }

    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        margin-bottom: 1.5rem;
    }
}

/* =============================
   11. Contact Footer
============================= */
.contact-section {
    padding: 5rem 0;
}

.contact-form-card {
    background-color: #f8f8f8;
    /* Light grey background for the form container */
    border-radius: 0.75rem;
    padding: 2rem;
}

.info-card-item {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.form-control-white {
    background-color: white !important;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.map-placeholder {
    min-height: 400px;
    background-color: #e9ecef;
    border-radius: 0.75rem;
    border: 1px solid #ccc;
}

/* =============================
   12. App Footer
============================= */
.app-footer {
    background-color: #f4f6fa;
    color: #555;
    padding-top: 5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c5ce7;
    /* Purple color for logo */
}

.footer-link {
    display: block;
    color: #555;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #6c5ce7;
}

.social-icon {
    color: #fff;
    background-color: #ddd;
    width: 38px;
    height: 38px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: background-color 0.2s;
}

.social-icon:hover {
    background-color: #6c5ce7;
    color: white;
}

.app-store-image {
    width: 150px;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: block;
}