
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #FFFFFF;
    color: #171717;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
}

::-moz-selection {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    will-change: transform;
}

.glass-card-light:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.14), 0 16px 32px -8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    pointer-events: none;
}

[data-aos].aos-animate {
    opacity: 1;
    pointer-events: auto;
}

[data-aos="fade-up"] {
    transform: translate3d(0, 60px, 0);
}

[data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0);
}

[data-aos="fade-down"] {
    transform: translate3d(0, -60px, 0);
}

[data-aos="fade-down"].aos-animate {
    transform: translate3d(0, 0, 0);
}

[data-aos="fade-left"] {
    transform: translate3d(60px, 0, 0);
}

[data-aos="fade-left"].aos-animate {
    transform: translate3d(0, 0, 0);
}

[data-aos="fade-right"] {
    transform: translate3d(-60px, 0, 0);
}

[data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0);
}

[data-aos="zoom-in"] {
    transform: scale3d(0.9, 0.9, 1);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale3d(1, 1, 1);
}

[data-aos="zoom-in-up"] {
    transform: translate3d(0, 60px, 0) scale3d(0.9, 0.9, 1);
}

[data-aos="zoom-in-up"].aos-animate {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

[data-aos="flip-up"] {
    transform: perspective(2500px) rotateX(-30deg);
    transform-origin: center bottom;
}

[data-aos="flip-up"].aos-animate {
    transform: perspective(2500px) rotateX(0);
}

[data-aos="slide-up"] {
    transform: translate3d(0, 100%, 0);
}

[data-aos="slide-up"].aos-animate {
    transform: translate3d(0, 0, 0);
}

[data-aos="cinematic-reveal"] {
    opacity: 0;
    transform: translate3d(0, 80px, 0) scale3d(0.95, 0.95, 1);
    filter: blur(8px);
}

[data-aos="cinematic-reveal"].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    filter: blur(0);
}

[data-aos][data-aos-duration="400"] { transition-duration: 400ms; }
[data-aos][data-aos-duration="600"] { transition-duration: 600ms; }
[data-aos][data-aos-duration="800"] { transition-duration: 800ms; }
[data-aos][data-aos-duration="1000"] { transition-duration: 1000ms; }
[data-aos][data-aos-duration="1200"] { transition-duration: 1200ms; }
[data-aos][data-aos-duration="1400"] { transition-duration: 1400ms; }

[data-aos][data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos][data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos][data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos][data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos][data-aos-delay="500"] { transition-delay: 500ms; }
[data-aos][data-aos-delay="600"] { transition-delay: 600ms; }
[data-aos][data-aos-delay="700"] { transition-delay: 700ms; }
[data-aos][data-aos-delay="800"] { transition-delay: 800ms; }

[data-aos][data-aos-easing="ease-out-quart"] {
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-aos][data-aos-easing="ease-out-expo"] {
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

[data-aos][data-aos-easing="ease-out-back"] {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-aos][data-aos-easing="ease-in-out-quart"] {
    transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
}

.fade-up {
    opacity: 0;
    transform: translate3d(0, 60px, 0);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.fade-up.aos-animate,
.fade-up.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

[data-aos-stagger] > *:nth-child(1) { transition-delay: 0ms; }
[data-aos-stagger] > *:nth-child(2) { transition-delay: 100ms; }
[data-aos-stagger] > *:nth-child(3) { transition-delay: 200ms; }
[data-aos-stagger] > *:nth-child(4) { transition-delay: 300ms; }
[data-aos-stagger] > *:nth-child(5) { transition-delay: 400ms; }
[data-aos-stagger] > *:nth-child(6) { transition-delay: 500ms; }

button, a {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.group:hover img {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.group:hover .group-hover\:scale-110 {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes smoothBounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }
    50% {
        transform: translateY(-12px) translateX(-50%);
        opacity: 0.7;
    }
}

.animate-bounce {
    animation: smoothBounce 2.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

input, textarea, select {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

::placeholder {
    color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0.5;
}

select option {
    background-color: #FFFFFF;
    color: #171717;
    padding: 0.75rem;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

input[type="checkbox"]:checked {
    background: #000000;
    border-color: #000000;
    transform: scale(1.05);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.2s ease-out;
}

@keyframes checkmark {
    from {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #000000;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

nav a:hover::after {
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

p {
    line-height: 1.75;
}

blockquote {
    font-style: normal;
    quotes: none;
}

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

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.reveal-mask {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-mask.is-visible {
    clip-path: inset(0 0 0 0);
}

@media (max-width: 768px) {
    .glass-panel-light,
    .glass-card-light {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    [data-aos] {
        transition-duration: 600ms !important;
    }

    [data-aos="fade-up"],
    [data-aos="fade-down"] {
        transform: translate3d(0, 40px, 0);
    }

    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: translate3d(30px, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.htmx-request {
    opacity: 0.7;
    pointer-events: none;
}

button.htmx-request {
    position: relative;
    color: transparent !important;
}

button.htmx-request::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media print {
    .glass-panel-light,
    .glass-card-light {
        background: #FFFFFF;
        border: 1px solid #E5E5E5;
        box-shadow: none;
        backdrop-filter: none;
    }

    header,
    footer {
        display: none;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

