:root {
    --text-dark: #1e1e24;
    --text-light: #6b7280;
    --bg-color: #fafafa;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    background-image: radial-gradient(circle at top right, #f0f4ff 0%, transparent 40%),
        radial-gradient(circle at bottom left, #fbfbfe 0%, transparent 50%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    /* Reduced padding */
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 84px;
    /* Increased by 40% from 60px */
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-dark);
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    /* Above nav panel */
    padding: 10px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--text-dark);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--text-dark);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5vh;
    /* Increased from 2vh */
    min-height: 90vh;
    /* Changed from fixed height */
    padding-bottom: 4rem;
    position: relative;
}

.hero-title {
    text-align: center;
    font-size: clamp(2.2rem, 5vh, 3.5rem);
    /* Slightly larger */
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 80px;
    /* Predictable margin instead of vh */
    letter-spacing: -1px;
}

.highlight {
    color: #3b82f6;
    font-weight: 600;
}

/* --- INFINITE MARQUEE --- */
.marquee-wrapper {
    width: 100vw;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    margin-bottom: 2rem;
    background: transparent;
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: scroll-marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 4vw;
    /* Huge text responsive to screen */
    font-weight: 800;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.2);
    /* Outlined text */
    padding-right: 2rem;
    letter-spacing: 2px;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- PHILOSOPHY BLOCK --- */
.philosophy {
    max-width: 900px;
    margin: 4rem auto 8rem auto;
    padding: 0 2rem;
    text-align: center;
}

.philosophy-text {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #111, #6b7280);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property for compatibility */
    -webkit-text-fill-color: transparent;
    color: #111;
    /* Fallback for browsers that don't support text-fill-color */
}

/* 3D Layered Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 500px;
    /* Reduced from 600px to ensure it fits screen */
    margin: 0 auto 0.5rem;
    /* Tighter bottom margin */
    perspective: 1500px;
}

/* Base Mockup Styles */
.mockup {
    position: absolute;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    /* 3D Glass Reflection Floor Effect */
    -webkit-box-reflect: below 5px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.1) 100%);
}

/* Carousel Items Center Alignment */
.carousel-item {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    transition: all 0.8s ease-in-out;
    will-change: transform, opacity;
}

/* PREV (слева) */
.carousel-item.prev {
    transform: translateX(-70%) scale(0.85) rotate(-5deg);
    opacity: 0.5;
    filter: blur(2px);
    z-index: 2;
    pointer-events: none;
}

/* ACTIVE (центр) */
.carousel-item.active {
    transform: translateX(0) scale(1.15);
    opacity: 1;
    filter: blur(0px);
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
}

/* NEXT (справа) */
.carousel-item.next {
    transform: translateX(70%) scale(0.85) rotate(5deg);
    opacity: 0.5;
    filter: blur(2px);
    z-index: 2;
    pointer-events: none;
}

/* HIDDEN */
.carousel-item.hidden {
    transform: scale(0.7);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Carousel Indicators (Dots) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #cbd5e1;
    border-radius: 4px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.dot.active {
    width: 24px;
    background-color: #3b82f6;
}

/* --- ZOOM IN ANIMATION CLASSES --- */
body.zooming {
    overflow: hidden;
}

.carousel-container.zooming {
    perspective: none;
    /* Disable perspective to let element scale cleanly flat */
}

/* Fade out inactive elements */
.carousel-container.zooming .carousel-item:not(.zoom-active) {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}

.carousel-indicators.zooming,
.section-title-container.zooming,
.hero-title.zooming,
.header.zooming {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Ambient Background Glow */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.4);
    /* initial FIN8 color */
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    transition: background 1.5s ease;
}

/* Dynamic Project Title */
.project-title-display {
    text-align: center;
    margin-top: 1rem;
    /* Positive margin to push text down from carousel */
    margin-bottom: 2rem;
    height: 40px;
    /* fixed height to prevent jumping */
    position: relative;
    z-index: 10;
}

#dynamic-project-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Class to fade out text before changing it */
#dynamic-project-title.fade {
    opacity: 0;
    transform: translateY(10px);
}

/* Zoom active element into the screen */
.carousel-item.zoom-active {
    transform: translateX(0) translateY(-10%) scale(2.5) !important;
    opacity: 1 !important;
    /* Keep it fully visible */
    z-index: 999 !important;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1) !important;
    pointer-events: none;
}

.mockup-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Side Mockup Specifics */
.side-mockup {
    width: 500px;
    height: 350px;
    z-index: 1;
}

/* ------------------ CENTER LAPTOP MOCKUP (FGS) ------------------ */
.laptop-frame {
    z-index: 10;
    width: 680px;
    height: 420px;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.laptop-screen {
    width: 100%;
    height: 400px;
    background: #111;
    border-radius: 16px 16px 0 0;
    padding: 15px 15px 25px 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.laptop-base {
    width: 100%;
    /* Уменьшил со 110% до 100%, чтобы база нотбука не торчала слишком сильно по бокам */
    height: 18px;
    background: linear-gradient(to bottom, #d6d6d6, #999);
    border-radius: 0 0 18px 18px;
    position: relative;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.15);
}

.laptop-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: #a3a3a3;
    border-radius: 0 0 5px 5px;
}

/* Labels & Works */
.mockup-labels {
    display: flex;
    justify-content: center;
    gap: 16rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 1rem;
}

.label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.section-title-container {
    margin-top: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--text-dark);
    text-transform: uppercase;
}

/* ------------------ SECOND ROW SPECIFICS ------------------ */

/* Side Laptop Mockups */
.side-laptop {
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.laptop-screen-side {
    width: 100%;
    height: calc(100% - 15px);
    background: #111;
    border-radius: 8px 8px 0 0;
    padding: 8px 8px 12px 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.laptop-base-side {
    width: 110%;
    height: 15px;
    background: linear-gradient(to bottom, #d6d6d6, #999);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* UPay Mobile Phone Frame */
.phone-frame {
    z-index: 10;
    width: 260px;
    height: 560px;
    /* Adjusted to 1:2.15 ratio for modern iPhones */
    background: #050505;
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 0 10px #111,
        inset 0 0 0 12px #222;
    top: -30px;
}

.phone-notch-container {
    position: absolute;
    top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.phone-notch {
    width: 80px;
    /* Dynamic Island look */
    height: 25px;
    background: #000;
    border-radius: 20px;
}

/* --- PREMIUM PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

/* --- PREMIUM SECTIONS GENERAL STYLES --- */
.premium-section {
    padding: 8rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 2px;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* --- XR CONFIGURATOR --- */
.configurator-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: transparent;
    color: var(--text-dark);
    margin-top: 2rem;
}

.configurator-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    /* slightly smaller summary */
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {

    /* Configurator Adjustments */
    .configurator-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .configurator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Left Column Options */
.config-main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
    line-height: 1;
}

.config-subtitle {
    font-family: monospace;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.config-step {
    margin-bottom: 2rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 1px;
}

.step-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
}

.step-title.cyan-dot,
.step-title.purple-dot,
.step-title.green-dot {
    color: #3b82f6;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.option-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    /* Pill shape like search tags */
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    cursor: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.option-btn.active {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
    transform: translateY(0);
}

/* Slider Logic */
.slider-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: none;
    margin-bottom: 2rem;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: none;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.timeline-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: none;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.slider-labels .active-label {
    color: var(--text-dark);
    font-weight: 700;
}

/* Right Column Summary */
.config-summary-wrapper {
    position: sticky;
    top: 100px;
    /* Offset for sticky nav */
}

.config-summary {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: monospace;
    font-size: 0.9rem;
}

.summary-label {
    color: var(--text-light);
}

.summary-value {
    color: var(--text-dark);
    text-align: right;
    max-width: 60%;
    font-weight: 500;
}

.summary-price-block {
    margin-bottom: 3rem;
}

.price-label {
    display: block;
    font-family: monospace;
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    line-height: 1.2;
}

.price-from,
.price-to {
    font-size: 1.5rem;
    color: var(--text-light);
}

#resPriceMin,
#resPriceMax {
    color: #3b82f6;
    /* Electric blue */
}

.currency-symbol {
    color: var(--text-dark);
}

.config-submit-btn {
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    color: #fff !important;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: none;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 4px;
}

.config-submit-btn:hover {
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}

/* --- CUSTOM CURSOR --- */
body {
    cursor: none;
    /* Hide default cursor */
}

a,
button,
.carousel-item {
    cursor: none !important;
    /* ensure hover states don't show default cursor */
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.custom-cursor.hovering {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    mix-blend-mode: normal;
    backdrop-filter: blur(2px);
}

.custom-cursor.hovering-open::after {
    content: "Открыть";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* --- FOOTER CTA SECTION --- */
.footer-cta {
    width: 100%;
    padding: 6rem 2rem 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.footer-content {
    text-align: center;
    max-width: 600px;
}

.footer-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* --- DETAILED SITE FOOTER --- */
.site-footer {
    width: 100%;
    background-color: #050505;
    color: #e2e8f0;
    padding: 5rem 5% 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: inherit;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #fff;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-legal-combo {
    max-width: 800px;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #fff;
}

.footer-social-lang {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-selector {
    display: flex;
    align-items: center;
}

.custom-select {
    background: #111;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    opacity: 1;
}

/* --- NEWSLETTER FORM --- */
.newsletter-form {
    display: flex;
    align-items: stretch;
    height: 48px;
    margin-top: 1rem;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: #1e1e1e;
}

.mail-icon {
    position: absolute;
    left: 15px;
    color: #64748b;
}

.newsletter-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding-left: 45px;
    padding-right: 15px;
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #64748b;
}

.newsletter-btn {
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    font-weight: 700;
    cursor: none;
    /* using our custom cursor */
    transition: opacity 0.3s ease;
}

.newsletter-btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .newsletter-form {
        max-width: 100%;
    }
}

/* --- BUTTON STYLES --- */
.btn-primary {
    display: inline-block;
    background: #fff;
    color: #111 !important;
    /* Force dark text against white button */
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: scale(0.95);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.fade-up-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE RESPONSIVENESS AND POLISH --- */
@media (max-width: 768px) {
    .carousel-container {
        height: 320px;
        /* shorter container for phones */
        margin-bottom: 2rem;
    }

    .ambient-glow {
        width: 140vw;
        /* wider visual glow relative to phone */
        height: 50vh;
        filter: blur(80px);
    }

    .laptop-frame {
        width: 320px;
        height: 200px;
    }

    .laptop-screen {
        height: 190px;
        padding: 5px 5px 12px 5px;
        border-radius: 8px 8px 0 0;
    }

    .laptop-base {
        height: 10px;
        border-radius: 0 0 10px 10px;
    }

    .laptop-base::after {
        width: 60px;
        height: 3px;
    }

    .phone-frame {
        width: 160px;
        height: 345px;
        /* Proportional to 560px */
        border-radius: 25px;
        top: 0;
    }

    .phone-notch-container {
        top: 6px;
    }

    .phone-notch {
        width: 70px;
        height: 16px;
    }

    /* adjust 3D positions so they fit tightly on a phone */
    .carousel-item.active {
        transform: translateX(0) scale(1.0);
    }

    .carousel-item.prev {
        transform: translateX(-55%) scale(0.8) rotate(-4deg);
    }

    .carousel-item.next {
        transform: translateX(55%) scale(0.8) rotate(4deg);
    }

    /* zoom in not as overwhelmingly huge on tiny screens */
    .carousel-item.zoom-active {
        transform: translateX(0) translateY(-5%) scale(1.6) !important;
    }

    #dynamic-project-title {
        font-size: 1.4rem;
    }

    /* preloader/cursor overwrites */
    body,
    a,
    button,
    .carousel-item {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none;
    }

    .footer-title {
        font-size: 2rem;
    }

    .marquee-content span {
        font-size: 8vw;
        /* Make marquee visible on mobile */
    }

    .philosophy-text {
        font-size: 1.5rem;
        /* Resize huge text for mobile */
    }

    /* --- MOBILE NAV STYLES --- */
    .hamburger {
        display: flex;
        /* Show hamburger on mobile */
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(250, 250, 250, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 2rem;
        font-weight: 700;
        color: var(--text-dark);
        /* Black text for light background */
        transition: color 0.3s ease;
    }

    .nav-link:hover {
        color: #3b82f6;
        /* Blue on hover */
    }
}

/* ---------------------------------- */
/* FREE CONCEPT PROMO CARD            */
/* ---------------------------------- */

.concept-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.concept-content {
    position: relative;
    z-index: 1;
}

.concept-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.concept-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.concept-btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    cursor: none;
}

@media (max-width: 768px) {
    .concept-card {
        padding: 3rem 1.5rem;
        border-radius: 16px;
    }

    .concept-desc {
        font-size: 1rem;
    }
}

/* ---------------------------------- */
/* FLOATING WHATSAPP BUTTON           */
/* ---------------------------------- */

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* Official WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.floating-wa svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #128C7E;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.floating-wa:hover svg {
    transform: scale(1.1);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-wa svg {
        width: 26px;
        height: 26px;
    }
}

/* ---------------------------------- */
/* COOKIES BANNER                     */
/* ---------------------------------- */

.cookie-banner {
    position: fixed;
    bottom: -150px;
    /* Hidden initially */
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 5%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    transition: bottom 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s;
}

.cookie-content a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-btn {
    padding: 0.6rem 2rem;
    background: #fff;
    color: #050505;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-banner {
        padding: 1.5rem;
    }

    .cookie-btn {
        width: 100%;
    }
}