/* Variables */
:root {
    --bg-black: #000000;
    --dark-charcoal: #000000;
    --text-white: #FFFFFF;
    --text-muted: #A0A0A0;
    --accent-red: #E50914;
    --accent-red-glow: rgba(229, 9, 20, 0.6);
    --gold: #FFD700;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4.3rem;
}

h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

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

.black-bg {
    background-color: var(--bg-black);
}

.dark-charcoal {
    background-color: var(--dark-charcoal);
}

.relative {
    position: relative;
}

.z-index-10 {
    z-index: 10;
}

.text-red {
    color: var(--accent-red);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-white);
}

.btn-primary.glow-effect:hover {
    box-shadow: 0 0 20px var(--accent-red-glow), 0 0 40px var(--accent-red-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline.glow-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: inset 0 0 10px var(--accent-red-glow), 0 0 10px var(--accent-red-glow);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.full-width {
    width: 100%;
    margin-top: 1.5rem;
}

.huge-btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: var(--transition);
    backdrop-filter: blur(0px);
    
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.5rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
    z-index: 200;
    flex-shrink: 0;
}

.hamburger:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.4);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

/* Hamburger → X animation */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Dropdown Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 90;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(229, 9, 20, 0.4);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding-top: 80px;
    /* clears the navbar */
    padding-bottom: 1rem;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    display: block;
    padding: 1.2rem 5%;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.2s, color 0.2s, padding-left 0.25s;
}

.mobile-menu ul li a:hover {
    background: rgba(229, 9, 20, 0.1);
    color: var(--accent-red);
    padding-left: calc(5% + 10px);
}

/* Hero Section */
.hero {
    height: 500vh;
    /* Scrollytelling scroll area */
    position: relative;
    background-color: var(--bg-black);
}

.hero-sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: translateZ(0);
    /* Hardware acceleration */
}

/* Gradient overlay for readability removed */
.hero-sticky-container::after {
    display: none;
}

.hero-bg {
    display: none;
}

.hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 900px;
    width: 100%;
    padding: 0 1.5rem;
}

.hero-title {
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.4);
}

.hero-subtext {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
    font-weight: 500;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: calc(5% + 1.5rem);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

/* Showcase Grid */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--accent-red), transparent 30%);
    animation: rotate 4s linear infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.showcase-card:hover.gradient-border::before {
    opacity: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.card-inner {
    background: var(--bg-black);
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.screen-visual {
    height: 180px;
    background: #000000;
    border-radius: 10px 10px 0 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screen-visual::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 50%;
    background: url('../images/led_screen_demo_1773247563502.png') center/cover;
    box-shadow: 0 0 15px var(--accent-red-glow);
    border: 1px solid var(--accent-red);
}

.screen-visual.single::after {
    width: 40%;
    height: 70%;
}

.screen-visual.triple::after {
    width: 80%;
    height: 40%;
    box-shadow: -30px 0 10px rgba(0, 0, 0, 0.5), 30px 0 10px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-red-glow);
}

.screen-visual.five::after {
    width: 90%;
    height: 35%;
    display: flex;
    gap: 5px;
    background: none;
    border: none;
    box-shadow: none;
}

.screen-visual.five::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 35%;
    display: flex;
    gap: 5px;
    background: repeating-linear-gradient(90deg, #E50914 0, #E50914 18%, transparent 18%, transparent 20%);
    box-shadow: 0 0 20px var(--accent-red-glow);
    opacity: 0.8;
}

.card-content {
    padding: 2rem;
}

.specs {
    list-style: none;
    margin-top: 1rem;
}

.specs li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.specs span {
    color: var(--text-white);
    font-weight: 500;
}

/* Animations Trigger Classes */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blur-appear {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blur-appear.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Pricing */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2rem;
    width: 350px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
}

.pricing-card.featured {
    border-color: var(--accent-red);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.1);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.2);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price {
    margin: 1.5rem 0;
    display: flex;
    align-items: baseline;
}

.currency {
    font-size: 2rem;
    font-weight: 600;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.tax {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.features svg {
    width: 20px;
    color: var(--accent-red);
}

/* Demo Section */
.demo {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.demo-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/led_screen_demo_1773247563502.png') center/cover;
    height: 130%;
}

.demo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.demo-content {
    text-align: center;
}

.video-frame {
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 3rem auto 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.video-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/led_screen_demo_1773247563502.png') center/cover;
    opacity: 0.5;
    transition: opacity 0.5s;
}

.video-frame:hover::before {
    opacity: 0.8;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: transform 0.3s;
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.play-button svg {
    width: 40px;
    color: white;
    margin-left: 5px;
}

.video-frame:hover .play-button {
    transform: scale(1.1);
}

/* Locations Map */
.map-container {
    background: #000000;
    border-radius: 16px;
    height: 500px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-ui {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.pulse-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--text-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pulse-dot.active {
    background: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.pulse-dot.active::before {
    background: var(--accent-red-glow);
}

.pulse-dot span {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-dot:hover span,
.pulse-dot.active span {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-red);
    transition: var(--transition);
}

.icon-box svg {
    width: 40px;
}

.feature-item:hover .icon-box {
    background: var(--accent-red);
    color: white;
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

/* Custom Campaign */
.custom-campaign {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.campaign-bg {
    position: absolute;
    inset: 0;
    height: 120%;
    background: url('../images/custom_campaign_bg_1773247617441.png') center/cover;
    opacity: 0.4;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.campaign-box {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 4rem;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.campaign-visual {
    margin: 3rem 0;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-track {
    display: flex;
    gap: 15px;
}

.track-item {
    width: 80px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: glow-pulse 3s infinite alternate;
}

.track-item.delay-1 {
    animation-delay: 1s;
    width: 120px;
}

.track-item.delay-2 {
    animation-delay: 2s;
}

@keyframes glow-pulse {
    0% {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: none;
    }

    100% {
        background: var(--accent-red);
        border-color: var(--accent-red);
        box-shadow: 0 0 15px var(--accent-red-glow);
    }
}

/* Formation Visual Animation Section */
.formation-visual {
    overflow: hidden;
}

.formation-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.formation-text {
    flex: 1;
    min-width: 300px;
}

.formation-animation {
    flex: 1;
    min-width: 300px;
    height: 400px;
    position: relative;
    perspective: 1000px;
}

.screen-box {
    position: absolute;
    background: url('../images/custom_campaign_bg_1773247617441.png') center/cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-screen {
    width: 300px;
    height: 170px;
    top: 115px;
    left: 50%;
    transform: translateX(-50%) translateZ(50px);
    z-index: 3;
}

.side-screen {
    width: 220px;
    height: 125px;
    top: 137px;
    opacity: 0.6;
    z-index: 2;
}

.side-screen.left {
    left: 0%;
    transform: rotateY(30deg) translateZ(-50px);
}

.side-screen.right {
    right: 0%;
    transform: rotateY(-30deg) translateZ(-50px);
}

.formation-animation.active .primary-screen {
    width: 340px;
    height: 190px;
    top: 105px;
    box-shadow: 0 0 50px var(--accent-red-glow);
    border-color: var(--accent-red);
}

.formation-animation.active .side-screen.left {
    transform: translateX(20px) rotateY(15deg) translateZ(0);
    opacity: 0.9;
}

.formation-animation.active .side-screen.right {
    transform: translateX(-20px) rotateY(-15deg) translateZ(0);
    opacity: 0.9;
}

/* --- New Transition Image Carousel (Mockup Style) --- */
.container-large {
    max-width: 1400px;
    width: 95%;
}

.transition-mode-section {
    padding: 8rem 0;
}

.formation-container-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.formation-animation.transition-mode {
    width: 100%;
    height: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1500px;
}

.formation-animation.transition-mode .screen-box {
    position: absolute;
    top: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.formation-animation.transition-mode .primary-screen {
    width: 55%;
    aspect-ratio: 16 / 9;
    height: auto;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(100px);
    z-index: 5;
    border: 3px solid var(--accent-red);
    box-shadow: 0 0 60px var(--accent-red-glow), 0 0 20px rgba(0, 0, 0, 0.8);
    opacity: 1;
}

/* Allow hovering over the primary screen for interactions like pausing auto-play if needed */
.formation-animation.transition-mode .primary-screen:hover {
    box-shadow: 0 0 80px rgba(229, 9, 20, 0.8), 0 0 20px rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) translateZ(120px);
}

.formation-animation.transition-mode .side-screen {
    width: 45%;
    aspect-ratio: 16 / 9;
    height: auto;
    opacity: 0.5;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.formation-animation.transition-mode .side-screen.left {
    left: 2%;
    transform: translate(0, -50%) scale(0.85) translateZ(-50px) rotateY(15deg);
    filter: brightness(0.4);
}

.formation-animation.transition-mode .side-screen.right {
    right: 2%;
    transform: translate(0, -50%) scale(0.85) translateZ(-50px) rotateY(-15deg);
    filter: brightness(0.4);
}

.formation-animation.transition-mode .side-screen:hover {
    opacity: 0.8;
    filter: brightness(0.8);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 992px) {
    .formation-animation.transition-mode {
        height: 450px;
    }

    .formation-animation.transition-mode .primary-screen {
        width: 70%;
    }

    .formation-animation.transition-mode .side-screen {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .formation-animation.transition-mode {
        height: 300px;
    }

    .formation-animation.transition-mode .primary-screen {
        width: 90%;
        transform: translate(-50%, -50%) translateZ(50px);
    }

    .formation-animation.transition-mode .side-screen {
        display: none;
    }
}

/* Clients */
.subheading {
    color: var(--text-muted);
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 3rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.brand-logo:hover {
    opacity: 1;
    color: var(--accent-red);
    text-shadow: 0 0 15px var(--accent-red-glow);
    transform: scale(1.1);
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 10rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-black);
    height: 120%;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 1) 100%);
}

.huge-text {
    font-size: 4.5rem;
    margin-bottom: 3rem;
}

.cta-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    line-height: 2;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meet-dev-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.meet-dev-link:hover {
    color: var(--accent-red);
}

.meet-dev-link svg {
    opacity: 0.8;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.meet-dev-link:hover svg {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .huge-text {
        font-size: 3rem;
    }

    .formation-animation {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }

    .hamburger {
        display: flex;
        align-self: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
        justify-content: center;
    }

    .hero-sticky-container {
        justify-content: center;
        padding-left: 0;
    }

    .hero-content {
        text-align: center;
    }

    .scroll-indicator {
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        width: max-content;
        align-items: center;
    }

    .cta-actions {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtext {
        font-size: 1.2rem;
    }

    .huge-text {
        font-size: 2.2rem;
    }

    .formation-text,
    .formation-animation {
        text-align: center;
    }

    .about-content {
        padding: 1.5rem 0.5rem !important;
    }

    .about-image {
        display: none !important;
    }

    .about-image img {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto;
        display: block;
        transform: scale(1.05);
    }
}

/* Standalone Services Section */
.services-standalone {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    inset: 0;
    background: url('../images/led_screen_demo_1773247563502.png') center/cover;
    height: 120%;
    filter: brightness(0.25) blur(4px);
    z-index: 1;
}

/* Base Service item styles from earlier */
.service-item {
    text-align: left;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-img {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--text-white);
}

.service-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .services-standalone-grid {
        grid-template-columns: 1fr !important;
    }

    .services-standalone-box {
        padding: 2rem !important;
    }

    .service-img {
        height: 180px;
    }
}

/* Cinematic Services 3D Scroll Restored & Fixed */
.services-cinematic {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(15, 0, 0, 0.8) 0%, #000000 100%);
    perspective: 2000px;
}

.cinematic-bg {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.cinematic-carousel-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

.cinematic-carousel-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.25) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: neonPulseRed 4s infinite alternate ease-in-out;
}

@keyframes neonPulseRed {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.cinematic-heading {
    text-align: center;
    font-size: 2.8rem;
    font-family: var(--font-heading);
    margin-bottom: 3rem;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 20;
}

.cinematic-scroll-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4rem calc(50vw - 180px);
    /* Centers a 360px card */
    gap: 3rem;
    align-items: center;
    scroll-behavior: smooth;
    width: 100%;
    user-select: none;
    transition: background 0.3s ease;
}

.cinematic-scroll-track.active {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grabbing;
}


.cinematic-scroll-track::-webkit-scrollbar {
    display: none;
}

.cinematic-card-container {
    width: 360px;
    height: 520px;
    flex-shrink: 0;
    scroll-snap-align: center;
    perspective: 1500px;
    position: relative;
}

.js-3d-wrapper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, filter 0.1s ease-out, opacity 0.1s ease-out;
}

.cinematic-card-floater {
    width: 100%;
    height: 100%;
    animation: floatingObj 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.cinematic-card-container:nth-child(even) .cinematic-card-floater {
    animation-delay: -3s;
}

@keyframes floatingObj {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.cinematic-card {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
    user-select: none;
}

/* Focused glow effect synced with JS */
.cinematic-card.focused-glow {
    border-color: rgba(229, 9, 20, 0.7);
    box-shadow: 0 0 50px rgba(229, 9, 20, 0.3), 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(229, 9, 20, 0.2);
    animation: focusedBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes focusedBounce {
    0% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.cinematic-card-img {
    width: 100%;
    height: 65%;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cinematic-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 1) 100%);
}

.cinematic-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 1);
}

.cinematic-card-body h4 {
    font-size: 1.6rem;
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.cinematic-card-body p {
    font-size: 1.05rem;
    color: #a0a0a0;
    line-height: 1.6;
}

.scroll-instruction {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pulse-text {
    display: inline-block;
    animation: textPulse 2s infinite alternate ease-in-out;
}

@keyframes textPulse {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cinematic-scroll-track {
        padding: 4rem calc(50vw - 140px);
        /* Centers a 280px card */
        gap: 1.5rem;
    }

    .cinematic-card-container {
        width: 280px;
        height: 420px;
    }

    .cinematic-heading {
        font-size: 2.2rem;
    }

    .cinematic-card-body h4 {
        font-size: 1.3rem;
    }
}

/* Carousel Control Buttons */
.carousel-btn {
    background: #000000;
    border: 1px solid rgba(229, 9, 20, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.carousel-btn:hover {
    background: rgba(229, 9, 20, 0.8);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Mobile Only Image */
.mobile-only-img {
    display: none;
    text-align: center;
    padding: 2rem 5%;
    background-color: var(--bg-black);
}

.mobile-only-img img {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .mobile-only-img {
        display: block;
    }
}