/* =============================================
   CINEMATIC 3D EXPERIENCE — DAYAL DENTAL
   Cartier-inspired immersive scroll design
   ============================================= */

/* ===== KEYFRAMES ===== */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes heroReveal { 0% { clip-path: inset(100% 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes scaleReveal { 0% { opacity: 0; transform: scale(0.88); } 100% { opacity: 1; transform: scale(1); } }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(164, 204, 225, 0.4); } 50% { box-shadow: 0 0 20px 8px rgba(164, 204, 225, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== GLOBAL OVERRIDES FOR FRONT PAGE ===== */
body.home, body.page-template-front-page {
    overflow-x: hidden;
}

body.home .site-header,
body.page-template-front-page .site-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home .site-header .main-nav a,
body.page-template-front-page .site-header .main-nav a {
    color: rgba(255, 255, 255, 0.75);
}

body.home .site-header .main-nav a:hover,
body.page-template-front-page .site-header .main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

body.home .site-header .main-nav .current-menu-item a,
body.home .site-header .main-nav .current_page_item a,
body.page-template-front-page .site-header .main-nav .current-menu-item a,
body.page-template-front-page .site-header .main-nav .current_page_item a {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

body.home .site-header .site-logo img,
body.page-template-front-page .site-header .site-logo img {
    filter: none;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    height: 56px;
}

body.home .site-header .btn-primary,
body.page-template-front-page .site-header .btn-primary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(12px);
}

body.home .site-header .btn-primary:hover,
body.page-template-front-page .site-header .btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
}

body.home .site-header .mobile-menu-toggle span,
body.page-template-front-page .site-header .mobile-menu-toggle span {
    background: #fff;
}

body.home .site-header.scrolled,
body.page-template-front-page .site-header.scrolled {
    background: rgba(0, 37, 50, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ===== CINEMATIC HERO ===== */
.cin-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.cin-hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cin-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroReveal 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.cin-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 37, 50, 0.55) 0%,
        rgba(0, 37, 50, 0.35) 40%,
        rgba(0, 37, 50, 0.5) 70%,
        rgba(0, 37, 50, 0.8) 100%
    );
}

.cin-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    max-width: 900px;
}

.cin-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

.cin-hero__badge-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-inverse-primary);
}

.cin-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 8vw, 88px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.cin-hero__title-line {
    display: block;
}

.cin-hero__title-line--italic {
    font-style: italic;
    font-weight: 300;
}

.cin-hero__subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.cin-hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.cin-hero__scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.cin-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    animation: scrollLine 2s ease-in-out infinite;
}

/* ===== CINEMATIC BUTTONS ===== */
.cin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cin-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cin-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cin-btn--primary {
    background: #fff;
    color: var(--color-primary);
}

.cin-btn--primary:hover {
    background: var(--color-inverse-primary);
    transform: translateY(-2px);
}

.cin-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cin-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cin-btn--white {
    background: #fff;
    color: var(--color-primary);
}

.cin-btn--white:hover {
    background: var(--color-inverse-primary);
    transform: translateY(-2px);
}

.cin-btn--ghost-dark {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.cin-btn--ghost-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== LABEL & HEADING SYSTEM ===== */
.cin-label {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-on-primary-container);
    margin-bottom: 20px;
    position: relative;
    padding-left: 32px;
}

.cin-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--color-on-primary-container);
}

.cin-label--light {
    color: rgba(255, 255, 255, 0.6);
}

.cin-label--light::before {
    background: rgba(255, 255, 255, 0.4);
}

.cin-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.12;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.cin-heading em {
    font-style: italic;
    font-weight: 300;
}

.cin-heading--center {
    text-align: center;
}

.cin-heading--light {
    color: #fff;
}

.cin-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-on-surface-variant);
    max-width: 480px;
    margin-top: 20px;
}

/* ===== MARQUEE ===== */
.cin-marquee {
    background: var(--color-primary);
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 3;
}

.cin-marquee__track {
    display: flex;
}

.cin-marquee__content {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: marquee 25s linear infinite;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    padding-right: 32px;
}

.cin-marquee__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-inverse-primary);
    flex-shrink: 0;
}

/* ===== SPLIT SECTION ===== */
.cin-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
    background: var(--color-surface);
}

.cin-split__media {
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

.cin-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    will-change: transform;
}

.cin-split__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 24px;
}

.cin-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 37, 50, 0.08);
}

.cin-stat__value {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}

.cin-stat__label {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-on-surface-variant);
    margin-top: 8px;
    display: block;
}

/* ===== SERVICE CARDS — 3D ===== */
.cin-services {
    padding: 120px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.cin-services__header {
    text-align: center;
    margin-bottom: 72px;
}

.cin-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cin-svc-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-surface-container-lowest);
    border: 1px solid rgba(0, 37, 50, 0.06);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.cin-svc-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 0 40px 80px -20px rgba(0, 37, 50, 0.18);
}

.cin-svc-card__number {
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    color: rgba(0, 37, 50, 0.04);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    transition: color 0.5s;
}

.cin-svc-card:hover .cin-svc-card__number {
    color: rgba(0, 37, 50, 0.08);
}

.cin-svc-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.cin-svc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cin-svc-card:hover .cin-svc-card__img img {
    transform: scale(1.08);
}

.cin-svc-card__img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 37, 50, 0.06));
}

.cin-svc-card__body {
    padding: 28px 24px 32px;
}

.cin-svc-card__body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.cin-svc-card__body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-on-surface-variant);
}

/* ===== TEAM CAROUSEL ===== */
.cin-team {
    padding: 120px 0;
    overflow: hidden;
}

.cin-team__header {
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto 56px;
}

.cin-team__carousel {
    display: flex;
    gap: 20px;
    padding: 0 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding: 24px;
}

.cin-team__carousel::-webkit-scrollbar { display: none; }

.cin-doc-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cin-doc-card:hover {
    transform: translateY(-8px);
}

.cin-doc-card__img {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-surface-container);
}

.cin-doc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cin-doc-card:hover .cin-doc-card__img img {
    transform: scale(1.05);
}

.cin-doc-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 37, 50, 0.85));
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cin-doc-card:hover .cin-doc-card__overlay {
    transform: translateY(0);
}

.cin-doc-card__bio {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.cin-doc-card__info {
    padding: 16px 4px;
}

.cin-doc-card__info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.cin-doc-card__info span {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-on-primary-container);
}

/* ===== EXPERIENCE (DARK IMMERSIVE) ===== */
.cin-experience {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 24px;
}

.cin-experience__bg {
    position: absolute;
    inset: -15%;
    z-index: 0;
    will-change: transform;
}

.cin-experience__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.22) saturate(0.5);
}

.cin-experience__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,37,50,0.4) 0%, rgba(0,37,50,0.7) 100%);
}

.cin-experience__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
}

.cin-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 56px;
}

.cin-feature {
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
}

.cin-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
}

.cin-feature__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: rgba(164, 204, 225, 0.12);
    border: 1px solid rgba(164, 204, 225, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cin-feature__icon .material-symbols-outlined {
    color: var(--color-inverse-primary);
    font-size: 22px;
}

.cin-feature h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cin-feature p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* ===== QUOTES / TESTIMONIALS ===== */
.cin-quotes {
    padding: 120px 24px;
    background: var(--color-surface-container-low);
}

.cin-quotes__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cin-quotes__slider {
    position: relative;
    min-height: 200px;
    margin-top: 40px;
}

.cin-quote {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.cin-quote--active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.cin-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 32px;
}

.cin-quote__author strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.cin-quote__author span {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: var(--color-on-surface-variant);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cin-quotes__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.cin-quotes__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-outline-variant);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.cin-quotes__dot--active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 4px;
}

/* ===== CTA SECTION ===== */
.cin-cta {
    padding: 120px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a2e3d 50%, var(--color-primary-container) 100%);
    text-align: center;
}

.cin-cta__inner {
    max-width: 700px;
    margin: 0 auto;
}

.cin-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 20px;
}

.cin-cta h2 em {
    font-style: italic;
    font-weight: 300;
}

.cin-cta p {
    font-size: 17px;
    color: rgba(164, 204, 225, 0.65);
    margin-bottom: 40px;
}

.cin-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SCROLL REVEAL ===== */
[data-scroll-reveal] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-scroll-reveal="fade-up"] {
    transform: translateY(40px);
}

[data-scroll-reveal="scale"] {
    transform: scale(0.9);
}

[data-scroll-reveal].revealed {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .cin-services__grid {
        grid-template-columns: 1fr 1fr;
    }

    .cin-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .cin-doc-card {
        flex: 0 0 300px;
    }
}

@media (min-width: 768px) {
    .cin-hero__title {
        font-size: clamp(56px, 8vw, 88px);
    }

    .cin-hero__cta {
        gap: 20px;
    }

    .cin-btn {
        padding: 18px 44px;
    }
}

@media (min-width: 1024px) {
    .cin-split {
        grid-template-columns: 1fr 1fr;
    }

    .cin-split__media {
        min-height: auto;
    }

    .cin-split__content {
        padding: 100px 80px;
    }

    .cin-services__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cin-services {
        padding: 140px 48px;
    }

    .cin-team__header {
        padding: 0 48px;
    }

    .cin-team__carousel {
        padding: 0 48px;
        gap: 28px;
    }

    .cin-doc-card {
        flex: 0 0 320px;
    }

    .cin-cta {
        padding: 160px 48px;
    }

    .cin-quotes {
        padding: 140px 48px;
    }
}

@media (min-width: 1280px) {
    .cin-split__content {
        padding: 120px 120px;
    }

    .cin-team__carousel {
        padding: 0 calc((100vw - 1400px) / 2 + 48px);
    }
}
