/* Remove top padding of layout wrapper to allow full-screen hero under transparent navbar */
body .main-content {
    padding-top: 0 !important;
}

/* Base page overlay for cinematic background */
.page-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('/image/ringback1.png') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

/* Hero Section with Parallax Background Image */
.hero-craftsmanship {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/Image/jewellery_craft_banner.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    border-bottom: 1px solid rgba(200, 162, 90, 0.15);
    box-shadow: inset 0 -150px 150px rgba(18, 3, 2, 0.95);
    transform: translateZ(0);
}

.hero-craftsmanship-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(28, 6, 5, 0.45) 0%, rgba(18, 3, 2, 0.95) 100%);
    z-index: 1;
}

.text-glow {
    background: linear-gradient(135deg, #ffffff 30%, var(--gold-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(200, 162, 90, 0.25);
}

/* Ambient background glow circles */
.ambient-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 162, 90, 0.06) 0%, rgba(28, 6, 5, 0) 70%);
    top: 20%;
    left: -10%;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-2 {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(231, 212, 170, 0.05) 0%, rgba(28, 6, 5, 0) 70%);
    bottom: 15%;
    right: -10%;
    pointer-events: none;
    z-index: 0;
}

/* Glassmorphic Cards */
.timeline-card {
    background: rgba(44, 10, 7, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(200, 162, 90, 0.12);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-lux);
    transition: var(--transition-lux);
    position: relative;
    z-index: 2;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 162, 90, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(200, 162, 90, 0.15);
}

/* Image frame adjustments */
.parallax-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(200, 162, 90, 0.15);
    transition: var(--transition-lux);
}

.image-frame-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(200, 162, 90, 0.25);
    border-radius: calc(var(--radius-md) - 5px);
    pointer-events: none;
    z-index: 3;
    transition: var(--transition-lux);
}

.timeline-card:hover + .parallax-image-wrap .image-frame-border,
.parallax-image-wrap:hover .image-frame-border {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-color: var(--gold-accent);
    box-shadow: inset 0 0 15px rgba(200, 162, 90, 0.2);
}

/* Timeline Central Nodes */
.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--dark-neutral);
    border: 2px solid rgba(200, 162, 90, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold-secondary);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: var(--transition-lux);
}

/* Scroll Progress Dot */
.timeline-scroll-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--gold-accent);
    box-shadow: 0 0 15px var(--gold-accent), 0 0 30px var(--gold-accent);
    z-index: 5;
    top: 0;
}

/* Scroll wheel animation adjustments */
.scroll-wheel-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(247, 244, 239, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    z-index: 10;
    pointer-events: none;
}

/* Stacked Card Carousel Styles */
.card-stack-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 480px;
    margin: 0 auto;
    perspective: 1000px;
}

.craft-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.craft-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(200, 162, 90, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    transform-origin: bottom center;
    background: rgba(28, 6, 5, 0.9);
    cursor: pointer;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.craft-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.craft-card .image-frame-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(200, 162, 90, 0.25);
    border-radius: calc(var(--radius-lg, 24px) - 5px);
    pointer-events: none;
    z-index: 3;
    transition: all 0.3s ease;
}

.craft-card:hover {
    border-color: rgba(200, 162, 90, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(200, 162, 90, 0.25);
}

.craft-card:hover .image-frame-border {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-color: var(--gold-accent);
}

/* Content slide transitions */
.craft-content-carousel {
    position: relative;
}

.craft-content-wrapper {
    position: relative;
    min-height: 120px;
}

.craft-content-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.craft-content-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Navigation controls */
.craft-controls {
    display: flex;
    align-items: center;
    margin-top: 2.5rem;
}

.craft-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(44, 10, 7, 0.6);
    border: 1px solid rgba(200, 162, 90, 0.25);
    color: var(--gold-secondary, #e7d4aa);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.craft-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.craft-nav-btn svg {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.craft-nav-btn:hover {
    color: var(--dark-neutral, #120302) !important;
    border-color: var(--gold-accent);
    box-shadow: 0 0 20px rgba(200, 162, 90, 0.5);
    transform: scale(1.05);
}

.craft-nav-btn:hover::before {
    opacity: 1;
}

.craft-nav-btn:active {
    transform: scale(0.95);
}

.craft-nav-btn:focus {
    outline: none;
}

/* Progress indicator */
.craft-progress-indicator {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: rgba(247, 244, 239, 0.5);
    font-weight: 300;
}

.craft-progress-indicator .current-idx {
    color: var(--gold-accent);
    font-weight: 500;
}

.craft-progress-indicator .divider {
    margin: 0 0.6rem;
    opacity: 0.5;
}

.text-glow-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--text-charcoal);
    background: linear-gradient(135deg, #ffffff 40%, var(--gold-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(200, 162, 90, 0.15);
}

.text-gold-accent {
    color: var(--gold-accent) !important;
}

/* Responsive adjustments for Craftsmanship */
@media (max-width: 991px) {
    .hero-craftsmanship {
        min-height: 380px;
        height: 50vh;
    }
    .card-stack-container {
        max-width: 380px;
        height: 400px;
    }
}
@media (max-width: 576px) {
    .hero-craftsmanship {
        min-height: 280px;
        height: 40vh;
    }
    .card-stack-container {
        max-width: 300px;
        height: 320px;
    }
    .timeline-card {
        padding: 1.5rem;
    }
}
