:root {
    --neon-green: #00ff88;
    --neon-blue: #00e5ff;
    --neon-purple: #b794f6;
    --dark-bg: #0a0e27;
    --darker-bg: #050714;
    --card-bg: rgba(15, 20, 40, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(0, 255, 136, 0.2);
    --gradient-1: linear-gradient(135deg, #00ff88 0%, #00e5ff 100%);
    --gradient-2: linear-gradient(135deg, #b794f6 0%, #00e5ff 100%);
    --gradient-3: linear-gradient(135deg, #ff006e 0%, #ff4757 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(183, 148, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1002;
}

.logo:hover {
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.7);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--neon-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.nav-link:hover::before {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: 100px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--neon-green);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.6); }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.hero-title .gradient-text {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue), var(--neon-purple));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title .outline-text {
    -webkit-text-stroke: 2px var(--neon-blue);
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: lowercase;
}

.btn-glow {
    background: var(--gradient-1);
    color: var(--darker-bg);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.7);
}

.btn-outline {
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float-up 20s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.projects {
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

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

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.project-card:hover::before {
    transform: translateX(0);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.project-link:hover {
    color: var(--neon-green);
    gap: 1rem;
}

.achievements {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 229, 255, 0.05));
    position: relative;
    z-index: 2;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.achievement-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.achievement-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.achievement-title {
    font-size: 1.25rem;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.achievement-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.skills-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.skills-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.skills-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.skills-list {
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.skill-pill {
    padding: 0.75rem 1.5rem;
    background: rgba(183, 148, 246, 0.1);
    border: 1px solid var(--neon-purple);
    border-radius: 100px;
    color: var(--neon-purple);
    font-weight: 600;
    white-space: nowrap;
}

.contact {
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 2rem;
}

.contact-title .gradient {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--neon-green);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    margin-bottom: 3rem;
    transition: all 0.3s;
}

.contact-email:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15, 20, 40, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(15, 20, 40, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff006e;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
}

.form-group label {
    position: absolute;
    left: 1.5rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 0.5rem;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.75rem;
    left: 1rem;
    font-size: 0.875rem;
    color: var(--neon-green);
    background: var(--darker-bg);
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-blue) 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline-block;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
}

.success-message,
.error-message {
    display: none;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    animation: slideUp 0.5s ease;
}

.success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.error-message {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid #ff006e;
    color: #ff006e;
}

.success-message.show,
.error-message.show {
    display: block;
}

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

.contact-divider {
    margin: 2rem auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0 2rem;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: rgba(0, 255, 136, 0.2);
}

.contact-divider::before {
    right: 100%;
}

.contact-divider::after {
    left: 100%;
}

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

.social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 1rem 2rem 1rem;
        min-height: calc(100vh - 60px);
        align-items: flex-start;
    }

    .hero-container {
        padding-top: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        animation: slideDown 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s;
    }
    
    .nav-link:hover {
        background: rgba(0, 255, 136, 0.1);
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 255, 136, 0.2);
        width: 100%;
        max-width: 300px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* GitHub Contributions Section */
.github-section {
    padding: 100px 20px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.github-contributions-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.github-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.github-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.github-link {
    color: var(--neon-green);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.github-link:hover {
    transform: translateX(5px);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.github-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.github-stat {
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.github-stat:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.github-stat.stat-dark {
    background: #0d1117;
    border: 1px solid #30363d;
}

.github-stat.stat-dark:hover {
    border-color: #58a6ff;
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.1);
}

.github-stat.stat-highlight {
    background: linear-gradient(135deg, #0e4429 0%, #0d1117 100%);
    border-color: #39d353;
}

.github-stat.stat-highlight .stat-value {
    color: #39d353;
    font-size: 3rem;
}

.github-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 5px;
}

.github-stat .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contributions-graph {
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

.graph-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.months-row {
    display: grid;
    grid-template-columns: 30px repeat(53, 13px);
    gap: 3px;
    margin-bottom: 5px;
}

.month-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: left;
}

.graph-content {
    display: flex;
    gap: 10px;
}

.weekdays-column {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 30px;
}

.weekday {
    font-size: 11px;
    color: var(--text-secondary);
    height: 13px;
    display: flex;
    align-items: center;
}

.contributions-grid {
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
}

.contribution-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contribution-day {
    width: 13px;
    height: 13px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.contribution-day:hover {
    outline: 2px solid var(--neon-green);
    outline-offset: 2px;
    transform: scale(1.4);
    z-index: 10;
}

.contribution-tooltip {
    position: absolute;
    background: var(--dark-bg);
    border: 1px solid var(--neon-green);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-primary);
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.contribution-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--neon-green);
}

.contribution-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.legend-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-scale {
    display: flex;
    gap: 3px;
}

.legend-box {
    width: 13px;
    height: 13px;
    border-radius: 2px;
}

.legend-box[data-level="0"] {
    background-color: #161b22;
}

.legend-box[data-level="1"] {
    background-color: #0e4429;
}

.legend-box[data-level="2"] {
    background-color: #006d32;
}

.legend-box[data-level="3"] {
    background-color: #26a641;
}

.legend-box[data-level="4"] {
    background-color: #39d353;
}

.contributions-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 136, 0.2);
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.contributions-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.contributions-error .btn {
    margin-top: 20px;
}

/* GitHub Calendar Container */
.github-calendar-container {
    margin-top: 30px;
}

.github-calendar-header h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.github-calendar-subtitle {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.view-all-link {
    color: var(--neon-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* GitHub Chart */
.github-chart-container {
    background: #0d1117;
    border: 1px solid #30363d;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
    position: relative;
}

.github-chart-container-inner {
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
}

.github-chart {
    width: 100%;
    height: auto;
    display: block;
    /* Invert whites to match GitHub's exact dark gray for empty squares */
    filter: invert(0.85) hue-rotate(180deg) saturate(1.4) brightness(1.05) contrast(1.1);
}


.contribution-note {
    text-align: center;
    margin-top: 20px;
}

/* Contributions Graph Wrapper */
.contributions-graph-wrapper {
    background: #0d1117;
    border: 1px solid #30363d;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.contributions-calendar {
    display: block;
    margin: 0 auto;
}

.contribution-square {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.contribution-square:hover {
    opacity: 0.8;
    stroke: #58a6ff;
    stroke-width: 1px;
}

.month-label, .day-label {
    fill: #7d8590;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.github-tooltip {
    position: absolute;
    background: #1f2328;
    border: 1px solid #30363d;
    color: #e6edf3;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.github-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1f2328;
}

.view-details-link {
    color: #58a6ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-details-link:hover {
    color: var(--neon-green);
    text-decoration: underline;
}

/* Activity Overview */
.activity-overview {
    margin-top: 40px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.activity-header h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.activity-badge {
    background: var(--neon-green);
    color: var(--darker-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.recent-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(10, 14, 39, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 136, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.15);
}

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

.activity-highlight {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.08);
}

.activity-indicator {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-main {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.activity-repo {
    color: var(--neon-green);
    font-size: 0.85rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-activity,
.activity-error,
.activity-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

/* GitHub Footer */
.github-footer {
    margin-top: 30px;
    text-align: center;
}

.github-footer .btn {
    display: inline-block;
}

@media (max-width: 768px) {
    .github-contributions-wrapper {
        padding: 20px;
    }
    
    .github-title {
        font-size: 1.5rem;
    }
    
    .contributions-graph {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .github-stats {
        grid-template-columns: 1fr;
    }
}