/* ==============================================================================
   PROFILE PHOTO & CV - PROFESSIONAL THEME-AWARE EFFECTS
   ============================================================================== */

.about-me-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Apply styles to both image and video */
.profile-photo,
#profile-video {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;

    /* Default subtle effect */
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    filter: contrast(1.05) saturate(1.1);

    /* Smooth fade transition for video rotation */
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show ONLY volume controls, hide everything else */

/* Hide the entire control bar background */
#profile-video::-webkit-media-controls-panel {
    background: transparent !important;
}

/* Hide ALL controls by default first */
#profile-video::-webkit-media-controls-timeline,
#profile-video::-webkit-media-controls-current-time-display,
#profile-video::-webkit-media-controls-time-remaining-display,
#profile-video::-webkit-media-controls-fullscreen-button,
#profile-video::-webkit-media-controls-timeline-container,
#profile-video::-webkit-media-controls-download-button {
    display: none !important;
}

/* SHOW Volume and Play buttons */
#profile-video::-webkit-media-controls-play-button,
#profile-video::-webkit-media-controls-mute-button {
    display: block !important;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#profile-video::-webkit-media-controls-play-button:hover,
#profile-video::-webkit-media-controls-mute-button:hover {
    opacity: 1;
}

/* Show volume slider when hovering */
#profile-video::-webkit-media-controls-volume-slider {
    display: block !important;
    opacity: 0.8;
}

/* Allow clicking on volume controls */
#profile-video {
    pointer-events: auto !important;
    /* Re-enable clicking for volume control */
}

.profile-photo:hover,
#profile-video:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
    filter: contrast(1.1) saturate(1.15) brightness(1.05);
}

/* Ocean Theme - Cool professional blue */
.theme-ocean .profile-photo,
.theme-ocean #profile-video {
    filter: contrast(1.05) saturate(1.15) hue-rotate(-5deg);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(114, 182, 255, 0.2);
}

.theme-ocean .profile-photo:hover,
.theme-ocean #profile-video:hover {
    filter: contrast(1.1) saturate(1.2) hue-rotate(-5deg) brightness(1.05);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(114, 182, 255, 0.3);
}

/* Terminal Theme - Matrix green professional */
.theme-terminal .profile-photo,
.theme-terminal #profile-video {
    filter: contrast(1.15) saturate(0.9) hue-rotate(80deg);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 255, 0, 0.15);
}

.theme-terminal .profile-photo:hover,
.theme-terminal #profile-video:hover {
    filter: contrast(1.2) saturate(0.95) hue-rotate(80deg) brightness(1.1);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(0, 255, 0, 0.25);
}

/* All other theme styles with video support... */
/* (copying same pattern for all themes) */

.about-me-text {
    flex: 1;
}

/* CV Download Button - Simplified, always visible */
.cv-download-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--main-color, #72B6FF);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.cv-download-btn i {
    margin-right: 6px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .about-me-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-photo,
    #profile-video {
        width: 180px;
        height: 270px;
        margin-bottom: 15px;
    }

    .about-me-text {
        text-align: left;
    }

    .cv-download-btn {
        display: inline-block !important;
        width: auto;
    }
}