body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Montserrat', Arial, sans-serif;
    background: #14151a;
}

#wireframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.wireframe-box {
    position: absolute;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid rgba(60,70,100,0.09);
    transition: box-shadow 0.18s, border-color 0.18s;
    pointer-events: auto;
    z-index: 0;
}

.wireframe-box.glow {
    background: #fff;
    border-color: #fff;
    box-shadow: none;
    z-index: 1;
}

.main {
    width: 100%;
    min-height: calc(100vh - 64px);
    background: rgba(20, 22, 28, 0.98);
    font-family: 'Inter', 'Montserrat', Arial, sans-serif;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    padding: 40px 0 56px 0;
    border-radius: 24px;
    margin: 48px auto 32px auto;
    max-width: 800px;
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.title-spacer {
    height: 8px;
}

.title {
    position: relative;
    display: block;
    padding: 12px 32px;
    border: none;
    border-radius: 999px;
    color: #dbe4ee;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    margin-top: 8px;
    background: transparent;
    z-index: 0;
    overflow: hidden;
    letter-spacing: 2px;
    box-shadow: 0 2px 16px 0 rgba(60,70,100,0.10);
}

.title span {
    position: relative;
    z-index: 2;
}

.title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(270deg, #49516f, #7a8ba7, #23243a, #49516f);
    background-size: 1200% 1200%;
    animation: rainbow-border 8s linear infinite;
    z-index: 0;
    pointer-events: none;
    filter: blur(1px) brightness(0.85);
    opacity: 0.7;
}

.title::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 999px;
    background: #14151a;
    z-index: 1;
    pointer-events: none;
}

.subtitle {
    color: #7a8ba7;
    text-align: center;
    font-family: 'Inter', 'Montserrat', Arial, sans-serif;
    font-size: 1.3rem;
    margin-top: 8px;
    margin-bottom: 32px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #23243a33;
}

.about, .projects, .contact {
    background: rgba(28, 30, 38, 0.98);
    border-radius: 20px;
    margin: 0 auto 0 auto;
    margin-bottom: 20px;
    max-width: 650px;
    padding: 28px 32px;
    color: #dbe4ee;
    font-family: 'Inter', 'Montserrat', Arial, sans-serif;
    box-shadow: 0 4px 24px rgba(73,81,111,0.10);
    border: 1px solid rgba(73,81,111,0.13);
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.about.visible, .projects.visible, .contact.visible {
    opacity: 1;
    transform: none;
}

.about h2, .projects h2, .contact h2 {
    color: #49516f;
    margin-top: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project {
    background: rgba(20, 22, 28, 0.85);
    border-radius: 14px;
    padding: 20px 26px;
    color: #7a8ba7;
    box-shadow: 0 2px 8px rgba(73,81,111,0.10);
    border: 1px solid rgba(73,81,111,0.10);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    margin-bottom: 0;
}

.project:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 24px rgba(73,81,111,0.13);
    background: rgba(73,81,111,0.13);
    color: #dbe4ee;
}

.project h3 {
    margin: 0 0 8px 0;
    color: #7a8ba7;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.project p {
    margin: 0;
    color: #dbe4ee;
    font-family: 'Inter', 'Montserrat', Arial, sans-serif;
    font-size: 1.02rem;
}

.contact a {
    color: #7a8ba7;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    font-family: 'Fira Mono', 'Inter', 'Montserrat', Arial, sans-serif;
}

.contact a:hover {
    color: #49516f;
}

.main, .title-spacer, .title, .subtitle, .about, .projects, .contact {
    position: relative;
    z-index: 2;
}

@keyframes rainbow-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}