:root {
    --border-radius-soft: 12px;
    --border-radius-round: 18px;
    --border-radius-pill: 50px;
    --transition-std: all 0.35s ease-in-out;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: rgba(224, 224, 224, 0.7);
    --muted-text-color: rgba(224, 224, 224, 0.5);
    --border-color-subtle: rgba(255, 255, 255, 0.1);
    --background-color-page: #000000;
    --glass-base-bg: rgba(0, 0, 0, 0.5);
    --button-primary-bg: #f0f0f0;
    --button-primary-text: #0a0a0a;
    --button-primary-hover-bg: #ffffff;
    --success-color: #90ee90;
    --error-color: #ff8f92;
    --info-color: #87ceeb;
    --accent-color: #bdbdbd;
    --image-fade: rgba(0, 0, 0, 1);
    --gradient-start: rgba(0, 0, 0, 0);
    --gradient-middle: rgba(0, 0, 0, 0.5);
    --gradient-end: rgba(0, 0, 0, 1);
    --gradient-middle-pos: 40%;
    --gradient-end-pos: 70%;
}

body.light-theme {
    --primary-text-color: #1d1d1f;
    --secondary-text-color: rgba(29, 29, 31, 0.7);
    --muted-text-color: rgba(29, 29, 31, 0.5);
    --border-color-subtle: rgba(0, 0, 0, 0.1);
    --background-color-page: #f5f5f7;
    --glass-base-bg: rgba(255, 255, 255, 0.6);
    --button-primary-bg: #000000;
    --button-primary-text: #ffffff;
    --button-primary-hover-bg: #000000;
    --accent-color: #000000;
    --image-fade: rgba(255, 255, 255, 1);
    --gradient-start: rgba(255, 255, 255, 0);
    --gradient-middle: rgba(255, 255, 255, 0.5);
    --gradient-end: rgba(255, 255, 255, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    position: relative;
    background-color: var(--background-color-page);
    background-image: linear-gradient(to right, var(--border-color-subtle) 1px, transparent 1px), linear-gradient(to bottom, var(--border-color-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 4rem 1rem;
    overflow-x: hidden;
    transition: background-color 0.4s ease;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-middle) var(--gradient-middle-pos), var(--gradient-end) var(--gradient-end-pos));
    z-index: 1;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--cursor-x) var(--cursor-y), hsla(0, 0%, 100%, 0.363) 50px, hsla(0, 0%, 100%, 0.125) 150px, transparent 300px);
    mask-image: linear-gradient(to right, white 1px, transparent 1px), linear-gradient(to bottom, white 1px, transparent 1px);
    -webkit-mask-image: linear-gradient(to right, white 1px, transparent 1px), linear-gradient(to bottom, white 1px, transparent 1px);
    mask-size: 60px 60px;
    -webkit-mask-size: 60px 60px;
    mask-position: center;
    -webkit-mask-position: center;
    opacity: var(--cursor-opacity, 0);
    transition: opacity 0.3s ease-out;
    z-index: 0;
}

body.light-theme::after {
    background: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(0, 0, 0, 0.15) 50px, rgba(0, 0, 0, 0.2) 150px, transparent 300px);
}

.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--glass-base-bg);
    border: 1px solid var(--border-color-subtle);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    transition: var(--transition-std);
    backdrop-filter: blur(10px);
}

.theme-switcher:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-switcher .sun-icon,
.theme-switcher .moon-icon {
    font-size: 20px;
    position: absolute;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.theme-switcher .sun-icon {
    color: #f39c12;
    transform: translateY(-150%);
    opacity: 0;
}

.theme-switcher .moon-icon {
    color: #f1c40f;
    transform: translateY(0);
    opacity: 1;
}

body.light-theme .theme-switcher .sun-icon {
    transform: translateY(0);
    opacity: 1;
}

body.light-theme .theme-switcher .moon-icon {
    transform: translateY(150%);
    opacity: 0;
}

.blurry-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.blurry-orbs>div {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
    animation: moveOrb 15s infinite alternate;
}

.blurry-orbs>div:nth-child(1) {
    height: 250px;
    width: 250px;
    top: 10%;
    left: 5%;
    animation-duration: 25s;
}

.blurry-orbs>div:nth-child(2) {
    height: 200px;
    width: 200px;
    top: 60%;
    right: 10%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.blurry-orbs>div:nth-child(3) {
    height: 150px;
    width: 150px;
    bottom: 5%;
    left: 20%;
    animation-duration: 20s;
}

@keyframes moveOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(120px, -80px) scale(1.4);
    }

    100% {
        transform: translate(-40px, 100px) scale(0.8);
    }
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.content-wrapper {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-header {
    margin-bottom: 3rem;
    animation-delay: 0.1s;
}

.hero-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--primary-text-color);
}

.hero-header .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 1rem auto 0;
}

.content-section {
    margin-bottom: 2.5rem;
    animation-delay: 0.2s;
}

.content-section:nth-of-type(2) {
    animation-delay: 0.3s;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text-color);
    margin-bottom: 1.5rem;
    text-align: left;
}

.content-section p,
.content-section li {
    color: var(--secondary-text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
    max-width: 700px;
    text-align: left;
}

.content-section a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color-strong);
    transition: border-color 0.3s ease;
}

.content-section a:hover {
    border-color: var(--accent-color);
}


.page-footer {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--muted-text-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color-subtle);
    margin-top: auto;
    z-index: 1000;
}

.page-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-footer a {
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: var(--transition-std);
}

.page-footer a:hover {
    color: var(--primary-text-color);
}

@media (max-width: 640px) {
    body {
        padding: 0.75rem;
    }

    main {
        padding: 3rem 0.75rem;
    }

    .theme-switcher {
        top: 15px;
        right: 15px;
    }

    .hero-header h1 {
        font-size: 2.2rem;
    }

    .hero-header .subtitle {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.25rem;
    }

    .content-section p,
    .content-section li {
        font-size: 0.95rem;
    }
}