/* Portfolio Intro Section */
#portfolio-intro {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #1E2A38, #2E3E4E);
    color: white;
}

/* Portfolio Gallery */
#portfolio-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px;
    text-align: center;
    margin: 150px 0;
}

.portfolio-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item img {
    width: 100%;
    max-height: 500px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.portfolio-item h2 {
    font-size: 22px;
    color: #1E2A38;
}

.portfolio-item p {
    font-size: 16px;
    color: #555;
}

.portfolio-item a {
    display: inline-block;
    margin-top: 10px;
    color: #ff6600;
    font-weight: bold;
    text-decoration: none;
}

.portfolio-item a:hover {
    text-decoration: underline;
}

/* Call to Action */
#portfolio-cta {
    text-align: center;
    padding: 50px;
    background-color: #1E2A38;
    color: white;
}

.cta-button {
    background-color: #ff6600;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: #e65500;
}

/* 📌 RESPONSIVE DESIGN FOR MOBILE */
@media (max-width: 768px) {
    #portfolio-gallery {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        margin: 50px 0;
    }

    .portfolio-item {
        width: 60%; /* Make items slightly wider */
        max-width: 320px; /* Prevent them from being too large */
        padding: 15px; /* Reduce padding */
    }

    #portfolio-intro {
        padding: 30px 40px;
    }

    #portfolio-cta {
        padding: 30px 20px;
    }
}

/* Small Screens (Phones) */
@media (max-width: 480px) {
    .portfolio-item {
        width: 90%; /* Slightly smaller on phones */
        max-width: 280px; /* Prevent items from getting too big */
        padding: 12px; /* Adjust spacing */
    }

    .portfolio-item h2 {
        font-size: 20px; /* Keep it readable */
    }

    .portfolio-item p {
        font-size: 15px;
    }
}

