/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}
/* Banner Section */
.banner {
    position: relative;
    width: 100%;
    height: 350px;
    background: url('fullstack.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 65px;
}

.banner-overlay {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    text-align: center;
    animation: fadeIn 1.2s ease-in-out;
}

.banner-overlay h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.banner-overlay p {
    font-size: 1.4rem;
    color: white;
    font-weight: 300;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects Section */
.projects {
    padding: 60px 20px;
    background: #fff;
}

.projects h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #222;
    font-weight: 600;
}

/* Project Cards Container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Project Card */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd; /* Fallback background */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.259);
}

/* Image Styling */
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the space properly */
    transition: transform 0.3s ease-in-out;
}

/* Overlay Effect */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(255, 123, 0, 0.7));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
    transform: scale(1.1);
    padding: 20px;
    text-align: center;
}

/* Hover Effects */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.393);
}

.project-card:hover .overlay {
    opacity: 1;
    transform: scale(1);
}

.project-card:hover img {
    transform: scale(1.2);
}

/* Overlay Text */
.overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.overlay p {
    font-size: 1.1rem;
    color: white;
    margin: 0;
    padding: 12px;
    font-weight: 300;
}
