/* ===== PAGE HEADER WITH BACKGROUND IMAGE ===== */
/* ===== NAVBAR HIDE/SHOW ANIMATION - Same as workshop ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
    background: transparent;
    backdrop-filter: none;
}

/* Hide navbar when scrolling down */
.navbar.hide {
    transform: translateY(-100%);
}

/* Scrolled state - solid background */
.navbar.scrolled {
    background: rgba(36, 35, 35, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(204, 47, 1, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* When navbar is hidden AND scrolled */
.navbar.hide.scrolled {
    background: rgba(36, 35, 35, 0.9);
    backdrop-filter: blur(10px);
}


.page-header {
    min-height: 40vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 8rem 0 4rem;
    /* YOUR IMAGE HERE - replace 'your-image.jpg' with actual filename */
    background: linear-gradient(0deg, var(--marubi-charcoal) 0%, rgba(36, 35, 35, 0.65) 100%),
                url('/images/gallery/services1.JPG');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    border-bottom: 1px solid rgba(204, 47, 1, 0.2);
}

/* Ember glow overlay with dark gradient for text readability */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(36, 35, 35, 0.3) 100%),
        radial-gradient(circle at 20% 30%, rgba(204, 47, 1, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(204, 47, 1, 0.12) 0%, transparent 50%);
    pointer-events: none;
    animation: emberPulse 8s ease infinite alternate;
}

/* Optional: Ember glow border at bottom */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--marubi-ember) 15%, 
        var(--marubi-ember-light) 50%, 
        var(--marubi-ember) 85%, 
        transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--marubi-cream);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-title .ember {
    color: var(--marubi-ember);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(204, 47, 1, 0.3);
}

.page-title .ember::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--marubi-ember);
    transform: scaleX(0);
    transform-origin: left;
    animation: slideIn 1s ease 1s forwards;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--marubi-ember);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 3;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.7;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .page-header {
        background-attachment: scroll;
        background-position: center 25%;
        min-height: 35vh;
        padding: 6rem 0 3rem;
    }
    
    .page-header::before {
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(36, 35, 35, 0.4) 100%),
            radial-gradient(circle at 20% 30%, rgba(204, 47, 1, 0.2) 0%, transparent 60%),
            radial-gradient(circle at 80% 70%, rgba(204, 47, 1, 0.12) 0%, transparent 60%);
    }
    
    .page-subtitle {
        font-size: 1rem;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }
    
    .page-title {
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Landscape mode fix */
@media (max-width: 768px) and (orientation: landscape) {
    .page-header {
        min-height: 60vh;
        padding: 4rem 0 2rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .page-header::before {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* ===== CURRENCY TOGGLE (premium glass) ===== */
.currency-toggle-section {
    padding: 2rem 0 0;
    background: var(--marubi-charcoal);
}

.toggle-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(204, 47, 1, 0.2);
    border-radius: 60px;
    padding: 0.5rem 1rem;
    width: fit-content;
    margin-left: auto;
}

.toggle-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 0.9rem;
}

.toggle-switch {
    display: flex;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 40px;
    padding: 0.3rem;
}

.toggle-option {
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: rgba(255, 255, 255, 0.6);
}

.toggle-option.active {
    background: var(--marubi-ember);
    color: white;
    box-shadow: 0 0 15px var(--marubi-ember);
}

/* ===== FLAGSHIP SECTION ===== */
.flagship-section {
    padding: var(--space-2xl) 0 var(--space-lg);
    background: var(--marubi-charcoal);
}

.flagship-card {
    background: linear-gradient(145deg, #1d3143, #14222e);
    border: 2px solid var(--marubi-ember);
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 30px -10px rgba(204, 47, 1, 0.3);
}

.flagship-badge {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: var(--marubi-ember);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 0 #8f2b01;
}

.flagship-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.flagship-icon {
    width: 120px;
    height: 120px;
    background: rgba(204, 47, 1, 0.2);
    border: 3px solid var(--marubi-ember);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flagship-icon i {
    font-size: 3.5rem;
    color: var(--marubi-ember);
}

.flagship-text {
    flex: 1;
}

.flagship-text h2 {
    font-size: 2.5rem;
    color: var(--marubi-cream);
    margin-bottom: 0.5rem;
}

.flagship-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.flagship-price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 0.3rem 2rem;
    border-radius: 60px;
    border: 2px solid var(--marubi-ember);
    margin-bottom: 0.5rem;
}

.flagship-price small {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--marubi-cream);
}

.flagship-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--space-2xl) 0;
    background: var(--marubi-charcoal);
}

.services-section.alt-bg {
    background: var(--marubi-onyx);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--marubi-cream);
    margin-bottom: 1rem;
}

.section-title .ember {
    color: var(--marubi-ember);
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: rgba(36, 35, 35, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 47, 1, 0.2);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--marubi-ember);
    transition: height 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--marubi-ember);
    box-shadow: var(--shadow-ember);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(204, 47, 1, 0.1);
    border: 2px solid var(--marubi-ember);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--marubi-ember);
    transform: rotate(360deg);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-icon i {
    font-size: 2rem;
    color: var(--marubi-ember);
    transition: var(--transition-smooth);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--marubi-cream);
    margin-bottom: 1rem;
}

.service-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    min-height: 4.5rem;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 0.2rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--marubi-ember);
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--marubi-ember);
}

/* ===== PACKAGES SECTION ===== */
.packages-section {
    padding: var(--space-2xl) 0;
    background: var(--marubi-onyx);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.package-card {
    background: rgba(36, 35, 35, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 47, 1, 0.3);
    border-radius: 32px;
    padding: 2rem;
    transition: var(--transition-smooth);
    border-top: 5px solid var(--marubi-ember);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-ember);
}

.package-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--marubi-cream);
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--marubi-ember);
    margin-bottom: 1.5rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(204, 47, 1, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.package-features li i {
    color: var(--marubi-ember);
    width: 1.5rem;
}

/* ===== EXTRA / NICHE SERVICES ===== */
.extra-section {
    padding: var(--space-xl) 0;
    background: var(--marubi-charcoal);
}

.extra-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.extra-item {
    background: rgba(204, 47, 1, 0.1);
    border: 1px solid var(--marubi-ember);
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    color: var(--marubi-cream);
    font-size: 1rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.extra-item i {
    color: var(--marubi-ember);
}

.extra-item:hover {
    background: var(--marubi-ember);
    color: white;
    transform: scale(1.05);
}

.extra-item:hover i {
    color: white;
}

.extra-motto {
    text-align: center;
    font-size: 1.5rem;
    color: var(--marubi-cream);
    margin-top: 2rem;
    font-weight: 500;
}

.extra-motto i {
    color: var(--marubi-ember);
    margin-right: 0.5rem;
}

/* ===== INFO BAR ===== */
.info-bar {
    padding: var(--space-lg) 0;
    background: var(--marubi-onyx);
    border-top: 1px solid rgba(204, 47, 1, 0.2);
    border-bottom: 1px solid rgba(204, 47, 1, 0.2);
}

.info-bar-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.info-bar-content i {
    color: var(--marubi-ember);
    margin-right: 0.4rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--space-2xl) 0;
    background: var(--marubi-onyx);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 47, 1, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(36, 35, 35, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid var(--marubi-ember);
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--marubi-cream);
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--marubi-ember);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 99;
    box-shadow: 0 0 20px var(--marubi-ember);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
@keyframes emberPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

@keyframes slideIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== ANIMATION CLASSES ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in"] {
    transform: translateY(30px);
    opacity: 0;
}

[data-animate="fade-in"].animated {
    transform: translateY(0);
    opacity: 1;
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* ===== RESPONSIVE (mobile first) ===== */
@media (max-width: 1024px) {
    .flagship-content {
        flex-direction: column;
        text-align: center;
    }
    
    .flagship-badge {
        position: static;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .toggle-container {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .flagship-card {
        padding: 1.5rem;
    }
    
    .flagship-price {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .package-card {
        padding: 1.5rem;
    }
    
    .info-bar-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .extra-item {
        width: 100%;
        justify-content: center;
    }
    
    .service-price {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .flagship-icon {
        width: 80px;
        height: 80px;
    }
    
    .flagship-icon i {
        font-size: 2rem;
    }
    
    .flagship-text h2 {
        font-size: 1.8rem;
    }
    
    .toggle-container {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .toggle-option {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}