/**
 * studio-theme.css - Rai Shree Digital Studio
 * Master fine-art photography aesthetic stylesheet.
 */

:root {
    --gold: #C5A059;
    --gold-light: #F2E8C9;
    --gold-dark: #8C6F36;
    --black: #0A0A0A;
    --offwhite: #F9F9F9;
    --gray: #4A4A4A;
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-padding-top: 96px;
}

body {
    background: var(--offwhite);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection {
    background: var(--gold);
    color: #fff;
}

/* Accessibility */
.skip-link {
    position: fixed;
    left: 1rem;
    top: -100px;
    z-index: 100;
    background: #fff;
    color: #000;
    padding: .75rem 1rem;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    transition: top .2s ease;
}
.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Navigation */
#navbar {
    transition: box-shadow .35s ease, background-color .35s ease, height .35s ease;
}
#navbar.is-scrolled {
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s var(--ease-premium);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

.logo-rounded {
    border-radius: 16px;
    overflow: hidden;
}

/* Image & Gallery Card System */
.image-card,
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fff;
}

.image-card img,
.gallery-card img {
    transition: transform 1.2s var(--ease-premium), filter .8s ease;
    will-change: transform;
}

.group:hover .image-card img,
.image-card:hover img,
.gallery-card:hover img {
    transform: scale(1.045);
}

.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,.22));
    opacity: 0.6;
    pointer-events: none;
    transition: opacity .4s ease;
}
.gallery-card:hover::after {
    opacity: 0.2;
}

.gallery-trigger {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: zoom-in;
    border: none;
    background: transparent;
}

.gallery-count {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 10px;
    letter-spacing: .16em;
}

/* Hero Section */
.hero-overlay {
    background:
        linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.53) 42%, rgba(0,0,0,.10) 100%),
        linear-gradient(0deg, rgba(0,0,0,.20), transparent 40%);
}

.hero-slide img,
.hero-image {
    animation: ambientZoom 12s linear forwards;
}

@keyframes ambientZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.12); }
}

/* Decorative Gold Line Divider */
.gold-line {
    position: relative;
    width: 72px;
    height: 1px;
    margin-inline: auto;
    background: var(--gold);
}

.gold-line::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border: 1px solid var(--gold);
    background: var(--offwhite);
    transform: rotate(45deg);
    left: 50%;
    top: -2px;
    margin-left: -2px;
}

/* Buttons */
.premium-btn {
    transition: transform .3s var(--ease-premium), box-shadow .3s ease, background-color .3s ease, color .3s ease;
}
.premium-btn:hover {
    transform: translateY(-2px);
}

/* WhatsApp Floating Action Buttons */
.fab-whatsapp {
    background: #25D366;
    box-shadow: 0 10px 25px rgba(37,211,102,.30);
    transition: transform .3s var(--ease-premium), box-shadow .3s ease;
}
.fab-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37,211,102,.40);
}

/* Lightbox Modal */
.lightbox {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.lightbox img {
    max-height: min(84vh, 900px);
    max-width: min(92vw, 1200px);
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 100px rgba(0,0,0,.5);
    transition: transform .3s var(--ease-premium);
}

/* Mobile Menu Panel */
#mobile-menu {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Swiper custom styling for studio cards */
.service-carousel .swiper-pagination-bullet-active {
    background-color: var(--gold) !important;
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Screen size adjustments */
@media (max-width: 380px) {
    .hero-title { font-size: 2.5rem; }
}
