/* Modern Glossy Window Design - Glass Morphism */

/* Enhanced Content Window with Premium Glass Effect */
.content-window {
    /* Advanced Glass Morphism Background */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.12) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        rgba(255, 255, 255, 0.2) 100%
    ) !important;
    
    /* Premium Backdrop Filter */
    backdrop-filter: blur(40px) saturate(1.8) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(40px) saturate(1.8) brightness(1.1) !important;
    
    /* Sophisticated Border System */
    border: 2px solid transparent !important;
    border-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(78, 199, 212, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0.4) 100%
    ) 1 !important;
    
    /* Modern Rounded Corners */
    border-radius: 24px !important;
    
    /* Professional Shadows */
    box-shadow: 
        /* Outer glow */
        0 0 60px rgba(78, 199, 212, 0.15),
        /* Main shadow */
        0 25px 80px rgba(0, 0, 0, 0.25),
        /* Inner highlight */
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        /* Subtle inner shadow */
        inset 0 -1px 2px rgba(0, 0, 0, 0.1) !important;
    
    /* Layout Properties */
    height: 85vh !important;
    width: 92% !important;
    margin: 2rem auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 5 !important;
    
    /* Smooth Transitions */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Performance Optimizations */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    
    /* Subtle Animation */
    animation: glossyWindowFloat 8s ease-in-out infinite;
}

/* Hover Effects for Interactive Feel */
.content-window:hover {
    transform: translateY(-2px) scale(1.002) !important;
    box-shadow: 
        0 0 80px rgba(78, 199, 212, 0.25),
        0 35px 100px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        inset 0 -1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Focus state for accessibility */
.content-window:focus-within {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(78, 199, 212, 0.4),
        0 0 100px rgba(78, 199, 212, 0.3),
        0 40px 120px rgba(0, 0, 0, 0.35),
        inset 0 1px 4px rgba(255, 255, 255, 0.5),
        inset 0 -1px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced Window Header */
.window-header {
    /* Premium Glass Header */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(78, 199, 212, 0.1) 100%
    ) !important;
    
    /* Advanced Backdrop Effect */
    backdrop-filter: blur(25px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(25px) saturate(1.5) !important;
    
    /* Refined Border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    
    /* Spacing and Layout */
    padding: 1.5rem 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    
    /* Subtle Shadow */
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 
                0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Sophisticated Window Title */
.window-title {
    /* Typography */
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    
    /* Advanced Text Effects */
    background: linear-gradient(135deg, 
        #ffffff 0%,
        #e0f7ff 25%,
        #4ec7d4 50%,
        #ffffff 75%,
        #f0f9ff 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    
    /* Text Shadow for Depth */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
    
    /* Smooth Animation */
    transition: all 0.3s ease !important;
}

/* Enhanced Window Controls */
.window-controls {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
}

.window-dot {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    position: relative !important;
    
    /* Glass Effect for Dots */
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    
    /* Smooth Transitions */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Subtle Shadow */
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Individual Dot Colors with Glass Effect */
.window-dot.close {
    background: linear-gradient(135deg, 
        rgba(255, 95, 87, 0.8) 0%,
        rgba(255, 95, 87, 0.6) 100%
    ) !important;
}

.window-dot.minimize {
    background: linear-gradient(135deg, 
        rgba(255, 189, 46, 0.8) 0%,
        rgba(255, 189, 46, 0.6) 100%
    ) !important;
}

.window-dot.maximize {
    background: linear-gradient(135deg, 
        rgba(40, 201, 64, 0.8) 0%,
        rgba(40, 201, 64, 0.6) 100%
    ) !important;
}

/* Hover Effects for Window Dots */
.window-dot:hover {
    transform: scale(1.15) !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* Subtle Floating Animation */
@keyframes glossyWindowFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.001);
    }
}

/* Dynamic Content Area Enhancement */
.dynamic-content {
    /* Glass Background */
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    
    /* Layout */
    flex: 1 !important;
    padding: 2rem !important;
    overflow-y: auto !important;
    
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(78, 199, 212, 0.5) transparent;
}

/* Webkit Scrollbar Styling */
.dynamic-content::-webkit-scrollbar {
    width: 8px;
}

.dynamic-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dynamic-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        rgba(78, 199, 212, 0.6) 0%,
        rgba(78, 199, 212, 0.3) 100%
    );
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dynamic-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        rgba(78, 199, 212, 0.8) 0%,
        rgba(78, 199, 212, 0.5) 100%
    );
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-window {
        width: 95% !important;
        margin: 1rem auto !important;
        border-radius: 18px !important;
    }
    
    .window-header {
        padding: 1rem 1.5rem !important;
    }
    
    .window-title {
        font-size: 1.1rem !important;
    }
    
    .window-dot {
        width: 14px !important;
        height: 14px !important;
    }
    
    .dynamic-content {
        padding: 1.5rem !important;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .content-window {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 25%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 75%,
            rgba(255, 255, 255, 0.18) 100%
        ) !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .content-window {
        border: 3px solid rgba(255, 255, 255, 0.6) !important;
    }
    
    .window-title {
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* ===== GLOSSY VIDEO WINDOW DESIGN ===== */

/* Video Showcase Container with Glass Morphism */
.home-page .video-showcase {
    margin: 2rem 0 3rem 0 !important;
    text-align: center !important;
    perspective: 1000px; /* For 3D effects */
}

/* Enhanced Video Container with Premium Glass Effect */
.home-page .video-container {
    /* Advanced Glass Morphism Background */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.12) 75%,
        rgba(255, 255, 255, 0.18) 100%
    ) !important;
    
    /* Premium Backdrop Filter */
    backdrop-filter: blur(35px) saturate(1.6) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(35px) saturate(1.6) brightness(1.05) !important;
    
    /* Sophisticated Border System */
    border: 2px solid transparent !important;
    border-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.35) 0%,
        rgba(78, 199, 212, 0.25) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(78, 199, 212, 0.25) 75%,
        rgba(255, 255, 255, 0.35) 100%
    ) 1 !important;
    
    /* Modern Rounded Corners */
    border-radius: 20px !important;
    
    /* Professional Shadows */
    box-shadow: 
        /* Outer glow */
        0 0 50px rgba(78, 199, 212, 0.12),
        /* Main shadow */
        0 20px 60px rgba(0, 0, 0, 0.25),
        /* Secondary shadow for depth */
        0 8px 25px rgba(0, 0, 0, 0.15),
        /* Inner highlight */
        inset 0 1px 2px rgba(255, 255, 255, 0.25),
        /* Subtle inner shadow */
        inset 0 -1px 2px rgba(0, 0, 0, 0.08) !important;
    
    /* Layout Properties */
    display: inline-block !important;
    max-width: 720px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    
    /* Smooth Transitions */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Performance Optimizations */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    
    /* Subtle Animation */
    animation: videoWindowFloat 12s ease-in-out infinite;
}

/* Video Container Hover Effects */
.home-page .video-container:hover {
    transform: translateY(-3px) scale(1.005) !important;
    box-shadow: 
        0 0 70px rgba(78, 199, 212, 0.2),
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 12px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.35),
        inset 0 -1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced Video Frame Styling */
.home-page .video-container > div {
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
    background: rgba(0, 0, 0, 0.02) !important;
}

/* Iframe Styling with Rounded Corners */
.home-page .video-container iframe {
    border-radius: 16px !important;
    filter: brightness(0.98) contrast(1.02) !important;
    transition: filter 0.3s ease !important;
}

.home-page .video-container:hover iframe {
    filter: brightness(1) contrast(1.05) !important;
}

/* Video Overlay for Enhanced Integration */
.home-page .video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(78, 199, 212, 0.03) 0%,
        transparent 25%,
        transparent 75%,
        rgba(78, 199, 212, 0.03) 100%
    );
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.home-page .video-container:hover::before {
    opacity: 0.7;
}

/* Video Window Title/Caption Enhancement */
.video-showcase::after {
    content: '';
    display: block;
    margin-top: 1rem;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(78, 199, 212, 0.3) 20%,
        rgba(78, 199, 212, 0.6) 50%,
        rgba(78, 199, 212, 0.3) 80%,
        transparent 100%
    );
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.video-showcase:hover::after {
    width: 80%;
    opacity: 1;
}

/* Floating Animation for Video Window */
@keyframes videoWindowFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    33% {
        transform: translateY(-2px) rotateX(0.5deg);
    }
    66% {
        transform: translateY(1px) rotateX(-0.5deg);
    }
}

/* Loading State Enhancement */
.video-container.loading {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(78, 199, 212, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%
    ) !important;
    animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(78, 199, 212, 0.1),
            0 15px 45px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(78, 199, 212, 0.2),
            0 20px 55px rgba(0, 0, 0, 0.25);
    }
}

/* Responsive Design for Video Window */
@media (max-width: 768px) {
    .home-page .video-container {
        max-width: 95% !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
    }
    
    .home-page .video-container > div {
        border-radius: 12px !important;
    }
    
    .home-page .video-container iframe {
        border-radius: 12px !important;
    }
}

@media (max-width: 480px) {
    .home-page .video-showcase {
        margin: 1.5rem 0 2rem 0 !important;
    }
    
    .home-page .video-container {
        border-radius: 14px !important;
    }
}

/* Dark Mode Support for Video Window */
@media (prefers-color-scheme: dark) {
    .home-page .video-container {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 25%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(255, 255, 255, 0.08) 75%,
            rgba(255, 255, 255, 0.15) 100%
        ) !important;
    }
}

/* Enhanced Focus State for Accessibility */
.home-page .video-container:focus-within {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(78, 199, 212, 0.4),
        0 0 80px rgba(78, 199, 212, 0.25),
        0 35px 90px rgba(0, 0, 0, 0.3),
        inset 0 1px 4px rgba(255, 255, 255, 0.4),
        inset 0 -1px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Video Playing State Enhancement */
.video-container.playing {
    box-shadow: 
        0 0 60px rgba(78, 199, 212, 0.2),
        0 25px 70px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(78, 199, 212, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.3),
        inset 0 -1px 3px rgba(0, 0, 0, 0.1) !important;
    animation: playingGlow 4s ease-in-out infinite;
}

@keyframes playingGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
    }
    50% {
        filter: brightness(1.02) saturate(1.1);
    }
}

/* OVERRIDE: Completely disable all circular window buttons for Frutiger Aero theme */
.window-dot,
.window-control.window-dot,
div.window-dot,
span.window-dot,
*[class*="window-dot"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 0 !important;
    pointer-events: none !important;
}

/* Ensure rectangular Aero buttons are visible */
.aero-window-dot {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}