:root {
    --neon-pink: #ff2d95;
    --neon-blue: #08f7fe;
    --bg-purple: #150019;
    --bg-purple-dark: #0d0010;
    --grid-color: rgba(255, 45, 149, 0.15);
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-purple);
    color: white;
    font-family: 'Share Tech Mono', monospace;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1000;
    animation: fadeOut 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

.grid-overlay {
    position: fixed;
    width: 200%;
    height: 200%;
    bottom: -50%;
    transform: perspective(300px) rotateX(60deg);
    -webkit-transform: perspective(300px) rotateX(60deg);
    opacity: 0;
    animation: fadeIn 1s forwards;
    -webkit-animation: fadeIn 1s forwards;
    animation-delay: 1s;
    -webkit-animation-delay: 1s;
}

.grid-base {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(transparent 0%, var(--grid-color) 2%, transparent 3%),
        linear-gradient(90deg, transparent 0%, var(--grid-color) 2%, transparent 3%);
    -webkit-background: 
        linear-gradient(transparent 0%, var(--grid-color) 2%, transparent 3%),
        linear-gradient(90deg, transparent 0%, var(--grid-color) 2%, transparent 3%);
    background-size: 40px 40px;
    -webkit-background-size: 40px 40px;
    animation: grid-move 15s linear infinite;
    -webkit-animation: grid-move 15s linear infinite;
}

.grid-mountains {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    transition: transform 0.3s ease-out;
}

.sun {
    position: fixed;
    width: 200px;
    height: 200px;
    background: linear-gradient(to bottom, var(--neon-pink) 0%, #ff8c00 100%);
    border-radius: 50%;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 120px rgba(255, 45, 149, 0.8);
    opacity: 0;
    animation: sunRise 1.5s ease-out forwards;
    animation-delay: 1.2s;
}

.sun-pulse {
    animation: sunRise 3s ease-out forwards, sunGlow 4s ease-in-out infinite !important;
}

@keyframes sunGlow {
    0% {
        box-shadow: 0 0 120px rgba(255, 45, 149, 0.8);
    }
    50% {
        box-shadow: 0 0 150px rgba(255, 45, 149, 0.9);
    }
    100% {
        box-shadow: 0 0 120px rgba(255, 45, 149, 0.8);
    }
}

@keyframes sunRise {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 1.7s;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
    animation: avatarPulse 4s ease-in-out infinite;
}

.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 30px var(--neon-pink);
    animation: glowPulse 4s ease-in-out infinite alternate;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 1.5s;
}

.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-pink);
    position: relative;
    animation: none;
    opacity: 0;
    animation: textGlitchIn 1.5s forwards;
    animation-delay: 1.9s;
}

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

.glitch-text::before {
    animation: glitch-1 2s infinite;
    color: var(--neon-pink);
    text-shadow: 2px 0 var(--neon-blue);
    clip: rect(44px, 450px, 56px, 0);
}

.glitch-text::after {
    animation: glitch-2 3s infinite;
    color: var(--neon-blue);
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
}

.description {
    max-width: 600px;
    margin: 1.5rem auto;
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 0 5px var(--neon-blue);
    font-family: 'Share Tech Mono', monospace;
    padding: 0 1rem;
    opacity: 0;
    animation: textScanline 1s forwards;
    animation-delay: 2.1s;
    position: relative;
}

.description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    transform: scaleX(0);
    animation: scanline 2s forwards;
    animation-delay: 2.1s;
}

.links {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInScale 1s forwards;
    animation-delay: 2.5s;
}

.neon-button {
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0 1rem;
    color: var(--neon-blue);
    text-decoration: none;
    border: 2px solid var(--neon-blue);
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.neon-button::before,
.neon-button::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
}

.neon-button:hover {
    background: transparent;
    color: var(--neon-blue);
}

.neon-button:hover::before {
    opacity: 0.8;
    visibility: visible;
    transform: translateX(-2px);
    color: var(--neon-pink);
    animation: buttonGlitch 0.3s infinite;
}

.neon-button:hover::after {
    opacity: 0.8;
    visibility: visible;
    transform: translateX(2px);
    color: var(--neon-blue);
    animation: buttonGlitch 0.3s infinite reverse;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        var(--bg-purple-dark) 0%,
        var(--bg-purple) 50%,
        var(--bg-purple-dark) 100%
    );
    z-index: -1;
    animation: gradientShift 15s ease infinite;
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

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

@keyframes gradientShift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(15deg); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes grid-move {
    0% { 
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }
    100% { 
        transform: translateY(40px);
        -webkit-transform: translateY(40px);
    }
}

@-webkit-keyframes grid-move {
    0% { 
        -webkit-transform: translateY(0);
    }
    100% { 
        -webkit-transform: translateY(40px);
    }
}

@keyframes glitch-1 {
    0% {
        clip: rect(132px, auto, 101px, 30px);
    }
    20% {
        clip: rect(35px, auto, 162px, 30px);
    }
    40% {
        clip: rect(162px, auto, 32px, 30px);
    }
    60% {
        clip: rect(15px, auto, 72px, 30px);
    }
    80% {
        clip: rect(82px, auto, 142px, 30px);
    }
    100% {
        clip: rect(132px, auto, 101px, 30px);
    }
}

@keyframes glitch-2 {
    0% {
        clip: rect(15px, auto, 72px, 30px);
    }
    20% {
        clip: rect(82px, auto, 142px, 30px);
    }
    40% {
        clip: rect(132px, auto, 101px, 30px);
    }
    60% {
        clip: rect(35px, auto, 162px, 30px);
    }
    80% {
        clip: rect(162px, auto, 32px, 30px);
    }
    100% {
        clip: rect(15px, auto, 72px, 30px);
    }
}

@keyframes avatarPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 30px var(--neon-pink); }
    50% { box-shadow: 0 0 50px var(--neon-pink); }
    100% { box-shadow: 0 0 30px var(--neon-pink); }
}

@keyframes buttonGlitch {
    0% { transform: translateX(-2px) skew(0deg); }
    20% { transform: translateX(2px) skew(2deg); }
    40% { transform: translateX(-2px) skew(-2deg); }
    60% { transform: translateX(2px) skew(0deg); }
    80% { transform: translateX(-2px) skew(-1deg); }
    100% { transform: translateX(2px) skew(0deg); }
}

@keyframes pageGlitch {
    0% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    20% {
        opacity: 1;
        clip-path: inset(20% -5% 60% 5%);
        transform: translate(5px);
    }
    40% {
        clip-path: inset(40% 5% 40% -5%);
        transform: translate(-5px);
    }
    60% {
        clip-path: inset(60% -5% 20% 5%);
        transform: translate(5px);
    }
    80% {
        clip-path: inset(80% 5% 0 -5%);
        transform: translate(-5px);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Update transition styles */
@keyframes glitchTransition {
    0% {
        opacity: 0;
        transform: translateX(0);
    }
    33% {
        opacity: 0.6;
        transform: translateX(-5px);
        background: var(--neon-pink);
    }
    66% {
        opacity: 0.6;
        transform: translateX(5px);
        background: var(--neon-blue);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes fadeToBlack {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.page-transition.active::before {
    animation: glitchTransition 0.2s forwards;
}

.page-transition.active::after {
    animation: fadeToBlack 0.1s forwards;
    animation-delay: 0.2s;
}

/* Add/update transition styles */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

.page-transition::before,
.page-transition::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
}

.page-transition.active::before {
    animation: glitchTransition 0.2s forwards;
}

.page-transition.active::after {
    animation: fadeToBlack 0.1s forwards;
    animation-delay: 0.2s;
}

@keyframes glitchTransition {
    0% {
        opacity: 0;
        transform: translateX(0);
    }
    33% {
        opacity: 0.6;
        transform: translateX(-5px);
        background: var(--neon-pink);
    }
    66% {
        opacity: 0.6;
        transform: translateX(5px);
        background: var(--neon-blue);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes fadeToBlack {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Add footer styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 5px var(--neon-blue);
    z-index: 1;
}

.footer a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink);
}

/* Add a container for the parallax effect */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

/* Add new keyframes */
@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlitchIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }
    25% {
        opacity: 0.3;
        transform: scale(1.2);
        filter: blur(5px);
    }
    35% {
        opacity: 0.7;
        transform: scale(1.1) skew(-15deg);
        filter: blur(0);
    }
    45% {
        transform: scale(0.9) skew(15deg);
    }
    55% {
        transform: scale(1.1) skew(-10deg);
    }
    65% {
        transform: scale(0.95) skew(5deg);
    }
    75% {
        transform: scale(1.05) skew(-3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes textScanline {
    0% {
        opacity: 0;
        transform: translateY(20px);
        clip-path: inset(0 0 100% 0);
    }
    20% {
        clip-path: inset(0 0 80% 0);
    }
    40% {
        clip-path: inset(0 0 60% 0);
    }
    60% {
        clip-path: inset(0 0 40% 0);
    }
    80% {
        clip-path: inset(0 0 20% 0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes scanline {
    0% {
        transform: scaleX(0);
        left: 0;
    }
    40% {
        transform: scaleX(1);
        left: 0;
    }
    100% {
        transform: scaleX(0);
        left: 100%;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Skills section styles */
.skills {
    margin: 2rem 0;
    width: 100%;
}

.skills-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    opacity: 0;
    animation: fadeInScale 1s forwards;
    animation-delay: 2.3s;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 100px));
    gap: clamp(1rem, 3vw, 3rem);
    justify-content: center;
    padding: 0 1rem;
    opacity: 0;
    animation: fadeInScale 1s forwards;
    animation-delay: 2.4s;
}

.skill-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px solid var(--neon-blue);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(8, 247, 254, 0.3);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(8, 247, 254, 0.5);
}

.skill-item img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.skill-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
    color: white;
    text-shadow: 0 0 5px var(--neon-blue);
}

.skill-item:hover .skill-overlay {
    opacity: 1;
}

.skill-item:hover img {
    transform: scale(1.1);
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .content {
        height: auto;
        min-height: 100vh;
        padding: 4rem 1rem;
    }

    .footer {
        position: relative;
        margin-top: 2rem;
    }

    .skills {
        margin: 2rem 0;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(70px, 100px));
        gap: 2rem;
    }

    .skill-item {
        width: 80px;
        height: 80px;
    }

    .neon-button {
        padding: 0.8rem 1.5rem;
        margin: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding-top: 10vh;
    }

    .avatar-container {
        width: 100px;
        height: 100px;
    }

    .skills-title {
        font-size: 1.5rem;
    }

    .footer {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

/* Add styles for very small screens */
@media (max-height: 700px) {
    .content {
        padding-top: 3rem;
    }

    .avatar-container {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }

    .skills-grid {
        gap: 1rem;
    }

    .skill-item {
        width: 70px;
        height: 70px;
    }
}

/* Add music control styles */
.music-prompt {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    font-family: 'Share Tech Mono', monospace;
    color: white;
    text-shadow: 0 0 5px var(--neon-blue);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.music-prompt.show {
    opacity: 1;
    animation: pulsePrompt 2s infinite;
}

.music-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(8, 247, 254, 0.3);
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(8, 247, 254, 0.5);
}

.hidden {
    display: none;
}

@keyframes pulsePrompt {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Update smoke effect styles */
.smoke {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(255, 45, 149, 0.15) 0%,
        rgba(8, 247, 254, 0.1) 50%,
        transparent 70%);
    filter: blur(30px);
    opacity: 0.6;
    mix-blend-mode: screen;
}

@keyframes smokeFloat {
    0% {
        transform: translateY(100%) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100%) scale(2);
        opacity: 0;
    }
}

/* Music active state modifications */
.music-active {
    --smoke-color: 255, 45, 149;
    transition: all 1s ease;
}

.music-active .laser-container {
    opacity: 1;
}

.music-active .smoke {
    opacity: 0.6;
}

.music-active .background-gradient {
    animation: none;
}

/* Ensure containers are visible when active */
.music-active .laser-container,
.music-active .smoke-container {
    opacity: 1 !important;
    z-index: 1;
}

/* Add laser styles */
.laser-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 2s ease;
}

.laser {
    position: absolute;
    width: 4px;
    height: 100vh;
    opacity: 0;
    filter: blur(4px);
    transform-origin: top;
    animation: laserMove 8s infinite linear;
}

@keyframes laserMove {
    0% {
        opacity: 0;
        transform: translateX(-100%) rotate(30deg);
    }
    20% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateX(200%) rotate(30deg);
    }
}

/* Add styles for simple pages */
.simple-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 600px;
    z-index: 1;
}

.error-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink);
    margin: 0;
}

.error-description,
.contact-description {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 5px var(--neon-blue);
    margin: 2rem 0;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
    margin: 0;
}

.email-link {
    display: inline-block;
    color: var(--neon-pink);
    text-decoration: none;
    font-size: 2rem;
    margin-top: 1rem;
    text-shadow: 0 0 10px var(--neon-pink);
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue);
}

/* Media queries for simple pages */
@media (max-width: 768px) {
    .error-title {
        font-size: 6rem;
    }

    .page-title {
        font-size: 3rem;
    }

    .error-description,
    .contact-description {
        font-size: 1.2rem;
    }

    .email-link {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .error-title {
        font-size: 4rem;
    }

    .page-title {
        font-size: 2.5rem;
    }
}
  