/* --- General Styles & Typography (Consider moving to site.css if broadly applicable) --- */
body {
    font-family: 'Poppins', sans-serif;
    color: #343a40; /* Darker text for readability */
    background-color: #f8f9fa; /* Light background */
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

    section[id] {
        scroll-margin-top: 80px; /* Adjust based on fixed navbar height */
    }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Bolder headings */
    color: #212529;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.lead {
    font-size: 1.3rem;
    color: #5a6268;
    line-height: 1.8;
}

/* Call to Action Button Styles */
.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 16px 35px; /* Larger padding for CTA */
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem; /* Slightly larger text */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    text-transform: uppercase; /* Uppercase text */
    letter-spacing: 0.5px; /* Slight letter spacing */
}

    .btn-primary:hover {
        background: linear-gradient(45deg, #0056b3, #003f80);
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    }

/* --- Hero Section Specific Styles --- */
.hero-banner {
    background: linear-gradient(135deg, #007bff, #004d99); /* Deep blue gradient */
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50px; /* Curved bottom-left corner */
    border-bottom-right-radius: 50px; /* Curved bottom-right corner */
}

    .hero-banner h1 {
        font-size: 4.5rem; /* Larger, more impactful heading */
        font-weight: 800;
        color: #fff;
        animation: fadeInDown 1s ease-out;
    }

    .hero-banner p.lead {
        font-size: 1.9rem; /* Larger subtitle */
        color: #e0f2ff;
        animation: fadeInUp 1.2s ease-out;
        margin-top: 20px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

/* --- Services Grid Section Styles --- */
.services-grid-section {
    padding: 100px 0;
    background-color: #f8f9fa; /* Light background for contrast */
}

.service-card {
    background-color: #fff;
    border: none; /* Remove default border */
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Deeper shadow */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth animation */
    height: 100%; /* Ensure cards are same height */
    padding: 30px; /* Increased padding inside card */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
    align-items: flex-start; /* Align icon/text to left */
    text-align: left; /* Align text to left */
    overflow: hidden; /* For inner animations */
}

    .service-card:hover {
        transform: translateY(-12px) scale(1.02); /* Lift and slight grow */
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); /* More prominent shadow on hover */
        border: 2px solid #007bff; /* Highlight border */
    }

    .service-card .icon-box {
        font-size: 3.5rem; /* Larger icons */
        margin-bottom: 25px;
        color: #007bff; /* Default icon color */
        transition: all 0.3s ease;
        display: inline-block; /* For transform */
    }
    /* Specific icon colors */
    .service-card .fa-js-square {
        color: #f7df1e;
    }
    /* Yellow */
    .service-card .fa-microsoft {
        color: #0078d4;
    }
    /* Microsoft blue */
    .service-card .fa-angular {
        color: #dd0031;
    }
    /* Angular red */
    .service-card .fa-laptop-code {
        color: #28a745;
    }
    /* Green */
    .service-card .fa-pencil-ruler {
        color: #ffc107;
    }
    /* Orange */
    .service-card .fa-code-branch {
        color: #17a2b8;
    }
    /* Teal */
    .service-card .fa-cloud {
        color: #dc3545;
    }
    /* Red */
    .service-card .fa-box-open {
        color: #6f42c1;
    }
    /* Purple */
    .service-card .fa-server {
        color: #fd7e14;
    }
    /* Orange-Red */

    .service-card:hover .icon-box {
        transform: scale(1.1) rotate(5deg); /* Slight grow and rotate on hover */
    }

    .service-card h5 {
        font-size: 1.6rem; /* Larger headings */
        font-weight: 700;
        margin-bottom: 15px;
        color: #343a40;
        transition: color 0.3s ease;
    }

    .service-card:hover h5 {
        color: #0056b3; /* Darker blue on hover */
    }

    .service-card p {
        font-size: 1.05rem; /* Slightly larger paragraph text */
        color: #6c757d;
        line-height: 1.7;
        margin-bottom: 0;
    }

        .service-card p a {
            color: #007bff; /* Link color */
            text-decoration: none;
            font-weight: 500;
        }

            .service-card p a:hover {
                text-decoration: underline;
                color: #0056b3;
            }

/* --- Featured Solutions Section --- */
.featured-solutions-section {
    background-color: #e9f5ff; /* Light blue background */
    padding: 100px 0;
}

.solution-item {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 35px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .solution-item:hover {
        transform: translateY(-10px) scale(1.01);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
        border: 2px solid #007bff;
    }

    .solution-item .icon {
        font-size: 4rem;
        color: #007bff;
        margin-bottom: 25px;
        background-color: #e0f2ff;
        border-radius: 50%;
        width: 100px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .solution-item:hover .icon {
        background-color: #007bff;
        color: #fff;
        transform: rotateY(180deg);
    }

    .solution-item h3 {
        font-size: 1.8rem;
        font-weight: 700;
        color: #343a40;
        margin-bottom: 15px;
    }

    .solution-item p {
        font-size: 1.1rem;
        color: #6c757d;
        line-height: 1.7;
    }

/* --- Technologies & Tools Section --- */
.tech-tools-section {
    padding: 100px 0;
    background-color: #fff;
}

.tech-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 15px;
    background-color: #f0f4f8; /* Light gray background */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: 1px solid #e0e6ec; /* Subtle border */
}

    .tech-logo-container:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border-color: #007bff; /* Highlight border */
    }

    .tech-logo-container img {
        max-height: 80px;
        max-width: 90%;
        object-fit: contain;
        filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.1));
        transition: transform 0.4s ease;
    }

    .tech-logo-container:hover img {
        transform: scale(1.1);
    }

/* --- How We Work Section --- */
.how-we-work-section {
    background: linear-gradient(135deg, #2c3e50, #4a69bd); /* Dark blue gradient */
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

    .how-we-work-section h2 {
        color: #fff;
        margin-bottom: 60px;
    }

.work-step {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

    .work-step:hover {
        background-color: rgba(255, 255, 255, 0.18);
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .work-step .step-icon {
        font-size: 3.5rem;
        color: #a2e0ff; /* Light blue for icons */
        margin-bottom: 20px;
    }

    .work-step h4 {
        font-size: 1.7rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 15px;
    }

    .work-step p {
        font-size: 1.05rem;
        color: #e0f2ff;
        line-height: 1.7;
    }

    .work-step .step-number {
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #007bff;
        color: #fff;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        font-weight: 700;
        border: 3px solid #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }


/* --- Animation Keyframes --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Scroll-Triggered Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(60px); /* Start elements slightly lower */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out; /* Slower, smoother reveal */
}

    .fade-in-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .hero-banner h1 {
        font-size: 3.8rem;
    }

    .hero-banner p.lead {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .service-card .icon-box {
        font-size: 3rem;
    }

    .service-card h5 {
        font-size: 1.4rem;
    }

    .solution-item .icon {
        font-size: 3.5rem;
        width: 90px;
        height: 90px;
    }

    .solution-item h3 {
        font-size: 1.6rem;
    }

    .tech-logo-container {
        height: 100px;
    }

        .tech-logo-container img {
            max-height: 70px;
        }

    .work-step h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        padding: 90px 0;
    }

        .hero-banner h1 {
            font-size: 3.2rem;
        }

        .hero-banner p.lead {
            font-size: 1.5rem;
        }

    section {
        padding: 70px 0;
    }

    h2 {
        font-size: 2.2rem;
    }

    .service-card {
        padding: 25px;
    }

        .service-card .icon-box {
            font-size: 2.8rem;
            margin-bottom: 20px;
        }

        .service-card h5 {
            font-size: 1.3rem;
        }

    .solution-item .icon {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }

    .solution-item h3 {
        font-size: 1.5rem;
    }

    .tech-logo-container {
        height: 90px;
    }

        .tech-logo-container img {
            max-height: 60px;
        }

    .work-step {
        padding: 30px;
    }

        .work-step h4 {
            font-size: 1.4rem;
        }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 70px 0;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

        .hero-banner h1 {
            font-size: 2.8rem;
        }

        .hero-banner p.lead {
            font-size: 1.3rem;
        }

    section {
        padding: 50px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 25px;
    }
        /* Add spacing between cards on smaller screens */
        .service-card .icon-box {
            font-size: 2.5rem;
        }

        .service-card h5 {
            font-size: 1.2rem;
        }

    .solution-item {
        margin-bottom: 25px;
    }

        .solution-item .icon {
            font-size: 2.5rem;
            width: 70px;
            height: 70px;
        }

        .solution-item h3 {
            font-size: 1.3rem;
        }

    .tech-logo-container {
        height: 80px;
    }

        .tech-logo-container img {
            max-height: 50px;
        }

    .work-step {
        margin-bottom: 25px;
    }

        .work-step h4 {
            font-size: 1.3rem;
        }
}

@media (max-width: 576px) {
    .hero-banner h1 {
        font-size: 2.2rem;
    }

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

    .btn-primary {
        padding: 12px 25px;
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .service-card .icon-box {
        font-size: 2rem;
    }

    .service-card h5 {
        font-size: 1.1rem;
    }

    .solution-item .icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }

    .solution-item h3 {
        font-size: 1.2rem;
    }

    .tech-logo-container {
        height: 70px;
    }

        .tech-logo-container img {
            max-height: 45px;
        }

    .work-step h4 {
        font-size: 1.2rem;
    }
}
