:root {
    --primary-cyan: #00ffff;
    --primary-purple: #8b5cf6;
    --primary-pink: #ec4899;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(15, 15, 30, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --shadow-glow: 0 0 40px rgba(0, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-pink));
}

body {
    padding-top: 70px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* Animated Background Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-cyan);
    border-radius: 50%;
    opacity: 0.7;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

/* Hero Section with Cyberpunk Background */
.hero {
    min-height: 100vh;
    background: 
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    animation: scanlines 2s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--text-primary);
    max-width: 900px;
    padding: 0 20px;
}

/* Glitch Title Animation */
.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards, glitch 3s ease-in-out infinite;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-purple), var(--primary-pink));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -1px); }
    20% { transform: translate(2px, 1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(1px, -2px); }
    50% { transform: translate(-2px, 1px); }
    60% { transform: translate(2px, -1px); }
    70% { transform: translate(-1px, -2px); }
    80% { transform: translate(1px, 2px); }
    90% { transform: translate(-2px, -1px); }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Cyberpunk CTA Button */
.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--glass-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphic Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    padding: 20px 50px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 20px;
    border-radius: 25px;
    background: transparent;
    backdrop-filter: blur(10px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-purple));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    background: var(--glass-bg);
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Projects Section with 3D Cards */
.projects {
    padding: 120px 50px;
    background: 
        radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
        var(--dark-bg);
    text-align: center;
    position: relative;
}

.projects h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        var(--shadow-glow),
        0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-cyan);
}

.project-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    font-weight: 300;
}

.project-link {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.project-link::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 ease;
}

.project-link:hover::before {
    left: 100%;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

/* Enhanced About Section with Modern Design */
.about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 50px;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%),
        var(--dark-bg);
}

/* Background particles for about section */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 69, 199, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(139, 69, 199, 0.05) 0%, transparent 40%);
    z-index: 1;
}

.about-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.about-particle {
    position: absolute;
    background: rgba(139, 69, 199, 0.1);
    border-radius: 50%;
    animation: aboutFloat 6s ease-in-out infinite;
}

.about-particle:nth-child(1) { width: 80px; height: 80px; top: 20%; left: 10%; animation-delay: 0s; }
.about-particle:nth-child(2) { width: 60px; height: 60px; top: 60%; left: 80%; animation-delay: 2s; }
.about-particle:nth-child(3) { width: 40px; height: 40px; top: 80%; left: 20%; animation-delay: 4s; }
.about-particle:nth-child(4) { width: 100px; height: 100px; top: 40%; left: 70%; animation-delay: 1s; }
.about-particle:nth-child(5) { width: 50px; height: 50px; top: 10%; left: 60%; animation-delay: 3s; }

@keyframes aboutFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.about-container {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 1s ease-out;
    z-index: 10;
}

.about-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 199, 0.8), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content {
    position: relative;
    z-index: 2;
}

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, #8b45c7, #a855f7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

.about-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    line-height: 1.1;
    position: relative;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8b45c7, #a855f7);
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 0.5s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 2rem;
    animation: fadeInText 1s ease-out 0.3s both;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 69, 199, 0.5);
    box-shadow: 0 15px 35px rgba(139, 69, 199, 0.1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 199, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b45c7, #a855f7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.skill-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.skill-description {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #8b45c7, #a855f7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.about-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(139, 69, 199, 0.3);
}

/* Contact Section */
.contact {
    padding: 120px 50px;
    background: var(--dark-bg);
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.contact-item span:first-child {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.contact-item span:last-child {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .navbar {
        padding: 20px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .projects, .about, .contact {
        padding: 80px 20px;
    }

    .projects h2, .about h2, .contact h2 {
        font-size: 2.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-cyan);
    color: var(--dark-bg);
    padding: 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}