/* ============================================
   ThePrimeagen Portfolio - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-green: #00ff88;
    --accent-blue: #0088ff;
    --accent-soft: rgba(0, 136, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    /* Brightened for better contrast in dark mode (gray-200) */
    /* High contrast gray for dark mode */
    --text-muted: #9ca3af;
    /* Visible muted text for dark mode */
    --pill-text: #93c5fd;
    /* Soft blue text for pills in dark mode */
    --mobile-menu-bg: rgba(15, 20, 25, 0.95);
    --theme-toggle-bg: rgba(255, 255, 255, 0.1);
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Particles.js Background
   ============================================ */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 30%, #0d1117 70%, #161b22 100%);
}

/* ============================================
   Custom Cursor Effects
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
            rgba(0, 255, 136, 0.12) 0%,
            rgba(0, 200, 255, 0.08) 25%,
            rgba(0, 136, 255, 0.04) 50%,
            transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.8;
    filter: blur(1px);
    will-change: left, top, transform;
}

.cursor-ring {
    position: fixed;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--accent-green);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.3s ease,
        background-color 0.3s ease;
    will-change: left, top, transform;
}

.cursor-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed var(--accent-green);
    opacity: 0.3;
    animation: spin 4s linear infinite;
}

.cursor-ring.hovering {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    border-width: 1px;
}

.cursor-ring.hovering::after {
    inset: -8px;
    opacity: 0.6;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 15px var(--accent-green), 0 0 30px var(--accent-green);
    will-change: left, top, transform;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-dot.clicking {
    transform: translate(-50%, -50%) scale(2.5);
    background: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue), 0 0 40px var(--accent-blue);
}

.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-blue);
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    filter: blur(1px);
    will-change: left, top, opacity, transform;
}

.cursor-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    z-index: 9996;
}

@media (hover: none) {

    .cursor-glow,
    .cursor-dot,
    .cursor-ring,
    .cursor-trail {
        display: none;
    }
}

/* ============================================
   Photo Frame Component
   ============================================ */
.photo-frame {
    position: relative;
    width: 200px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3),
        0 0 60px rgba(0, 255, 136, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue), var(--accent-green));
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.photo-frame:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   Neon Gradient Avatar Frame (Enhanced)
   ============================================ */
.avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(0, 255, 136, 0.4) 0%,
            rgba(236, 72, 153, 0.3) 50%,
            transparent 70%);
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

.avatar-ring {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg,
            #00ff88 0%,
            #00d4ff 25%,
            #ec4899 50%,
            #f472b6 75%,
            #00ff88 100%);
    background-size: 400% 400%;
    animation: gradientRotate 6s linear infinite;
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.4),
        0 0 60px rgba(236, 72, 153, 0.3),
        0 0 90px rgba(0, 212, 255, 0.2);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.avatar-ring:hover .avatar-inner img {
    transform: scale(1.05);
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.avatar-placeholder svg {
    width: 80px;
    height: 80px;
    color: #4a5568;
}

@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

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

.about-text {
    order: 1;
}

.about-avatar {
    order: 2;
    display: flex;
    justify-content: center;
}

.about-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.about-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-heading span {
    color: var(--accent-green);
}

.about-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    word-wrap: break-word;
    max-width: 100%;
}

.about-stats-inline {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        order: 2;
        text-align: center;
    }

    .about-avatar {
        order: 1;
    }

    .about-heading {
        font-size: 1.75rem;
    }

    .about-stats-inline {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-item {
        text-align: center;
    }

    .avatar-ring {
        width: 220px;
        height: 220px;
    }

    .avatar-glow {
        width: 260px;
        height: 260px;
    }
}

/* ============================================
   Layout Sections
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(10, 10, 10, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding-top: 60px;
}

.section {
    padding: 120px 0;
    /* Increased whitespace between sections */
    position: relative;
    scroll-margin-top: 80px;
    /* Accounts for fixed navbar */
}

::selection {
    background: rgba(0, 255, 136, 0.2);
    color: #ffffff;
}

.section:nth-child(even) {
    background: rgba(26, 26, 26, 0.3);
}

.content-wrapper {
    margin-top: 0;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(10, 10, 10, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding-top: 60px;
    /* Small buffer to sit closer to navbar */
}

/* ============================================
   Code Block Component
   ============================================ */
.code-block {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    border-left: 4px solid var(--accent-green);
    word-break: break-word;
    /* Prevent long strings from blowing up flex layouts on mobile */
}

/* ============================================
   Project Cards
   ============================================ */
.project-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

/* ============================================
   Enhanced Project Cards
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card-v2 {
    background: rgba(15, 20, 25, 0.85);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.project-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 255, 136, 0) 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-v2:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 255, 136, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-card-v2:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, transparent 50%, rgba(0, 255, 136, 0.3) 100%);
}

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

.project-folder-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-green);
}

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

.project-link-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.project-link-icon:hover {
    color: var(--accent-green);
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.project-card-v2:hover .project-card-title {
    color: var(--accent-green);
}

.project-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.project-tag:hover {
    color: var(--accent-green);
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.project-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 500;
    background: rgba(0, 255, 136, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 136, 0.15);
}

.project-org {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.projects-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.projects-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.projects-heading span {
    color: var(--accent-green);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-heading {
        font-size: 1.75rem;
        text-align: center;
    }

    .projects-section-title {
        text-align: center;
    }

    .project-card-v2 {
        min-height: auto;
        padding: 1.25rem;
    }
}

/* ============================================
   Enhanced Contact Section
   ============================================ */
.contact-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.contact-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-heading span {
    color: var(--accent-green);
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(15, 20, 25, 0.85);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 136, 0.1);
    transform: translateY(-4px);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-green);
}

.contact-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.contact-card-value {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-left: 2.5rem;
}

.contact-card-value a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.contact-card-value a:hover {
    color: var(--accent-green);
}

.contact-form-card {
    background: rgba(15, 20, 25, 0.85);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.form-input,
.form-textarea {
    background: rgba(10, 15, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

.form-submit {
    background: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background: var(--accent-green);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.social-links-grid {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link-card {
    width: 48px;
    height: 48px;
    background: rgba(15, 20, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link-card:hover {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link-card svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link-card:hover svg {
    color: var(--accent-green);
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
}

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-heading {
        font-size: 2rem;
        text-align: center;
    }

    .contact-section-title {
        text-align: center;
    }

    .contact-description {
        text-align: center;
        margin: 0 auto;
    }

    .social-links-grid {
        justify-content: center;
    }
}

/* ============================================
   Skill Tags
   ============================================ */
.skill-tag {
    background: var(--accent-soft);
    color: var(--pill-text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 136, 255, 0.3);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(0, 136, 255, 0.2);
    transform: scale(1.05);
}

.skill-tag:active {
    transform: scale(0.95);
}

/* ============================================
   Skills Section Enhanced Cards
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: rgba(15, 20, 25, 0.8);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(0, 255, 136, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 255, 136, 0.1);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.skill-card-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.skill-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
}

.skill-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pill {
    background: var(--accent-soft);
    color: var(--pill-text);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 136, 255, 0.15);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.skill-pill:hover {
    background: rgba(0, 136, 255, 0.15);
    border-color: rgba(0, 136, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.2);
}

.skills-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.skills-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.skills-heading span {
    color: var(--accent-green);
}

/* Full-width card for Teaching */
.skill-card.full-width {
    grid-column: 1 / -1;
}

.skill-card.full-width .skill-card-tags {
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-card.full-width {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-heading {
        font-size: 2rem;
        text-align: center;
    }

    .skills-section-title {
        text-align: center;
    }
}

.mobile-menu-bg {
    background: var(--mobile-menu-bg);
}

#mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    opacity: 0;
    transform: translateY(-10px) scaleY(0.95);
    pointer-events: none;
    display: block !important;
    /* Always block, controlled by opacity/pointer-events */
}

#mobile-menu.active {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
}

#mobile-menu.hidden {
    display: block !important;
    /* Override Tailwind hidden to keep it animatable */
}

/* Base Navigation styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--mobile-menu-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--accent-green);
}

.nav-link.active::after {
    width: 80%;
}

/* ============================================
   Statistics
   ============================================ */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Buttons
   ============================================ */
.cta-button {
    background: linear-gradient(45deg, var(--accent-green), var(--accent-blue));
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

/* ============================================
   Typography & Utilities
   ============================================ */
.typing-text {
    color: var(--accent-green);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

/* Screen reader only - accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 20px 40px;
        /* Added 100px top padding to clear the navbar */
    }

    .section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--theme-toggle-bg);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.theme-toggle:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
}

.theme-toggle .hidden {
    display: none;
}

/* ============================================
   Experience Timeline
   ============================================ */
.timeline-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.timeline-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.timeline-heading span {
    color: var(--accent-green);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-green), var(--accent-blue), var(--accent-green));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 3px solid var(--primary-dark);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.timeline-content {
    background: rgba(15, 20, 25, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent-green);
    font-weight: 500;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0 0.25rem;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .timeline-heading {
        font-size: 2rem;
        text-align: center;
    }

    .timeline-section-title {
        text-align: center;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 2px;
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.testimonials-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.testimonials-heading span {
    color: var(--accent-green);
}

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

.testimonial-card {
    background: rgba(15, 20, 25, 0.85);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 136, 0.1);
}

.testimonial-quote {
    margin-bottom: 1rem;
}

.testimonial-quote svg {
    width: 32px;
    height: 32px;
    color: var(--accent-green);
    opacity: 0.5;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-dark);
    font-family: 'JetBrains Mono', monospace;
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-heading {
        font-size: 2rem;
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--primary-dark);
}

/* ============================================
   Light Theme Variables
   ============================================ */
body.light-theme {
    --primary-dark: #ffffff;
    --secondary-dark: #f5f5f5;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --accent-green: #059669;
    /* Darker green for light mode contrast */
    --accent-blue: #2563eb;
    /* Darker blue for light mode contrast */
    --accent-soft: rgba(37, 99, 235, 0.1);
    --pill-text: #1d4ed8;
    --mobile-menu-bg: rgba(255, 255, 255, 0.95);
    --theme-toggle-bg: rgba(0, 0, 0, 0.05);
}

body.light-theme #particles-js {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 30%, #f5f7fa 70%, #ffffff 100%);
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-link {
    color: #1f2937 !important;
}

body.light-theme .nav-link:hover {
    color: var(--accent-green) !important;
}

body.light-theme #mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 255, 136, 0.2);
}

body.light-theme .hero-section {
    background: rgba(255, 255, 255, 0.8);
}

body.light-theme .section:nth-child(even) {
    background: rgba(240, 244, 248, 0.5);
}

body.light-theme .code-block {
    background: rgba(30, 30, 30, 0.95);
}

body.light-theme .skill-card,
body.light-theme .project-card-v2,
body.light-theme .contact-card,
body.light-theme .contact-form-card,
body.light-theme .timeline-content,
body.light-theme .testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .back-to-top svg {
    color: #ffffff;
}

body.light-theme .resume-btn {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

body.light-theme .resume-btn:hover {
    background-color: var(--accent-blue);
    color: #ffffff;
}

/* Footer */
.footer {
    background: #000000;
    transition: background 0.3s ease;
}

body.light-theme .footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .footer p {
    color: var(--text-secondary);
}

body.light-theme .social-link-card {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light-theme .cursor-glow {
    opacity: 0.4;
}

body.light-theme .social-link-card svg,
body.light-theme .project-link-icon,
body.light-theme .skill-pill,
body.light-theme .contact-icon,
body.light-theme .contact-card-title,
body.light-theme .skill-card-icon,
body.light-theme .project-folder-icon,
body.light-theme .testimonial-quote svg {
    color: var(--accent-green);
}

body.light-theme .testimonial-quote svg {
    opacity: 0.8;
}

body.light-theme .form-label {
    color: var(--text-secondary);
}

body.light-theme .form-input,
body.light-theme .form-textarea {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--text-primary);
}

body.light-theme .form-input:focus,
body.light-theme .form-textarea:focus {
    border-color: var(--accent-green);
    background: #ffffff;
}

body.light-theme .form-input::placeholder,
body.light-theme .form-textarea::placeholder {
    color: #9ca3af;
}

body.light-theme .contact-card,
body.light-theme .contact-form-card,
body.light-theme .project-card-v2,
body.light-theme .skill-card,
body.light-theme .testimonial-card,
body.light-theme .timeline-content {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}