/* ═══════════════════════════════════════════════════════════════
   BRIJ TOWER — CINEMATIC HOME HERO
   Real sky photo + parallax building + cinematic depth
   ═══════════════════════════════════════════════════════════════ */

.cinema-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    color: #faf7f2;
    background: #6ba8d8;
}
.cinema-hero::after {
    /* Soft fade to next section */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(14, 13, 12, 0.45) 60%,
        rgba(14, 13, 12, 0.95) 100%);
    z-index: 13;
    pointer-events: none;
}

/* ---- Stage holds all parallax layers ---- */
.ch-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ch-layer {
    position: absolute;
    will-change: transform;
    pointer-events: none;
}

/* ────────── LAYER 1: Real sky photo ────────── */
.ch-sky-photo {
    inset: -8% -5% -2% -5%;
    z-index: 1;
}
.ch-sky-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    display: block;
}

/* Soft overlay to harmonize colors */
.ch-sky-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.0) 0%,
            rgba(255, 255, 255, 0.0) 60%,
            rgba(220, 220, 230, 0.15) 85%,
            rgba(180, 200, 220, 0.3) 100%);
    pointer-events: none;
}

/* ────────── LAYER 3: Light rays ────────── */
.ch-rays {
    top: 0;
    left: 50%;
    width: 1200px;
    height: 60%;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
    transform-origin: top center;
}
.ch-rays span {
    position: absolute;
    top: 8%;
    left: 50%;
    width: 2px;
    height: 70%;
    background: linear-gradient(180deg,
        rgba(255, 245, 200, 0.5) 0%,
        rgba(255, 220, 150, 0.2) 40%,
        transparent 100%);
    transform-origin: top center;
    filter: blur(1px);
    animation: rayShimmer 8s ease-in-out infinite;
    mix-blend-mode: screen;
}
.ch-rays span:nth-child(1) { transform: translateX(-50%) rotate(-22deg); animation-delay: 0s; }
.ch-rays span:nth-child(2) { transform: translateX(-50%) rotate(-10deg); animation-delay: 1.5s; }
.ch-rays span:nth-child(3) { transform: translateX(-50%) rotate(0deg);   animation-delay: 3s; }
.ch-rays span:nth-child(4) { transform: translateX(-50%) rotate(12deg);  animation-delay: 4.5s; }
.ch-rays span:nth-child(5) { transform: translateX(-50%) rotate(24deg);  animation-delay: 6s; }
@keyframes rayShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.85; }
}

/* ════════════════════════════════════════════════════════════
   THE BUILDING — main subject, blended with sky bg
   ════════════════════════════════════════════════════════════ */
.ch-building {
    position: absolute;
    bottom: 0;
    left: 50%;
    /* Width matches sky bg ground horizon — fills viewport bottom */
    width: min(100vw, 1700px);
    z-index: 7;
    filter: drop-shadow(0 -10px 30px rgba(20, 14, 6, 0.25));
    transform: translateX(-50%);
}
.ch-building-img {
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    margin: 0 auto;
    animation: buildingRise 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
@keyframes buildingRise {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Soft warm glow under building - now blends with sky horizon */
.ch-building-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 12%;
    background: radial-gradient(ellipse at center bottom,
        rgba(255, 220, 180, 0.4) 0%,
        rgba(220, 160, 100, 0.18) 40%,
        transparent 75%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* Hide the contact shadow — fade does the job now */
.ch-building-base { display: none; }

/* ────────── LAYER 5: Foreground bushes (hidden — building's own base serves) ────────── */
.ch-foreground {
    display: none;
}

/* ────────── LAYER 6: Bottom haze ────────── */
.ch-haze {
    position: absolute;
    inset: 0;
    z-index: 9;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            transparent 0%,
            transparent 70%,
            rgba(180, 200, 220, 0.15) 85%,
            rgba(140, 160, 185, 0.25) 100%);
}

/* ────────── Dust particles ────────── */
.ch-particles {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}
.ch-dust {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 245, 220, 0.7);
    box-shadow: 0 0 8px rgba(255, 230, 180, 0.85);
    animation: dustFloat linear infinite;
}
@keyframes dustFloat {
    0%   { transform: translateY(110vh) translateX(0px) scale(0.6); opacity: 0; }
    8%   { opacity: 0.9; }
    92%  { opacity: 0.7; }
    100% { transform: translateY(-10vh) translateX(60px) scale(1); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════
   CONTENT — text overlay
   ════════════════════════════════════════════════════════════ */

.ch-content {
    position: absolute;
    inset: 0;
    z-index: 11;
    padding: 7rem 4rem 8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    /* Keep title within left half so it doesn't crash building on tall portrait viewports */
    max-width: 55%;
}
.ch-content > * { pointer-events: auto; }

.ch-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #1a1c20;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 100px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ch-dash {
    width: 30px;
    height: 1px;
    background: #1a1c20;
}

.ch-title {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
    font-size: clamp(3.2rem, 7.5vw, 7rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #faf7f2;
    text-shadow:
        0 2px 24px rgba(20, 35, 55, 0.55),
        0 1px 4px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(20, 35, 55, 0.25);
    margin-top: auto;
    margin-bottom: 0;
    max-width: 14ch;
}
.ch-line {
    display: block;
    line-height: 1;
    padding: 0.04em 0;
}
.ch-line span {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.3em);
    animation: lineRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ch-line:nth-child(1) span { animation-delay: 1.0s; }
.ch-line:nth-child(2) span { animation-delay: 1.2s; }
.ch-line:nth-child(3) span { animation-delay: 1.4s; }
@keyframes lineRise {
    to { opacity: 1; transform: translateY(0); }
}

.ch-title em {
    font-style: italic;
    font-weight: 700;
    color: #ff6a4d;
    position: relative;
    text-shadow:
        0 4px 30px rgba(255, 90, 50, 0.55),
        0 1px 6px rgba(0, 0, 0, 0.4);
}
.ch-title em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #ff6a4d;
    transform: scaleX(0);
    transform-origin: left;
    animation: chUnderline 1s ease 2.4s forwards;
    box-shadow: 0 0 10px rgba(255, 100, 60, 0.7);
}
@keyframes chUnderline {
    to { transform: scaleX(1); }
}

.ch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    padding-right: 14rem;
    border-top: 1px solid rgba(250, 247, 242, 0.35);
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #faf7f2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeIn 0.8s ease 1.8s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.ch-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.ch-meta-item svg { color: #ff6a4d; flex-shrink: 0; }
.ch-rera-tag { color: #ff6a4d; font-weight: 700; }

/* ────────── CTA ────────── */
.ch-cta {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #faf7f2;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.8s ease 2.2s forwards;
}
.ch-cta-circle {
    width: 64px;
    height: 64px;
    border: 1.5px solid rgba(250, 247, 242, 0.85);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ch-cta:hover .ch-cta-circle {
    background: #C8102E;
    border-color: #C8102E;
    transform: rotate(-12deg) scale(1.08);
}

/* ────────── Scroll hint ────────── */
.ch-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    color: #faf7f2;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    opacity: 0;
    animation: fadeIn 0.8s ease 2.2s forwards;
}
.ch-scroll span { display: block; margin-bottom: 0.8rem; opacity: 0.85; }
.ch-scroll-line {
    width: 1px;
    height: 56px;
    background: rgba(250, 247, 242, 0.3);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}
.ch-scroll-line div {
    width: 1px;
    height: 28px;
    background: #ff6a4d;
    position: absolute;
    top: 0;
    left: 0;
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { transform: translateY(-100%); }
    50%  { transform: translateY(56px); }
    100% { transform: translateY(56px); }
}

/* ────────── Section indexer ────────── */
.ch-indexer {
    position: absolute;
    top: 2.5rem;
    right: 3rem;
    z-index: 12;
    color: #1a1c20;
    text-align: right;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
    pointer-events: none;
}
.ch-idx-num {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.95;
}
.ch-idx-name {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* ════════════════════════════════════════════════════════════
   MOBILE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .cinema-hero { min-height: 640px; }

    .ch-content {
        padding: 6rem 1.5rem 7rem;
        max-width: 100%;
    }
    .ch-meta {
        gap: 1rem;
        padding-right: 0;
        font-size: 0.68rem;
    }
    .ch-meta-item { font-size: 0.68rem; }

    .ch-building {
        width: 110vw;
        bottom: 2%;
    }
    .ch-building-img { max-height: 55vh; }

    .ch-cta {
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 0.9rem;
    }
    .ch-cta-circle { width: 48px; height: 48px; }
    .ch-cta-label { display: none; }

    .ch-scroll, .ch-indexer { display: none; }
    .ch-particles { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ch-rays span { animation: none; }
    .ch-building-glow { animation: none; }
    .ch-building-img { animation: none; opacity: 1; }
    .ch-line span { animation: none; opacity: 1; transform: none; }
    .ch-meta, .ch-cta, .ch-scroll { animation: none; opacity: 1; }
}
