/* ================== 1. ROOT & THEME VARIABLES ================== */
:root {
    /* Light Theme (Default) */
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: #f8f9fa;
    --border-color: #e0e0e0;
    
    /* (NEW) Specific background for About Us in Light Mode */
    --about-bg: #ffffff; 
    
    --primary-color: #EE5B25;
    --primary-hover: #d45021;
    --secondary-color: #2E3192;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #000;
    --text-color: #f0f0f0;
    --nav-bg: #1e1e1e;
    --border-color: #333333;
    
    /* (NEW) Specific background for About Us in Dark Mode */
    --about-bg: #000000;
    
    --primary-color: #C4AB79;
    --primary-hover: #E5DAB8;
    --secondary-color: #00549F;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* ================== 2. GENERAL STYLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
    /* Apply Poppins to all elements */
    font-family: 'Poppins', sans-serif; 
}

/* Explicitly enforce Poppins on form elements (they often resist global styles) */
body, button, input, textarea, select {
    font-family: 'Poppins', sans-serif;
}

html {
    /* (NEW) This enables the snapping effect */
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}



/* ================== 4. NAVIGATION BAR ================== */
header {
    background-color: rgba(15, 41, 74, 0.4);
    /* border-bottom: 1px solid var(--border-color); */
    padding: 2rem 5% 1rem 5%; /* Increased top padding */
    
    /* (CRUCIAL) Fixed position to float above the scrolling content */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    /* Ensure header is always on top (over video and text) */
    z-index: 1001; 
    
    transition: background-color 0.3s, border-color 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Needed for absolute centered menu */
}

/* 1. Logo (Left) */
.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    position: absolute; /* To allow precise centering */
    left: 50%; /* Start from the middle */
    transform: translateX(-50%); /* Pull back by half its width */
    z-index: 4; /* Ensure it's above other elements if needed */
}

/* 2. Menu (Center) */
.nav-menu {
    display: none !important; /* Menu removed from all devices */
}

.nav-menu li a {
    font-weight: 300;
    /* (OPTIONAL: Adjust text color for better contrast on dark gray background) */
    color: #ffffff; 
    transition: color 0.3s;
    font-size: 12px;
}

.nav-menu li a:hover {
    /* Keep hover consistent, maybe lighten it */
    color: var(--primary-color);
}

/* 3. Controls (Right) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto; /* Push to the right */
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-weight: 500;
    /* Ensure transition applies to all animated properties */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    background-image: linear-gradient(to right, #e5dab8, #C4AB79, #8B572E);
    color: #000;
    border: none;
    /* Add a subtle initial shadow */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}

/* New Hover Animation: Lift and Enhance Shadow */
.btn:hover {
    filter: brightness(1.1); /* Slightly brighter on hover */
    transform: translateY(-2px); /* Lifts the button slightly */
    /* Add a more pronounced shadow when lifted */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); 
}

/* Animation for the Outline Button */
.btn-outline:hover {
    background-color: #fff;
    color: #000;
    /* Maintain the lift effect */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2); 
}

.contact-btn {
    /* This class now inherits the gradient from .btn */
}

.contact-btn:hover {
    filter: brightness(1.2);
}

/* Theme Toggle Button */
.theme-btn {
    background-image: linear-gradient(to right, #e5dab8, #C4AB79, #8B572E);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.theme-btn:hover {
    filter: brightness(1.2);
}

/* Icon visibility logic */
.theme-btn .fa-sun { display: none; }
[data-theme="dark"] .theme-btn .fa-sun { display: inline; }
[data-theme="dark"] .theme-btn .fa-moon { display: none; }

/* Hamburger (Mobile) */
.hamburger {
    display: flex; /* Changed from block */
    justify-content: center;
    align-items: center;
    position: absolute; /* Position it absolutely */
    left: 5%; /* Align to the left edge */
    top: 50%; /* Vertically center it */
    transform: translateY(-50%); /* Adjust for vertical centering */
    z-index: 5; /* Ensure it's above other elements */
    font-size: 1.2rem; /* Adjusted font size */
    cursor: pointer;
    background-image: linear-gradient(to right, #00549f, #102b4e, #000); 
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    transition: all 0.3s;
}

.hamburger:hover {
    filter: brightness(1.2);
}

/* ================== 4A. FULL PAGE MENU ================== */
.full-page-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    /* CRITICAL FIX: Ensure menu is above the header (z-index: 1001) */
    z-index: 1002; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.5s cubic-bezier(0.86, 0, 0.07, 1);
}

.full-page-menu.active {
    left: 0;
}

.full-page-menu .close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 5%;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.full-page-menu ul {
    list-style: none;
    text-align: center;
}

.full-page-menu ul li {
    margin: 2rem 0;
}

.full-page-menu ul li a {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.full-page-menu ul li a:hover {
    color: var(--primary-color);
}


/* ================== 4. HERO SECTION ================== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Offset to clear fixed header */
    padding: 100px 5% 3rem 5%;

    text-align: center;
    min-height: 100vh;
    scroll-snap-align: start;
    background-image: url('hero-banner.png'); /* Set background image */
    background-size: cover; /* Cover the entire section */
    background-position: center; /* Center the image */
    background-color: rgb(15, 41, 74); /* Changed background color to transparent */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 41, 74, 0.5); /* Semi-transparent blue overlay */
    z-index: 1; /* Ensure it's above the background image but below content */
}
.hero-text {
    /* Text remains the primary focus layer */
    position: relative;
    z-index: 2; 
    max-width: 800px;
    
    /* (REVERTED) Added back margin to push video down */
    margin-bottom: 2.5rem; 
}

.hero-text h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin: 0.5rem 0 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #fff;
}


.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-outline {
    background-image: none;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #000;
}

.hero-image {
    position: relative; 
    z-index: 1; 
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* (NEW) The Black Mask Layer */
.video-overlay {
    position: absolute;
    bottom: 25px;
    right: 2px;
    width: 140px;
    height: 33px;
    border-radius: 8px;
    background-color: #000000;
    z-index: 1;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}
/* 2. Video Element Styling */
.hero-image video {
    position: relative; 
    width: 100%;
    height: auto;
    transform: none; 
    object-fit: unset;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    
    /* Set Z-index to 0 so the overlay (z-index 1) sits on top */
    z-index: 0; 
    
    /* --- JITTER EFFECT (Remains unchanged) --- */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    animation: jitterClip 0.25s infinite alternate; 
}
/* --- NEW KEYFRAMES FOR CLIPPING JITTER --- */
@keyframes jitterClip {
    /* Randomly perturb the four corners of the rectangle */
    0% { 
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); 
    }
    20% { 
        clip-path: polygon(0% 2%, 98% 0%, 100% 98%, 1% 100%); 
    }
    40% { 
        clip-path: polygon(1% 1%, 99% 3%, 98% 99%, 0% 97%); 
    }
    60% { 
        clip-path: polygon(0% 0%, 100% 2%, 97% 100%, 3% 98%); 
    }
    80% { 
        clip-path: polygon(2% 0%, 98% 0%, 100% 99%, 0% 98%); 
    }
    100% { 
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); 
    }
}


/* ================== 5. RESPONSIVENESS (Mobile) ================== */
@media (max-width: 850px) {
    /* --- Responsive Navbar --- */

    .nav-menu li {
        margin: 0.5rem 0;
    }



    /* --- Responsive Hero --- */
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
}


/* ================== FEATURES SECTION (UPDATED) ================== */
.features-section {
    padding: 6rem 5% 10rem 5%; /* Increased bottom padding from 6rem to 10rem to clear staggered tiles */
    background-color: var(--bg-color);
    position: relative;
    z-index: 1;
    /* Restore or adjust this if you need the large gap for scroll effects */
    margin-bottom: 300px; 
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Ensure the grid itself has space for the children's transforms */
    padding-bottom: 3rem; 
}

.feature-tile {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* Ensure tiles stay below the fixed header but above section backgrounds */
    z-index: 2; 
}

/* Staggered positioning for desktop */
.feature-tile:nth-child(2) { transform: translateY(3rem); }
.feature-tile:nth-child(3) { transform: translateY(-3rem); }

/* The Background Image Layer */
.feature-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.5s ease;
}

/* Specific Image Assignments */
.feature-tile:nth-child(1)::before { background-image: url('largest-screen.png'); }
.feature-tile:nth-child(2)::before { background-image: url('four-screens.png'); }
.feature-tile:nth-child(3)::before { background-image: url('entertainment.png'); }
.feature-tile:nth-child(4)::before { background-image: url('kokapet.png'); }

/* The Color Overlay (Dark gradient to Color) */
.feature-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Default dark gradient so text is readable */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

/* Hover Effect: Background Color Change */
.feature-tile:hover::after {
    /* Changes to your primary orange color with some transparency */
    background: #c4ab79; 
}

/* Hover Effect: Zoom Background Image */
.feature-tile:hover::before {
    transform: scale(1.1);
}

/* Text Content Styling */
.feature-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    color: white;
    z-index: 3;
    /* Smooth transition for moving up */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Effect: Move Text Up */
.feature-tile:hover .feature-tile-content {
    transform: translateY(-20px);
}

.feature-tile h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.feature-tile p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Adjust for Mobile */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .feature-tile:nth-child(2), .feature-tile:nth-child(3) { transform: translateY(0); }
}
/* ================== 5D. SERVICES SECTION (NEW) ================== */
/* ================== 5D. SERVICES SECTION (UPDATED) ================== */
.services {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 5%; 
    background-color: var(--bg-color); 
    text-align: center; 
}

.services-header {
    max-width: 800px;
    margin: 0 auto 3rem auto; 
}

.services-header h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.services-header h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.services-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.services-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 2rem; 
    max-width: 1200px; 
    margin: 0 auto;
}

.service-item {
    background-color: var(--nav-bg); 
    border-radius: 12px;
    padding: 2rem;
    text-align: left; 
    box-shadow: var(--shadow-color) 0px 8px 24px; 
    
    /* (UPDATED) Layout Logic */
    /* Grow: 1, Shrink: 1, Basis: 30% */
    /* This forces the top 3 to share space (33%), and the bottom 2 to expand (50%) */
    flex: 1 1 30%; 
    min-width: 300px; 
    height: auto;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Essential for the slide-up effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* (NEW) Slide-Up Background Animation */
.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* The Gradient Color */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
    /* Start position: 100% down (hidden at bottom) */
    transform: translateY(100%);
    
    /* Smooth Slide Animation */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    z-index: -1; /* Place behind text */
}

/* Trigger Slide-Up on Hover */
.service-item:hover::before {
    transform: translateY(0); /* Slide up to cover card */
}

.service-item:hover {
    transform: translateY(-10px); 
    box-shadow: var(--shadow-color) 0px 15px 40px;
}

/* Content Styling (Must be above the background) */
.service-image {
    width: 100%;
    height: 180px; 
    background-color: #1a1a1a; 
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden; 
    display: flex; 
    justify-content: center;
    align-items: center;
    
    position: relative;
    z-index: 1;
}

.service-image img {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
}

/* Text Styling */
.service-item h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-item p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.5;
    transition: color 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Turn text white on hover so it's visible against the gradient */
.service-item:hover h3,
.service-item:hover p {
    color: #ffffff;
    opacity: 1;
}

/* ================== 6. RESPONSIVENESS ================== */
/* ... (Keep existing responsive rules) ... */

@media (max-width: 1024px) {
    .service-item {
        flex: 1 1 45%; /* On tablets, 2 per row */
    }
}

@media (max-width: 600px) {
    .service-item {
        flex: 1 1 100%; /* On mobile, 1 per row */
    }
}
/* ================== 7. SCROLL REVEAL ANIMATION (UPDATED) ================== */

/* 1. The Initial "Hidden" State */
.reveal {
    opacity: 0;
    /* (UPDATED) Start 100px down so the slide-up is clearly visible */
    transform: translateY(100px); 
    
    /* Smooth transition */
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform; /* Optimization */
}

/* 2. The Final "Visible" State */
.why-allu-cinemas-header.reveal.active {
    opacity: 1;
    transform: translateY(-350px); /* Slides up to original position */
}
.reveal.active {
    opacity: 1;
    transform: translateY(0); /* Slides up to original position */
}

/* --- Staggering for Services Grid --- */
.services-grid .service-item.reveal { transition-delay: 0s; } 
.services-grid .service-item:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-item:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-item:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-item:nth-child(4) { transition-delay: 0.4s; }
.services-grid .service-item:nth-child(5) { transition-delay: 0.5s; }

/* Fix for Hover Conflict */
.service-item.active:hover {
    transform: translateY(-10px);
}

/* ================== 5C-2. WHO WE ARE SECTION (NEW) ================== */
.who-we-are {
    /* Full Screen & Snap Logic */
    min-height: 100vh;
    scroll-snap-align: start;
    
    /* Center Alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    padding: 4rem 5%;
    
    /* (IMPORTANT) Background is Primary Color */
    background-color: var(--primary-color); 
    color: #ffffff; /* Text must be white to contrast with orange */
}

.who-container {
    max-width: 900px;
}

.who-container h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* Text Styling matching About Us, but White */
#who-text {
    font-size: 1.4rem; /* Slightly larger for impact */
    line-height: 1.8;
    color: #ffffff; 
}

/* Animation states for the letters */
#who-text span {
    opacity: 0.2; /* Start dim */
    transition: opacity 0.5s ease;
}

#who-text span.active-char {
    opacity: 1; /* Fade to full white */
}


/* ================== 5C-3. OUR TOOLS SECTION (UPDATED FOR PILED LAYOUT) ================== */
.our-tools {
    min-height: 100vh;
    scroll-snap-align: start;
    
    display: flex;
    flex-direction: column;
    
    /* (FIX) Pushes header to the top and icon container to the bottom */
    justify-content: space-between; 
    align-items: center;
    
    padding: 6rem 5% 0 5%; 
    background-color: var(--bg-color); 
    overflow: visible; 
    position: relative;
}

.tools-header {
    text-align: center;
    max-width: 800px;
    margin-top: 2rem;
    z-index: 2;
}

.tools-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tools-header p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Container for the icons */
.tools-icons-container {
    position: relative; 
    width: 100%; 
    min-height: 350px; 
    max-width: 1200px;
    margin: 0 auto; /* Remove the specific margin-top: 4rem here */
    z-index: 1;
    overflow: visible !important; 
}

/* Individual Icon Styling */
.tool-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    background-color: var(--nav-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    box-shadow: 0 8px 20px var(--shadow-color);
    
    /* Absolute positioning is key for stacking */
    position: absolute; 
    z-index: 5; 
    
    opacity: 0; 
    transform: translateY(-1000px) scale(0); 
    background-size: 65%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Animation Trigger */
.tools-icons-container.active .tool-icon {
    /* animation-name: bounceDrop;
    animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
    animation-fill-mode: forwards; */
    animation-play-state: running;
}

/* Keyframes: Fall and Land */
@keyframes bounceDrop {
    0% { 
        opacity: 0; 
        /* (FIXED) Using a large pixel value instead of -100vh to ensure it starts reliably off-screen */
        transform: translateY(-1000px) scale(0) rotate(0deg); 
    }
    40% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotate(140deg); 
    } 
    60% { 
        transform: translateY(-40px) scale(1.05) rotate(240deg); 
    } 
    80% { 
        transform: translateY(0) scale(0.95) rotate(320deg); 
    } 
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotate(360deg); 
    } 
}
/* Keyframes for Continuous Roll (Unchanged, but now starts from 360deg) */
@keyframes roll {
    to {
        /* Continues rotation to 720deg (or back to 360deg) */
        transform: translateY(0) scale(1) rotate(720deg); 
    }
}

/* Hover Effect */
.tool-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px) scale(1.2) !important; 
    z-index: 100; /* Bring to front */
    transition: 0.2s ease;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


/* Animation Trigger */
.tools-icons-container.active .tool-icon {
    animation-name: bounceDrop;
    animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
    animation-fill-mode: forwards;
}

/* Keyframes: Fall and Land */
@keyframes bounceDrop {
    0% { 
        opacity: 0; 
        /* (FIXED) Using a large pixel value instead of -100vh to ensure it starts reliably off-screen */
        transform: translateY(-1000px) scale(0) rotate(0deg); 
    }
    40% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotate(140deg); 
    } 
    60% { 
        transform: translateY(-40px) scale(1.05) rotate(240deg); 
    } 
    80% { 
        transform: translateY(0) scale(0.95) rotate(320deg); 
    } 
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotate(360deg); 
    } 
}
/* Keyframes for Continuous Roll (Unchanged, but now starts from 360deg) */
@keyframes roll {
    to {
        /* Continues rotation to 720deg (or back to 360deg) */
        transform: translateY(0) scale(1) rotate(720deg); 
    }
}

/* Hover Effect */
.tool-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px) scale(1.2) !important; 
    z-index: 100; /* Bring to front */
    transition: 0.2s ease;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ================== FOOTER ================== */
.main-footer {
    background-color: var(--primary-color); 
    color: #ffffff; 
    padding: 4rem 5%;
    text-align: left;
}

.footer-top {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 3rem; 
    margin-bottom: 4rem;
}

.footer-col {
    flex: 1; 
    min-width: 250px; 
}

.company-info .follow-text {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.nav-links {
    display: flex;
    flex-direction: column; 
    gap: 0.8rem;
}

.footer-bottom {
    text-align: center; 
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom h1 {
    font-size: clamp(3rem, 12vw, 12rem); /* Responsive huge text */
    font-weight: 800; 
    color: var(--bg-color); 
    line-height: 1; 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1); 
}

/* ================== WHY ALLU CINEMAS (STACKING SCROLL) ================== */
.why-allu-cinemas {
    min-height: 300vh;
    position: relative;
    background-color: #000; 
    color: #ffffff;
    perspective: 1000px;
    display: block;
    clear: both;
    z-index: 5;
    /* REMOVED top: 200px; - This was causing the push/overlap issue */
    margin-top: 0;
}

.why-allu-cinemas-header {
    /* Ensure the header isn't hidden behind the features section */
    position: relative; 
    padding: 4rem 5% 2rem 5%;
    text-align: center;
    z-index: 10;
}

.why-allu-cinemas-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
}

.play-cards-container {
    position: sticky; /* Cards container is sticky */
    top: 60vh; /* Center the stack vertically */
    transform: translateY(-50%); 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh; /* Set a specific height for the sticky context */
}

.play-card {
    position: absolute; /* Cards stack using absolute positioning */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 90%; 
    max-width: 800px;
    height: 500px; /* Fixed height for the card */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* CRITICAL: Allows cards to be transformed in 3D space */
    transform-style: preserve-3d; 
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Match JS timing */
}

.play-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.play-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2.5rem;
    color: white;
}

.play-card-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.play-card-content p {
    font-size: 1.1rem;
}

/* ================== LOCATION SECTION ================== */
.location-section {
    padding: 6rem 5%;
    background-color: #000;
}

.location-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.location-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* ================== CALL TO ACTION SECTION (FIXED) ================== */
.call-to-action {
    padding: 8rem 5%; /* Increased padding for better breathing room */
    text-align: center;
    background-color: #102b4e; 
    color: #ffffff;
    display: flex;         /* Added to ensure vertical/horizontal centering */
    justify-content: center;
    align-items: center;
    min-height: 60vh;      /* Gives the section a consistent height */
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;    /* Ensures all children (h2, btn, p) stay centered */
}

/* Ensure the reveal animation doesn't break the centering */
.cta-content.reveal {
    opacity: 0;
    transform: translateY(50px); /* Reduced distance to prevent "jumping" */
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cta-content.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Fluid typography for better scaling */
    line-height: 1.1;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    border-radius: 100px; /* Matching your other buttons */
    background-image: linear-gradient(to right, #e5dab8, #C4AB79, #8B572E); 
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Mobile specific fix for CTA */
@media (max-width: 600px) {
    .call-to-action {
        padding: 5rem 5%;
    }
    .cta-content h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .cta-btn {
        width: 100%; /* Full width button on mobile */
        padding: 1rem;
        font-size: 1.1rem;
    }
}

.cta-warning {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ================== RESPONSIVENESS FIXES (1024px - Tablet/Small Desktop) ================== */
@media (max-width: 1024px) {
    /* --- General Typography Scaling --- */
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .features-header h2, .tools-header h2 {
        font-size: 2.4rem;
    }
    .play-card-content h2, .who-container h2 {
        font-size: 2.2rem;
    }
    .cta-content h2 {
        font-size: 3rem;
    }

    /* --- Why Allu Cinemas Fix --- */
    /* Adjust sticky header position and card size for smaller screens */
    .why-allu-cinemas-header {
        top: 80px; /* Reduced margin */
    }
    .play-cards-container {
        top: 55vh; /* Center stack slightly higher */
    }
    .play-card {
        max-width: 700px;
        height: 450px;
    }
}

/* ================== RESPONSIVENESS FIXES (600px - Mobile) ================== */
@media (max-width: 600px) {
    /* --- 1. Header Fixes (CRITICAL) --- */
    header {
        padding: 1.5rem 5%; /* Smaller padding on mobile */
    }

    /* Undo absolute positioning on mobile to fix stacking */
    .logo {
        position: static;
        transform: none;
        order: 2; /* Place logo in the middle */
    }

    .hamburger {
        position: static;
        transform: none;
        order: 1; /* Place hamburger on the left */
        margin-right: auto;
    }

    .nav-controls {
        order: 3; /* Place controls on the right */
        margin-left: 0;
        gap: 0.5rem;
    }

    /* Hide contact button on smallest screens to save space */
    .contact-btn {
        display: none;
    }
    
    /* --- 2. Hero Section --- */
    .hero {
        padding: 100px 5% 3rem 5%;
        min-height: 80vh; /* Make hero shorter on mobile */

    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 250px;
    }

    /* --- 3. Features Section --- */
    .features-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .feature-tile:nth-child(2),
    .feature-tile:nth-child(3) {
        transform: translateY(0); /* Remove staggered effect on mobile */
    }
    
    /* --- 4. Why Allu Cinemas (Stacking) --- */
    .why-allu-cinemas {
        min-height: 150vh; /* Reduced height to lessen scroll */
    }
    .why-allu-cinemas-header {
        top: 60px; 
    padding: 1.5rem 5%; 
    font-size: 2rem;
    }
    .why-allu-cinemas-header h2 {
        font-size: 2rem;
    }
    .play-cards-container {
        top: 50vh; 
    }
    .play-card {
        width: 95%; /* Wider card on small screen */
    height: 350px; /* Reduced height */
    }
    .play-card-content {
        padding: 1.5rem;
    }
    .play-card-content h2 {
        font-size: 1.8rem;
    }
    .play-card-content h2 {
        font-size: 1.5rem;
    }
    .play-card-content p {
        font-size: 0.95rem;
    }
    /* --- 5. CTA Section --- */
    .cta-content h2 {
        font-size: 2.5rem;
    }
    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* --- 6. Footer --- */
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .company-info, .contact-info, .nav-links {
        min-width: 100%;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom h1 {
        /* Scale down the massive text */
        font-size: 2rem; 
    }
}

/* ================== DOLBY EXPERIENCE SECTION (NEW) ================== */
.dolby-experience {
    padding: 8rem 5%;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    /* Added position and z-index to ensure it stacks correctly */
    position: relative;
    z-index: 6; 
    /* Pull the section up slightly if there is still too much gap */
    margin-top: -100px;
}
/* Ensure the logo is visible and not hidden by its container */
.dolby-content img {
    display: block;
    max-width: 200px;
    margin-bottom: 2rem;
    height: auto;
}

.dolby-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left Side: Image Layout */
.dolby-images {
    position: relative;
    height: 500px;
}

.image-wrapper {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-img {
    width: 80%;
    height: 350px;
    top: 0;
    left: 0;
    z-index: 2;
}

.sub-img {
    width: 70%;
    height: 300px;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* Right Side: Content Styling */
.dolby-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin: 1.5rem 0;
    color: var(--primary-color);
}

.dolby-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.dolby-logo-wrapper {
    margin-bottom: 1rem;
}

.dolby-features {
    margin-bottom: 2.5rem;
}

.dolby-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    opacity: 0.9;
}

.dolby-features i {
    color: var(--primary-color);
}

.dolby-btn {
    padding: 1rem 2.5rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .dolby-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .dolby-images {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

    .dolby-features li {
        justify-content: center;
    }
    
    .dolby-content h2 {
        font-size: 2.2rem;
    }
}