:root {
    --bg: #000;
    --text: #fff;
    --nav-inactive: #777;
    --nav-active: #fff;
    --arrow: #fff;
    --border: #fff;
    --icons: #fff;
}

.light {
    --bg: #fff;
    --text: #000;
    --nav-inactive: #777;
    --nav-active: #000;
    --arrow: #000;
    --border: #000;
    --icons: #000;
}

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

html,
body {
    height: 100%;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.section-1,
.section-2,
.section-3,
.section-4 {
    background: var(--bg);
    color: var(--text);
}

.side-nav {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.side-nav button {
    background: none;
    border: none;
    color: var(--nav-inactive);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    text-align: left;
}

.side-nav button.active {
    color: var(--nav-active);
    transform: translateX(4px);
}

.side-nav button:hover {
    color: #ccc;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 1001;
}

.theme-toggle button {
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    filter: grayscale(100%);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease;
}

.scroll-arrow {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: var(--arrow);
    cursor: pointer;
    z-index: 1000;
    animation: arrowFloat 2s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.2s ease;
    user-select: none;
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes arrowFloat {
    0% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -8px);
    }

    100% {
        transform: translate(-50%, 0);
    }
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    justify-content: center;
}

.pfp {
    border-radius: 50%;
    zoom: 15%;
    border: 15px solid var(--border);
    transition: border 0.4s ease, color 0.4s ease;
}

.name {
    margin: 0;
    font-size: 64px;
}

#bio {
    max-width: 700px;
    margin-top: 8px;
    font-size: 24px;
}

.projects-container {
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.projects-title {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: left;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.projects-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease;
}

.projects-card:hover {
    transform: translateY(-3px);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projects-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projects-header h2 {
    font-size: 28px;
    font-weight: 500;
}

.projects-date {
    display: flex;
    gap: 10px;
    font-size: 18px;
}

.projects-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--nav-inactive);
}

.projects-tech {
    font-size: 13px;
    color: var(--nav-inactive);
}

.projects-links {
    display: flex;
    gap: 10px;
    font-size: 18px;
}

.contacts-container {
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contacts-title {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: left;
}

.contacts-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    min-width: 340px;
    width: 350px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

.discord-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    width: 470px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

.about-container {
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-title {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: left;
}

.about-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    font-size: 24px;
}

i:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}

a:link {
  color: var(--icons);
  text-decoration: none;
}

a:visited {
  color: var(--icons);
  text-decoration: none;
}

.text-link {
  text-decoration: none;
  position: relative;
  color: var(--icons);
}

.text-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 1px dotted currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.text-link:hover::after {
  opacity: 1;
}

a:active {
  color: var(--icons);
  text-decoration: none;
}

a {
    transition: color 0.3s ease;
}

.scroll-container::-webkit-scrollbar {
    width: 0;
}