:root {
    --bg-dark: #020617;
    --bg-darker: #030b1a;
    --glow-cyan: #3fffe0;
    --glow-blue: #4a6bff;
    --glow-light: #9dfffe;
    --text-main: #e6f2ff;
    --text-muted: rgba(230, 242, 255, 0.6);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: default;
    scroll-behavior: smooth;
}

/* Backgrounds */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

#app-core {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.layer {
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    opacity: 0.1;
    transform: translateY(40px);
    transition: opacity 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.layer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism */
.glass-panel {
    background: rgba(3, 11, 26, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(63, 255, 224, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 12px;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--glow-cyan);
    text-shadow: 0 0 20px rgba(63, 255, 224, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    align-items: center;
    text-align: center;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.15em;
    color: var(--glow-light);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.sub-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    text-decoration: none;
    color: var(--text-main);
    padding: 1rem 2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border-color: rgba(63, 255, 224, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(63, 255, 224, 0.1);
    box-shadow: 0 0 20px rgba(63, 255, 224, 0.4);
    color: var(--glow-cyan);
}

.breathing-glow {
    animation: breath 6s infinite alternate cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes breath {
    0% {
        text-shadow: 0 0 10px rgba(74, 107, 255, 0.5),
            0 0 20px rgba(74, 107, 255, 0.3);
    }

    100% {
        text-shadow: 0 0 20px rgba(63, 255, 224, 0.8),
            0 0 40px rgba(63, 255, 224, 0.5),
            0 0 60px rgba(74, 107, 255, 0.3);
    }
}

/* Philosophy */
.philosophy-section {
    align-items: center;
}

.content-box {
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(74, 107, 255, 0.05) 0%, transparent 60%);
    animation: rotateGlow 20s linear infinite;
    z-index: -1;
}

@keyframes rotateGlow {
    100% {
        transform: rotate(360deg);
    }
}

.content-box p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.glow-text-subtle {
    color: var(--glow-cyan);
    text-shadow: 0 0 10px rgba(63, 255, 224, 0.4);
    font-weight: 400;
}

.text-center {
    text-align: center;
}

.border-cyan {
    border-color: rgba(63, 255, 224, 0.3);
    box-shadow: 0 8px 32px 0 rgba(63, 255, 224, 0.1);
}

.final-statement {
    margin-top: 2rem !important;
    font-size: 1.4rem !important;
    font-weight: 500;
    color: var(--glow-cyan);
    letter-spacing: 0.1em;
}

/* Projects / Nodes */
.projects-section {
    align-items: center;
}

.nodes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    perspective: 1000px;
    width: 100%;
}

.thought-node {
    flex: 1 1 300px;
    max-width: 350px;
    padding: 3rem 2rem;
    position: relative;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: crosshair;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.thought-node::before {
    content: '';
    position: fixed;
    /* It will be relative to container, wait no */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.thought-node:hover {
    box-shadow: 0 15px 40px rgba(74, 107, 255, 0.2);
    border-color: rgba(63, 255, 224, 0.4);
}

.node-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--glow-cyan), transparent);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px var(--glow-cyan);
    animation: pulseNode 4s infinite alternate ease-in-out;
}

.thought-node:nth-child(2) .node-icon {
    background: radial-gradient(circle at center, var(--glow-blue), transparent);
    box-shadow: 0 0 20px var(--glow-blue);
    animation-delay: -1.5s;
}

.thought-node:nth-child(3) .node-icon {
    background: radial-gradient(circle at center, var(--glow-light), transparent);
    box-shadow: 0 0 20px var(--glow-light);
    animation-delay: -3s;
}

.thought-node:nth-child(4) .node-icon {
    background: radial-gradient(circle at center, var(--glow-cyan), transparent);
    box-shadow: 0 0 20px var(--glow-cyan);
    animation-delay: -0.8s;
}

@keyframes pulseNode {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
        box-shadow: 0 0 10px currentColor;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 25px currentColor;
    }
}

.thought-node h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.care-text-container {
    margin-top: 5rem;
    text-align: center;
    width: 100%;
}

.care-text {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.care-text .highlight {
    color: var(--glow-light);
    font-weight: 400;
    text-shadow: 0 0 15px rgba(157, 255, 254, 0.4);
}

/* Memory Links */
.memory-links-section {
    align-items: center;
}

.memory-particles {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.link-particle {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    cursor: pointer;
}

.particle-core {
    display: block;
    width: 16px;
    height: 16px;
    background: var(--glow-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--glow-cyan), 0 0 30px var(--glow-blue);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    animation: float 4s infinite ease-in-out;
}

.link-particle:nth-child(2) .particle-core {
    animation-delay: -1.3s;
    background: var(--glow-blue);
    box-shadow: 0 0 15px var(--glow-blue), 0 0 30px var(--glow-cyan);
}

.link-particle:nth-child(3) .particle-core {
    animation-delay: -2.6s;
    background: var(--glow-light);
    box-shadow: 0 0 15px var(--glow-light), 0 0 30px var(--glow-blue);
}

.link-particle:hover .particle-core {
    transform: scale(2);
    box-shadow: 0 0 30px var(--glow-cyan), 0 0 60px #fff;
    animation-play-state: paused;
}

.particle-label {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0.7;
}

.link-particle:hover .particle-label {
    color: var(--glow-cyan);
    opacity: 1;
    transform: translateY(5px);
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(-12px) translateX(6px);
    }

    66% {
        transform: translateY(8px) translateX(-6px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(63, 255, 224, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(63, 255, 224, 0.6);
}

@media (max-width: 768px) {
    .content-box {
        padding: 2rem;
    }

    .memory-particles {
        gap: 3rem;
    }
}