:root {
    --cursor-size: 20px;
}

body {
    background-color: #ffffff;
    color: #18181b;
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none !important;
    }

    .hoverable {
        cursor: pointer;
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    width: 0%;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 2px solid #f9fafb;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dir-ltr {
    direction: ltr;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 0.5s ease-out 3s forwards;
}

.loader-text {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    overflow: hidden;
    color: #18181b;
}

.loader-text span {
    display: inline-block;
    transform: translateY(100%);
}

.reveal-text {
    opacity: 0;
    transform: translateY(120%);
    display: block;
    line-height: 1.2;
    padding-bottom: 0.1em;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    mix-blend-mode: multiply;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    will-change: transform;
}

.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05), transparent 40%);
    filter: blur(80px);
    pointer-events: none;
}

.bg-grid-pattern {
    background-image: radial-gradient(#94a3b8 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.shape-float {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(124, 58, 237, 0.05));
    opacity: 0.8;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.stroke-text {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15);
    color: transparent;
    transition: all 0.5s ease;
}

.stroke-text:hover {
    -webkit-text-stroke: 1px #7c3aed;
    color: rgba(124, 58, 237, 0.05);
}

.glow-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glow-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow:
        0 20px 40px -5px rgba(124, 58, 237, 0.08),
        0 10px 20px -5px rgba(0, 0, 0, 0.01);
    transform: translateY(-6px) scale(1.005);
    background: rgba(255, 255, 255, 0.95);
}

.partner-logo {
    filter: grayscale(100%) opacity(0.4);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    mix-blend-mode: multiply;
    transform-origin: center;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
    mix-blend-mode: normal;
}

.form-input {
    width: 100%;
    background: rgba(249, 250, 251, 0.5);
    border: 1px solid transparent;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1rem;
    font-size: 1.1rem;
    color: #18181b;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 8px 8px 0 0;
}

.form-input:focus {
    border-bottom-color: #7c3aed;
    background: rgba(124, 58, 237, 0.03);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.05);
}

.form-input::placeholder {
    color: #9ca3af;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus::placeholder {
    color: #7c3aed;
    opacity: 0.8;
    transform: translateY(-2px);
}

.date-card {
    min-width: 85px;
    padding: 16px 0;
    border-radius: 20px;
    background-color: #F5F5F7;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.date-card:hover {
    background-color: #E8E8ED;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.date-card.active {
    background-color: #18181b;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05) translateY(-4px);
    border-color: #18181b;
}

.date-card .day {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 4px;
    font-weight: 600;
}

.date-card .date {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.date-card.active .day {
    opacity: 0.9;
    color: #d4d4d8;
}

.time-pill {
    padding: 16px;
    border-radius: 16px;
    background-color: #F5F5F7;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    border: 1px solid transparent;
}

.time-pill:hover {
    background-color: #E8E8ED;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.time-pill.active {
    background-color: #7c3aed;
    color: white;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    border-color: #7c3aed;
    transform: scale(1.05);
}

#successMessage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.95);
}

#successMessage.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

#mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

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

.horizontal-wrapper {
    display: flex;
    height: 100%;
    width: 500%;
    flex-direction: row;
    position: absolute;
    top: 0;
    left: 0;
}

.panel {
    width: 100vw;
    height: 100vh;
    position: relative;
    padding: 2rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .horizontal-wrapper {
        flex-direction: column;
        width: 100%;
        position: relative;
        height: auto;
    }

    .panel {
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    #work {
        height: auto !important;
    }
}
