/* ================================
   CSS Variables
   ================================ */
:root {
    --bg-dark: #0a0a1f;
    --bg-surface: #13132b;
    --neon-pink: #ff006e;
    --neon-blue: #00d9ff;
    --neon-purple: #8b5cf6;
    --electric-pink: #ff10f0;
    --deep-purple: #4c1d95;
    --text-primary: #ffffff;
    --text-secondary: #b4b4ff;
    --grid-color: rgba(139, 92, 246, 0.2);
}

/* ================================
   Reset & Base Styles
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* ================================
   Animated Backgrounds
   ================================ */
/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.15) 2px, transparent 2px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.15) 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: 0 0;
    animation: gridScroll 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridScroll {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Neon glow orbs */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: orbFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, -5%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

/* ================================
   Layout
   ================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ================================
   Typography & Text Effects
   ================================ */
.neon-text {
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 30px var(--neon-pink),
        0 0 40px var(--electric-pink);
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-pink),
            0 0 30px var(--neon-pink),
            0 0 40px var(--electric-pink);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* ================================
   Header/Hero Section
   ================================ */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: slideInLeft 0.8s ease backwards;
}

.eyebrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease 0.1s backwards;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.8s ease 0.2s backwards, glow 2s ease-in-out infinite;
    position: relative;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.8));
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: slideInLeft 0.8s ease 0.3s backwards;
    line-height: 1.8;
}

/* ================================
   Buttons
   ================================ */
.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease 0.4s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.8), 0 0 50px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    transform: translateY(-2px);
}

/* ================================
   Profile Image
   ================================ */
.hero-image {
    position: relative;
    animation: slideInRight 0.8s ease 0.3s backwards;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    max-width: 400px;
    margin-left: auto;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-blue)) border-box;
    box-shadow: 
        0 0 30px rgba(255, 0, 110, 0.4),
        0 0 60px rgba(139, 92, 246, 0.3),
        inset 0 0 30px rgba(139, 92, 246, 0.1);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(255, 0, 110, 0.4),
            0 0 60px rgba(139, 92, 246, 0.3),
            inset 0 0 30px rgba(139, 92, 246, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(0, 217, 255, 0.6),
            0 0 80px rgba(255, 0, 110, 0.4),
            inset 0 0 40px rgba(0, 217, 255, 0.2);
    }
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) saturate(1.2);
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.1);
}

/* Scanline effect */
.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* ================================
   Social Links
   ================================ */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.05);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.social-links a:hover::before {
    width: 200px;
    height: 200px;
}

.social-links a:hover {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
    transform: translateY(-4px);
}

/* ================================
   Sections
   ================================ */
section {
    position: relative;
    padding: 8rem 0;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    box-shadow: 0 0 10px var(--neon-purple);
}

.section-header {
    margin-bottom: 4rem;
}

.section-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-pink);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--neon-pink);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   About Section
   ================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--bg-surface);
    padding: 2rem;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.4);
}

.skill-category h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-blue);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.skill-category li:hover {
    color: var(--text-primary);
}

/* ================================
   Projects Section
   ================================ */
.projects-grid {
    display: grid;
    gap: 3rem;
}

.project-card {
    background: var(--bg-surface);
    border: 2px solid transparent;
    background-image: 
        linear-gradient(var(--bg-surface), var(--bg-surface)),
        linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

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

.project-card:hover {
    transform: translateX(10px);
    box-shadow: 
        0 0 40px rgba(255, 0, 110, 0.3),
        0 0 80px rgba(139, 92, 246, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.project-link:hover {
    transform: translateX(8px);
    text-shadow: 0 0 20px var(--neon-pink);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--neon-purple);
    font-size: 0.875rem;
    color: var(--neon-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ================================
   Contact Section
   ================================ */
.contact-section {
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-blue), var(--neon-pink));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.contact-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-email {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 20px var(--neon-pink);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--neon-pink);
}

.contact-email:hover::after {
    width: 100%;
}

.contact-email:hover {
    text-shadow: 0 0 30px var(--neon-pink), 0 0 50px var(--electric-pink);
}

/* ================================
   Footer
   ================================ */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ================================
   Animations
   ================================ */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   Scrollbar
   ================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid var(--neon-purple);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-pink));
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.8);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-card {
        padding: 2rem;
    }

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

    .contact-title {
        font-size: 2rem;
    }

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

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
}
