/* --- 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, rgba(0, 0, 50, 0.8), rgba(0, 0, 0, 0.8));
    background-size: cover;
    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 */
}
    /* Fallback if portfolio-hero.jpg doesn't exist, use portfolio-preview.jpg */
    .hero-banner[style*="portfolio-hero.jpg"] {
        background: linear-gradient(135deg, rgba(0, 0, 50, 0.8), rgba(0, 0, 0, 0.8)), url('@ViewBag.BaseUrl/images/portfolio-preview.jpg');
        background-size: cover;
    }

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

    .hero-banner .btn-primary {
        animation: fadeInUp 1.4s ease-out;
    }

/* --- Portfolio Grid Section Styles --- */
#portfolio {
    padding: 100px 0;
    background-color: #f8f9fa; /* Light background for contrast */
}

.portfolio-card {
    background-color: #fff;
    border: none;
    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 */
    overflow: hidden; /* For image overflow */
    position: relative; /* For overlay */
}

    .portfolio-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 */
    }

    .portfolio-card img.card-img-top {
        height: 250px; /* Fixed height for consistent image size */
        object-fit: cover; /* Cover the area, cropping if necessary */
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        transition: transform 0.4s ease;
    }

    .portfolio-card:hover img.card-img-top {
        transform: scale(1.05); /* Slight zoom on hover */
    }

    .portfolio-card .card-body {
        padding: 30px;
        position: relative;
        z-index: 2; /* Ensure text is above any potential background effects */
    }

    .portfolio-card .card-title {
        font-size: 1.8rem; /* Larger heading */
        font-weight: 700;
        margin-bottom: 15px;
        color: #343a40;
        transition: color 0.3s ease;
    }

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

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

/* --- Call to Action Section --- */
.contact-cta-section {
    background: linear-gradient(135deg, #2c3e50, #4a69bd); /* Dark blue gradient */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

    .contact-cta-section h2 {
        color: #fff;
        font-size: 3rem;
        margin-bottom: 30px;
    }

    .contact-cta-section p {
        font-size: 1.5rem;
        color: #e0f2ff;
        max-width: 800px;
        margin: 0 auto 40px;
    }

/* --- 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);
    }

/* Individual item animations for staggered effect */
.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-banner h1 {
        font-size: 3.8rem;
    }

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

    h2 {
        font-size: 2.5rem;
    }

    .portfolio-card img.card-img-top {
        height: 220px;
    }

    .portfolio-card .card-title {
        font-size: 1.6rem;
    }

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

    .contact-cta-section p {
        font-size: 1.3rem;
    }
}

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

    .portfolio-card img.card-img-top {
        height: 200px;
    }

    .portfolio-card .card-title {
        font-size: 1.4rem;
    }

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

    .contact-cta-section p {
        font-size: 1.2rem;
    }
}

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

    .portfolio-card {
        margin-bottom: 25px;
    }
        /* Add spacing between cards on smaller screens */
        .portfolio-card img.card-img-top {
            height: 180px;
        }

        .portfolio-card .card-title {
            font-size: 1.3rem;
        }

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

    .contact-cta-section p {
        font-size: 1.1rem;
    }
}

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

    .portfolio-card img.card-img-top {
        height: 160px;
    }

    .portfolio-card .card-title {
        font-size: 1.2rem;
    }

    .portfolio-card .card-body {
        padding: 20px;
    }

    .contact-cta-section h2 {
        font-size: 1.8rem;
    }

    .contact-cta-section p {
        font-size: 1rem;
    }
}
