/* Base & Layout */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    outline: none;
    pointer-events: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-button {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(238, 189, 43, 0.4);
    box-shadow: 0 0 15px rgba(238, 189, 43, 0.3);
    transition: all 0.3s ease;
}

.glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(238, 189, 43, 0.9);
    transition: width 0.8s ease;
    z-index: 0;
}

.glass-button span,
.glass-button .material-symbols-outlined {
    position: relative;
    z-index: 1;
}

.glass-button:hover {
    box-shadow: 0 0 25px rgba(238, 189, 43, 0.6);
    border-color: rgba(238, 189, 43, 1);
    color: #181611;
}

.glass-button:hover::before {
    width: 100%;
}

.light-leak {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(238, 189, 43, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

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

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

.delay-700 {
    animation-delay: 0.7s;
}

.tracking-widest-luxury {
    letter-spacing: 0.15em;
}

/* code(1) Specific Styles */
.glass-panel-dark {
    background: rgba(39, 37, 27, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(242, 204, 13, 0.1);
}

.flare-animation {
    position: relative;
    overflow: hidden;
}

.flare-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(242, 204, 13, 0.05) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease-in-out;
    pointer-events: none;
}

.flare-animation:hover::after {
    left: 200%;
    transition: left 1s ease-in-out;
}

.text-glow {
    text-shadow: 0 0 20px rgba(242, 204, 13, 0.3);
}

/* Services Section Styles */
.glass-card {
    background: rgba(26, 25, 21, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bokeh-overlay {
    background: radial-gradient(circle at 20% 30%, rgba(242, 204, 13, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(186, 181, 156, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

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

/* Trust Section Styles */
.bokeh-bg {
    background-color: #181711;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(238, 189, 43, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(238, 189, 43, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(238, 189, 43, 0.03) 0%, transparent 30%);
}

.trust-asset-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trust-asset-hover:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: #eebd2b;
    z-index: 10;
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.6);
}

/* Floating Navigation Bar Styles */
.floating-nav-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    /* Width follows content */
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.floating-nav {
    pointer-events: auto;
    background: rgba(26, 25, 21, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    width: 3.5rem;
    /* Logo only width */
    height: 3.5rem;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.floating-nav:hover {
    width: 820px;
    /* Increased to prevent button cut-off */
    padding: 0.6rem 2rem;
    gap: 2.5rem;
}

/* Doctor Slider Transitions */
.doctor-slide {
    transition: z-index 0s;
}

.slide-portrait,
.slide-info,
.portrait-caption {
    will-change: transform, opacity;
}

.slide-bg {
    pointer-events: none;
}

.flare-animation {
    will-change: transform;
}

.nav-content {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    white-space: nowrap;
}

.floating-nav:hover .nav-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0.2s;
}

@keyframes navAppear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.snap-x {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.snap-center {
    scroll-snap-align: center;
}

/* Cinematic Flare Animation */
@keyframes flareSweep {
    0% {
        left: -100%;
    }

    15%,
    100% {
        left: 200%;
    }
}

.flare-sweep {
    animation: flareSweep 8s infinite ease-in-out;
}

.doctor-slide .slide-portrait {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(238, 189, 43, 0.2);
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px rgba(238, 189, 43, 0.5);
        opacity: 1;
        transform: scale(1.05);
    }
}

.animate-glow {
    animation: pulse-glow 2.5s infinite ease-in-out;
}