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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #FFFDF7;
    color: #1a1a1a;
    min-height: 100vh;
    margin: auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    text-align: center;
    line-height: 1.6;
}

::selection {
    background-color: #1a1a1a;
    color: #FFFDF7;
}

ul {
    list-style-type: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

/* Scroll-reveal animation*/
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger delay for child elements */
.reveal.visible .project:nth-child(1),
.reveal.visible .skill-category-block:nth-child(1) { transition-delay: 0.05s; }
.reveal.visible .project:nth-child(2),
.reveal.visible .skill-category-block:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible .project:nth-child(3),
.reveal.visible .skill-category-block:nth-child(3) { transition-delay: 0.15s; }
.reveal.visible .skill-category-block:nth-child(4) { transition-delay: 0.2s; }