/* Video Background Hero Section - Common styles for all pages */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

/* Fallback background for loading/errors */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.75) 0%,
        rgba(22, 33, 62, 0.6) 50%,
        rgba(26, 26, 46, 0.8) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Improved Video Controls */
.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 4;
    display: flex;
    gap: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-controls:hover {
    opacity: 1;
}

.video-control-btn {
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-control-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: scale(1.05);
}

.video-control-btn:active {
    transform: scale(0.95);
}

/* Loading indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #ffffff;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-loading.show {
    opacity: 1;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Volume indicator */
.volume-indicator {
    position: absolute;
    bottom: 80px;
    right: 20px;
    z-index: 4;
    background: rgba(26, 26, 46, 0.9);
    padding: 10px 15px;
    border-radius: 25px;
    color: #ffffff;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.volume-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Go to top button */
.go-to-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.go-to-top-button.show-top-button {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top-button:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.go-to-top-button svg {
    width: 24px;
    height: 24px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .video-background iframe {
        height: 100vh;
        width: 177.77vh;
    }

    .video-controls {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }

    .video-control-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .volume-indicator {
        bottom: 65px;
        right: 10px;
        font-size: 12px;
        padding: 8px 12px;
    }

    .go-to-top-button {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .go-to-top-button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .video-controls {
        flex-direction: column;
        gap: 5px;
    }

    .video-control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .video-control-btn {
        transition: none;
    }

    .spinner {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .video-control-btn {
        border-width: 3px;
        background: #000000;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Footer Social Media Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(37, 99, 235, 0.8);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
}

/* Footer Contact Items */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #2563eb;
}

/* Print styles */
@media print {
    .hero-cta,
    .navbar,
    .video-background,
    .video-controls,
    .volume-indicator,
    .go-to-top-button {
        display: none !important;
    }

    .hero {
        background: #1a1a2e !important;
        min-height: 30vh !important;
    }
}
