/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #e0e0e0;
    overflow-x: hidden;
    cursor: none;
}

/* ═══════════════════════════════════════
   CANVAS STARFIELD
   ═══════════════════════════════════════ */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

/* ═══════════════════════════════════════
   CURSOR GLOW
   ═══════════════════════════════════════ */
#cursorGlow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    mix-blend-mode: screen;
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    scroll-snap-align: start;
    padding: 60px 40px;
}

/* ═══════════════════════════════════════
   SIDE NAVIGATION
   ═══════════════════════════════════════ */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-decoration: none;
}

.nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.nav-dot:hover::after {
    opacity: 1;
}

.nav-dot.active {
    background: #8a2be2;
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    transform: scale(1.3);
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero-content {
    text-align: center;
    position: relative;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 15vw, 12rem);
    color: #fff;
    position: relative;
    letter-spacing: -4px;
    line-height: 1;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: #0ff;
    animation: glitch1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: #f0f;
    animation: glitch2 3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {

    0%,
    90% {
        transform: translate(0);
    }

    91% {
        transform: translate(-5px, 2px);
    }

    92% {
        transform: translate(5px, -2px);
    }

    93% {
        transform: translate(-3px, 1px);
    }

    94%,
    100% {
        transform: translate(0);
    }
}

@keyframes glitch2 {

    0%,
    85% {
        transform: translate(0);
    }

    86% {
        transform: translate(5px, -2px);
    }

    87% {
        transform: translate(-5px, 2px);
    }

    88% {
        transform: translate(3px, -1px);
    }

    89%,
    100% {
        transform: translate(0);
    }
}

.tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.tagline .line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.8));
}

.tagline .line:last-child {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.8), transparent);
}

.tag-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator span {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(138, 43, 226, 0.8);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ═══════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════ */
.section-content {
    max-width: 900px;
    width: 100%;
}

.section-number {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 6rem;
    color: rgba(138, 43, 226, 0.08);
    position: absolute;
    top: 40px;
    left: 40px;
    line-height: 1;
    pointer-events: none;
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -1px;
    margin-bottom: 50px;
}

.accent {
    background: linear-gradient(135deg, #8a2be2, #da70d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════
   ABOUT CARDS
   ═══════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(60px);
    opacity: 0;
}

.about-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.about-card:hover {
    border-color: rgba(138, 43, 226, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.about-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #fff;
}

.about-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* ═══════════════════════════════════════
   QUALITIES LIST
   ═══════════════════════════════════════ */
.qualities-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quality-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
    transform: translateX(-40px);
    opacity: 0;
}

.quality-item.visible {
    transform: translateX(0);
    opacity: 1;
}

.quality-item:hover {
    padding-left: 15px;
    border-color: rgba(138, 43, 226, 0.3);
}

.quality-number {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.65rem;
    color: rgba(138, 43, 226, 0.5);
    letter-spacing: 2px;
    min-width: 35px;
}

.quality-bar {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8a2be2, transparent);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.quality-item.visible .quality-bar {
    width: 80px;
}

.quality-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    letter-spacing: 3px;
    color: #fff;
}

.quality-item:hover .quality-text {
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

/* ═══════════════════════════════════════
   MESSAGE SECTION
   ═══════════════════════════════════════ */
.message-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.message-box {
    max-width: 600px;
}

.typing-label {
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: rgba(138, 43, 226, 0.7);
    margin-bottom: 30px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.cyber-btn {
    position: relative;
    background: transparent;
    border: 1px solid rgba(138, 43, 226, 0.6);
    padding: 18px 50px;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: none;
    transition: all 0.4s ease;
    overflow: hidden;
    clip-path: polygon(0 0,
            calc(100% - 15px) 0,
            100% 15px,
            100% 100%,
            15px 100%,
            0 calc(100% - 15px));
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
    transition: left 0.5s ease;
}

.cyber-btn:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: #8a2be2;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3),
        inset 0 0 30px rgba(138, 43, 226, 0.05);
}

.cyber-btn:hover::before {
    left: 100%;
}

.encrypted {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.encrypted.decrypted {
    max-height: 400px;
    opacity: 1;
    margin-top: 40px;
}

.decrypt-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.signature-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    animation: none;
}

.signature-block.show {
    animation: fadeIn 1s 0.5s forwards;
}

.sig-line {
    width: 40px;
    height: 1px;
    background: rgba(138, 43, 226, 0.5);
}

.signature-block span {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .side-nav {
        right: 15px;
    }

    .section {
        padding: 40px 20px;
    }

    .section-number {
        font-size: 4rem;
        top: 20px;
        left: 20px;
    }

    .glitch {
        letter-spacing: -2px;
    }

    .quality-item {
        gap: 15px;
    }

    body {
        cursor: auto;
    }

    #cursorGlow {
        display: none;
    }
}