@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Montserrat:wght@100;200;400;600;800&display=swap');

:root {
    --primary: #be6ade;
    --secondary: #5b1d73;
    --primary-rgb: 250,5,250;
    --nav-link-rgb: 82, 35, 99;
    --nav-link-active-rgb: 255, 100, 255;
    --text-primary: #efebf2;
    --text-secondary: #d5c5e0;
    --text-muted: #79648b;
    --font-primary: 'Fira Code', monospace;
    --font-titles: 'Montserrat', sans-serif;
    --bg-dark: #180d1c;
    --checkerboard-color: 225, 171, 245;
  
    --content-bg-main: #160b1a;
    --content-box-bg-primary: #190b1c;
    --content-box-bg-secondary: #120814;
    --content-box-outline-primary: #5b1d73;
    --content-box-outline-secondary: #be6ade;
    --button-shadow: 164, 87, 181;
    --button-hover-highlight-color: 196, 138, 209;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1500px;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    backdrop-filter: blur(25px) saturate(130%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(
      90deg,
      rgba(var(--primary-rgb), 0.3) 0%,  
      var(--primary) 20%,
      var(--secondary) 50%,
      var(--primary) 80%,
      rgba(var(--primary-rgb), 0.3) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.header-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 2rem;
}

.header .nav-logo {
    position: absolute;
    left: 0rem;
    top: 50%;
    transform: translateY(-50%);
}

.header .logo {
    width: 60px;
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    background: rgba(var(--nav-link-rgb), 0.3);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(var(--nav-link-active-rgb), 0.06);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active .nav-indicator,
.nav-link:hover .nav-indicator {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover, .nav-link.active {
    border-right-color: var(--primary);
    border-left-color: transparent;
}

.nav-link {
    border-left: none;
    border-right: 3px solid transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: -100%;
    transform: rotate(8deg);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(var(--checkerboard-color),0.05) 0 2px,
            transparent 2px 24px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(var(--checkerboard-color),0.05) 0 2px,
            transparent 2px 24px
        );
    background-size: 24px 24px;
    z-index: -2;
    pointer-events: none;
    animation: drift 4s linear infinite;
}

@keyframes drift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 24px 24px, -24px 24px;
    }
}

.content-container {
    display: flex;
    flex-direction: column;
    max-width: 1460px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
    background: var(--content-bg-main);
    min-height: 100vh;
    border-left: 3px solid rgba(var(--primary-rgb), 0.4);
    border-right: 3px solid rgba(var(--primary-rgb), 0.4);
}

.content-box {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: radial-gradient(
        circle at center,
        var(--content-box-bg-primary),
        var(--content-box-bg-secondary) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.content-box.centered{
  display: flex;
  align-items: center;
  text-align: center;
}

.content-box::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--content-box-outline-primary), var(--content-box-outline-secondary), var(--content-box-outline-primary));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.content-spacer {
    height: 2.6rem;
    width: 100%;
}
   
.glass-button {
    max-width: 400px;
    position: relative;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 42px;
    padding: 2px;

    background: linear-gradient(
        60deg,
      #be6ade,
      #9a4fff,
      #6a8cff,
      #4faaff,
      #ff6a9e,
      #be6ade
    );
    background-size: 400% 400%;

    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;

    animation: outline-rotate 7s linear infinite;
}

@keyframes outline-rotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.glass-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(var(--button-hover-highlight-color), 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glass-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 36px rgba(var(--button-shadow), 0.25), 0 0 60px rgba(var(--button-shadow), 0.15);
}

.glass-button:hover::before {
    opacity: 1;
    animation-duration: 5s;
}

.glass-button:hover::after {
    opacity: 1;
}

.glass-button:active {
    transform: translateY(0px) scale(0.97);
    box-shadow: 0 6px 18px rgba(var(--button-shadow), 0.2);
}

.title {
    font-family: var(--font-titles);
    font-weight: 400;
    font-size: 40px;
}

.title.main {
    font-size: clamp(50px, 6vw, 80px);
    font-family: var(--font-titles);
    color: #ffffff;
    position: relative;

    text-shadow:
      0 0 8px rgba(200, 150, 255, 0.4),
      0 0 20px rgba(200, 150, 255, 0.25);

    animation: glow-pulse 2.5s ease-in-out infinite;
}

.title.underlined {
    text-decoration: underline;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(200, 150, 255, 0.25),
            0 0 16px rgba(200, 150, 255, 0.15);
    }

    50% {
        text-shadow:
            0 0 14px rgba(200, 150, 255, 0.6),
            0 0 32px rgba(200, 150, 255, 0.4);
    }
}

.text {
    font-weight: 100;
    max-width: 1000px;
}

.text.medium {
    font-size: 25px;
}

@media (max-width: 1514px) {
    .content-container {
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 700px) {
    .header .logo {
        display: none;
    }
}