/* ===================================
   MAIN HERO SLIDER (Full-Page)
   =================================== */

.hero-main-slider {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    background: #000 !important;
    z-index: 1 !important;
    display: block !important;
    visibility: visible !important;
}

/* Header overlay on slider */
body.homepage .header {
    z-index: 1001 !important;
}

/* Content should start after slider height */
body.homepage .main-content {
    position: relative;
    z-index: 10;
    margin-top: 100vh;
    padding-top: 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Ensure proper layout for homepage */
body.homepage {
    position: relative !important;
    overflow-x: hidden !important;
    width: 100vw !important;
    height: auto;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force full width for any potential containers */
body.homepage * {
    box-sizing: border-box;
}

body.homepage .hero-main-slider,
body.homepage .hero-main-slider .slider-container,
body.homepage .hero-main-slider .slide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.slider-container {
    position: relative !important;
    width: 100vw !important;
    height: 100% !important;
    z-index: 2 !important;
    overflow: hidden !important;
    left: 0 !important;
    right: 0 !important;
}

.slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    z-index: 2 !important;
}

/* Ensure first slide is visible by default */
.slide:first-child {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.slide.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    z-index: 3 !important;
    display: block !important;
    visibility: visible !important;
}

/* Additional fallback for active slides */
.hero-main-slider .slide.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.slide.prev {
    transform: translateX(-100%);
}

.slide img,
.slide video {
    width: 100vw !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1 !important;
}

.slide-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    z-index: 11 !important;
    padding: 2rem;
    animation: slideContentIn 0.8s ease-out 0.3s both;
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Slider Navigation */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 3rem;
    z-index: 1003;
}

.slider-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 1003;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 1003;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes slideContentIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   PRODUCT SHOWCASE SECTION
   =================================== */

.product-showcase-section {
    padding: 1rem 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

/* Showcase Animated Background Elements */
.showcase-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.showcase-floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: floatShowcaseElement 15s ease-in-out infinite;
}

.showcase-floating-1 {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    top: 15%;
    right: 8%;
    animation-delay: 0s;
}

.showcase-floating-2 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #10b981, #059669);
    top: 65%;
    left: 3%;
    animation-delay: -5s;
}

.showcase-floating-3 {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    bottom: 15%;
    right: 25%;
    animation-delay: -10s;
}

.showcase-floating-4 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    top: 35%;
    right: 35%;
    animation-delay: 3s;
}

.showcase-floating-5 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    bottom: 40%;
    left: 15%;
    animation-delay: -7s;
}

.showcase-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showcase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.showcase-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.3;
}

/* Bento Box Grid Layout - Handled by showcase-cards.css */

/* Responsive adjustments for floating elements */
@media (max-width: 1200px) {
    .showcase-floating-1 {
        width: 100px;
        height: 100px;
    }

    .showcase-floating-2 {
        width: 70px;
        height: 70px;
    }

    .showcase-floating-3 {
        width: 85px;
        height: 85px;
    }

    .showcase-floating-4 {
        width: 55px;
        height: 55px;
    }

    .showcase-floating-5 {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .showcase-floating-1 {
        width: 80px;
        height: 80px;
    }

    .showcase-floating-2 {
        width: 60px;
        height: 60px;
    }

    .showcase-floating-3 {
        width: 70px;
        height: 70px;
    }

    .showcase-floating-4 {
        width: 45px;
        height: 45px;
    }

    .showcase-floating-5 {
        width: 75px;
        height: 75px;
    }

    .product-showcase-section {
        padding: 1rem 0;
    }

    .showcase-header {
        margin-bottom: 3rem;
    }
}

/* Card content styling - handled by showcase-cards.css */

.showcase-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    z-index: 3;
}

/* Special badge styles */
.showcase-card:nth-child(4) .showcase-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}


@keyframes premiumPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
    }
}

/* ===================================
   ANIMATED REVEAL SECTION
   =================================== */

.animated-reveal-section {
    position: relative;
    height: 100vh; /* Back to original height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 2;
}

.reveal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.reveal-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Three horizontal sections container */
.reveal-sections-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.reveal-section {
    position: relative;
    width: 100%;
    height: 33.333vh; /* Each section takes 1/3 of viewport */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform-origin: center;
}

/* Section backgrounds */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Section content */
.section-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
    transform: scale(0.8);
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-section.revealed .section-content {
    transform: scale(1);
    opacity: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Animation directions */
/* Animation type based classes */
.reveal-section-left_to_right .section-image {
    transform: translateX(-100%); /* Start from left */
}

.reveal-section-right_to_left .section-image {
    transform: translateX(100%); /* Start from right */
}

.reveal-section-bottom_to_top .section-image {
    transform: translateY(100%); /* Start from bottom */
}

/* Legacy support for old section number classes */
.reveal-section-1 .section-image {
    transform: translateX(-100%); /* Start from left */
}

.reveal-section-2 .section-image {
    transform: translateX(100%); /* Start from right */
}

.reveal-section-3 .section-image {
    transform: translateY(100%); /* Start from bottom */
}

.reveal-section.revealed .section-image {
    transform: translate(0); /* Animate to center */
}

/* Add subtle animation to revealed sections */
.reveal-section.revealed {
    animation: sectionReveal 1.5s ease-out forwards;
}

/* Fallback: make sections visible after 5 seconds if JavaScript doesn't work */
.reveal-section:not(.revealed) {
    animation: fallbackReveal 0.5s ease-out 5s forwards;
}

@keyframes fallbackReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sectionReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 2;
    transition: opacity 1s ease;
}

.reveal-overlay.fade-out {
    opacity: 0;
}

/* Legacy reveal-content styles - no longer used in new design */
.reveal-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    display: none; /* Hidden in new design */
}

.reveal-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.reveal-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #f59e0b;
}

.reveal-description {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Button styling for banner CTA */
.reveal-content .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #f59e0b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    margin-top: 1rem;
    border: none;
}

.reveal-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    opacity: 0.9;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .slide-title {
        font-size: 3rem;
    }

    .slide-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .section-content {
        padding: 1.5rem;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .slider-navigation {
        padding: 0 1rem;
    }

    .showcase-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-content {
        padding: 1rem;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .slide-content {
        padding: 1rem;
    }

    .showcase-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-content {
        padding: 0.75rem;
        max-width: 300px;
    }
}

/* Showcase Animation Keyframes */
@keyframes floatShowcaseElement {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.08;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(90deg);
        opacity: 0.12;
    }
    50% {
        transform: translateY(-25px) translateX(-5px) rotate(180deg);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-10px) translateX(15px) rotate(270deg);
        opacity: 0.14;
    }
}
