@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600&family=Oxanium:wght@400;600;800&display=swap');

:root {
    --neon-pink: #FF00FD;
    --neon-purple: #8F00FF;
    --neon-cyan: #00E5FF;
    --bg-deep: #0A002F;
    --bg-card: rgba(26, 0, 56, 0.6);
    --text-main: #FFFFFF;
    --text-muted: #B0A8FF;
    --grid-color: rgba(255, 0, 253, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- SCANLINES OVERLAY --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.3;
}

/* --- RETRO GRID FLOOR --- */
.retro-grid {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    background:
        linear-gradient(transparent 0%, var(--bg-deep) 100%),
        linear-gradient(0deg, transparent 24%, var(--grid-color) 25%, var(--grid-color) 26%, transparent 27%, transparent 74%, var(--grid-color) 75%, var(--grid-color) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, var(--grid-color) 25%, var(--grid-color) 26%, transparent 27%, transparent 74%, var(--grid-color) 75%, var(--grid-color) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    z-index: -1;
    opacity: 0.8;
    animation: gridMove 20s linear infinite;
    box-shadow: 0 -50px 100px var(--neon-purple);
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 1000px;
    }
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
    font-family: 'Oxanium', display;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 4.5rem;
    text-shadow:
        0 0 5px var(--neon-pink),
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-purple),
        0 0 40px var(--neon-purple);
    animation: textFlicker 3s infinite alternate;
}

@keyframes textFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 5px var(--neon-pink),
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-purple),
            0 0 40px var(--neon-purple);
        opacity: 1;
    }

    20%,
    24%,
    55% {
        text-shadow: none;
        opacity: 0.5;
    }
}

h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--neon-cyan);
    text-shadow:
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    margin-top: 10px;
}

/* --- LAYOUT --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* --- NAVBAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 0, 47, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(143, 0, 255, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-family: 'Oxanium', display;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: 0.3s;
    box-shadow: 0 0 5px var(--neon-cyan);
}

.nav-links a:hover::before {
    width: 100%;
}

/* --- HERO --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.hero-text .role {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-weight: 600;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.sun {
    width: 350px;
    height: 350px;
    background: linear-gradient(to top, var(--neon-pink), var(--neon-purple));
    border-radius: 50%;
    box-shadow: 0 0 80px var(--neon-pink);
    position: relative;
    z-index: 1;
    animation: sunPulse 4s ease-in-out infinite alternate;
}

@keyframes sunPulse {
    from {
        box-shadow: 0 0 60px var(--neon-pink);
    }

    to {
        box-shadow: 0 0 100px var(--neon-pink), 0 0 20px var(--neon-purple);
    }
}

.sun::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: repeating-linear-gradient(transparent 0%,
            transparent 12px,
            var(--bg-deep) 12px,
            var(--bg-deep) 18px);
    z-index: 2;
}

.profile-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border: 3px solid var(--neon-cyan);
    border-radius: 50%;
    z-index: 3;
    background: #000;
    box-shadow: 0 0 30px var(--neon-cyan), inset 0 0 20px var(--neon-cyan);
    overflow: hidden;
    animation: floatProfile 6s ease-in-out infinite;
}

@keyframes floatProfile {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: contrast(1.2) saturate(1.2);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    text-decoration: none;
    font-family: 'Oxanium', display;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    box-shadow: 0 0 15px var(--neon-pink);
    background: rgba(255, 0, 253, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 30px var(--neon-pink), 0 0 60px var(--neon-pink);
    transform: scale(1.05);
}

/* --- CARDS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.timeline-card,
.skill-card,
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--neon-purple);
    padding: 30px;
    position: relative;
    transition: 0.3s;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(143, 0, 255, 0.1);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 15px;
    height: 15px;
    border-top: 3px solid var(--neon-cyan);
    border-left: 3px solid var(--neon-cyan);
}

.timeline-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    border-bottom: 3px solid var(--neon-cyan);
    border-right: 3px solid var(--neon-cyan);
}

.timeline-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px var(--neon-purple), inset 0 0 20px rgba(143, 0, 255, 0.2);
    border-color: var(--neon-cyan);
    z-index: 10;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.timeline-header h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    text-shadow: none;
}

.timeline-header span {
    color: var(--neon-pink);
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 0 5px var(--neon-pink);
}

.desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* --- SKILLS --- */
#skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.neon-tag {
    padding: 12px 25px;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Oxanium', display;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 5px var(--neon-cyan);
    transition: 0.3s;
    background: rgba(0, 229, 255, 0.1);
    cursor: default;
}

.neon-tag:hover {
    background: var(--neon-cyan);
    color: var(--bg-deep);
    box-shadow: 0 0 30px var(--neon-cyan);
    transform: scale(1.1) rotate(2deg);
}

/* --- CONTACT --- */
.contact-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 40px rgba(255, 0, 253, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid var(--text-muted);
    padding: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--neon-purple);
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple), inset 0 0 10px var(--neon-purple);
    transform: rotate(360deg);
}

/* --- MOBILE --- */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-btn span {
    width: 35px;
    height: 3px;
    background: var(--neon-pink);
    box-shadow: 0 0 5px var(--neon-pink);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    h1 {
        font-size: 3rem;
    }

    .sun {
        width: 280px;
        height: 280px;
    }

    .profile-frame {
        width: 180px;
        height: 180px;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 0, 47, 0.98);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-bottom: 2px solid var(--neon-purple);
    }

    .nav-links.active {
        display: flex;
    }
}