* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-purple: #bc13fe;
    --dark-bg: #0a0a0a;
}

body {
    background: var(--dark-bg);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

nav {
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-blue);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul li a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue),
                 0 0 20px var(--neon-blue),
                 0 0 30px var(--neon-blue);
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
                url('https://source.unsplash.com/random/1920x1080') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
                              rgba(0, 243, 255, 0.1),
                              rgba(188, 19, 254, 0.1));
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateZ(0) rotate(0deg); }
    100% { transform: translateZ(100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue),
                 0 0 20px var(--neon-blue),
                 0 0 30px var(--neon-blue);
    animation: float 3s ease-in-out infinite;
}

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

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.btn {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px var(--neon-blue);
}

.btn:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--neon-blue);
}

section {
    padding: 8rem 2rem;
    position: relative;
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--neon-purple),
                 0 0 20px var(--neon-purple);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.skill-card:hover {
    transform: translateY(-10px) rotateX(10deg);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
}

.skill-card i {
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--neon-blue);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: scale(1.05);
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--neon-pink);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    outline: none;
}

footer {
    background: rgba(10, 10, 10, 0.95);
    color: #fff;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--neon-purple);
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s;
}

/* Particle Animation */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon-blue);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: float-particle var(--duration) infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -100px);
        opacity: 0;
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 1s infinite;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    5% {
        clip: rect(12px, 9999px, 59px, 0);
    }
    10% {
        clip: rect(48px, 9999px, 29px, 0);
    }
    15% {
        clip: rect(42px, 9999px, 73px, 0);
    }
    20% {
        clip: rect(63px, 9999px, 27px, 0);
    }
    25% {
        clip: rect(34px, 9999px, 55px, 0);
    }
    30% {
        clip: rect(86px, 9999px, 73px, 0);
    }
    35% {
        clip: rect(20px, 9999px, 20px, 0);
    }
    40% {
        clip: rect(26px, 9999px, 60px, 0);
    }
    45% {
        clip: rect(25px, 9999px, 66px, 0);
    }
    50% {
        clip: rect(57px, 9999px, 98px, 0);
    }
    55% {
        clip: rect(5px, 9999px, 46px, 0);
    }
    60% {
        clip: rect(82px, 9999px, 31px, 0);
    }
    65% {
        clip: rect(54px, 9999px, 27px, 0);
    }
    70% {
        clip: rect(28px, 9999px, 99px, 0);
    }
    75% {
        clip: rect(45px, 9999px, 69px, 0);
    }
    80% {
        clip: rect(23px, 9999px, 85px, 0);
    }
    85% {
        clip: rect(54px, 9999px, 84px, 0);
    }
    90% {
        clip: rect(45px, 9999px, 47px, 0);
    }
    95% {
        clip: rect(37px, 9999px, 20px, 0);
    }
    100% {
        clip: rect(4px, 9999px, 91px, 0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Form Animations */
.contact-form form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
}

.contact-form .btn {
    width: 100%;
}

.contact-form.submitted::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: var(--neon-blue);
    z-index: 1;
}

.contact-form.submitted form {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Hover Effects */
.nav-link:hover {
    text-shadow: 0 0 10px var(--neon-blue),
                 0 0 20px var(--neon-blue),
                 0 0 30px var(--neon-blue),
                 0 0 40px var(--neon-blue);
}

.btn:hover {
    text-shadow: 0 0 10px var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue),
                0 0 40px var(--neon-blue);
}

/* Section Title Glow */
.section-title {
    position: relative;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.7;
    color: var(--neon-purple);
}
