:root {
    --primary-color: #00ffff;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #6b7280;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-secondary: linear-gradient(135deg, #4ecdc4 0%, #44bba4 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-primary: 0 20px 40px rgba(0, 255, 255, 0.1);
    --shadow-secondary: 0 10px 30px rgba(0, 0, 0, 0.3);
    --font-primary: system-ui, sans-serif;
    --font-mono: ui-monospace, monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Floating Contact Form Styles */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.form-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.close-form {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-form:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

.maybe-later {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.maybe-later:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
}

.overlay-contact-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.overlay-contact-form .form-group input,
.overlay-contact-form .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.overlay-contact-form .form-group input:focus,
.overlay-contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

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

.overlay-contact-form .form-group input:focus + label,
.overlay-contact-form .form-group textarea:focus + label,
.overlay-contact-form .form-group input:not(:placeholder-shown) + label,
.overlay-contact-form .form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.overlay-contact-form .form-status {
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    min-height: 20px;
}

.overlay-contact-form .form-status.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.overlay-contact-form .form-status.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.overlay-contact-form .form-status.loading {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

.nav-link:hover {
    color: #ff2d95;
    text-shadow: 0 0 8px rgba(255, 45, 149, 0.5);
}

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

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile Nav Active State */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem 2rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.1rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particles {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.title-line {
    display: block;
    background-clip: text;
}

/* Name — clip reveal with glow */
.title-name {
    color: transparent;
    background: linear-gradient(90deg, #fff 0%, #4facfe 50%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.5s forwards, gradientShift 4s ease-in-out 1.5s infinite;
    letter-spacing: -0.02em;
}

/* Role — gradient text with sweep */
.title-role {
    color: transparent;
    background: linear-gradient(135deg, #4facfe 0%, #4ecdc4 40%, #ffbd2e 70%, #4facfe 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.7s forwards, roleSweep 6s ease-in-out 2s infinite;
    font-size: 0.6em;
    letter-spacing: 0.15em;
    margin-top: 0.3rem;
}

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

@keyframes roleSweep {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
    letter-spacing: 0.02em;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.cta-question {
    display: block;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 0.5rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

/* Sections */
section {
    padding: 6rem 0;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

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

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.skill-item {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Terminal */
.terminal-window {
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-secondary);
}

.terminal-header {
    background: var(--bg-primary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.terminal-title {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 420px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.typing {
    position: relative;
    animation: blink 1s step-end infinite;
}

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

.typing::after {
    content: '|';
    color: var(--primary-color);
    animation: blink 1s infinite;
}

/* Projects Section */
.featured-project {
    margin-bottom: 4rem;
}

.project-card.flagship {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid var(--primary-color);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.project-card.flagship::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 1;
}

.flagship-badge {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-categories {
    margin-bottom: 4rem;
}

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

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.snapit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.snapit-card {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border: 1px solid rgba(78, 205, 196, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.snapit-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
}

.snapit-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.snapit-card .project-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-stats {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

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

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

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
    border-color: var(--primary-color);
}

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

.project-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

.sphinx-hero-img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: url('blog/images/sphinxbrain.png') center 30%/cover no-repeat;
    background-color: #0a0a1a;
    position: relative;
    overflow: hidden;
    image-rendering: auto;
}

.sphinx-hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: contrast(1.15) saturate(1.3);
    -webkit-backdrop-filter: contrast(1.15) saturate(1.3);
}

.sphinx-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(200, 50, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(50, 150, 255, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, transparent 50%, rgba(10, 10, 26, 0.7) 100%);
    pointer-events: none;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.project-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.project-icon img[alt="QR Cheetah logo"] {
    background: #fff;
}

.project-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.project-type {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.dev-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.tech-tag {
    background: var(--bg-primary);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Project Action Buttons - Enhanced Styling */
.project-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.project-voting {
    margin-right: auto;
}

.vote-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.vote-btn.voted {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vote-btn.voting {
    opacity: 0.6;
    cursor: wait;
}

.vote-count {
    font-weight: 600;
    color: var(--primary-color);
}

/* Project Link Buttons - Distinct Styles */
.project-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid;
}

/* Live Site Button - Green/Blue */
.project-link:not(.dev-blog):not(.github-link):not(.contribute-link) {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(79, 172, 254, 0.15));
    border-color: rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
}

.project-link:not(.dev-blog):not(.github-link):not(.contribute-link):hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(79, 172, 254, 0.25));
    border-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

/* Dev Blog Button */
.project-link.dev-blog {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.3);
    color: #4facfe;
}

.project-link.dev-blog:hover {
    background: rgba(79, 172, 254, 0.2);
    border-color: #4facfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.15);
}

/* GitHub Button - Orange/Red */
.project-link.github-link {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 87, 51, 0.15));
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.project-link.github-link:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(255, 87, 51, 0.25));
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

/* Contribute Button - Gold/Yellow */
.project-link.contribute-link {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.15));
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.project-link.contribute-link:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 193, 7, 0.25));
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* SVG icons in buttons */
.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(3px);
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.project-links a:hover {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group textarea {
    min-height: 120px;
    font-family: inherit;
}

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

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

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Form Status Messages */
.form-status {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-status.show {
    opacity: 1;
    transform: translateY(0);
}

.form-status.success {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.form-status.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.form-status.loading {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

/* Submit Button Loading State */
.btn-loading {
    display: none;
}

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

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

.btn.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Phone field styling */
.form-group input[type="tel"],
.form-group input[type="text"]:not([required]) + label {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-divider {
    color: var(--text-muted);
    opacity: 0.4;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff2d95;
    text-shadow: 0 0 8px rgba(255, 45, 149, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .projects-grid,
    .snapit-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .project-card.flagship {
        padding: 2rem;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-stats {
        padding: 2rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-cta .btn {
        display: block;
        margin: 0.5rem 0;
    }

    .project-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Smooth scroll behavior for all elements */
* {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ========== GLOBAL LINK STYLING ========== */
/* Remove boring underlines — animated solid underline on hover */
a {
    text-decoration: none;
    color: inherit;
}

.footer-text a,
.footer-links a,
.contact-item a,
.project-links a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 2px;
}

.footer-text a::after,
.footer-links a::after,
.contact-item a::after,
.project-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-text a:hover::after,
.footer-links a:hover::after,
.contact-item a:hover::after,
.project-links a:hover::after {
    width: 100%;
}

.footer-text a:hover,
.footer-links a:hover,
.contact-item a:hover,
.project-links a:hover {
    color: #ff2d95;
    text-shadow: 0 0 8px rgba(255, 45, 149, 0.4);
}

/* Selection styles */
::selection {
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Section Background Fixes */
.projects {
    background: var(--bg-primary);
    padding: 6rem 0;
}

section {
    background: var(--bg-primary);
}

/* ========== FOOTER CONTRIBUTE BUTTON ========== */
.footer-contribute {
    margin: 2rem 0;
}

.contribute-footer-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.15));
    border: 2px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.contribute-footer-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 193, 7, 0.25));
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* ========== DONATION MODAL ========== */
.donation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donation-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.donation-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #ffd700;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.donation-modal.show .donation-modal-content {
    transform: scale(1);
}

.donation-modal-header {
    background: linear-gradient(135deg, #2d3561 0%, #1f2749 100%);
    border-bottom: 2px solid #ffd700;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donation-modal-header h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.donation-modal-close {
    background: none;
    border: 2px solid #ffd700;
    color: #ffd700;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.donation-modal-close:hover {
    background: #ffd700;
    color: #1a1a2e;
    transform: scale(1.1);
}

.donation-modal-body {
    padding: 2rem;
}

.donation-description {
    color: #b8b8b8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.donation-type {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.donation-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.donation-type-option:has(input:checked) {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
}

.donation-type-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.donation-type-option span {
    color: #e0e0e0;
    font-weight: 500;
}

.donation-amount {
    margin-bottom: 1.5rem;
}

.donation-amount label {
    display: block;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.amount-input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
}

.currency-symbol {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 700;
}

#donationAmountInput {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    outline: none;
}

#donationAmountInput::-webkit-inner-spin-button,
#donationAmountInput::-webkit-outer-spin-button {
    opacity: 1;
}

.frequency-text {
    color: #b8b8b8;
    font-size: 0.9rem;
}

.donation-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.preset-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.preset-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.email-github-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.donation-project-select,
.donation-name-input,
.email-input-group {
    margin-bottom: 1rem;
}

.donation-project-select label,
.donation-name-input label,
.email-input-group label {
    display: block;
    color: #b8b8b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.donation-project-select select,
.donation-name-input input,
.email-input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.donation-project-select select:focus,
.donation-name-input input:focus,
.email-input-group input:focus {
    border-color: #ffd700;
}

.donation-project-select select {
    cursor: pointer;
}

.donation-project-select select option {
    background: #1a1a2e;
    color: #ffffff;
}

.github-link-group {
    text-align: center;
}

.github-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 87, 51, 0.15));
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.github-link-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(255, 87, 51, 0.25));
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.proceed-donation-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    border: none;
    color: #1a1a2e;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.proceed-donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* Responsive Donation Modal */
@media (max-width: 768px) {
    .donation-modal-content {
        width: 95%;
    }

    .donation-presets {
        grid-template-columns: repeat(2, 1fr);
    }

    .donation-type {
        flex-direction: column;
    }
}
