::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #fbf9f6;
    color: #1e293b;
    overflow-x: hidden;
}

.glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.text-grad {
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-nav {
    transition: transform 360ms ease, opacity 360ms ease;
}

.site-nav.nav-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-120%);
}

.nav-shell {
    transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.nav-mobile {
    overflow: hidden;
}

.nav-link {
    position: relative;
    z-index: 10;
    color: #71717a;
    transition: color 300ms ease;
}

.nav-link.active,
.nav-link:hover {
    color: #18181b;
}

@media (min-width: 768px) {
    .nav-link.active,
    .nav-link:hover {
        color: #ffffff !important;
        background-color: transparent !important;
    }

    .nav-links:hover .nav-link.active {
        color: #71717a !important;
    }

    .nav-links:hover .nav-link.active:hover {
        color: #ffffff !important;
    }

    [data-lang-wrap]:hover a[id^="lang-btn-"].active {
        color: #71717a !important;
    }

    [data-lang-wrap]:hover a[id^="lang-btn-"].active:hover {
        color: #ffffff !important;
    }
}

.nav-mobile .nav-link.active,
.nav-mobile .nav-link:hover {
    background-color: #18181b !important;
    color: #ffffff !important;
}

.nav-cursor {
    position: absolute;
    background-color: #18181b;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

.nav-toggle-icon {
    position: relative;
    width: 20px;
    height: 14px;
}

.nav-toggle-icon span {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #111111;
    border-radius: 9999px;
    top: 5px;
}

.nav-toggle-icon .line-1 {
    left: 0;
}

.nav-toggle-icon .line-2 {
    left: 8px;
}

.nav-toggle-icon .line-3 {
    left: 16px;
}

.nav-link-inner {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    height: 1.25em;
    line-height: 1.25em;
}

.nav-link-text {
    display: block;
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-text-hover {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: block;
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover .nav-link-text,
.nav-link.active .nav-link-text {
    transform: translateY(-100%);
}

.nav-link:hover .nav-link-text-hover,
.nav-link.active .nav-link-text-hover {
    transform: translateY(-100%);
}

@media (max-width: 767px) {
    .site-nav .nav-shell {
        background-color: #f4f4f5;
        border-color: #e4e4e7;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }
}

@media (min-width: 768px) {
    .site-nav .nav-shell,
    .site-nav.scrolled .nav-shell {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

.ios-section {
    isolation: isolate;
}

.ios-section-head {
    position: relative;
}

.ios-card {
    --ios-tilt-x: 0deg;
    --ios-tilt-y: 0deg;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45)),
        rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.75rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 18px 55px rgba(59, 130, 246, 0.06);
    transform: perspective(1000px) rotateX(var(--ios-tilt-y)) rotateY(var(--ios-tilt-x)) translateZ(0);
    will-change: transform;
}

.ios-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.1);
}

.ios-chip {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ios-chip:hover,
.ios-chip.is-active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-3px);
}

.ios-project-card:active,
.ios-chip:active,
.ios-press:active {
    transform: scale(0.98);
}

.ios-button {
    background: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 12px 34px rgba(37, 99, 235, 0.2);
}

.ios-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.ios-modal {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)),
        rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 30px 100px rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.folder-footer {
    background: #a78bfa !important;
    clip-path: polygon(0 0, 12rem 0, 15rem 3rem, 100% 3rem, 100% 100%, 0 100%);
    padding-top: 6rem;
    color: #09090b;
    position: relative;
}

.folder-footer .footer-link {
    color: #09090b;
    transition: color 220ms ease, transform 220ms ease;
}

.folder-footer .footer-link:hover {
    color: #ffffff;
}

.folder-footer .footer-label {
    color: rgba(9, 9, 11, 0.6);
}

.professional-footer {
    border-top: none;
}

.footer-panel {
    box-shadow: none;
}

.footer-label {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-link {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.5;
    transition: color 220ms ease, transform 220ms ease;
}

.footer-link:hover {
    transform: translateX(3px);
}

.hero-shell {
    isolation: isolate;
    background: #fbf9f6;
}

.hero-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-name {
    color: #1e293b;
    pointer-events: none !important;
}

#hero-title-2-b {
    transition: max-height 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 400ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 1.5em;
    opacity: 1;
    transform: translateY(0);
}

.hero-title-wrapper.is-hovered #hero-title-2-b {
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    overflow: hidden;
}

.hero-title-wrapper {
    height: 1.85em;
    min-height: 1.85em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: clamp(2.2rem, 9.8vw, 3rem);
}

.hero-title {
    font-size: 1em !important;
    pointer-events: none !important;
}

.hero-scroll {
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.08);
}

@keyframes hero-line {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.1));
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scb-hidden::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .hero-title-wrapper {
        font-size: clamp(5.4rem, 7vw, 7.6rem) !important;
    }

    .hero-corner {
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (max-width: 420px) {
    .hero-visual {
        opacity: 0.9;
        right: -0.75rem;
    }
}

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

html.lenis, html.lenis body {
    height: auto;
}

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

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.quote-phrase {
    color: rgba(24, 24, 27, 0.15);
}

.about-btn-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #18181b;
    top: 0;
    left: 0;
}

.project-image-slide {
    will-change: opacity;
}

@media (min-width: 768px) {
    .project-image-window-wrapper {
        cursor: none;
    }
}

.custom-project-cursor {
    pointer-events: none;
    will-change: transform, opacity;
}

.about-img-container {
    --ios-tilt-x: 0deg;
    --ios-tilt-y: 0deg;
    transform: perspective(1000px) rotateX(var(--ios-tilt-y)) rotateY(var(--ios-tilt-x)) translateZ(0);
    will-change: transform;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.custom-dark-cursor {
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes arrow-ghost {
    0% {
        transform: translateX(0);
        filter: drop-shadow(0px 0px 0px rgba(0,0,0,0));
        opacity: 1;
    }
    30% {
        transform: translateX(3px);
        filter: drop-shadow(-6px 0px 0px rgba(9, 9, 11, 0.45));
    }
    60% {
        transform: translateX(6px);
        filter: drop-shadow(-6px 0px 0px rgba(9, 9, 11, 0.6)) drop-shadow(-12px 0px 0px rgba(9, 9, 11, 0.25));
        opacity: 0.9;
    }
    100% {
        transform: translateX(0);
        filter: drop-shadow(0px 0px 0px rgba(0,0,0,0));
        opacity: 1;
    }
}

.animate-arrow-ghost {
    animation: arrow-ghost 1.4s infinite ease-in-out;
}

#main-nav.nav-in-dark .nav-link {
    color: #a1a1aa;
}

#main-nav.nav-in-dark .nav-cursor {
    background-color: #ffffff !important;
}

@media (min-width: 768px) {
    #main-nav.nav-in-dark .nav-link.active,
    #main-nav.nav-in-dark .nav-link:hover {
        color: #18181b !important;
        background-color: transparent !important;
    }

    #main-nav.nav-in-dark .nav-links:hover .nav-link.active {
        color: #a1a1aa !important;
    }

    #main-nav.nav-in-dark .nav-links:hover .nav-link.active:hover {
        color: #18181b !important;
    }
}

#main-nav.nav-in-dark .lang-label.text-zinc-800 {
    color: #ffffff !important;
}

#main-nav.nav-in-dark .lang-label.text-zinc-400 {
    color: #71717a !important;
}

#main-nav.nav-in-dark .lang-label.text-zinc-400:hover {
    color: #ffffff !important;
}

#main-nav.nav-in-dark .lang-switch-btn {
    border-color: #3f3f46 !important;
    background-color: rgba(39, 39, 42, 0.5) !important;
}

#main-nav.nav-in-dark .lang-switch-handle {
    background-color: #ffffff !important;
    color: #18181b !important;
}

#main-nav.nav-in-dark .nav-toggle {
    background-color: rgba(39, 39, 42, 0.5) !important;
}

#main-nav.nav-in-dark .nav-toggle-icon span {
    background-color: #ffffff !important;
    transition: background-color 300ms ease;
}

@media (max-width: 767px) {
    #main-nav.nav-in-dark .nav-shell {
        background-color: rgba(24, 24, 27, 0.9) !important;
        border-color: rgba(63, 63, 70, 0.4) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }

    #main-nav.nav-in-dark .nav-mobile .nav-link.active,
    #main-nav.nav-in-dark .nav-mobile .nav-link:hover {
        background-color: #ffffff !important;
        color: #18181b !important;
    }
}
