/* ================================
   Hero Section — JamesEdition Cinematic Carousel
   ================================ */

.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 180px);
    /* FULL PAGE (Header + Hero = 100vh) */
    min-height: 500px;
    overflow: hidden;
    background: #111;
    /* Dark background for 'contain' gaps */
}

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
}


/* ---- Full-Bleed Background Slides (Horizontal Slider) ---- */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    width: 400%;
    /* 4 slides = 400% */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hero-bg-slide {
    position: relative;
    flex: 0 0 25%;
    /* Each slide is 1/4 of the container */
    width: 25%;
    height: 100%;
    overflow: hidden;
    background: #111;
}

/* Background Blur Layer (For Web Portrait images in Landscape container) */
.hero-bg-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.35);
    /* Heavy blur, darkened */
    transform: scale(1.15);
    /* Scale up to hide blur edges */
    z-index: 1;
}

/* Foreground Main Image Layer */
.hero-bg-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: contain;
    /* Don't overstretch/zoom on web */
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    transition: transform 4s linear;
}

/* Re-enable Ken Burns for foreground image ONLY when active */
.hero-bg-slide.active::after {
    animation: kenBurns 8s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

/* For Mobile: Prioritize filling the space (Portrait images fit Portrait screens) */
@media (max-width: 768px) {
    .hero-bg-slide::after {
        background-size: cover;
        /* Fill the vertical screen */
    }

    .hero-bg-slide::before {
        display: none;
        /* No need for blur on mobile */
    }
}

/* ---- Dark Gradient Overlay ---- */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

/* ---- Bottom-Left Text Overlay ---- */
.hero-bottom-content {
    position: absolute;
    bottom: 40px;
    /* Squeezed down */
    left: 40px;
    z-index: 10;
    max-width: 500px;
    /* Squeezed width */
}

.hero-title-je {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    /* Reduced font size */
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-transform: none;
    letter-spacing: -1px;
    margin: 0 0 15px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-stats-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    /* Slightly smaller */
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    margin: 0 0 25px 0;
}

/* CTA Button */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: #d32f2f;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.35);
}

.hero-cta-btn:hover {
    background: #f44336;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(211, 47, 47, 0.5);
}

/* ---- Bottom-Right Pagination ---- */
.hero-pagination {
    position: absolute;
    bottom: 60px;
    right: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.hero-arrows {
    display: flex;
    gap: 8px;
}

.hero-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-section {
        height: calc(100vh - 64px);
    }

    .hero-bottom-content {
        bottom: 40px;
        left: 24px;
        right: 24px;
        max-width: none;
    }

    .hero-title-je {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-stats-line {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .hero-pagination {
        bottom: 40px;
        right: 24px;
    }

    .hero-arrows {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-bottom-content {
        bottom: 30px;
        left: 16px;
        right: 16px;
    }

    .hero-title-je {
        font-size: 2rem;
    }

    .hero-cta-btn {
        padding: 14px 36px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .hero-pagination {
        bottom: 30px;
        right: 16px;
    }
}

/* ================================
   About Us Section
   ================================ */

.about-section {
    padding: var(--space-15) 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.section-tag {
    color: var(--accent-primary);
    font-size: 0.8rem;
    letter-spacing: 5px;
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    font-weight: 700;
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-4);
    line-height: 1;
    font-family: var(--font-display);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

.about-visual-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.glass-backdrop {
    position: absolute;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    transform: rotateX(20deg) rotateY(-10deg);
    z-index: 0;
}

.headlight-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
    z-index: 1;
    filter: blur(20px);
    animation: pulseGlow 4s infinite alternate;
}

.floating-headlight {
    width: 90% !important;
    position: relative;
    z-index: 2;
    /* PEFECT ISOLATION */
    filter: contrast(1.2) brightness(1.1) drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    mix-blend-mode: screen;
    animation: softFloat 6s ease-in-out infinite;
}

@keyframes softFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.about-visual-container:hover .floating-headlight {
    transform: scale(1.05) translateY(-10px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent-color);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }
}