* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top, #1a1a1a 0%, #000 55%),
        #000;
    color: white;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(#222 1px, transparent 1px),
        linear-gradient(90deg, #222 1px, transparent 1px);
    background-size: 35px 35px;
    opacity: .15;
    z-index: -1;
    animation: grid 20s linear infinite;
}

@keyframes grid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 35px 35px;
    }
}

.container {
    width: 86%;
    max-width: 1100px;
    margin: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 7%;
    border-bottom: 1px solid #222;
}

.logo {
    font-size: 22px;
    letter-spacing: 3px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    margin-left: 20px;
    transition: .3s;
}

nav a:hover {
    color: white;
}

.hero {
    padding: 110px 0 70px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile {
    flex-shrink: 0;
}

.profile img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
    filter: grayscale(100%);
    transition: .4s;
}

.profile img:hover {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.hero h1 {
    font-size: 72px;
    letter-spacing: 3px;
}

.hero h1 span {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    50% {
        opacity: .2;
    }
}

.hero p {
    margin-top: 12px;
    color: #aaa;
    font-size: 18px;
    max-width: 650px;
}

section {
    padding: 35px 0;
    animation: up .8s ease;
}

h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.text {
    color: #aaa;
    max-width: 700px;
    line-height: 1.6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.card {
    animation: float 6s ease-in-out infinite;
}

.card:hover {
    border-color: white;
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: #888;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.skills span {
    display: inline-block;
    border: 1px solid #444;
    padding: 8px 14px;
    margin: 5px 3px;
    color: #ccc;
    transition: .3s;
}

.skills span:hover {
    background: white;
    color: black;
}

.links a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.stats img {
    width: 100%;
    max-width: 500px;
    filter: grayscale(100%);
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    filter: grayscale(100%);
    transition: .4s;
}

.card:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}