/* Integrated Showreel Styles */
.showreel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    cursor: none;
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
    .showreel-container {
        cursor: default;
    }
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.8) contrast(1.1) grayscale(0.1);
    transition: filter 0.3s ease, opacity 0.8s ease;
    will-change: opacity, filter;
}

/* Image Slideshow Styles */
.image-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: brightness(0.8) contrast(1.1) grayscale(0.1);
    transition: opacity 0.8s ease;
    will-change: opacity;
}

.slide-image.active {
    opacity: 1;
}

.showreel-container:hover .bg-video {
    filter: brightness(0.6) contrast(1.1) grayscale(0.1);
}

.vignette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(0,0,0,0.4) 100%);
    z-index: 5;
    pointer-events: none;
}

.content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 6;
    pointer-events: none;
}

.brand-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    color: white;
}

.brand-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    color: white;
}

/* Custom Cursor - Desktop Only */
.custom-cursor {
    position: fixed;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.5px;
    color: white;
    will-change: transform, opacity;
}

@media (min-width: 769px) {
    .showreel-container:hover .custom-cursor {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Hide cursor completely on mobile */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    transform: scale(0.9);
    transition: transform 0.3s ease;
    will-change: transform;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.vimeo-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.close-button {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.5rem;
    }

    .brand-subtitle {
        font-size: 1rem;
    }

    .custom-cursor {
        width: 100px;
        height: 100px;
        font-size: 11px;
    }

    .modal-content {
        max-width: 95%;
    }

    .close-button {
        display: none;
    }
}

/* Mobile tap instruction */
.mobile-tap-hint {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    text-align: center;
    opacity: 0.8;
    animation: fadeInOut 3s ease-in-out infinite;
}

.mobile-tap-hint .tap-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.mobile-tap-hint .tap-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    color: white;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Hide mobile hint on desktop */
@media (min-width: 769px) {
    .mobile-tap-hint {
        display: none;
    }
}