* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.6;
}

.text-gradient {
    background: linear-gradient(135deg, #a855f7, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1); 
    }
    25% { 
        transform: scale(1.2); 
    }
    50% { 
        transform: scale(1.3); 
    }
    75% { 
        transform: scale(1.2); 
    }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
    padding: 5px;
    display: inline-block;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
    }
    15%, 49% {
        transform: translate(-2px, 1px);
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
    }
    21%, 62% {
        transform: translate(2px, -1px);
    }
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: #a855f7;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.glass-card {
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

.skill-tag {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(168, 85, 247, 0.3));
    border: 1px solid rgba(139, 92, 246, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(168, 85, 247, 0.5));
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.passion-card {
    position: relative;
    overflow: hidden;
}

.passion-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.project-card {
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

.cta-button {
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
}

.cta-button:hover {
    transform: scale(1.05);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover .button-glow {
    left: 100%;
}

.cta-button-outline {
    position: relative;
    overflow: hidden;
}

.cta-button-outline:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.contact-icon-large {
    transition: all 0.3s ease;
}

.contact-icon-large:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 5px 10px rgba(139, 92, 246, 0.5));
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #c084fc);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.reveal-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal-animation.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    position: relative;
    display: inline-block;
}

#animated-bg {
    background: linear-gradient(-45deg, 
        #1a122e,
        #231640,
        #2d1b4e,
        #3d2370
    );
    background-size: 400% 400%;
    animation: gradientBg 18s ease infinite;
}

@keyframes gradientBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.particle {
    position: absolute;
    background: rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 20s infinite linear;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.particle:nth-child(3n) {
    background: rgba(192, 132, 252, 0.3);
    animation-duration: 25s;
}

.particle:nth-child(5n) {
    background: rgba(232, 121, 249, 0.3);
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .glitch-text:before,
    .glitch-text:after {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glitch-text {
    position: relative;
    text-shadow: none;
    color: #fff;
}

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

.glitch-text.is-glitching::before,
.glitch-text.is-glitching::after {
    opacity: 1;
    visibility: visible;
}

.glitch-text.is-glitching::before {
    color: #ff0040;
    animation: glitch-shift-1 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    z-index: -1;
}

.glitch-text.is-glitching::after {
    color: #00fff2;
    animation: glitch-shift-2 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    z-index: -2;
}

@keyframes glitch-shift-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-5px, 3px); }
    40% { transform: translate(3px, -5px); }
    60% { transform: translate(-5px, 5px); }
    80% { transform: translate(5px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitch-shift-2 {
    0% { transform: translate(0); }
    20% { transform: translate(5px, -3px); }
    40% { transform: translate(-3px, 5px); }
    60% { transform: translate(5px, 5px); }
    80% { transform: translate(-5px, -3px); }
    100% { transform: translate(0); }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a0b2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a855f7, #c084fc);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c084fc, #e879f9);
}

.contact-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.contact-card:hover {
    transform: translateY(-10px);
}