/* =========================================
   CINEMATIC HERO STYLES
   ========================================= */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    --gold-primary: #e7b65c;
    --gold-light: #f3dba6;
    --black-deep: #050505;
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(20, 20, 20, 0.4);
    --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Base Wrapper */
.cine-hero-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px; /* Prevent squashing on small screens */
    background-color: var(--black-deep);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

/* 1. Background Handling */
.cine-bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg-video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Dimmed video */
    transform: scale(1.1); /* Slight zoom for parallax room */
}

.cine-overlay-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(5,5,5,0.4) 0%, #050505 90%);
    z-index: 2;
}

.cine-film-grain {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 3;
}

/* 2. Layout */
.cine-container {
    position: relative;
    z-index: 10;
    height: 100%;
    padding: 0 5vw; /* Responsive padding */
}

/* 3. Typography & Text */
.cine-text-col {
    padding-top: 80px; /* Navbar offset */
}

.cine-label-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    
    opacity: 0;
    animation: fadeSlideUp 1s var(--ease-cinematic) 0.5s forwards;
}

.cine-label {
    font-family: 'Outfit', sans-serif;
    color: var(--gold-primary);
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cine-line {
    height: 1px;
    width: 60px;
    background: var(--gold-primary);
}

.cine-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem; /* Responsive Font Size */
    /* line-height: 1.1; */
    font-weight: 700;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .cine-heading {
        font-size: 3rem;
    }
}
.mask-line {
    overflow: hidden;
    display: block;
}

.word-split {
    display: inline-block;
    transform: translateY(120%);
    opacity: 0;
    animation: revealText 1.2s var(--ease-cinematic) forwards;
}

/* Stagger delays for words */
.mask-line:nth-child(1) .word-split:nth-child(1) { animation-delay: 0.2s; }
.mask-line:nth-child(1) .word-split:nth-child(2) { animation-delay: 0.3s; }
.mask-line:nth-child(1) .word-split:nth-child(3) { animation-delay: 0.4s; }
.mask-line:nth-child(2) .word-split:nth-child(1) { animation-delay: 0.5s; }
.mask-line:nth-child(2) .word-split:nth-child(2) { animation-delay: 0.6s; }
.mask-line:nth-child(2) .word-split:nth-child(3) { animation-delay: 0.7s; }

.text-stroke {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
    font-style: italic;
    font-weight: 400;
    padding-right: 10px;
}

.text-gold {
    color: var(--gold-primary);
    font-style: italic;
}

.cine-subtext {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 550px;
    margin-bottom: 50px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeSlideRight 1s var(--ease-cinematic) 1.2s forwards;
}

/* 4. Buttons */
.cine-actions {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-cinematic) 1.4s forwards;
}

@media (max-width: 767px) {
    .cine-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.cine-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 20px;
}

.cine-button-wrapper {
    display: flex;
    gap: 20px;
}

@media (max-width: 767px) {
    .cine-button-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .cine-btn {
        width: 100%;
        justify-content: center;
    }
}

.cine-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s ease;
    min-width: 200px;
}

@media (max-width: 767px) {
    .cine-btn {
        min-width: 180px;
        margin-bottom: 15px;
    }
}

.btn-primary-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #d4a040 100%);
    color: #000;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 10px 30px rgba(231, 182, 92, 0.2);
}

.btn-primary-gold:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px #F9A141;
    background: #F9A141;
    color: #000 !important;
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-5px);
}

.icon-box {
    font-size: 1.8rem;
}

.text-box {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.text-box .small { font-size: 0.7rem; text-transform: uppercase; opacity: 0.8; }
.text-box .big { font-size: 1.1rem; font-weight: 700; }


/* 5. 3D Visuals Scene */
.cine-visual-col {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cine-3d-scene {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px; /* Deep perspective for 3D */
}

.cine-glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gold-primary);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
    animation: pulseGlow 5s infinite alternate;
}

.cine-phone-wrapper {
    position: relative;
    z-index: 5;
    width: 320px;
    transform-style: preserve-3d;
    animation: floatPhone 6s ease-in-out infinite;
}

.cine-phone-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
    transform: rotateY(-15deg) rotateX(5deg); /* Default tilt */
    transition: transform 0.1s ease-out; /* Super fast for mouse tracking */
}

.floating-particle {
    position: absolute;
    background: var(--gold-primary);
    border-radius: 50%;
    opacity: 0.6;
    z-index: 6;
}

.p-1 { width: 8px; height: 8px; top: 20%; right: 10%; animation: floatParticle 8s infinite; }
.p-2 { width: 12px; height: 12px; bottom: 30%; left: 10%; animation: floatParticle 6s infinite reverse; }
.p-3 { width: 5px; height: 5px; top: 10%; left: 30%; animation: floatParticle 10s infinite; }


/* 6. Scroll Indicator */
.cine-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 1s ease 2.5s forwards;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

/* Animations Keyframes */
@keyframes revealText {
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideRight {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
    to { opacity: 1; }
}
@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes pulseGlow {
    0% { opacity: 0.15; transform: scale(1); }
    100% { opacity: 0.3; transform: scale(1.2); }
}
@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}
@keyframes floatParticle {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, -40px); }
    100% { transform: translate(0, 0); }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .hero-bg-video { opacity: 0.3; } /* Darker background for text readibility on mobile */
    .cine-text-col { text-align: center; padding-top: 120px; }
    .cine-label-wrapper { justify-content: center; }
    .cine-subtext { margin: 0 auto 40px auto; border-left: none; border-bottom: 2px solid rgba(255,255,255,0.2); padding-bottom: 15px; padding-left: 0; }
    .cine-actions { flex-direction: column; align-items: center; }
    .cine-3d-scene { height: 400px; margin-top: 50px; }
    .cine-phone-wrapper { width: 200px; }
    .cine-scroll-indicator { bottom: 10px; transform: translateX(-50%) scale(0.8); }
}