/* Global Video Portfolio Styles */
body {
    overflow: auto;
    height: auto;
    display: block;
    min-height: 100vh;
}

/* Portfolio Index Styles */
.portfolio-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    z-index: 1;
    position: relative;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.portfolio-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 20px rgba(13, 161, 181, 0.4);
    margin-bottom: 1rem;
}

.portfolio-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(13, 161, 181, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.video-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: inset 1px 1px 20px rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(13, 161, 181, 0.2);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.video-card:hover {
    border-color: rgba(254, 228, 114, 0.8);
    box-shadow: 8px 8px 0px rgba(254, 228, 114, 0.8), 0 0 60px rgba(13, 161, 181, 0.15);
    border-radius: 15px 255px 15px 225px / 255px 15px 225px 15px;
    transform: translateY(-10px);
}

.video-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    position: relative;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-preview video {
    transform: scale(1.05);
}

.video-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-card-title {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s;
}

.video-card:hover .video-card-title {
    color: #fee472;
    text-shadow: 0 0 10px rgba(254, 228, 114, 0.4);
}

.back-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fee472;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.back-nav:hover {
    text-shadow: 0 0 10px rgba(254, 228, 114, 0.5);
    transform: translateX(-5px);
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2.5rem;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual Video Page Styles */
.video-page-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem 1.5rem;
    z-index: 1;
    position: relative;
}

.video-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 2rem;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: inset 1px 1px 20px rgba(255, 255, 255, 0.04), 0 0 60px rgba(13, 161, 181, 0.15);
    border: 1px solid rgba(13, 161, 181, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.video-player-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-container video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fee472;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.video-back-link:hover {
    text-shadow: 0 0 10px rgba(254, 228, 114, 0.5);
    transform: translateX(-5px);
}

.video-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(13, 161, 181, 0.4);
    word-break: break-word;
}

.video-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-family: 'Inter', sans-serif;
    color: #fee472;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.info-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stack-tag {
    background: rgba(13, 161, 181, 0.15);
    border: 1px solid rgba(13, 161, 181, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 1px;
}

@media (max-width: 1100px) {
    .video-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .video-title {
        font-size: 2rem;
    }
    .video-player-container video {
        max-height: 65vh;
    }
    .video-sidebar {
        gap: 1.5rem;
    }
}
