/*Portfolio Section Styling */
.portfolio-section {
    padding: 5rem 2rem;
    text-align: center;
}

.portfolio-container {
    max-width: 1200px;
    margin: auto;
    
}

.portfolio-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
    margin-top:5rem;
}

.portfolio-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Services Grid */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    height: 100%;
}

.portfolio-card {
    background-color: var(--accent-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 30%;
    min-height: 100%; /* Flexible height */
    transition: transform 0.3s, box-shadow 0.3s;
    margin:auto;
}

.portfolio-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px #6cff64;
}

/* Video Section */
.portfolio-media {
    flex: 0 0 70%;
    width: 100%;
    aspect-ratio: 16/9; /* Keeps video ratio consistent */
    overflow: hidden;
}

.portfolio-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--brand-color);
}

/* Details section - 30% height */
.portfolio-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Adjust spacing */
    text-align: left;
    height: 100%;
    gap: 0.5rem;    
}

.portfolio-details h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.portfolio-details p {
    font-size: 0.90rem;
    color: #ccc;
    flex-wrap: wrap;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Know More Button */
.portfolio-know-more-btn {
    margin-top: auto; /* Pushes to bottom */
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #6cff64;
    color: rgb(0, 0, 0);
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.2s, transform 0.2s;
}

.portfolio-know-more-btn:hover {
    
    transform: scale(1.05);
    box-shadow: 0 0 15px rgb(255, 255, 255);
}


/* Fix for screens smaller than 360px */
@media (min-width: 100px) and (max-width: 655px) {
    .portfolio-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .portfolio-card {
        width: 100%;
        max-width: 300px;
        min-height: auto;
    }

    .portfolio-details {
        text-align: center;
        align-items: center;
        padding: 1rem;
        gap: 0.5rem;
    }

    .portfolio-know-more-btn {
        align-self: center;
    }
}
