@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/oswald-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/playfair-display-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-latin-italic.woff2') format('woff2');
}

:root {
    --facilita-base: #ebedea;
    --facilita-ink: #2d322f;
    --facilita-accent: #3F556B;
    --facilita-dark: #1e2420;
    --facilita-black: #0a0c0b;
    --facilita-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: clip;
}

body.theme-home {
    background-color: var(--facilita-accent);
    color: var(--facilita-base);
}

body.theme-light {
    background-color: var(--facilita-base);
    color: var(--facilita-ink);
}

body.theme-dark {
    background-color: var(--facilita-black);
    color: var(--facilita-base);
}

body.theme-home ::-webkit-scrollbar,
body.theme-light ::-webkit-scrollbar,
body.theme-dark ::-webkit-scrollbar {
    width: 8px;
}

body.theme-home ::-webkit-scrollbar-track {
    background: var(--facilita-accent);
}

body.theme-light ::-webkit-scrollbar-track {
    background: var(--facilita-base);
}

body.theme-dark ::-webkit-scrollbar-track {
    background: var(--facilita-black);
}

body.theme-home ::-webkit-scrollbar-thumb,
body.theme-light ::-webkit-scrollbar-thumb,
body.theme-dark ::-webkit-scrollbar-thumb {
    background: var(--facilita-accent);
    border-radius: 4px;
}

.text-transparent-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--facilita-ink);
    paint-order: stroke fill;
}

.text-transparent-stroke-white {
    color: rgba(255, 255, 255, 0.01);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.7);
    paint-order: stroke fill;
}

.text-transparent-stroke-alpine {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--facilita-accent);
    paint-order: stroke fill;
}

.text-transparent-stroke-white-footer {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    paint-order: stroke fill;
}

.grid-bg-light {
    background-image:
        linear-gradient(to right, rgba(45, 50, 47, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(45, 50, 47, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
}

.grid-bg-dark {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
}

.bg-pattern {
    background-image: radial-gradient(rgba(45, 50, 47, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 50, 47, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(45, 50, 47, 0.15);
    box-shadow: 0 15px 35px rgba(45, 50, 47, 0.05);
}

.glass-panel-dark {
    background: rgba(30, 36, 32, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: var(--facilita-noise);
    opacity: 0.04;
    mix-blend-mode: multiply;
}

.beam-button {
    position: relative;
    overflow: hidden;
}

.beam-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
    transform: skewX(-20deg);
}

.beam-button:hover::before {
    left: 150%;
}

.floating-card {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s;
    will-change: transform;
}

.floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(45, 50, 47, 0.15);
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(63, 85, 107, 0.2);
    border-color: rgba(63, 85, 107, 0.3);
}

.filter-white {
    filter: brightness(0) invert(1);
}

.animate-on-scroll {
    animation-play-state: paused !important;
    opacity: 0;
}

.animate-on-scroll.animate {
    animation-play-state: running !important;
    opacity: 1;
}

@keyframes animationIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes beam-drop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes footerMarquee {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(500%);
    }
}

.shimmer-line {
    position: relative;
    overflow: hidden;
}

.shimmer-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer-beam 3s infinite ease-in-out;
    transform: translateX(-100%);
}

@keyframes shimmer-beam {
    0% {
        transform: translateX(-100%);
    }
    50%, 100% {
        transform: translateX(400%);
    }
}

.shimmer-line-reverse {
    position: relative;
    overflow: hidden;
}

.shimmer-line-reverse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer-beam-reverse 3s infinite ease-in-out;
    transform: translateX(400%);
}

@keyframes shimmer-beam-reverse {
    0% {
        transform: translateX(400%);
    }
    50%, 100% {
        transform: translateX(-100%);
    }
}

/* ── Running border animation ── */

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

#main-header .reveal-elem > a[href="#footer-section"],
#main-header .reveal-elem > a[href="./contact.html"] {
    position: relative;
    border-color: transparent !important;
}

#main-header .reveal-elem > a[href="#footer-section"]::after,
#main-header .reveal-elem > a[href="./contact.html"]::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid transparent;
    background:
        conic-gradient(
            from var(--border-angle),
            transparent 55%,
            rgba(255, 255, 255, 0.4) 72%,
            white 80%,
            rgba(255, 255, 255, 0.4) 88%,
            transparent 100%
        ) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0) border-box;
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0) border-box;
    mask-composite: exclude;
    animation: border-rotate 4s linear infinite;
    pointer-events: none;
}

#main-header .reveal-elem > a[href="#footer-section"]:hover,
#main-header .reveal-elem > a[href="./contact.html"]:hover {
    border-color: white !important;
}

#main-header .reveal-elem > a[href="#footer-section"]:hover::after,
#main-header .reveal-elem > a[href="./contact.html"]:hover::after {
    animation: none;
    opacity: 0;
}

@keyframes border-rotate {
    to {
        --border-angle: 360deg;
    }
}
