:root {
    --charcoal: #0a0a0a;
    --charcoal-light: #141414;
    --charcoal-lighter: #1e1e1e;
    --deep-navy: #050b14;
    --navy-light: #0a1428;
    --ivory: #fffff0;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --champagne: #f8e6a0;
    --silver: #d9dde2;
    --glass: rgba(255, 255, 255, 0.065);
    --crimson: #8b0000;
    --crimson-glow: rgba(139, 0, 0, 0.5);
    --text-main: #fffff0;
    --text-muted: #b0b0b0;
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
    --font-body: Lato, "Montserrat", "Segoe UI", Arial, sans-serif;
    --font-display: "Playfair Display", "Cormorant", Georgia, serif;
    --font-kannada: "Noto Sans Kannada", "Nirmala UI", "Tunga", var(--font-body);
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

body.cinematic-theme {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.09), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(10, 20, 40, 0.6), transparent 34rem),
        var(--deep-navy);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    letter-spacing: 0.5px;
    overflow-x: hidden;
    min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400; /* Lighter weight for luxury serif */
    letter-spacing: 1px;
}

a { text-decoration: none; color: inherit; }

.text-gold { color: var(--gold); }
.text-crimson { color: var(--crimson); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1rem; }
.inline-block { display: inline-block; }
.text-center { text-align: center; }

/* Loader */
.cinematic-loader {
    position: fixed; inset: 0; background: var(--charcoal); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.cinematic-loader.hidden-loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo { width: 120px; filter: drop-shadow(0 0 15px var(--gold-glow)); animation: pulse 2s infinite alternate; margin-bottom: 30px; }
.loader-progress { width: 200px; height: 2px; background: rgba(255,255,255,0.05); overflow: hidden; margin: 0 auto; position: relative;}
.loader-progress::after { content: ''; display: block; position: absolute; left: 0; top: 0; width: 40%; height: 100%; background: var(--gold); animation: loadProgress 1.5s infinite ease-in-out; box-shadow: 0 0 10px var(--gold); }

@keyframes pulse { 0% { transform: scale(0.95); opacity: 0.8;} 100% { transform: scale(1.05); opacity: 1;} }
@keyframes loadProgress { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.smooth-scroll-wrapper {
    position: relative;
    width: 100%;
}

/* Navigation */
.cinematic-nav {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 100;
    padding: 20px 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.cinematic-nav.scrolled {
    background-color: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative;
    width: 100%;
}

.brand-logo {
    display: flex; align-items: center; gap: 12px; z-index: 102;
    margin-right: auto;
}

.brand-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
    transition: transform 0.3s ease;
}
.brand-img:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-main); transition: color 0.3s ease; cursor: pointer;
}
.nav-links a:hover { color: var(--gold); text-shadow: 0 0 8px var(--gold-glow); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; background: transparent; border: none; cursor: pointer;
    flex-direction: column; gap: 6px; z-index: 102; padding: 10px;
}
.mobile-menu-toggle span {
    display: block; width: 30px; height: 2px; background: var(--gold);
    transition: var(--transition-fast); transform-origin: center;
}

.btn-outline-gold {
    border: 1px solid rgba(212, 175, 55, 0.78); padding: 10px 24px; border-radius: 4px;
    transition: var(--transition-fast) !important;
    text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem;
    font-weight: 700; cursor: pointer; background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(212,175,55,0.06)); color: var(--text-main);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.btn-outline-gold:hover {
    background-color: var(--gold); color: var(--charcoal) !important;
    box-shadow: 0 0 20px var(--gold-glow);
}

.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% 200%; color: #1a1a1a;
    padding: 16px 36px; font-weight: 700; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 2px; border-radius: 4px;
    box-shadow: 0 8px 25px var(--gold-glow); transition: var(--transition-smooth);
    border: none; cursor: pointer;
    isolation: isolate;
    position: relative;
}
.btn-gold:hover {
    transform: translateY(-3px); box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
    background-position: 100% 50%;
}

/* Hero Section */
.hero-section {
    position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: -2; object-fit: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.95) 100%);
    z-index: -1;
}
.hero-content { text-align: center; z-index: 1; max-width: 900px; padding: 0 20px; }
.cinematic-title {
    font-size: clamp(3rem, 6vw, 6rem); color: var(--gold); text-shadow: none; background: transparent;
    margin-bottom: 20px; line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--text-main); margin-bottom: 40px; letter-spacing: 1px; opacity: 0.9;
}
.hero-cta { animation-delay: 0.4s; }

/* Parallax Divider */
.parallax-divider {
    position: relative; min-height: 420px; background-attachment: fixed; background-position: center;
    background-repeat: no-repeat; background-size: cover; display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.parallax-print { background-image: url("assets/alian1.png"); }
.parallax-craft { background-image: url("assets/background.png"); }
.parallax-overlay { position: absolute; inset: 0; background: rgba(8, 8, 8, 0.75); }
.parallax-content { position: relative; z-index: 1; text-align: center; padding: 0 20px;}
.parallax-content h2 { font-size: 3rem; color: var(--text-main); text-shadow: 0 8px 25px rgba(0,0,0,0.9); }
.divider-copy {
    color: var(--text-main);
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    margin-top: 15px;
}

/* Featured Craft (Main Page) & Cinematic Background */
.featured-craft-section { padding: 120px 0; }
.ink-bg {
    position: relative;
    background-color: var(--charcoal);
    overflow: hidden;
}
.ink-bg::before {
    content: ''; position: absolute; inset: -20%;
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 50%);
    filter: url(#paper-texture);
    animation: inkFlow 20s infinite alternate ease-in-out;
    z-index: 0; opacity: 0.8;
}
@keyframes inkFlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 5%); }
}

.showcase-content {
    display: flex; align-items: center; gap: 60px; position: relative; z-index: 1;
}
.text-content { flex: 1; }
.text-content h2 { margin-bottom: 20px; font-size: 3.5rem; }
.text-content p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.1rem; }
.card-showcase-container { flex: 1; perspective: 1000px; height: 500px; display: flex; justify-content: center; align-items: center; }
.card-flipper {
    width: min(350px, 88vw);
    aspect-ratio: 7 / 9.6;
    min-height: 0;
    height: auto;
    position: relative;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}
.card-flipper.is-flipped { transform: rotateY(180deg); }
.card-side {
    /* Keeps both English and Kannada card faces visible and stable at every breakpoint. */
    position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.08);
    display: flex; align-items: stretch; justify-content: center; padding: clamp(14px, 4vw, 22px);
    overflow: hidden;
}
.english-side {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.78), rgba(248,230,160,0.84)),
        #fbf5b7;
    color: #1a1a1a;
}
.kannada-side {
    /* Fixes the line-226 visibility issue: the dark face, gold text, and red edge now survive mobile scaling. */
    background:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 38%),
        linear-gradient(160deg, #230707, #080202 72%);
    color: var(--champagne); transform: rotateY(180deg);
    border: 1px solid rgba(190, 21, 21, 0.88);
}
.card-design { width: 100%; height: 100%; padding: clamp(12px, 3vw, 22px); text-align: center; display: flex; flex-direction: column; justify-content: center; }
.embossed-border {
    border: 2px solid #d4af37; height: 100%; padding: clamp(18px, 5vw, 30px); display: flex; flex-direction: column; justify-content: center; box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.2);
}
.traditional-border {
    border: 3px double rgba(212, 175, 55, 0.95); height: 100%;
    padding: clamp(18px, 5vw, 32px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: radial-gradient(circle, rgba(139,0,0,0.36) 0%, transparent 80%);
    gap: clamp(10px, 2.8vw, 18px);
    overflow: hidden;
}
.om-symbol { width: clamp(34px, 10vw, 54px); height: auto; margin: 0 auto 4px auto; filter: invert(72%) sepia(50%) saturate(637%) hue-rotate(3deg) brightness(97%) contrast(92%); }
.card-side h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.card-side h2 { font-size: clamp(2rem, 8vw, 2.7rem); margin-bottom: clamp(10px, 3vw, 20px); font-family: var(--font-display); line-height: 1.12; }
.card-side p { font-size: 0.9rem; font-style: italic; }
.kannada-side h4, .kannada-side h2, .kannada-side p {
    font-family: var(--font-kannada);
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.kannada-side h4 {
    max-width: 100%;
    margin-bottom: 0;
    font-size: clamp(0.85rem, 4vw, 1rem);
}
.kannada-side p {
    max-width: 22ch;
    font-size: clamp(0.92rem, 4vw, 1.05rem);
    line-height: 1.55;
}
.bilingual-copy {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.8;
    font-family: var(--font-kannada);
}

/* Services & Portfolio Sections */
.cinematic-services { padding: 100px 0; background: var(--charcoal-light); }
.cinematic-portfolio { padding: 100px 0; background: var(--charcoal); }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 60px; }
.gold-accent { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; display: block; margin-bottom: 10px; }
.section-header h2 { font-size: 3rem; color: var(--text-main); margin-bottom: 15px; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.interactive-card {
    position: relative; 
    background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(26,26,26,0.76)); /* Glassmorphism base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 8px; /* crisp luxury cards */
    padding: 40px 30px;
    overflow: hidden; 
    transform-style: preserve-3d; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease; 
    cursor: pointer;
}
.interactive-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(212, 175, 55, 0.15), transparent 40%);
    z-index: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.interactive-card:hover { 
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 20px var(--gold-glow); 
    border-color: rgba(212, 175, 55, 0.5); 
    background: rgba(30, 30, 30, 0.8);
}
.card-content { position: relative; z-index: 1; transform: translateZ(30px); }
.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.interactive-card:hover .service-icon {
    stroke: var(--gold);
    stroke-width: 2;
    transform: translateY(-8px) scale(1.1);
    filter: drop-shadow(0 0 15px var(--gold-glow));
}
.service-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: brightness(0.85);
}
.interactive-card:hover .service-image {
    transform: scale(1.03);
    filter: brightness(1.1);
}
.service-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}
.card-content h3 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 15px; transition: color 0.3s ease; }
.interactive-card:hover .card-content h3 { color: var(--gold); }
.card-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--charcoal);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid var(--charcoal);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Portfolio Grid */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.portfolio-item { height: 350px; background-size: cover; background-position: center; padding: 0; display: flex; align-items: flex-end; overflow: hidden; }
.portfolio-wedding { background-image: url("assets/weddingcard5.png"); }
.portfolio-billbook { background-image: url("assets/minimalist_stationary.png"); }

.portfolio-cards { background-image: url("assets/custom_mugs.png"); }
.portfolio-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, transparent 70%); z-index: 0; transition: background 0.4s ease; }
.portfolio-item:hover::after { background: linear-gradient(to top, rgba(8,8,8,0.8) 0%, transparent 50%); }
.portfolio-item .item-details { position: relative; z-index: 1; padding: 30px; transform: translateZ(40px); }
.portfolio-item h4 { color: var(--gold); font-size: 1.4rem; margin: 0; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }

/* Testimonials Carousel */
.cinematic-testimonials { padding: 100px 0; background: linear-gradient(0deg, var(--deep-navy) 0%, var(--navy-light) 100%); }
.carousel-container { position: relative; max-width: 800px; margin: 0 auto; text-align: center; outline: none; }
.carousel-track { position: relative; height: 350px; outline: none; }
.testimonial-slide {
    position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.testimonial-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.client-portrait {
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}
.quote-mark { font-family: 'Playfair Display', serif; font-size: 5rem; color: var(--gold); line-height: 0; margin-top: 20px; margin-bottom: 10px; opacity: 0.3; }
.testimonial-slide p { font-size: 1.4rem; font-family: 'Playfair Display', "Cormorant", serif; font-style: italic; color: var(--ivory); margin-bottom: 30px; letter-spacing: 0.5px; line-height: 1.6; }
.testimonial-slide .author { color: var(--gold); letter-spacing: 2px; text-transform: uppercase; font-size: 1rem; }
.carousel-indicators { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.indicator { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; transition: var(--transition-fast); }
.indicator.active { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }

/* Contact Section & Form */
.cinematic-contact { padding: 120px 0; background: var(--charcoal); }
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; background: var(--charcoal-lighter);
    border-radius: 12px; overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.1); box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.contact-form-side { padding: 60px; border-right: 1px solid rgba(255,255,255,0.05); }
.contact-form-side h2 { color: var(--gold); margin-bottom: 10px; }
.contact-form-side > p { margin-bottom: 40px; color: var(--text-muted); }
.cinematic-form .input-group { position: relative; margin-bottom: 30px; }
.cinematic-form input, .cinematic-form select, .cinematic-form textarea {
    width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px; color: var(--text-main); border-radius: 4px; font-family: var(--font-body); font-size: 1rem; transition: var(--transition-fast); outline: none;
    appearance: none; -webkit-appearance: none;
}
.cinematic-form textarea { resize: vertical; }
.cinematic-form label { position: absolute; top: 16px; left: 20px; color: var(--text-muted); transition: var(--transition-fast); pointer-events: none; }

/* Handle input focus & filled states */
.cinematic-form input:focus, .cinematic-form textarea:focus, .cinematic-form select:focus, 
.cinematic-form input:not(:placeholder-shown), .cinematic-form textarea:not(:placeholder-shown),
.cinematic-form select:valid { border-color: var(--gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.1); }

.cinematic-form input:focus ~ label, .cinematic-form textarea:focus ~ label, .cinematic-form select:focus ~ label,
.cinematic-form input:not(:placeholder-shown) ~ label, .cinematic-form textarea:not(:placeholder-shown) ~ label,
.cinematic-form select:valid ~ label { top: -10px; left: 15px; font-size: 0.8rem; background: var(--charcoal-lighter); padding: 0 5px; color: var(--gold); }

.contact-map-side { display: flex; flex-direction: column; }
.contact-details { padding: 50px 60px; }
.contact-details h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--text-main); }
.contact-details p { color: var(--text-muted); margin-bottom: 10px; }
.contact-details strong { color: var(--gold); }
.map-container { flex: 1; min-height: 300px; }
.studio-map {
    border: 0;
    filter: invert(90%) hue-rotate(180deg) contrast(1.2);
}
.map-container iframe:not([src]) {
    background: linear-gradient(135deg, #101010, #1d1d1d);
}

/* Dynamic Modals & Lightbox */
.modal-overlay, .lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 8, 8, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 1020; display: flex; justify-content: center; align-items: center;
    opacity: 1; transition: opacity 0.4s ease; padding: 20px;
}
.modal-overlay.hidden, .lightbox-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-container {
    background: var(--charcoal-light); width: 100%; max-width: 1000px; max-height: 90vh;
    border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.2); box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 50px rgba(212, 175, 55, 0.1);
    overflow-y: auto; position: relative; transform: translateY(0) scale(1); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.hidden .modal-container { transform: translateY(30px) scale(0.98); }
.modal-close, .lightbox-close {
    position: absolute; top: 20px; right: 25px; background: transparent; border: none;
    color: var(--text-muted); font-size: 2.5rem; cursor: pointer; transition: color 0.3s ease; z-index: 10;
}
.modal-close:hover, .lightbox-close:hover { color: var(--gold); }
.modal-header { padding: 40px 40px 20px 40px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.modal-gallery { padding: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.wedding-bilingual-wrapper {
    padding: clamp(24px, 5vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-toggle-row { margin-bottom: 30px; }
.modal-card-showcase {
    width: 100%;
    min-height: min(500px, 78vh);
    height: auto;
    display: flex;
    justify-content: center;
}
.gallery-item { position: relative; height: 250px; border-radius: 8px; overflow: hidden; cursor: zoom-in; opacity: 0; transform: translateY(30px); animation: modalItemFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes modalItemFadeIn { to { opacity: 1; transform: translateY(0); } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: brightness(0.8); }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.1); }
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mouse-x, -100px) var(--mouse-y, -100px), rgba(212, 175, 55, 0.3), transparent 50%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }
.lightbox-overlay { z-index: 1050; }
.lightbox-overlay img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.8); transform: scale(1); transition: transform 0.4s ease; }
.lightbox-overlay.hidden img { transform: scale(0.95); }

/* Footer */
.cinematic-footer { text-align: center; padding: 40px 20px; background: #030303; color: var(--text-muted); border-top: 1px solid rgba(212, 175, 55, 0.1); }

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); z-index: 999; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-fab:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6); }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-word { display: inline-block; overflow: hidden; vertical-align: top; margin-right: 0.25em; }
.reveal-inner { display: inline-block; transform: translateY(110%); transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.is-visible .reveal-inner { transform: translateY(0); }

/* Responsive & Mobile Menu */
@media (max-width: 900px) {
    body.cinematic-theme { height: auto !important; overflow-y: auto; }
    .smooth-scroll-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        overflow: visible !important;
    }
    .cinematic-nav { padding: 12px 0; }
    .navbar { padding: 12px 0; }
    .brand-img { width: 44px; height: 44px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form-side { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .showcase-content { flex-direction: column; text-align: center; gap: 42px; }
    .hero-section { min-height: 92vh; min-height: 92svh; padding: 110px 0 60px; }
    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        inset: unset;
    }
    .parallax-divider {
        min-height: 320px;
        background-attachment: scroll;
    }
    .parallax-content h2 { font-size: clamp(2rem, 8vw, 3rem); }
    .featured-craft-section,
    .cinematic-services,
    .cinematic-portfolio,
    .cinematic-testimonials,
    .cinematic-contact { padding: 72px 0; }

    .mobile-menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(8, 8, 8, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        flex-direction: column; justify-content: center; align-items: center; gap: 40px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1); z-index: 101;
    }
    .nav-links.nav-active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    .nav-links a.btn-outline-gold { font-size: 1.2rem; margin-top: 20px; }

    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .container { padding: 0 18px; }
    .services-grid { grid-template-columns: 1fr; }
    .modal-gallery { grid-template-columns: 1fr; }
    .card-flipper { width: min(88vw, 350px); max-width: 350px; }
    .card-showcase-container { height: auto; min-height: clamp(440px, 120vw, 500px); padding: 20px 0; }
    .text-content h2,
    .section-header h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
    .contact-form-side { padding: 36px 22px; }
    .contact-details { padding: 30px 20px; }
    .nav-container { padding: 0 15px; }
    .cinematic-title { font-size: clamp(2.3rem, 12vw, 3.4rem); }
    .hero-subtitle { font-size: 1rem; margin-bottom: 28px; }
    .btn-gold,
    .btn-outline-gold { width: 100%; max-width: 320px; text-align: center; }
    .interactive-card { padding: 28px 22px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item { height: 280px; }
    .carousel-track { min-height: 320px; height: auto; }
    .testimonial-slide p { font-size: 1.15rem; }
    .modal-overlay, .lightbox-overlay { padding: 12px; }
    .modal-header, .modal-gallery { padding: 28px 18px; }
    .wedding-bilingual-wrapper { padding: 24px 12px; }
    .modal-card-showcase { min-height: clamp(430px, 118vw, 500px); }
    .whatsapp-fab { width: 54px; height: 54px; bottom: 18px; right: 18px; }
}

@media (max-width: 480px) {
    .nav-links a { font-size: 1.25rem; }
    .card-flipper { width: min(86vw, 315px); max-width: 315px; height: auto; }
    .card-side { padding: 12px; }
    .embossed-border,
    .traditional-border { padding: 16px; }
    .card-side h2 { font-size: clamp(1.8rem, 10vw, 2.25rem); }
    .card-side h4 { font-size: 0.82rem; letter-spacing: 1px; }
    .kannada-side p { max-width: 20ch; }
    .offline-text { font-size: 1.1rem; padding: 0 18px; text-align: center; }
}
/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .ink-bg::before { animation: none !important; }
    .fade-in-up { opacity: 1; transform: translateY(0); }
    .reveal-inner { transform: translateY(0); }
    
    .hero-video { display: none; } /* Show poster image instead of video to reduce motion */
    
    .smooth-scroll-wrapper { position: static !important; transform: none !important; }
    
    .interactive-card:hover { transform: none !important; box-shadow: 0 0 20px var(--gold-glow); }
}

/* Offline / Slow Internet Loader Overlay */
#offline-loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--charcoal);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#offline-loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.offline-text {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* From Uiverse.io by ashif_6672 */ 
.dino-loader {
  width: 100%;
  max-width: 600px;
  height: 150px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: center;
}

.dino-runner {
  width: 44px;
  height: 47px;
  position: absolute;
  bottom: 12px;
  left: 50%;
  margin-left: -22px;
  z-index: 2;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAAAvAgMAAABiRrxWAAAADFBMVEX///9TU1P39/f///+TS9URAAAAAXRSTlMAQObYZgAAAPpJREFUeF7d0jFKRkEMhdGLMM307itNLALyVmHvJuzTDMjdn72E95PGFEZSmeoU4YMMgxhskvQec8YSVFX1NhGcS5ywtbmC8khcZeKq+ZWJ4F8Sr2+ZCErjkJFEfcjAc/6/BMlfcz6xHdhRthYzIZhIHMcTVY1scUUiAphK8CMSPUbieTBhvD9Lj0vyV4wklEGzHpciKGOJoBp7XDcFs4kWxxM7Ey3iZ8JbzASAvMS7XLOJHTTvEkEZSeQl7DMuwVyCasqK5+XzQRYLUJlMbPXjFcn3m8eKBSjWZMJwvGIOvViAzCbUj1VEDoqFOEQGE3SyInJQLOQMJL4B7enP1UbLXJQAAAAASUVORK5CYII=");

  animation:
    dinoRun 0.25s infinite steps(2),
    dinoJump 1.5s infinite linear;
}

.dino-obstacle {
  width: 17px;
  height: 35px;
  position: absolute;
  bottom: 12px;
  right: -50px;
  z-index: 1;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAAjCAMAAABRlI+PAAAADFBMVEX////////39/dTU1PhglcSAAAAAXRSTlMAQObYZgAAAPNJREFUeF7tlkEKwzAMBLXr//+5iQhU7gRRQkyhZI+DhwH74jhmO+oIJBVwURljuAXagG5QqkSgBLqg3JnxJ1Cb8SmQ3o6gpO85owGlOB4m2BNKJ11BSd01owGlOHkcIAuHkz6UNpPKgozPM54dADHjJuNhZiJxdQCQgZJeBczgCAAy3yhPJvcnmdC9mZwBIsQMFV5AkzHBNknFgcKM+oyDIFcfCAoy03m+jSMIcmoVZkKqSjr1fghyahRmoKRUHYLiSI1SMlCq5CDgX6BXmKkfn+oQ0KEyyrzoy8GbXJ9xrM/YjhUZgl9nnsyTCe9rgSRdV15CwRcIEu8GGQAAAABJRU5ErkJggg==");

  animation: moveObstacle 1.5s infinite linear;
}

.dino-ground {
  width: 100%;
  height: 12px;
  position: absolute;
  bottom: 5px;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAAMAgMAAAAPCKxBAAAABlBMVEX///9TU1NYzE1OAAAAAXRSTlMAQObYZgAAALJJREFUeF7t1EEKAyEMhtEvMNm7sPfJEVyY+1+ltLgYAsrQCtWhbxEhQvgxIJtSZypxa/WGshgzKdbq/UihMFMlt3o/CspEYoihIMaAb6mCvM6C+BTAeyo+wN4yykV/6pVfkdLpVyI1hh7GJ6QunUoLEQlQglNP2nkQkeF8+ei9cLxMue1qxVRfk1Ej0s6AEGWfVOk0QUtnK5Xo0Lac6wpdtnQqB6VxomPaz+dgF1PaqqmeWJlz1jYUaSIAAAAASUVORK5CYII=");
  background-repeat: repeat-x;
  animation: moveGround 4s linear infinite;
}

@keyframes dinoRun {
  from {
    background-position: -44px 0;
  }
  to {
    background-position: -132px 0;
  }
}

@keyframes dinoJump {
  0%,
  35% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-60px);
  }
  65%,
  100% {
    transform: translateY(0);
  }
}

@keyframes moveObstacle {
  0% {
    right: -50px;
  }
  100% {
    right: 100%;
  }
}

@keyframes moveGround {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1200px 0;
  }
}/* Navbar container */
.navbar {
  background: linear-gradient(to right, #0d0d0d, #1a1a1a); /* cinematic dark gradient */
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo styling */
.navbar .logo {
  font-family: 'Cinzel Decorative', serif; /* luxury cinematic font */
  font-size: 32px;
  font-weight: 700;
  color: #d4af37; /* gold tone for luxury */
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0px 3px 8px rgba(0,0,0,0.7); /* cinematic glow */
  transition: transform 0.4s ease, color 0.4s ease;
  cursor: pointer;
}

/* Hover effect for logo */
.navbar .logo:hover {
  color: #f5e6c4; /* lighter gold highlight */
  transform: scale(1.08) rotate(-1deg); /* subtle cinematic zoom + tilt */
}

/* Apply styles to SVG logo */
.navbar .logo svg {
  width: 60px;
  height: auto;
  fill: none;
  stroke: #d4af37; /* gold stroke */
  stroke-width: 2;
  filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.6)); /* cinematic glow */
  transition: transform 0.4s ease, stroke 0.4s ease;
}

/* Hover effect */
.navbar .logo svg:hover {
  stroke: #f5e6c4; /* lighter gold highlight */
  transform: scale(1.08);
}
