﻿/* --- General Styles & Typography --- */
body {
    font-family: 'Poppins', sans-serif;
    color: #343a40; /* Darker text for readability - Keep this */
    background-color: #f8f9fa; /* Light background - Keep this */
    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; /* Keep dark for good contrast on light backgrounds */
    line-height: 1.2;
}

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

.lead {
    font-size: 1.3rem;
    color: #5a6268; /* Slightly lighter than headings, good for intros */
    line-height: 1.8;
}

/* Call to Action Button Styles */
.btn-primary {
    /* Slightly adjusted gradient for a touch less intensity if needed, or keep previous. */
    background: linear-gradient(45deg, #007bff, #0056b3); /* Original Primary Blue */
    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;
    letter-spacing: 0.5px;
}

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

.btn-light-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn-light-outline:hover {
        background-color: #fff;
        color: #007bff; /* Primary blue on hover */
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    }


/* Front-End Specific Colors (Teal/Accent & Primary Blue) */
/* Changed to a more vibrant, slightly darker teal for better visibility */
.text-fe-accent {
    color: #00b386 !important; /* Slightly darker, richer teal */
}

/* Changed to a very light, almost white for background, less "teal" */
.bg-fe-light {
    background-color: #f0fffb; /* Very light, almost white with a hint of teal */
}

.border-fe {
    border-color: #00b386 !important; /* Matches new text-fe-accent */
}

/* --- Hero Section Specific Styles --- */
.hero-section {
    /* Adjusted gradient: more transparency in black to let image show, slightly softer dark blue */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 50, 100, 0.6)), url('/images/frontend-hero.jpg') no-repeat center center/cover;
    background-size: cover;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

    .hero-section h1 {
        font-size: 4.5rem;
        font-weight: 800;
        color: #fff; /* Keep white for strong contrast */
        animation: fadeInDown 1s ease-out;
    }

    .hero-section p.lead {
        font-size: 1.9rem;
        color: #e6f7ff; /* Lighter blue-white, good contrast */
        animation: fadeInUp 1.2s ease-out;
        margin-top: 20px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section .btn_wrapper {
        animation: fadeInUp 1.4s ease-out;
    }

/* --- Overview Section --- */
.overview-section {
    background-color: #fff;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

    .overview-section h2 {
        color: #212529; /* Darker heading - Keep this for good readability on white */
        font-size: 3.2rem;
        margin-bottom: 25px;
    }

    .overview-section p.lead {
        font-size: 1.4rem;
        color: #5a6268; /* Good default text color */
        margin-bottom: 20px;
    }

    .overview-section .btn {
        margin-top: 25px;
    }

    .overview-section .image-box {
        position: relative;
        padding: 20px;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .overview-section .image-box img {
            width: 100%;
            max-width: 550px;
            height: 420px;
            object-fit: cover;
            border-radius: 15px;
            /* Slightly more prominent shadow to make the image stand out */
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            z-index: 2;
        }

        .overview-section .image-box:hover img {
            transform: translateY(-8px) scale(1.02);
        }

        .overview-section .image-box .image-decorative-border {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 4px solid #00b386; /* Updated FE accent color */
            border-radius: 20px;
            z-index: 1;
            transform: translate(25px, 25px);
            opacity: 0.8; /* Slightly higher opacity for visibility */
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
        }

        .overview-section .image-box:hover .image-decorative-border {
            transform: translate(10px, 10px);
            opacity: 1;
        }

    .overview-section ul li {
        font-size: 1.1rem;
        color: #5a6268; /* Keep standard text color */
        margin-bottom: 10px;
    }

        .overview-section ul li i {
            color: #00b386; /* Updated Accent color for checkmarks */
            margin-right: 8px;
        }


/* --- Service & Product Card Styles (Combined) --- */
.feature-card {
    background-color: #fff;
    border: none;
    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);
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border-left: 5px solid transparent;
}

    .feature-card:hover {
        transform: translateY(-10px) scale(1.01);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border-left-color: #00b386; /* Updated FE accent highlight on hover */
    }

    .feature-card .icon-box {
        font-size: 3.2rem;
        margin-bottom: 20px;
        color: #00b386; /* Updated FE accent for icons */
        transition: all 0.3s ease;
        background-color: #e0fff8; /* Lighter background for the icon box */
        border-radius: 50%;
        width: 70px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-card:hover .icon-box {
        background-color: #00b386; /* Updated FE accent */
        color: #fff;
        transform: scale(1.1) rotate(5deg);
    }

    .feature-card h5 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 15px;
        color: #212529; /* Darker heading for better contrast on white cards */
        transition: color 0.3s ease;
    }

    .feature-card:hover h5 {
        color: #0056b3; /* Primary blue on hover for consistency */
    }

    .feature-card p {
        font-size: 1.05rem;
        color: #495057; /* Darker text for better readability on white cards */
        line-height: 1.7;
        margin-bottom: 0;
    }

    /* Adjusted list items within feature cards */
    .feature-card ul li {
        font-size: 1rem; /* Slightly smaller for detailed lists */
        color: #495057; /* Darker for readability */
        margin-bottom: 8px; /* Reduced spacing */
    }

        .feature-card ul li i {
            color: #00b386; /* Updated FE accent */
        }


/* --- Technologies Section (Similar to Expertise) --- */
.tech-section {
    background-color: #f6fdfc; /* Very light FE accent background - Keep this */
    padding: 100px 0;
}

.tech-item {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    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);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 4px solid transparent;
}

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

    .tech-item img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        margin-bottom: 15px;
        transition: transform 0.3s ease;
    }

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

    .tech-item h4 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #212529; /* Darker for better contrast on white cards */
        margin-bottom: 0;
    }


/* --- Process Section (Similar to UI/UX and JS) --- */
.process-section {
    /* Adjusted gradient: lighter blue for softer feel, less intense */
    background: linear-gradient(135deg, #007bff, #3498db); /* Primary blue to a slightly lighter blue */
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

    .process-section h2 {
        color: #fff;
        margin-bottom: 60px;
    }

.process-step {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly higher opacity for card background */
    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.2); /* Slightly more prominent border */
    position: relative;
}

    .process-step:hover {
        background-color: rgba(255, 255, 255, 0.2); /* More visible on hover */
        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);
    }

    .process-step .step-icon {
        font-size: 3.5rem;
        color: #00b386; /* Updated FE accent for icons */
        margin-bottom: 20px;
    }

    .process-step h4 {
        font-size: 1.7rem;
        font-weight: 700;
        color: #fff; /* Keep white for strong contrast */
        margin-bottom: 15px;
    }

    .process-step p {
        font-size: 1.05rem;
        color: #f0f8ff; /* Slightly whiter text for better readability */
        line-height: 1.7;
    }

    .process-step .step-number {
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #00b386; /* Updated FE accent */
        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);
    }

/* Final CTA Section */
.final-cta-section {
    /* Adjusted background: slightly softer blue */
    background-color: #007bff; /* Keeping this primary blue, it's strong but appropriate for a final CTA */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

    .final-cta-section h2 {
        color: #fff;
        font-size: 3rem;
    }


/* --- Animation Keyframes (No change needed here) --- */
@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 (No change needed here) */
.fade-in-section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

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

.fade-in-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- Responsive Adjustments (Minor text color tweaks for consistency) --- */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 3.8rem;
    }

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

    h2 {
        font-size: 2.5rem;
    }

    .feature-card .icon-box {
        font-size: 2.8rem;
        width: 65px;
        height: 65px;
    }

    .feature-card h5 {
        font-size: 1.4rem;
        color: #212529; /* Ensure dark on smaller screens too */
    }

    .tech-item img {
        width: 70px;
        height: 70px;
    }

    .tech-item h4 {
        font-size: 1.3rem;
        color: #212529; /* Ensure dark on smaller screens too */
    }

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

    .overview-section .image-box img {
        height: 350px;
    }

    .overview-section h2 {
        font-size: 2.8rem;
    }

    .overview-section p.lead {
        font-size: 1.25rem;
    }

    .overview-section .image-box .image-decorative-border {
        transform: translate(15px, 15px);
    }
}

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

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

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

    section {
        padding: 70px 0;
    }

    h2 {
        font-size: 2.2rem;
    }

    .feature-card {
        padding: 25px;
        margin-bottom: 25px;
    }

        .feature-card .icon-box {
            font-size: 2.5rem;
            width: 60px;
            height: 60px;
            margin-bottom: 15px;
        }

        .feature-card h5 {
            font-size: 1.3rem;
            color: #212529;
        }

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

        .tech-item img {
            width: 60px;
            height: 60px;
        }

        .tech-item h4 {
            font-size: 1.2rem;
            color: #212529;
        }

    .process-step {
        padding: 30px;
        margin-bottom: 25px;
    }

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

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

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

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

    section {
        padding: 50px 0;
    }

    h2 {
        font-size: 2rem;
    }

    /* Reverse order on small screens for overview */
    .overview-section .col-md-6:first-child {
        order: 2;
    }

    .overview-section .col-md-6:last-child {
        order: 1;
        margin-bottom: 40px;
    }

    .overview-section .image-box {
        padding: 10px;
        margin-top: 30px; /* Add space above image if text is first */
    }

        .overview-section .image-box img {
            height: 300px;
        }

        .overview-section .image-box .image-decorative-border {
            transform: translate(10px, 10px);
        }

    .overview-section h2 {
        font-size: 2.5rem;
    }

    .overview-section p.lead {
        font-size: 1.15rem;
    }

    .overview-section ul li {
        font-size: 1rem;
    }

    .feature-card .icon-box {
        font-size: 2.2rem;
        width: 55px;
        height: 55px;
    }

    .feature-card h5 {
        font-size: 1.2rem;
        color: #212529;
    }

    .tech-item img {
        width: 50px;
        height: 50px;
    }

    .tech-item h4 {
        font-size: 1.1rem;
        color: #212529;
    }

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

    .final-cta-section h2 {
        font-size: 2.5rem;
    }
}

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

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

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

    h2 {
        font-size: 1.8rem;
    }

    .overview-section .image-box {
        padding: 5px;
    }

        .overview-section .image-box img {
            height: 250px;
        }

        .overview-section .image-box .image-decorative-border {
            transform: translate(5px, 5px);
        }

    .overview-section h2 {
        font-size: 2.2rem;
    }

    .overview-section p.lead {
        font-size: 1.05rem;
    }

    .feature-card .icon-box {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
    }

    .feature-card h5 {
        font-size: 1.1rem;
        color: #212529;
    }

    .tech-item img {
        width: 40px;
        height: 40px;
    }

    .tech-item h4 {
        font-size: 1rem;
        color: #212529;
    }

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

    .final-cta-section h2 {
        font-size: 2rem;
    }
}
