:root {
    --color-bg: #000000;
    --color-card: rgba(17, 17, 17, 0.9);
    --color-text: #ffffff;
    --color-text-muted: #999999;
    --color-primary: #ff0000;
    --color-primary-dark: #cc0000;
    --color-glow: rgba(255, 0, 0, 0.5);
    --border-radius: 20px;
    --card-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, #1a0000 0%, #000000 100%);
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: float 15s infinite linear;
    box-shadow: 0 0 10px var(--color-glow), 0 0 20px var(--color-glow), 0 0 30px var(--color-glow);
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: -3s; }
.particle:nth-child(3) { top: 40%; left: 40%; animation-delay: -6s; }
.particle:nth-child(4) { top: 80%; left: 20%; animation-delay: -9s; }
.particle:nth-child(5) { top: 30%; left: 70%; animation-delay: -12s; }
.particle:nth-child(6) { top: 70%; left: 50%; animation-delay: -15s; }

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100vw, 100vh) rotate(360deg);
    }
}

.profile-card {
    background: var(--color-card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: cardAppear 1s ease-out forwards;
}

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

.profile-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(204, 0, 0, 0.4) 100%);
    position: relative;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    position: relative;
    animation: imageGlow 2s infinite alternate;
}

@keyframes imageGlow {
    from { box-shadow: 0 0 20px var(--color-glow); }
    to { box-shadow: 0 0 40px var(--color-glow); }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 3s 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(--color-primary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

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

@keyframes glitch-anim {
    0% { clip: rect(24px, 550px, 90px, 0); }
    20% { clip: rect(85px, 550px, 140px, 0); }
    40% { clip: rect(66px, 550px, 115px, 0); }
    60% { clip: rect(92px, 550px, 140px, 0); }
    80% { clip: rect(85px, 550px, 130px, 0); }
    100% { clip: rect(40px, 550px, 105px, 0); }
}

.title {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.animate-text {
    animation: fadeInUp 0.8s ease-out forwards;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    color: var(--color-text);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.hover-glow:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-glow);
    transform: translateY(-3px);
}

.profile-content {
    padding: 2rem;
}

.section {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.pulse {
    animation: pulse 2s infinite;
}

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

.skills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-bar {
    height: 8px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 1s ease-in-out;
    position: relative;
}

.glow {
    box-shadow: 0 0 10px var(--color-glow);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.project {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    transition: all 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.project:hover .project-info {
    opacity: 1;
}

.project-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.hover-slide:hover {
    transform: translateX(10px);
    color: var(--color-text);
}

.contact-info i {
    color: var(--color-primary);
}

.neon-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
}

.neon-btn:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 0 20px var(--color-glow);
    transform: scale(1.05);
}

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

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .profile-header {
        padding: 2rem 1rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-content {
        padding: 1.5rem;
    }

    .projects {
        grid-template-columns: 1fr;
    }
}

.skill a {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, transform 0.3s;
}

.skill a:hover {
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}
