/* styles.css - The Upskill Space Booking System */

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

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #000000;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

/* Base custom interactive states */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    z-index: 1;
}

/* Sliding contrast background on hover */
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #262626; /* Slightly lighter charcoal black */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-premium:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-premium:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Premium Smooth Fluid Radial Glow Backgrounds with Organic Swelling Animation */
@keyframes mesh-pulse {
    0% {
        background-position: 0% 50%, 100% 50%, 50% 100%, 100% 100%, 80% 50%;
    }
    50% {
        background-position: 10% 40%, 90% 60%, 40% 90%, 90% 90%, 70% 60%;
    }
    100% {
        background-position: 0% 50%, 100% 50%, 50% 100%, 100% 100%, 80% 50%;
    }
}

.bg-premium-mesh {
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(248, 248, 248, 0.95) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(242, 242, 242, 0.8) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(250, 250, 250, 0.9) 0px, transparent 60%),
        radial-gradient(at 100% 100%, rgba(240, 240, 240, 0.75) 0px, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(245, 245, 245, 0.5) 0px, transparent 40%);
    background-size: 200% 200%;
    animation: mesh-pulse 25s ease infinite;
    transition: background 1s ease;
}

/* Premium Floating Abstract Blur Orbs */
@keyframes float-slow {
    0% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    33% { transform: translate(40px, -60px) scale(1.15) rotate(120deg); }
    66% { transform: translate(-30px, 30px) scale(0.85) rotate(240deg); }
    100% { transform: translate(0px, 0px) scale(1) rotate(360deg); }
}

@keyframes float-slower {
    0% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    50% { transform: translate(-50px, 50px) scale(1.2) rotate(-180deg); }
    100% { transform: translate(0px, 0px) scale(1) rotate(-360deg); }
}

.animate-float-slow {
    animation: float-slow 20s infinite ease-in-out;
}

.animate-float-slower {
    animation: float-slower 25s infinite ease-in-out;
}

/* Micro-spring active transforms for buttons and interactive items */
.spring-active {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.spring-active:active {
    transform: scale(0.94);
}

/* Premium Hover Transitions & Life (Micro-spring tilt & rotate) */
.hover-float {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.hover-float:hover {
    transform: translateY(-10px) rotate(0.5deg) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-color: #000000 !important;
}

/* Elegant Light Sweep Shine Reflection on Card Hover */
.shine-hover {
    position: relative;
    overflow: hidden;
}

.shine-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
    z-index: 5;
}

.shine-hover:hover::before {
    left: 150%;
    transition: left 0.85s ease-in-out;
}

.hover-shrink-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-shrink-btn:hover {
    transform: scale(0.98);
}

/* Scroll Animation States */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered load delays for child content */
.reveal-on-scroll.active .stagger-1 { transition-delay: 0.1s; }
.reveal-on-scroll.active .stagger-2 { transition-delay: 0.2s; }
.reveal-on-scroll.active .stagger-3 { transition-delay: 0.3s; }
.reveal-on-scroll.active .stagger-4 { transition-delay: 0.4s; }

/* Custom Active Selection Border Pulse Glow */
@keyframes border-glow-pulse {
    0% { box-shadow: 0 0 0 1px #000000, 0 4px 20px rgba(0, 0, 0, 0.08); }
    50% { box-shadow: 0 0 0 2px #000000, 0 10px 30px rgba(0, 0, 0, 0.14); }
    100% { box-shadow: 0 0 0 1px #000000, 0 4px 20px rgba(0, 0, 0, 0.08); }
}

.card-duration-active {
    border-color: #000000 !important;
    background-color: #ffffff !important;
    animation: border-glow-pulse 3s infinite ease-in-out;
}

/* Custom animated dots for loading state */
.dot-flashing {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 5px;
    background-color: #ffffff;
    color: #ffffff;
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: .5s;
}

.dot-flashing::before, .dot-flashing::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
}

.dot-flashing::before {
    left: -12px;
    width: 6px;
    height: 6px;
    border-radius: 5px;
    background-color: #ffffff;
    color: #ffffff;
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: 0s;
}

.dot-flashing::after {
    left: 12px;
    width: 6px;
    height: 6px;
    border-radius: 5px;
    background-color: #ffffff;
    color: #ffffff;
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: 1s;
}

@keyframes dot-flashing {
    0% {
        background-color: #ffffff;
    }
    50%, 100% {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Focus styles */
input:focus, select:focus {
    outline: none;
    border-color: #000000 !important;
    box-shadow: 0 0 0 2px #000000 !important;
}

/* Hide default calendar icon in some browsers to make it cleaner */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Cinematic Slide Reveal Mask structures */
.reveal-text-mask {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
}

.reveal-text-child {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: text-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes text-reveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom animated transitions */
.fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Invoice styles */
@media print {
    /* Hide all elements on the page that are not part of the receipt path */
    header,
    footer,
    #mobile-menu,
    #config-modal,
    nav,
    .no-print,
    #booking-form {
        display: none !important;
    }

    /* Hide other sections inside main content area */
    main > section:not(#booking-section) {
        display: none !important;
    }

    /* Hide background elements, title, and wizard step headers in the booking section */
    #booking-section > .absolute, 
    #booking-section .relative.max-w-4xl > .text-center, 
    #booking-section .bg-white > .no-print {
        display: none !important;
    }

    /* Reset layouts of parent elements to ensure absolute printing reliability */
    html, body, main, #booking-section, #booking-section .relative.max-w-4xl, #booking-section .bg-white {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        background: #ffffff !important;
        background-image: none !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        position: static !important;
    }

    /* Target the confirmation container to display normally */
    #booking-confirmation-state {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        position: static !important;
    }

    /* Hide checkmark/welcome text and action buttons when printing */
    #booking-confirmation-state > div.text-center.max-w-md,
    #booking-confirmation-state > div.max-w-md.mx-auto.flex {
        display: none !important;
    }

    /* Format the invoice box beautifully for physical print */
    #booking-confirmation-state > div.max-w-md.mx-auto.border {
        border: 2px solid #000000 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        margin: 40px auto !important;
        padding: 0 !important;
        max-width: 450px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Make text colors and lines print crisp with high contrast */
    #booking-confirmation-state * {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Ensure specific borders inside receipt are visible on print */
    .border-neutral-200 {
        border-color: #000000 !important;
    }
    
    .border-b {
        border-bottom-width: 1px !important;
        border-bottom-style: solid !important;
    }

    .border-t {
        border-top-width: 1px !important;
        border-top-style: solid !important;
    }

    .border-dashed {
        border-style: dashed !important;
    }

    .bg-neutral-50\/50 {
        background-color: #f5f5f5 !important;
    }

    /* Page-specific setups */
    @page {
        size: auto;
        margin: 20mm;
    }
    
    /* Ensure colors render as expected in print preview */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* =====================================================================
   PREMIUM 3D WORKSPACE ENGINE & STEP WIZARD STYLES
   ===================================================================== */

/* Wizard Navigation & Step Transitions */
@keyframes step-slide-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wizard-step {
    display: none;
    opacity: 0;
    transform: translateY(24px) scale(0.99);
}

.wizard-step.active {
    display: block !important;
    animation: step-slide-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step.hidden {
    display: none !important;
}

/* 3D Perspective Viewport */
.perspective-viewport {
    perspective: 1200px;
    perspective-origin: 50% 35%;
    overflow: hidden;
    background: radial-gradient(circle at center, #ffffff 0%, #f7f7f7 100%);
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.02);
}

/* Rotatable 3D Scene Wrapper */
.workspace-3d-scene {
    transform-style: preserve-3d;
    width: 480px;
    height: 320px;
    transform: rotateX(55deg) rotateZ(var(--scene-rotation, -45deg));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* The Workspace Floor Surface Grid */
@keyframes grid-glow {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

.workspace-floor {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    border: 3px solid #000000;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), inset 0 0 20px rgba(0, 0, 0, 0.02);
    position: absolute;
    transform-style: preserve-3d;
    animation: grid-glow 12s linear infinite;
}

/* Floor Zones Boundaries Outline overlay */
.floor-zone-outline {
    position: absolute;
    box-sizing: border-box;
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    transform: translateZ(1px); /* Lay flat on floor */
    pointer-events: none;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(0,0,0,0.25);
    padding: 6px;
}
.zone-focus-outline {
    top: 50px;
    left: 20px;
    width: 160px;
    height: 240px;
    background-color: rgba(139, 90, 43, 0.01);
}
.zone-skyline-outline {
    top: 20px;
    left: 190px;
    width: 270px;
    height: 110px;
    background-color: rgba(16, 185, 129, 0.01);
}
.zone-collab-outline {
    top: 150px;
    left: 190px;
    width: 270px;
    height: 140px;
    background-color: rgba(59, 130, 246, 0.01);
}

/* 3D Glass Window Wall (Visual anchor for premium views) */
.window-wall-3d {
    position: absolute;
    top: 0;
    left: 190px;
    width: 270px;
    height: 70px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05), rgba(16, 185, 129, 0.05));
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #171717;
    transform: rotateX(-90deg) translate3d(0, -35px, 0); /* stand up on top boundary */
    transform-origin: top;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    backdrop-filter: blur(2px);
    transform-style: preserve-3d;
}
.window-glass {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.05) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.window-glass::after {
    content: '☁ SKYLINE VIEW WINDOW';
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: rgba(0,0,0,0.4);
}

/* 3D Decorative Plant Pots */
.plant-pot-3d {
    position: absolute;
    width: 16px;
    height: 16px;
    transform-style: preserve-3d;
}
.pot-face {
    position: absolute;
    width: 16px;
    height: 14px;
    background: #737373;
    border: 1px solid #525252;
    transform-origin: bottom;
}
.pot-top {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #525252;
    border-radius: 2px;
    transform: translateZ(14px);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
@keyframes leaves-sway {
    0% { transform: translate3d(-4px, -4px, 16px) rotateX(30deg) rotateY(45deg); }
    50% { transform: translate3d(-4px, -4px, 16px) rotateX(33deg) rotateY(48deg) rotateZ(3deg); }
    100% { transform: translate3d(-4px, -4px, 16px) rotateX(30deg) rotateY(45deg); }
}

.pot-leaves {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 50% 0 50% 0;
    transform: translate3d(-4px, -4px, 16px) rotateX(30deg) rotateY(45deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    animation: leaves-sway 5s ease-in-out infinite alternate;
}

/* Volumetric 3D Desks */
.desk-3d {
    position: absolute;
    width: 44px;
    height: 30px;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    transform: translateZ(0px);
}

/* Hover elevation active springs */
.desk-3d:hover {
    transform: translateZ(6px);
}

/* Individual faces of 3D volumetric cuboid desk */
.desk-face {
    position: absolute;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Top writing deck face */
.desk-face.top {
    width: 44px;
    height: 30px;
    transform: translateZ(12px); /* Desk Height */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-weight: 800;
    font-size: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
}

/* Desk Scanning Sweep Effect on Hover & Selection */
@keyframes sweep-scanner {
    0% {
        top: -10%;
    }
    100% {
        top: 110%;
    }
}

.desk-3d:not(.booked):hover .desk-face.top::after,
.desk-3d.selected .desk-face.top::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(16, 185, 129, 0.5);
    animation: sweep-scanner 1.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

/* Desk Front side face */
.desk-face.front {
    width: 44px;
    height: 12px;
    transform: rotateX(-90deg);
    transform-origin: bottom;
    bottom: 0;
    border-radius: 0 0 2px 2px;
    background: #262626;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Desk Back side face */
.desk-face.back {
    width: 44px;
    height: 12px;
    transform: rotateX(90deg);
    transform-origin: top;
    top: 0;
    background: #171717;
}

/* Desk Left profile face */
.desk-face.left {
    width: 12px;
    height: 30px;
    transform: rotateY(-90deg) rotateX(90deg);
    transform-origin: left bottom;
    left: 0;
    background: #1f1f1f;
}

/* Desk Right profile face */
.desk-face.right {
    width: 12px;
    height: 30px;
    transform: rotateY(90deg) rotateX(90deg);
    transform-origin: right bottom;
    right: 0;
    background: #1f1f1f;
}

/* Shadow underneath desk */
.desk-shadow {
    position: absolute;
    width: 40px;
    height: 26px;
    top: 2px;
    left: 2px;
    background: rgba(0, 0, 0, 0.12);
    filter: blur(4px);
    border-radius: 4px;
    transform: translateZ(0.5px);
    pointer-events: none;
    transition: all 0.4s ease;
}
.desk-3d:hover .desk-shadow {
    transform: scale(1.1) translateZ(0.5px);
    background: rgba(0,0,0,0.08);
    filter: blur(6px);
}

/* Status Indicator LED bulb on Desk surface */
.desk-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    transition: all 0.3s ease;
}

/* Zone Specific Themes */
/* Focus Zone (F1-F5): Walnut Wood style top */
.desk-focus .desk-face.top {
    background: linear-gradient(135deg, #8c6239 0%, #604020 100%);
    color: #ffffff;
    border-color: #4d3319;
}
.desk-focus .desk-face.front, 
.desk-focus .desk-face.back, 
.desk-focus .desk-face.left, 
.desk-focus .desk-face.right {
    background: #4d3319;
}

/* Skyline Zone (S1-S5): Premium Polar Glass White style top */
.desk-skyline .desk-face.top {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    color: #171717;
    border-color: #d4d4d8;
}
.desk-skyline .desk-face.front, 
.desk-skyline .desk-face.back, 
.desk-skyline .desk-face.left, 
.desk-skyline .desk-face.right {
    background: #a1a1aa;
}

/* Collaborative Hub (C1-C5): Tech Slate Blue style top */
.desk-collab .desk-face.top {
    background: linear-gradient(135deg, #2a4365 0%, #1a365d 100%);
    color: #ffffff;
    border-color: #122543;
}
.desk-collab .desk-face.front, 
.desk-collab .desk-face.back, 
.desk-collab .desk-face.left, 
.desk-collab .desk-face.right {
    background: #122543;
}

/* Booking Status overrides */
/* 1. Booked / Reserved state */
.desk-3d.booked {
    cursor: not-allowed;
}
.desk-3d.booked:hover {
    transform: translateZ(0);
}
.desk-3d.booked .desk-face.top {
    background: #e5e5e5 !important;
    color: #737373 !important;
    border-color: #d4d4d4 !important;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(115, 115, 115, 0.08) 5px, rgba(115, 115, 115, 0.08) 10px) !important;
    box-shadow: none !important;
}
.desk-3d.booked .desk-indicator {
    background: #ef4444 !important;
    box-shadow: 0 0 6px #ef4444 !important;
}

/* 2. Selected Seating Position highlight (active pulse) */
.desk-3d.selected {
    transform: translateZ(10px);
}
.desk-3d.selected .desk-face.top {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.35), 0 0 20px rgba(16, 185, 129, 0.4) !important;
}
.desk-3d.selected .desk-indicator {
    background: #10b981 !important;
    box-shadow: 0 0 10px #10b981, 0 0 20px #10b981 !important;
    animation: indicator-pulse 1.2s infinite ease-in-out;
}
.desk-3d.selected .desk-shadow {
    transform: scale(1.2) translateZ(0.5px);
    background: rgba(16, 185, 129, 0.25);
    filter: blur(8px);
}

/* 3D Seating Scene Control Buttons */
.scene-control-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.scene-control-btn:hover {
    transform: translateY(-2px);
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}
.scene-control-btn:active {
    transform: translateY(0);
}

/* Opaque Border Flare Animation Effect */
@property --flare-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.border-flare {
    position: relative;
    border: 1px solid transparent !important;
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from var(--flare-angle), transparent 35%, rgba(0, 0, 0, 0.04) 45%, #000000 50%, rgba(0, 0, 0, 0.04) 55%, transparent 65%) border-box !important;
    z-index: 1;
    animation: spin-flare-var 6s linear infinite;
}

@keyframes spin-flare-var {
    to {
        --flare-angle: 360deg;
    }
}

/* Dynamic Hover Animations */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background-color 0.4s ease !important;
}
.hover-lift:hover {
    transform: translateY(-5px);
}
.hover-lift:active {
    transform: translateY(-1px);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hover-scale:hover {
    transform: scale(1.03);
}
.hover-scale:active {
    transform: scale(0.98);
}

.hover-underline-animate {
    position: relative;
    display: inline-block;
}
.hover-underline-animate::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-underline-animate:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Micro-movement on SVG icons inside group-hover */
.group:hover .icon-scale-up {
    transform: scale(1.12);
}
.icon-scale-up {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .icon-arrow-slide {
    transform: translateX(4px);
}
.icon-arrow-slide {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slick Pseudo-Class Button Wipe & Shine */
.btn-wipe-slick {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}

/* Background Wipe */
.btn-wipe-slick::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wipe-bg, #000000);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wipe-slick:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Glossy Shine Sweep */
.btn-wipe-slick::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.btn-wipe-slick:hover::after {
    left: 150%;
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* White Button Modifier (Slides in Black) */
.btn-wipe-slick-white {
    --wipe-bg: #000000;
}
.btn-wipe-slick-white:hover {
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* Black/Dark Button Modifier (Slides in White) */
.btn-wipe-slick-black {
    --wipe-bg: #ffffff;
}
.btn-wipe-slick-black:hover {
    color: #000000 !important;
    border-color: #ffffff !important;
}
.btn-wipe-slick-black::after {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
}

/* Responsive adjustments for 3D perspective viewport on mobile screens */
@media (max-width: 640px) {
    .perspective-viewport {
        height: 320px;
    }
    :root {
        --scene-scale: 0.7;
    }
}

@media (max-width: 480px) {
    :root {
        --scene-scale: 0.55;
    }
}

@media (max-width: 375px) {
    :root {
        --scene-scale: 0.45;
    }
}

