/* 
   SlapIA - Premium Design System 
   Inspiration: UmbrelOS, Apple, Linear
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Core Palette - Deep Space & Aurora */
    --bg-deep: #000000;
    --bg-surface: #0a0a0a;

    /* The "Glow" Colors */
    --accent-blue: #2997ff;
    /* Apple Blue */
    --accent-purple: #bf5af2;
    /* Apple Purple */
    --accent-cyan: #30d158;
    /* Apple Greenish */

    /* Omni-present Borders */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);

    /* Surfaces */
    --glass-panel: rgba(20, 20, 20, 0.6);
    --glass-panel-hover: rgba(30, 30, 30, 0.8);

    /* Typography */
    --text-primary: #ffffff;
    --text-secondary: #98989d;
    /* San Francisco Gray */
    --text-tertiary: #6e6e73;
}

/* Accessibility: Focus Styles */
:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-apple:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.dock-link:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    /* Subtle noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* 
   The "Aurora" Background Effect 
   Fixed position glowing orbs that sit behind content
*/
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    filter: blur(100px);
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.025em;
    /* Tight apple tracking */
    font-weight: 700;
}

.display-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Container & Navbar */
.container {
    max-width: 1100px;
    /* Tighter container for focus */
}

/* The Floating Dock Navbar */
.dock-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 100px;
    /* Pill shape */
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.dock-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dock-link:hover,
.dock-link.active {
    color: var(--text-primary);
}

.dock-brand {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
    border-right: 1px solid var(--glass-border);
    text-decoration: none;
    white-space: nowrap;
    /* Prevent line break on small screens */
}

.dock-brand:hover {
    color: white;
    text-decoration: none;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--glass-panel);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    /* Large UmbelsOS radius */
    padding: 32px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--glass-highlight);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.span-12 {
    grid-column: span 12;
}

.span-6 {
    grid-column: span 6;
}

.span-4 {
    grid-column: span 4;
}

.span-8 {
    grid-column: span 8;
}

/* =========================================
   RESPONSIVE DESIGN - All Platforms
   ========================================= */

/* Large Tablets & Small Desktops (max-width: 991px) */
@media (max-width: 991px) {

    .span-4,
    .span-6,
    .span-8 {
        grid-column: span 12;
    }

    .display-title {
        font-size: 3rem;
    }

    .dock-nav {
        padding: 10px 16px;
        gap: 16px;
    }

    .dock-link {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .bento-card {
        padding: 24px;
        border-radius: 24px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .display-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .dock-nav {
        top: 12px;
        padding: 8px 12px;
        gap: 12px;
        max-width: calc(100% - 24px);
    }

    .dock-brand {
        font-size: 0.95rem;
        padding-right: 10px;
        gap: 6px;
    }

    .dock-brand i {
        font-size: 1rem;
    }

    .bento-grid {
        gap: 16px;
    }

    .bento-card {
        padding: 20px;
        border-radius: 20px;
    }

    /* Touch-friendly buttons */
    .btn-apple {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

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

    /* Stack buttons on mobile */
    .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
    }

    /* Form inputs larger for touch */
    .form-control {
        font-size: 16px !important;
        /* Prevents iOS zoom */
        padding: 14px 16px !important;
    }

    /* Footer adjustments */
    footer {
        padding: 40px 0;
        margin-top: 60px;
    }

    footer .row {
        text-align: center;
    }

    footer .col-6 {
        margin-bottom: 20px;
    }

    /* Icon boxes */
    .icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        border-radius: 16px;
    }

    /* Aurora orbs smaller on mobile */
    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 150px;
        height: 150px;
    }

    /* Spacer for nav */
    .nav-spacer {
        height: 100px !important;
    }
}

/* Mobile Phones (max-width: 576px) */
@media (max-width: 576px) {
    .display-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    h4 {
        font-size: 1.15rem;
    }

    .dock-nav {
        top: 8px;
        padding: 6px 10px;
        gap: 8px;
        border-radius: 50px;
    }

    .dock-brand {
        font-size: 0.85rem;
        padding-right: 8px;
    }

    .dock-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .bento-grid {
        gap: 12px;
    }

    .bento-card {
        padding: 16px;
        border-radius: 16px;
    }

    /* Disable hover transformations on touch devices */
    .bento-card:hover {
        transform: none;
    }

    .btn-apple:hover {
        transform: none;
    }

    /* Better text sizing */
    .lead {
        font-size: 1rem;
    }

    .text-secondary.small {
        font-size: 0.85rem;
    }

    /* Container padding */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Section padding */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Hero section specific */
    section[style*="padding: 60px"] {
        padding: 30px 0 60px !important;
    }

    /* Cards for grid display on small screens */
    .row.g-3>.col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Extra Small Phones (max-width: 380px) */
@media (max-width: 380px) {
    .display-title {
        font-size: 1.75rem;
    }

    .dock-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        border-radius: 20px;
    }

    .dock-brand {
        border-right: none;
        padding-right: 0;
        width: 100%;
        justify-content: center;
        margin-bottom: 4px;
    }

    .bento-card {
        padding: 14px;
    }

    .btn-apple {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 12px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .dock-nav {
        top: 8px;
        padding: 6px 12px;
    }

    .nav-spacer {
        height: 80px !important;
    }

    section[style*="padding: 60px"] {
        padding: 20px 0 40px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .bento-card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-apple:hover {
        transform: none;
    }

    /* Active states for touch */
    .bento-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    .btn-apple:active {
        transform: scale(0.97);
        background: #e5e5e7;
    }

    .dock-link:active {
        opacity: 0.7;
    }

    /* Hide spotlight effect on touch */
    .bento-card::after {
        display: none;
    }
}

/* High resolution screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .aurora-orb {
        animation: none;
    }
}

/* Apple-style Buttons */
.btn-apple {
    background: white;
    color: black;
    border-radius: 100px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: transform 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-apple:hover {
    transform: scale(1.03);
    background: #f5f5f7;
    color: black;
}

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

.btn-apple-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Feature Icons */
.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* 
   Mobile Optimization for Footer Elements 
*/
@media (max-width: 768px) {

    /* Adjust Floating Visitor Counter for Mobile */
    .floating-visitor-counter {
        bottom: 20px !important;
        left: 20px !important;
        margin: 0 !important;
        /* Override bootstrap m-3 */
        transform: scale(0.9);
        transform-origin: bottom left;
    }

    /* Adjust Scroll Indicator position to be reachable but not overlapping chat */
    .scroll-indicator-glass {
        bottom: 90px !important;
        /* Move it down slightly or ensure it's above chat */
        right: 20px !important;
        width: 56px !important;
        /* Smaller size on mobile */
        height: 56px !important;
        background: rgba(10, 10, 10, 0.9) !important;
        /* More opaque on mobile */
    }

    .scroll-indicator-glass .arrow-icon {
        font-size: 20px !important;
    }

    .scroll-indicator-glass svg {
        width: 100%;
        height: 100%;
    }

    /* Ensure enough safe area at bottom of page for scrolling past floating elements */
    body {
        padding-bottom: 20px;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
    padding: 60px 0;
}

/* =========================================
   Advanced Animations
   ========================================= */

/* 2. Liquid Navbar Pill */
.dock-nav {
    position: fixed;
    /* Ensure context */
}

.dock-links-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.nav-liquid-pill {
    position: absolute;
    height: calc(100% - 12px);
    top: 6px;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dock-link {
    position: relative;
    z-index: 1;
    padding: 8px 20px;
    color: var(--text-secondary);
    transition: color 0.2s;
    border-radius: 100px;
}

.dock-link.active {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* 3. Staggered Entry Animation */
.animate-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: enterUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes enterUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. Staggered Table Rows Animation */
.stagger-row {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stagger-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loop to generate delays for up to 20 rows */
.stagger-row:nth-child(1) { transition-delay: 50ms; }
.stagger-row:nth-child(2) { transition-delay: 100ms; }
.stagger-row:nth-child(3) { transition-delay: 150ms; }
.stagger-row:nth-child(4) { transition-delay: 200ms; }
.stagger-row:nth-child(5) { transition-delay: 250ms; }
.stagger-row:nth-child(6) { transition-delay: 300ms; }
.stagger-row:nth-child(7) { transition-delay: 350ms; }
.stagger-row:nth-child(8) { transition-delay: 400ms; }
.stagger-row:nth-child(9) { transition-delay: 450ms; }
.stagger-row:nth-child(10) { transition-delay: 500ms; }

/* 4. Mouse Spotlight Effect */
.bento-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: inherit;
}

.bento-card:hover::after {
    opacity: 1;
}

/* Testimonials / Reviews marquee */
.reviews-marquee {
    width: 100%;
    overflow: hidden;
}

.reviews-inner {
    display: flex;
    /* gap removed to ensure perfect loop math */
    align-items: center;
    white-space: nowrap;
    /* animated container that slides left (right -> left movement) */
    animation: reviews-scroll 28s linear infinite;
}

.reviews-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* Spacing added here to be part of the width calculation */
    padding-right: 36px;
    gap: 36px;
    flex: 0 0 auto;
}

.review-item {
    min-width: 320px;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(40, 40, 50, 0.8), rgba(20, 20, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.review-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(50, 50, 70, 0.9), rgba(30, 30, 40, 1));
    box-shadow: 0 12px 48px rgba(191, 90, 242, 0.2);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2997ff, #bf5af2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info {
    flex: 1;
}

.review-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.review-item .profession {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    margin-top: 2px;
    font-weight: 500;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 8px 0 0;
    line-height: 1.5;
    font-weight: 400;
    white-space: normal;
    /* Allow text to wrap */
    overflow-wrap: break-word;
    /* Prevent long words from overflowing */
}

/* Scrollable Review Content */
.review-content-scroll {
    max-height: 140px;
    overflow-y: auto;
    padding-right: 4px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.review-content-scroll::-webkit-scrollbar {
    width: 4px;
}

.review-content-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.review-content-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.company-name {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.review-stars {
    color: #ffc857;
    margin-top: 8px;
    font-size: 0.9rem;
}

.review-stars i {
    margin-right: 2px;
}

@keyframes reviews-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 991px) {
    .reviews-track {
        animation-duration: 20s;
    }
}

/* =========================================
   Page Loader (Homepage Only)
   ========================================= */
/* Page Loader styles removed */

/* Entry Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-loaded .fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

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

.delay-300 {
    transition-delay: 0.3s;
}

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

.delay-500 {
    transition-delay: 0.5s;
}

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

/* =========================================
   Cookie Banner (Premium Glass Style)
   ========================================= */
:root {
    --cookie-glass-bg: rgba(20, 20, 20, 0.6);
    --cookie-glass-border: rgba(255, 255, 255, 0.08);
    --cookie-glass-blur: 20px;
    --cookie-accent: #bf5af2;
    --cookie-accent-gradient: linear-gradient(135deg, #bf5af2, #7000ff);
    --cookie-text-main: #ffffff;
    --cookie-text-secondary: rgba(255, 255, 255, 0.6);
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.cookie-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: var(--cookie-glass-bg);
    border: 1px solid var(--cookie-glass-border);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--cookie-glass-blur));
    -webkit-backdrop-filter: blur(var(--cookie-glass-blur));
    border-radius: 28px;
    padding: 36px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cookie-overlay.show .cookie-modal {
    transform: scale(1) translateY(0);
}

/* Views (Main vs Preferences) */
.cookie-view {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    width: 100%;
}

.cookie-view.hidden {
    display: none;
}

/* Icons & Typography */
.cookie-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(191, 90, 242, 0.3));
    animation: floatCookie 4s ease-in-out infinite;
}

@keyframes floatCookie {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.cookie-title {
    color: var(--cookie-text-main);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cookie-text {
    color: var(--cookie-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Button Group */
.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-btn {
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Primary Button (Accept All) */
.cookie-btn-primary {
    background: var(--cookie-accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

.cookie-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(112, 0, 255, 0.5);
}

.cookie-btn-primary:hover::before {
    opacity: 1;
}

/* Secondary Button (Refuse All) */
.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Text Link (Customize) */
.cookie-link-btn {
    background: transparent;
    border: none;
    color: var(--cookie-text-secondary);
    font-size: 0.95rem;
    padding: 8px;
    margin-top: 8px;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.cookie-link-btn:hover {
    color: white;
    text-decoration: none;
}

/* Preferences List */
.cookie-preferences-list {
    text-align: left;
    margin-bottom: 24px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar for prefs */
.cookie-preferences-list::-webkit-scrollbar {
    width: 6px;
}

.cookie-preferences-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.cookie-preferences-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.cookie-preferences-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-preference-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    /* Vertically align toggle */
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

.cookie-preference-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-pref-info h4 {
    color: white;
    font-size: 1.05rem;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.cookie-pref-info p {
    color: var(--cookie-text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Modern Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.cookie-slider {
    background-color: #34C759;
    /* iOS Green */
}

input:disabled+.cookie-slider {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.1);
}

input:disabled:checked+.cookie-slider {
    background-color: #34C759;
    opacity: 0.6;
}

input:checked+.cookie-slider:before {
    transform: translateX(22px);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .cookie-modal {
        padding: 28px 24px;
        width: 85%;
        border-radius: 20px;
    }

    .cookie-icon {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    .cookie-title {
        font-size: 1.5rem;
    }

    .cookie-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}


/* Scroll Reveal */
/* Scroll Reveal - Apple Style (Blur + Slide) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(10px);
    /* The "Apple" blur effect */
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

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

/* Scroll Scale - For larger cards (Pop effect) */
.scroll-scale {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

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



/* n8n Chat Widget Overrides */
.n8n-chat-widget {
    left: 20px !important;
    right: auto !important;
    bottom: 20px !important;
    z-index: 10000 !important;
}

/* Carousel Navigation */
.reviews-navigation {
    display: flex;
    gap: 12px;
    margin-left: auto;
    /* Push to right if in flex container */
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

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

/* Updated Reviews Styles for JS Carousel */
.reviews-marquee {
    /* Remove overflow hidden from here if we want buttons outside, 
       but typically we want the TRACK to be masked. 
       Let's keep it but ensure structure supports it. */
    overflow: hidden;
    position: relative;
    /* Mask edges for smooth fade */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-inner {
    /* Remove animation */
    animation: none !important;
    width: 100%;
    display: flex;
    justify-content: start;
    /* Center initially if needed, but transform handles it */
}

.reviews-track {
    display: flex;
    gap: 36px;
    padding-right: 0;
    /* Remove padding used for marquee math */
    /* Init transform handled by JS */
    width: max-content;
    /* Allow it to be as wide as needed */
}

.review-item {
    /* Fixed width is important for calculation */
    width: 320px;
    flex-shrink: 0;
    /* Don't squash */
}





/* Interactive Form Validation */
.form-control:valid {
    border-color: rgba(46, 213, 115, 0.5) !important;
    background: rgba(46, 213, 115, 0.05) !important;
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 71, 87, 0.5) !important;
    background: rgba(255, 71, 87, 0.05) !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Accordion Styles */
.accordion-button::after {
    display: none;
}

.accordion-button:not(.collapsed) .transition-icon {
    transform: rotate(180deg);
}

.transition-icon {
    transition: transform 0.3s ease;
}


/* Link Hover Effect */
.hover-underline:hover {
    text-decoration: underline !important;
}

/* Matrix Mode Overrides */
body.matrix-mode {
    font-family: "Courier New", monospace !important;
    background-color: #000 !important;
    color: #0F0 !important;
}

body.matrix-mode * {
    border-color: #0F0 !important;
}

body.matrix-mode .bento-card,
body.matrix-mode .navbar,
body.matrix-mode footer {
    background: rgba(0, 20, 0, 0.9) !important;
    border: 1px solid #0F0 !important;
    box-shadow: 0 0 10px #0F0;
}

body.matrix-mode h1,
body.matrix-mode h2,
body.matrix-mode h3,
body.matrix-mode h4,
body.matrix-mode h5,
body.matrix-mode h6,
body.matrix-mode p,
body.matrix-mode a,
body.matrix-mode span,
body.matrix-mode i {
    color: #0F0 !important;
    text-shadow: 0 0 5px #0F0 !important;
}

body.matrix-mode .btn-apple {
    background: #000 !important;
    border: 1px solid #0F0 !important;
    color: #0F0 !important;
}

body.matrix-mode .aurora-orb,
body.matrix-mode .nav-active-bg {
    display: none !important;
}

#matrix-canvas {
    z-index: 0 !important;
    opacity: 0.3;
}


/* Cursor Blink */
.cursor-blink {
    animation: blink 1s step-end infinite;
    font-weight: 100;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}





/* Scroll Indicator Transitions */
#scroll-indicator {
    transition: opacity 0.3s ease, transform 0.2s ease;
}

#scroll-indicator:hover {
    transform: scale(1.1);
}

/* Emoji Rain */
.falling-emoji {
    position: fixed;
    top: -50px;
    user-select: none;
    pointer-events: none;
    z-index: 99999;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}


/* Utility Classes */
.hover-white:hover {
    color: white !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Cleaning up old Emoji Rain CSS if any conflict - New one uses inline styles/JS animations */

/* =========================================
   Swup Slide Theme (Custom Custom Implementation)
   ========================================= */
.swup-transition-main {
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transform-origin: center top;
}

html.is-animating .swup-transition-main {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    /* Subtle slide down/up effect preferred over full side slide to avoid layout thrashing */
}

/* If the user explicitly wants SIDE slide, effective side slide requires container handling which Swup defaults don't always do perfectly without the plugin.
   However, a "Slide Up/Down" (Apple style) is often what users mean by modern "slide" transitions without the jarring horizontal movement.
   Let's try a very clean Slide Up Fade. */

html.is-leaving .swup-transition-main {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
}

html.is-rendering .swup-transition-main {
    transform: translate3d(0, -20px, 0);
    /* Start slightly above */
}

/* Fix for Scroll Reveal firing too early */
.swup-transition-main .scroll-reveal {
    opacity: 0;
}

/* =========================================
   Scroll Reveal Animation
   ========================================= */
.scroll-reveal,
.fade-in-up,
.scroll-scale {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-scale {
    transform: scale(0.95);
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Stagger delays */
.delay-200 {
    transition-delay: 0.2s;
}

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

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

/* =========================================
   Mobile Menu (extracted from header.php)
   ========================================= */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 30px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-link.active {
    background: linear-gradient(135deg, var(--accent-purple), #7000ff);
}

.mobile-menu-link i {
    width: 24px;
    text-align: center;
    font-size: 1rem;
}

.mobile-contact-btn {
    margin-top: auto;
    text-align: center;
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }

    .dock-nav .d-none.d-md-flex {
        display: none !important;
    }

    .dock-nav .btn-apple {
        display: none;
    }
}

/* =========================================
   Scroll Indicator (extracted from footer.php)
   ========================================= */
.scroll-indicator-glass {
    position: fixed;
    bottom: 110px;
    right: 24px;
    width: 72px;
    height: 72px;
    z-index: 10000;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scroll-indicator-glass.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-indicator-glass:hover {
    border-color: #bf5af2;
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.4);
    transform: scale(1.05);
}

.arrow-icon {
    color: white;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ping animation for live counter dot (extracted from footer.php) */
@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}