/* Global Styles */
body {
    overflow: auto;
    height: auto;
    display: block;
    min-height: 100vh;
}

.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;
    cursor: pointer;
}

.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;
}

.cert-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 161, 181, 0.1);
    color: #fee472;
}

.cert-icon svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(254, 228, 114, 0.4));
    transition: transform 0.5s;
}

.video-card:hover .cert-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.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);
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #111;
    padding: 20px;
    border: 1px solid rgba(13, 161, 181, 0.5);
    border-radius: 15px;
    width: 90%; 
    height: 90%;
    position: relative;
    box-shadow: 0 0 30px rgba(13, 161, 181, 0.3);
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.close-modal {
    color: #fff;
    position: absolute;
    top: -5px;
    right: 15px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: #fee472;
    text-decoration: none;
    cursor: pointer;
}

#pdf-iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #fff;
    flex-grow: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@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;
    }
    .modal-content {
        width: 95%;
        height: 95%;
        padding: 10px;
    }
}

/* 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 iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

.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;
}

.video-info-group a:hover {
    background: rgba(13, 161, 181, 0.4) !important;
}

@media (max-width: 1100px) {
    .video-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .video-title {
        font-size: 2rem;
    }
    .video-player-container iframe {
        height: 50vh;
    }
    .video-sidebar {
        gap: 1.5rem;
    }
}

/* Certificate List Styles */
.cert-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.cert-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    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.02);
    border: 1px solid rgba(13, 161, 181, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cert-list-item:hover {
    border-color: rgba(254, 228, 114, 0.6);
    box-shadow: 0 5px 20px rgba(13, 161, 181, 0.15);
    transform: translateX(5px);
}

.cert-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cert-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fee472;
    text-shadow: 0 0 10px rgba(254, 228, 114, 0.3);
    min-width: 70px;
}

.cert-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cert-title {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s;
}

.cert-list-item:hover .cert-title {
    color: #fee472;
}

.cert-school {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-visualizar, .btn-copiar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-visualizar {
    background: rgba(13, 161, 181, 0.2);
    border: 1px solid rgba(13, 161, 181, 0.5);
    color: #fff;
}

.btn-visualizar:hover {
    background: rgba(13, 161, 181, 0.4);
    box-shadow: 0 0 15px rgba(13, 161, 181, 0.3);
}

.btn-copiar {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.btn-copiar:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-copiar.copied {
    border-color: #fee472;
    color: #fee472;
    background: rgba(254, 228, 114, 0.1);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #fee472;
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .cert-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .cert-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .btn-visualizar, .btn-copiar {
        justify-content: center;
    }
}
