* {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    box-sizing: border-box;
}

:root {
    --bg: #c8e6c9;
    --text: #1b5e20;
    --muted-text: rgba(27, 94, 32, 0.75);
    --accent: #44c24c;
    --toggle-bg: #1b5e20;
    --toggle-fg: #c8e6c9;
    --border: #1b5e20;
    --shadow: rgba(27, 94, 32, 0.35);
}

.dark-scroll { display: none; }
body.dark-theme .light-scroll { display: none; }
body.dark-theme .dark-scroll { display: block; }


body {
    color: var(--text);
    background-color: var(--bg);
    font-size: clamp(0.25rem, 1.4vw, 1.75rem);
    max-width: 100%;
    max-height: 100%;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-bottom: 4rem;
}

body.dark-theme {
    color: var(--text);
    background-color: var(--bg);
}

.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    background: var(--toggle-bg);
    color: var(--toggle-fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 100;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

body.dark-theme .theme-toggle {
    background: var(--toggle-bg);
    color: var(--toggle-fg);
}

.theme-toggle:hover {
    transform: scale(1.08);
}

.message {
    position: fixed;
    top: 1.5rem;
    right: 6rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    background: var(--toggle-bg);
    color: var(--toggle-fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 100;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

body.dark-theme .message {
    background: var(--toggle-bg);
    color: var(--toggle-fg);
}

.message:hover {
    transform: scale(1.08);
}

.navigation-bar {
    position: relative;
    top: 1rem;
    text-align: center;
}

.navigation-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation-bar li {
    margin: 0 1rem;
    display: inline-block;
}

.navigation-bar li a:hover {
    color: var(--accent);
}

.navigation-bar a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    color: var(--text);
    transition: color 0.3s ease;
}

.navigation-bar a:link,
.navigation-bar a:visited {
    color: var(--text);
    text-decoration: none;
}

body.dark-theme .navigation-bar a,
body.dark-theme .navigation-bar a:link,
body.dark-theme .navigation-bar a:visited {
    color: var(--text);
}

body.dark-theme .navigation-bar li a:hover {
    color: var(--accent);
}

.profile {
    position: fixed;
    border-radius: 15rem;
    right: 26%;
    top: 32.5%;
    width: clamp(14rem, 22vw, 32.5rem);
    transform: translate(-140%, -10%);
    transition: color 0.3s ease;
    border: 4px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow);
}

body.dark-theme .profile {
    border-color: var(--text);
    box-shadow: 0 8px 24px rgba(197, 225, 197, 0.25);
}

.desc-frame {
    position: fixed;
    right: 23%;
    top: 52.5%;
    transform: translate(10%, -50%);
    z-index: 1;
}

.description {
    min-height: 30vh;
    max-height: 36vh;
    padding-right: 4rem;
    overflow-y: auto;
    font-size: clamp(1rem, 1.5vw, 1.75rem);
    text-align: center;
    scrollbar-width: none;
}

.description::webkit-scrollbar {
    width: 0;
    height: 0;
}

.scroll {
    position: absolute;
    right: 0.75rem;
    top: 14%;
    bottom: 14%;
    width: 0.55rem;
    pointer-events: none;
}

.track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    inset: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
}

.bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 20%;
    border-radius: 999px;
    background: var(--text);
    transform: translateY(0);
    transition: transform 0.08s linear;
}

body.dark-theme .track {
    background: rgba(255, 255, 255, 0.14);
}

.description h1 {
    max-width: 60vh;
}

.description h2 {
    max-width: 60vh;
    position: relative;
    font-size: clamp(1rem, 2.25vw, 2.75rem);
    top: 5rem;
}

.description h3 {
    max-width: 60vh;
    position: relative;
    top: 10rem;
}

.description a,
.description a:visited {
    color: #ce7575;
    text-decoration: none;
    transition: color 0.3s ease;
}

.description a:hover {
    color: #ff9494;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(2px);
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
    will-change: opacity, transform, filter;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  .reveal-stagger .reveal {
    transition-delay: calc(var(--i, 0) * 120ms);
  }
  
  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
      transition: none !important;
    }
  }

.social-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 1.25rem;
}

.social-buttons ul {
    display: flex;
}

.social-buttons ul i {
    position: relative;
    top: 0.4rem;
    font-size: 1.15rem;
}

.social-buttons ul li {
    list-style: none;
    margin: 0 1rem;
}

.social-buttons ul li a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

.social-buttons ul li a:link,
.social-buttons ul li a:visited {
    color: var(--text);
}

.social-buttons ul li:nth-child(1) a:hover {
    color: #0090de;
}

.social-buttons ul li:nth-child(3) a:hover {
    color: #a9a9a9;
}

.social-buttons ul li:nth-child(5) a {
    background-size: 100% 200%;
    background-position: center 0%;
    transition: background-position 0.3s ease;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to bottom, var(--text) 0%, var(--text) 50%, #f9ce34 50%, #ee2a7b 75%, #6228d7 100%);
}

.social-buttons ul li:nth-child(5) a:hover {
    background-position: center 100%;
}

body.dark-theme .social-buttons ul li:nth-child(1) a,
body.dark-theme .social-buttons ul li:nth-child(3) a, 
body.dark-theme .social-buttons ul li a:link,
body.dark-theme .social-buttons ul li a:visited {
    color: var(--text);
}

body.dark-theme .social-buttons ul li:nth-child(5) a {
    background-size: 100% 200%;
    background-position: center 0%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to bottom, var(--text) 0%, var(--text) 50%, #f9ce34 50%, #ee2a7b 75%, #6228d7 100%);
}

body.dark-theme .social-buttons ul li:nth-child(1) a:hover {
    color: #0090de;
}

body.dark-theme .social-buttons ul li:nth-child(3) a:hover {
    color: #a9a9a9;
}

body.dark-theme .social-buttons ul li:nth-child(5) a:hover {
    background-position: center 100%;
}

.palette-toggle {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    background: var(--toggle-bg);
    color: var(--toggle-fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    z-index: 101;
    transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
}

.palette-toggle:hover { transform: scale(1.08); }

.palette-panel {
    position: fixed;
    left: 1.25rem;
    top: 5.75rem;
    width: 15.5rem;
    max-height: 8.5rem;
    border-radius: 1.25rem;
    padding: 0.25rem 0.9rem 0.8rem;
    backdrop-filter: blur(10px);
    background: var(--toggle-bg);
    border: 1px solid rgba(0, 0, 0, 0.539);
    z-index: 101;
    transform: translateX(calc(-100% - 1.5rem));
    transition: transform 0.25s ease;
}

body.dark-theme .palette-panel {
    background: var(--toggle-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.palette-panel.open {
    transform: translateX(0);
}

.palette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.palette-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.6rem;
}

.palette-swatch {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.85rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, border-color 0.3s ease;
}

body.dark-theme .palette-swatch {
    border-color: rgba(255, 255, 255, 0.14);
}

.palette-swatch:hover { transform: translateY(-2px); }

.palette-swatch.active::after {
    content: "";
    position: absolute;
    inset: 0rem;
    border-radius: 0.85rem;
    border: 3px solid #707070;
    opacity: 0.95;
}

.palette-hint {
    font-size: 0.9rem;
    color: var(--muted-text);
    line-height: 1.1;
}


@media (max-width: 720px) {
    .palette-panel {
        width: 13.5rem;
    }
}
