/* Portfolio Section Styles */
.portfolio-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
      overflow: hidden;
}

.portfolio-outer-box {
    padding: 2rem 0.5rem;
    margin: 0;
    width: 100%;
    border-radius: 12px;
}

/* Updated Portfolio Styles */
.margin-top-lg {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 2rem;
      margin-bottom: 2.2rem;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        background: linear-gradient(to bottom, #ffffff, #e5e7eb);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 
            2px 2px 2px rgba(0,0,0,0.2),
            -1px -1px 1px rgba(255,255,255,0.1),
            0 4px 8px rgba(255, 255, 255, 0.15);
        transform: translateZ(0);
        -webkit-font-smoothing: antialiased;
        position: relative;
}



.shorts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.shorts-card {
    width: 100%;
    aspect-ratio: 9/16;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.shorts-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.shorts-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 167, 150, 0.2);
}

/* Mobile Styles for Shorts */
@media (max-width: 768px) {
    .portfolio-title {
    font-size: 1.7rem;
    margin-bottom: 1.9rem;
}
    .shorts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
        margin-top: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .portfolio-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        background: linear-gradient(to bottom, #ffffff, #e5e7eb);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 
            2px 2px 2px rgba(0,0,0,0.2),
            -1px -1px 1px rgba(255,255,255,0.1),
            0 4px 8px rgba(255, 255, 255, 0.15);
        transform: translateZ(0);
        -webkit-font-smoothing: antialiased;
        position: relative;
    }
}

#portfolio {
    position: relative;
    padding: 1rem 0;
    margin-bottom: -32px; /* Compensate for the glow effect */
}

.portfolio-outer-box {
    position: relative;
    background: rgba(8, 11, 14, 0.18);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(0, 167, 150, 0.1);
}

.section-head {
    text-align: center;
    margin-bottom: 0.2rem;
}

.section-head .section-desc {
    color: var(--muted);
    text-align: center;
    margin: -2.4rem auto 3.5rem;
    font-size: 1.2rem;
    max-width: 850px;
}

.portfolio-outer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 11, 14, 0.18);
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.video-card {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain 16:9 ratio */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.video-card iframe {
    position: absolute; /* ensure iframe fills the card */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 167, 150, 0.2);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .section-head .section-desc {
        font-size: 1rem;
        margin: 0.5rem auto 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .portfolio-title {
        font-size: 2rem;
        padding: 0 0.5rem;
    }

    .video-card {
        margin: 0 auto;
        border-radius: 12px;
    }

    .portfolio-outer-box {
        padding: 1.5rem 0.5rem;
        margin: 0;
        width: 100%;
        border-radius: 12px;
    }
}
