:root {
    --bg: #0f1115;
    --bg-soft: #161a22;
    --title: #e6e8ee;
    --text: #9aa0aa;
    --highlight-bg: #4F8CFF26;
    --highlight-border: #4F8CFF66;
    --radius: 12px;
}

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

body {
    font-family: "Inter", system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--title);
    min-height: 100vh;
}

strong {
    color: var(--title);
}

header {
    background-color: var(--bg-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

nav {
    max-width: 1300px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#logo {
    font-weight: 600;
    font-size: 1.4rem;
}

#nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

nav button {
    height: 35px;
    background-color: transparent;
    color: var(--text);
    border: 1px solid transparent;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease;

     /* This disables text selection ability */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;

    display: flex;
    align-items: center;
    justify-items: center;
}

nav .active {
    color: var(--title);
}

nav button:not(:has(img)):hover {
    background-color: var(--highlight-bg);
    color: var(--title);
    border-color: var(--highlight-border);
}

nav img {
    height: 200%;
}


nav button:hover img {
    animation: rotate 0.8s ease;
}

main {
    display: grid;
    grid-template-columns: 1fr 420px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
    gap: 25px;
}

/* This will fix layout on mobile (just a bit, it still looks bad) */
@media (max-width: 850px) {
    main {
        grid-template-columns: 1fr;
    }
}

.card {
    display: flex;
    background-color: var(--bg-soft);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.4s ease;
    flex-direction: column;
    gap: 0.8rem;
}

.card h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text);
    line-height: 1.6;
    max-width: 800px;
}

.card-image {
    position: sticky;
    top: 24px;
    align-self: start;
    background-color: var(--bg-soft);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.4s ease;
}

.card-image img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    display: block;
}

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

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    75% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}