/* --- General Styles & Typography --- */
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;
    letter-spacing: 0.5px;
}

    .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);
    }

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #343a40;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

    .btn-warning:hover {
        background-color: #e0a800;
        border-color: #e0a800;
        color: #343a40;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    }

/* Angular Specific Colors */
.text-angular-red {
    color: #DD0031 !important;
}

.bg-angular-light {
    background-color: #ffe0e0;
}

.border-angular {
    border-color: #DD0031 !important;
}

/* --- Hero Section Specific Styles --- */
.hero-section {
    background: linear-gradient(135deg, rgba(221, 0, 49, 0.9), rgba(0, 0, 0, 0.9)), url('https://images.pexels.com/photos/1181675/pexels-photo-1181675.jpeg?auto=compress&cs=tinysrgb&w=1260') no-repeat center center/cover;
    background-size: cover; /* Ensure image covers the area */
    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;
        animation: fadeInDown 1s ease-out;
    }

    .hero-section p.lead {
        font-size: 1.9rem;
        color: #ffcdd2; /* Lighter red for lead text */
        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: #DD0031; /* Angular red */
        font-size: 3.2rem; /* Larger heading */
        margin-bottom: 25px;
    }

    .overview-section p.lead {
        font-size: 1.4rem; /* Slightly larger lead text */
        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;
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
            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 #DD0031; /* Angular red */
            border-radius: 20px;
            z-index: 1;
            transform: translate(25px, 25px);
            opacity: 0.7;
            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;
        }

/* --- 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: #DD0031; /* Angular red highlight on hover */
    }

    .feature-card .icon-box {
        font-size: 3.2rem;
        margin-bottom: 20px;
        color: #DD0031; /* Angular red for icons */
        transition: all 0.3s ease;
        background-color: #ffe0e0; /* Light red background */
        border-radius: 50%;
        width: 70px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-card:hover .icon-box {
        background-color: #DD0031;
        color: #fff;
        transform: scale(1.1) rotate(5deg);
    }

    .feature-card h5 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 15px;
        color: #343a40;
        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: #6c757d;
        line-height: 1.7;
        margin-bottom: 0;
    }

/* --- Why Choose Section --- */
.why-choose-section {
    background-color: #e9f5ff; /* Light blue background */
    padding: 100px 0;
}

.why-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;
    align-items: flex-start;
    text-align: left;
    border: 2px solid transparent; /* Initial border for hover effect */
}

    .why-item:hover {
        transform: translateY(-10px) scale(1.01);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
        border-color: #DD0031; /* Angular red border on hover */
    }

    .why-item .icon {
        font-size: 2.8rem;
        color: #28a745; /* Green for checkmarks */
        margin-right: 25px;
        min-width: 60px;
        text-align: center;
    }

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

    .why-item p {
        font-size: 1.1rem;
        color: #6c757d;
        line-height: 1.7;
        margin-bottom: 0;
    }

/* --- Technologies We Master Section --- */
.tech-stack-section {
    padding: 100px 0;
    background-color: #fff;
}

.tech-item {
    background-color: #f0f4f8;
    border-radius: 15px;
    padding: 25px;
    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;
}

    .tech-item:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border: 1px solid #DD0031; /* Angular red border */
    }

    .tech-item .icon {
        font-size: 3.5rem;
        margin-bottom: 15px;
        color: #DD0031; /* Angular red for tech icons */
    }

    .tech-item h4 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #343a40;
        margin-bottom: 0;
    }

/* --- Development Process Section --- */
.process-section {
    background: linear-gradient(135deg, #212529, #343a40); /* Darker background */
    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.08); /* Lighter 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.1);
    position: relative;
}

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

    .process-step .step-icon {
        font-size: 3.5rem;
        color: #DD0031; /* Angular red for icons */
        margin-bottom: 20px;
    }

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

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

    .process-step .step-number {
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #DD0031; /* Angular red */
        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);
    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 --- */
@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;
    }

    .why-item .icon {
        font-size: 2.5rem;
        margin-right: 20px;
        min-width: 50px;
    }

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

    .tech-item .icon {
        font-size: 3rem;
    }

    .tech-item h4 {
        font-size: 1.3rem;
    }

    .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;
        }

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

        .why-item .icon {
            font-size: 2.2rem;
            margin-right: 15px;
            min-width: 45px;
        }

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

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

        .tech-item .icon {
            font-size: 2.8rem;
        }

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

    .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;
    }

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

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

    .why-item .icon {
        font-size: 2rem;
        margin-right: 10px;
        min-width: 40px;
    }

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

    .tech-item .icon {
        font-size: 2.5rem;
    }

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

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

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

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

    .btn-primary, .btn-warning {
        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;
    }

    .why-item .icon {
        font-size: 1.8rem;
    }

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

    .tech-item .icon {
        font-size: 2rem;
    }

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

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