/* ===================================
   MODERN DEVELOPER PORTFOLIO - CSS
   Designer: Nikhil Prajapati
   =================================== */

/* ===== CSS VARIABLES & DESIGN TOKENS ===== */
:root {
    /* Color Palette - Deep Cyberpunk Theme */
    --primary-bg: #02040a;
    /* Ultra dark navy/black */
    --secondary-bg: #0a0e27;
    /* Deep navy */
    --accent-cyan: #00f2ff;
    /* Brighter Cyan */
    --accent-purple: #d946ef;
    /* Brighter Purple */
    --accent-pink: #ff0080;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    /* Brighter secondary text */
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    --gradient-dark-overlay: linear-gradient(to bottom, rgba(2, 4, 10, 0.8), rgba(2, 4, 10, 0.95));

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow-cyan: 0 0 20px rgba(0, 242, 255, 0.4), 0 0 40px rgba(0, 242, 255, 0.2);
    --shadow-glow-purple: 0 0 20px rgba(217, 70, 239, 0.4), 0 0 40px rgba(217, 70, 239, 0.2);
    --text-glow: 0 0 10px rgba(255, 255, 255, 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Mesh Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 242, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(217, 70, 239, 0.08), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: var(--text-glow);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: var(--shadow-glow-cyan);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.2));
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 12px 30px;
    z-index: 1000;
    transition: all var(--transition-normal);
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(5, 7, 20, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.2);
    top: 15px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-primary);
    display: flex;
    gap: 2px;
    letter-spacing: -1px;
}

.logo-n {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
}

.logo-p {
    color: var(--accent-purple);
    text-shadow: 0 0 15px rgba(217, 70, 239, 0.6);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-normal);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Dark overlay + Image */
    background:
        linear-gradient(to bottom, rgba(2, 4, 10, 0.6), rgba(2, 4, 10, 0.8)),
        url('bg.png') no-repeat center center/cover;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    padding-top: 80px;
}

.hero-title {
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    /* Enhanced Glow */
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.hero-description {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    min-height: 60px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 2rem;
    background: var(--accent-cyan);
    margin-left: 5px;
    animation: blink 0.7s infinite;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1.125rem;
    font-family: var(--font-secondary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: var(--shadow-glow-cyan);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    z-index: -1;
    transition: opacity var(--transition-normal);
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transform: translateY(-3px);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
    color: var(--accent-cyan);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 500;
}

.highlight-item::before {
    content: '✓';
    color: var(--accent-cyan);
    font-weight: 900;
    font-size: 1.25rem;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.profile-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-cyan), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0.5;
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--secondary-bg);
    border-radius: 22px;
    z-index: 1;
}

.profile-content {
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 0 auto var(--spacing-sm);
    box-shadow: var(--shadow-glow-cyan);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.skill-category {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.skill-category h3 {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
}

.skill-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: float 4s ease-in-out infinite;
}

.skill-list {
    list-style: none;
}

.skill-item {
    margin-bottom: var(--spacing-sm);
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: var(--spacing-md) auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 15px var(--accent-cyan);
}

.timeline-item {
    margin-bottom: var(--spacing-lg);
    position: relative;
    width: 50%;
    padding: 0 var(--spacing-md);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-bg);
    border: 4px solid var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-cyan);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    transform: scale(1.03);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow-purple);
}

.timeline-date {
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.timeline-company {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-glow-purple);
    border-color: var(--accent-purple);
}

.project-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-content {
    padding: var(--spacing-md);
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-sm);
}

.tech-tag {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.project-link:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: var(--shadow-glow-cyan);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass-bg);
    padding: var(--spacing-lg);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.contact-content p {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1) rotate(10deg);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    background: var(--accent-cyan);
    color: #000;
}

.contact-email {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 18px 45px;
    background: var(--gradient-primary);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow-cyan);
}

.contact-email:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 60px rgba(0, 242, 255, 0.6);
}

/* ===== FOOTER ===== */
.footer {
    background: #02040a;
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: var(--spacing-xl);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(2, 4, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left var(--transition-normal);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .about-content,
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .experience-timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;

        .project-links {
            display: flex;
            gap: var(--spacing-sm);
            margin-top: var(--spacing-sm);
        }

        .project-link {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 600;
            transition: all var(--transition-fast);
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

        .project-link:hover {
            background: var(--accent-cyan);
            color: #000;
            box-shadow: var(--shadow-glow-cyan);
        }

        /* ===== CONTACT SECTION ===== */
        .contact-content {
            max-width: 700px;
            margin: 0 auto;
            text-align: center;
            background: var(--glass-bg);
            padding: var(--spacing-lg);
            border-radius: 30px;
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(10px);
        }

        .contact-content p {
            margin-bottom: var(--spacing-md);
            font-size: 1.2rem;
            color: var(--text-secondary);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: var(--spacing-md);
            margin-top: var(--spacing-md);
        }

        .social-link {
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            font-size: 1.5rem;
            text-decoration: none;
            transition: all var(--transition-normal);
        }

        .social-link:hover {
            transform: translateY(-5px) scale(1.1) rotate(10deg);
            border-color: var(--accent-cyan);
            box-shadow: var(--shadow-glow-cyan);
            background: var(--accent-cyan);
            color: #000;
        }

        .contact-email {
            display: inline-block;
            margin-top: var(--spacing-md);
            padding: 18px 45px;
            background: var(--gradient-primary);
            color: #000;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1.2rem;
            transition: all var(--transition-normal);
            box-shadow: var(--shadow-glow-cyan);
        }

        .contact-email:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 60px rgba(0, 242, 255, 0.6);
        }

        /* ===== FOOTER ===== */
        .footer {
            background: #02040a;
            padding: var(--spacing-md) 0;
            text-align: center;
            border-top: 1px solid var(--glass-border);
            margin-top: var(--spacing-xl);
        }

        /* ===== ANIMATIONS ===== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes blink {

            0%,
            50% {
                opacity: 1;
            }

            51%,
            100% {
                opacity: 0;
            }
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-15px);
            }
        }

        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .nav-links {
                position: fixed;
                top: 75px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 75px);
                background: rgba(2, 4, 10, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                transition: left var(--transition-normal);
            }

            .nav-links.active {
                left: 0;
            }

            .menu-toggle {
                display: flex;
            }

            .about-content,
            .about-highlights {
                grid-template-columns: 1fr;
            }

            .experience-timeline::before {
                left: 0;
            }

            .timeline-item {
                width: 100%;
                left: 0 !important;
                text-align: left !important;
                padding-left: 40px;
            }

            .timeline-item .timeline-dot {
                left: -12px !important;
                right: auto !important;
            }
        }

        /* ===== MOTION GRAPHICS & INTERACTIVITY ===== */

        /* Custom Cursor */
        .cursor-dot,
        .cursor-outline {
            position: fixed;
            top: 0;
            left: 0;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            z-index: 9999;
            pointer-events: none;
        }

        .cursor-dot {
            width: 8px;
            height: 8px;
            background-color: var(--accent-cyan);
        }

        .cursor-outline {
            width: 40px;
            height: 40px;
            border: 1px solid var(--accent-cyan);
            transition: width 0.2s, height 0.2s, background-color 0.2s;
        }

        body:hover .cursor-outline {
            opacity: 1;
        }

        /* Glitch Effect */
        .glitch {
            position: relative;
        }

        .glitch::before,
        .glitch::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-bg);
        }

        .glitch::before {
            left: 2px;
            text-shadow: -1px 0 #ff00c1;
            clip: rect(44px, 450px, 56px, 0);
            animation: glitch-anim-1 5s infinite linear alternate-reverse;
        }

        .glitch::after {
            left: -2px;
            text-shadow: -1px 0 #00fff9;
            clip: rect(44px, 450px, 56px, 0);
            animation: glitch-anim-2 5s infinite linear alternate-reverse;
        }

        @keyframes glitch-anim-1 {
            0% {
                clip: rect(30px, 9999px, 10px, 0);
            }

            5% {
                clip: rect(70px, 9999px, 90px, 0);
            }

            10% {
                clip: rect(20px, 9999px, 50px, 0);
            }

            15% {
                clip: rect(80px, 9999px, 10px, 0);
            }

            20% {
                clip: rect(10px, 9999px, 40px, 0);
            }

            25% {
                clip: rect(50px, 9999px, 20px, 0);
            }

            30% {
                clip: rect(60px, 9999px, 80px, 0);
            }

            35% {
                clip: rect(90px, 9999px, 30px, 0);
            }

            40% {
                clip: rect(40px, 9999px, 60px, 0);
            }

            45% {
                clip: rect(20px, 9999px, 10px, 0);
            }

            50% {
                clip: rect(70px, 9999px, 50px, 0);
            }

            55% {
                clip: rect(10px, 9999px, 90px, 0);
            }

            60% {
                clip: rect(50px, 9999px, 20px, 0);
            }

            65% {
                clip: rect(30px, 9999px, 40px, 0);
            }

            70% {
                clip: rect(80px, 9999px, 60px, 0);
            }

            75% {
                clip: rect(40px, 9999px, 80px, 0);
            }

            80% {
                clip: rect(90px, 9999px, 10px, 0);
            }

            85% {
                clip: rect(20px, 9999px, 50px, 0);
            }

            90% {
                clip: rect(60px, 9999px, 30px, 0);
            }

            95% {
                clip: rect(10px, 9999px, 70px, 0);
            }

            100% {
                clip: rect(50px, 9999px, 90px, 0);
            }
        }

        @keyframes glitch-anim-2 {
            0% {
                clip: rect(10px, 9999px, 80px, 0);
            }

            5% {
                clip: rect(90px, 9999px, 20px, 0);
            }

            10% {
                clip: rect(30px, 9999px, 60px, 0);
            }

            15% {
                clip: rect(70px, 9999px, 10px, 0);
            }

            20% {
                clip: rect(20px, 9999px, 50px, 0);
            }

            25% {
                clip: rect(60px, 9999px, 90px, 0);
            }

            30% {
                clip: rect(40px, 9999px, 30px, 0);
            }

            35% {
                clip: rect(80px, 9999px, 70px, 0);
            }

            40% {
                clip: rect(10px, 9999px, 40px, 0);
            }

            45% {
                clip: rect(50px, 9999px, 20px, 0);
            }

            50% {
                clip: rect(30px, 9999px, 80px, 0);
            }

            55% {
                clip: rect(90px, 9999px, 10px, 0);
            }

            60% {
                clip: rect(20px, 9999px, 60px, 0);
            }

            65% {
                clip: rect(70px, 9999px, 30px, 0);
            }

            70% {
                clip: rect(40px, 9999px, 90px, 0);
            }

            75% {
                clip: rect(60px, 9999px, 20px, 0);
            }

            80% {
                clip: rect(10px, 9999px, 50px, 0);
            }

            85% {
                clip: rect(50px, 9999px, 80px, 0);
            }

            90% {
                clip: rect(30px, 9999px, 10px, 0);
            }

            95% {
                clip: rect(80px, 9999px, 40px, 0);
            }

            100% {
                clip: rect(20px, 9999px, 60px, 0);
            }
        }

        /* Staggered Animations */
        .stagger-1 {
            transition-delay: 100ms;
        }

        .stagger-2 {
            transition-delay: 200ms;
        }

        .stagger-3 {
            transition-delay: 300ms;
        }

        animation: glitch-anim-1 5s infinite linear alternate-reverse;
    }

    .glitch::after {
        left: -2px;
        text-shadow: -1px 0 #00fff9;
        clip: rect(44px, 450px, 56px, 0);
        animation: glitch-anim-2 5s infinite linear alternate-reverse;
    }

    @keyframes glitch-anim-1 {
        0% {
            clip: rect(30px, 9999px, 10px, 0);
        }

        5% {
            clip: rect(70px, 9999px, 90px, 0);
        }

        10% {
            clip: rect(20px, 9999px, 50px, 0);
        }

        15% {
            clip: rect(80px, 9999px, 10px, 0);
        }

        20% {
            clip: rect(10px, 9999px, 40px, 0);
        }

        25% {
            clip: rect(50px, 9999px, 20px, 0);
        }

        30% {
            clip: rect(60px, 9999px, 80px, 0);
        }

        35% {
            clip: rect(90px, 9999px, 30px, 0);
        }

        40% {
            clip: rect(40px, 9999px, 60px, 0);
        }

        45% {
            clip: rect(20px, 9999px, 10px, 0);
        }

        50% {
            clip: rect(70px, 9999px, 50px, 0);
        }

        55% {
            clip: rect(10px, 9999px, 90px, 0);
        }

        60% {
            clip: rect(50px, 9999px, 20px, 0);
        }

        65% {
            clip: rect(30px, 9999px, 40px, 0);
        }

        70% {
            clip: rect(80px, 9999px, 60px, 0);
        }

        75% {
            clip: rect(40px, 9999px, 80px, 0);
        }

        80% {
            clip: rect(90px, 9999px, 10px, 0);
        }

        85% {
            clip: rect(20px, 9999px, 50px, 0);
        }

        90% {
            clip: rect(60px, 9999px, 30px, 0);
        }

        95% {
            clip: rect(10px, 9999px, 70px, 0);
        }

        100% {
            clip: rect(50px, 9999px, 90px, 0);
        }
    }

    @keyframes glitch-anim-2 {
        0% {
            clip: rect(10px, 9999px, 80px, 0);
        }

        5% {
            clip: rect(90px, 9999px, 20px, 0);
        }

        10% {
            clip: rect(30px, 9999px, 60px, 0);
        }

        15% {
            clip: rect(70px, 9999px, 10px, 0);
        }

        20% {
            clip: rect(20px, 9999px, 50px, 0);
        }

        25% {
            clip: rect(60px, 9999px, 90px, 0);
        }

        30% {
            clip: rect(40px, 9999px, 30px, 0);
        }

        35% {
            clip: rect(80px, 9999px, 70px, 0);
        }

        40% {
            clip: rect(10px, 9999px, 40px, 0);
        }

        45% {
            clip: rect(50px, 9999px, 20px, 0);
        }

        50% {
            clip: rect(30px, 9999px, 80px, 0);
        }

        55% {
            clip: rect(90px, 9999px, 10px, 0);
        }

        60% {
            clip: rect(20px, 9999px, 60px, 0);
        }

        65% {
            clip: rect(70px, 9999px, 30px, 0);
        }

        70% {
            clip: rect(40px, 9999px, 90px, 0);
        }

        75% {
            clip: rect(60px, 9999px, 20px, 0);
        }

        80% {
            clip: rect(10px, 9999px, 50px, 0);
        }

        85% {
            clip: rect(50px, 9999px, 80px, 0);
        }

        90% {
            clip: rect(30px, 9999px, 10px, 0);
        }

        95% {
            clip: rect(80px, 9999px, 40px, 0);
        }

        100% {
            clip: rect(20px, 9999px, 60px, 0);
        }
    }

    /* Staggered Animations */
    .stagger-1 {
        transition-delay: 100ms;
    }

    .stagger-2 {
        transition-delay: 200ms;
    }

    .stagger-3 {
        transition-delay: 300ms;
    }

    .stagger-4 {
        transition-delay: 400ms;
    }

    /* Magnetic Button Effect */
    .magnetic-btn {
        display: inline-block;
        transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* ===== ENHANCED MOBILE RESPONSIVENESS ===== */
    @media (max-width: 1024px) {
        .hero-title {
            font-size: 4rem;
        }

        .section {
            padding: var(--spacing-lg) 0;
        }
    }

    @media (max-width: 768px) {
        :root {
            --spacing-lg: 3rem;
            --spacing-xl: 4rem;
        }

        h1 {
            font-size: 2.5rem;
        }

        h2 {
            font-size: 2rem;
        }

        .navbar {
            width: 95%;
            padding: 10px 20px;
            top: 10px;
        }

        .hero-title {
            font-size: 2.8rem;
            line-height: 1.2;
        }

        .hero-description {
            font-size: 1.1rem;
            padding: 0 10px;
        }

        .hero-buttons {
            flex-direction: column;
            width: 100%;
            padding: 0 20px;
        }

        .btn {
            width: 100%;
            justify-content: center;
        }

        .about-content {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .about-highlights {
            justify-content: center;
            text-align: left;
            display: inline-grid;
        }

        .skills-grid,
        .projects-grid {
            grid-template-columns: 1fr;
            padding: 0 10px;
        }

        /* Timeline Mobile Fixes */
        .experience-timeline::before {
            left: 20px;
        }

        .timeline-item {
            width: 100%;
            padding-left: 60px;
            padding-right: 10px;
            text-align: left !important;
        }

        .timeline-item:nth-child(odd),
        .timeline-item:nth-child(even) {
            left: 0;
        }

        .timeline-item:nth-child(odd) .timeline-dot,
        .timeline-item:nth-child(even) .timeline-dot {
            left: 8px !important;
            right: auto !important;
        }

        .contact-content {
            padding: var(--spacing-md);
        }

        .cursor-dot,
        .cursor-outline {
            display: none;
            /* Hide custom cursor on touch devices */
        }

        .nav-links {
            width: 100vw;
            height: 100vh;
            top: 0;
            left: 100%;
            background: rgba(2, 4, 10, 0.98);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: fixed;
            transition: left 0.3s ease;
            z-index: 999;
        }

        .nav-links.active {
            left: 0;
        }

        .menu-toggle {
            z-index: 1001;
        }
    }