/* West's Fibreglass Premium Accent & Animation Stylesheet */

/* Custom Animations */
@keyframes ken-burns {
    0% { transform: scale(1.0); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1.0); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes pulse-accent-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 114, 20, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(255, 114, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 114, 20, 0); }
}

@keyframes float-slow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes gradient-motion {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Base Style Overrides & Utilities */
.hero-zoom {
    animation: ken-burns 30s ease-in-out infinite;
}

.whatsapp-pulse {
    animation: pulse-glow 2s infinite;
}

.accent-pulse {
    animation: pulse-accent-glow 2.5s infinite;
}

.floating-element {
    animation: float-slow 6s ease-in-out infinite;
}

/* Premium Card Hover Effects */
.premium-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 35px -12px rgba(0, 43, 91, 0.15), 0 0 25px -5px rgba(255, 114, 20, 0.08);
    border-color: rgba(255, 114, 20, 0.3) !important;
}

/* Link Hover Underline Accent */
.link-hover-accent {
    position: relative;
    transition: color 0.3s ease;
}

.link-hover-accent::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #FF7214;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-hover-accent:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Glassmorphism Classes */
.glass-nav-scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(196, 198, 208, 0.15) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 23, 54, 0.05) !important;
}

/* Scroll Progress Bar styling */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FF7214, #FFB300);
    z-index: 100;
    transition: width 0.1s ease-out;
}

/* Bento Grid Animated Background */
.bg-animated-gradient {
    background: linear-gradient(-45deg, #001736, #002B5B, #005691, #001736);
    background-size: 300% 300%;
    animation: gradient-motion 12s ease infinite;
}

/* Image Hover Zoom wrapper */
.image-zoom-container {
    overflow: hidden;
    position: relative;
}

.image-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom-container:hover img {
    transform: scale(1.05);
}

/* Page load entrance animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delays */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.25s; opacity: 0; }
.stagger-3 { animation-delay: 0.4s; opacity: 0; }
.stagger-4 { animation-delay: 0.55s; opacity: 0; }

/* Focus outlines for inputs */
.focus-accent:focus {
    outline: none !important;
    border-color: #FF7214 !important;
    box-shadow: 0 0 0 3px rgba(255, 114, 20, 0.15) !important;
}

/* Intro Overlay Styles */
#intro-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 2.0s cubic-bezier(0.16, 1, 0.3, 1), transform 2.0s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer; /* Clicking anywhere skips the intro */
}

#intro-overlay.overlay-fade-out {
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Clicking passes through to the overlay */
}

/* Sound and Skip controls style */
.intro-control-btn {
    position: absolute;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.intro-control-btn:hover {
    background-color: rgba(255, 114, 20, 0.85); /* Accent orange hover */
    border-color: rgba(255, 114, 20, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 114, 20, 0.3);
}

.intro-control-btn:active {
    transform: translateY(0);
}

#intro-unmute-btn {
    top: 2rem;
    right: 2rem;
    animation: unmute-pulse 2s infinite;
}

#intro-skip-btn {
    bottom: 2rem;
    right: 2rem;
}

@keyframes unmute-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 114, 20, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 114, 20, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 114, 20, 0);
        transform: scale(1);
    }
}

/* App content reveal transitions */
#app-content {
    transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1), filter 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-hidden {
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
    height: 100vh;
    overflow: hidden;
}

.content-visible {
    opacity: 1;
    filter: blur(0px);
    pointer-events: auto;
}

/* Custom scroll lock class to be toggled on html/body */
.intro-scroll-lock {
    overflow: hidden !important;
    height: 100vh !important;
}


