/* Custom Styles and Overrides */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sticky Header Active State */
.header-scrolled {
    background-color: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.header-scrolled .logo-container img {
    height: 2.5rem !important; /* md:h-10 */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #F59D21;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d88616;
}

/* Reveal Classes (Handled by ScrollReveal.js) */
.reveal-up, .reveal-left, .reveal-right {
    visibility: hidden;
}

/* Ensure video covers exactly */
video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Stacked Cards Effect */
.stacked-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 4rem 4rem;
    overflow-x: auto;
    scrollbar-width: none; 
}
.stacked-cards-container::-webkit-scrollbar {
    display: none;
}

.stacked-card {
    display: flex;
    flex-direction: column;
    height: 380px; 
    min-width: 260px; 
    background-color: #fff;
    border-radius: 20px;
    box-shadow: -1rem 0 1.5rem rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    left: 0px;
    padding: 2rem;
    text-align: left;
    text-decoration: none;
    color: inherit;
    border-left: 1px solid rgba(255,255,255,0.1);
    
    /* Safari border-radius + transform overflow fix */
    overflow: hidden;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.stacked-card.bg-brand-dark {
    background-color: #1A1A1A;
    color: #fff;
}

@media (min-width: 768px) {
    .stacked-cards-container::after {
        content: '';
        min-width: 80px;
        display: block;
    }
    
    .stacked-card:not(:first-child) {
        margin-left: -80px;
    }
    
    .stacked-card:hover {
        transform: translateY(-20px) scale(1.05) translateZ(0);
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 10;
        box-shadow: -1rem 1rem 2rem rgba(0, 0, 0, 0.25);
    }
    
    .stacked-card:hover ~ .stacked-card {
        transform: translateX(80px) translateZ(0);
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }
}

@media (max-width: 767px) {
    .stacked-cards-container {
        justify-content: flex-start;
        padding: 3rem 2rem;
    }
    .stacked-cards-container::after {
        content: '';
        min-width: 1rem;
        display: block;
    }
    .stacked-card {
        min-width: 280px;
        margin-right: 1rem;
    }
}

/* Custom Cursor */
html {
    cursor: url('../image/cursor.svg'), auto;
}

html.click, 
html.click a, 
html.click a:hover, 
a:hover, 
button:hover {
    cursor: url('../image/cursor-hover.svg'), pointer;
}
