/* 
 *
 * Everything that is global 
 * and not tied to a component 
 * belongs here.
 *
 * Reset, body, typography
 *
 */


/*
 * RESET
 */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/*
 * BODY
 */

body {
    background: var(--bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    transition:
        background-color var(--transition-speed),
        color var(--transition-speed);
}

/*
 * LINKS
 */

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

/*
 * SCROLLBAR
 */

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

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-navbar);
    border: 2px solid var(--bg-main);
    border-radius: var(--border-radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/*
 * TYPOGRAPHY / UTILITY
 */

.section-tag {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.section-tag.text-yellow {
    color: var(--color-primary);
}

.section-title {
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--color-text-main);
}

.section-title.text-white {
    color: var(--text-light);
}

.text-yellow {
    color: var(--color-primary) !important;
}

.text-white {
    color: var(--text-light) !important;
}

.text-muted {
    color: var(--gray-450) !important;
}

.text-center {
    text-align: center;
}

/*
 * PAGE TRANSITIONS
 */

.htmx-fade-transition {
    transition: opacity 0.2s ease-in-out;
}

.htmx-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.htmx-swapping {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}