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

:root {
    --primary-color: #111827;
    --secondary-color: #6b7280;
    --accent-color: #3b82f6;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.6s ease;
}

[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --border-color: #374151;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Mobile app cards styling */
.mobile-card {
    border-left: 4px solid #22d3ee;
    transition: all 0.3s ease;
}

.mobile-card:hover {
    border-left-color: #06b6d4;
    transform: translateY(-2px);
}

.mobile-card .project-icon {
    color: #000000;
}

.mobile-card .card-glow {
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
}

/* Dark mode support for mobile cards */
[data-theme="dark"] .mobile-card {
    border-left-color: #67e8f9;
}

[data-theme="dark"] .mobile-card:hover {
    border-left-color: #22d3ee;
}

[data-theme="dark"] .mobile-card .project-icon {
    color: #67e8f9;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
    overflow-x: hidden;
    transition: background-color var(--transition-medium), color var(--transition-medium);
}
.section {
    scroll-margin-top: 100px;
}
html {
    scroll-behavior: smooth;
}
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.code-animation {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.code-line {
    opacity: 0;
    animation: typeIn 0.8s ease forwards;
    white-space: pre;
}

.code-line:nth-child(1) { animation-delay: 0s; }
.code-line:nth-child(2) { animation-delay: 0.3s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.9s; }

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

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-accent);
    width: 0;
    animation: loadProgress 1.5s ease-in-out forwards;
    animation-delay: 1.2s;
}

@keyframes loadProgress {
    to {
        width: 100%;
    }
}


#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: cursorFade 1s ease-out forwards;
}

@keyframes cursorFade {
    to {
        opacity: 0;
        transform: scale(2);
    }
}



#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 10s linear infinite;
}

@keyframes float {
    from {
        transform: translateY(100vh) rotate(0deg);
    }
    to {
        transform: translateY(-100px) rotate(360deg);
    }
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: transform var(--transition-medium), background-color var(--transition-medium);
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.9);
}

.navbar.hidden {
    transform: translateY(-100%);
}

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

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-fast);
}

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

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(180deg);
}


.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 1001;
    transition: width 0.1s ease;
}


.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.profile-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.profile-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    position: relative;
    cursor: pointer;
}

.profile-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-medium);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-img:hover .profile-inner {
    transform: scale(1.1);
}

.profile-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
}

.ring-1 {
    width: 130px;
    height: 130px;
    top: -5px;
    left: -5px;
    animation: rotate 10s linear infinite;
}

.ring-2 {
    width: 140px;
    height: 140px;
    top: -10px;
    left: -10px;
    animation: rotate 15s linear infinite reverse;
}

.ring-3 {
    width: 150px;
    height: 150px;
    top: -15px;
    left: -15px;
    animation: rotate 20s linear infinite;
}

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


/* .typewriter {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accent-color);
    animation: typing 3s steps(20) forwards, blink 1s infinite;
} */

/* @keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: var(--accent-color);
    }
    51%, 100% {
        border-color: transparent;
    }
} */

.glitch-text {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    50% {
        transform: translate(2px, -2px);
        opacity: 0.75;
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    50% {
        transform: translate(-2px, 2px);
        opacity: 0.75;
    }
}

.title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 32px;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}


.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    transition: color var(--transition-fast);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}


.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.cta-button {
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button.primary {
    background: var(--gradient-accent);
    color: white;
}

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

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.button-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

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


.main-content {
    background: var(--bg-primary);
    padding: 80px 0;
    position: relative;
}

.section {
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-slow);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}


.highlight-on-hover {
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.highlight-on-hover:hover {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emoji-hover {
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.emoji-hover:hover {
    transform: scale(1.2);
}

.emoji-hover::after {
    content: attr(data-emoji);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.emoji-hover:hover::after {
    transform: translateX(-50%) scale(1);
}

.code-snippet {
    background: var(--bg-secondary);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.code-snippet:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}


.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-tab {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}


.grid {
    display: grid;
    gap: 24px;
}

.three-column {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all var(--transition-medium);
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

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

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.project-card:hover .card-glow {
    opacity: 0.1;
}

.project-icon-container {
    position: relative;
    margin-bottom: 16px;
}

.project-icon {
    font-size: 2.5rem;
    transition: all var(--transition-medium);
    position: relative;
    z-index: 2;
}

.game-card:nth-child(1) .project-icon { color: #ef4444; }
.game-card:nth-child(2) .project-icon { color: #3b82f6; }
.game-card:nth-child(3) .project-icon { color: #10b981; }
.game-card:nth-child(4) .project-icon { color: #8b5cf6; }
.game-card:nth-child(5) .project-icon { color: #f59e0b; }
.game-card:nth-child(6) .project-icon { color: #ec4899; }

.project-card:hover .project-icon {
    transform: scale(1.2) rotate(10deg);
}

.icon-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge.pulse {
    animation: pulse 2s infinite;
}

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

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0;
    position: relative;
    z-index: 2;
}

.tech-pill {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.tech-pill:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.play-btn,
.demo-btn,
.visit-btn,
.github-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.play-btn,
.visit-btn {
    background: var(--accent-color);
    color: white;
}

.demo-btn,
.github-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.play-btn:hover,
.visit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.demo-btn:hover,
.github-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}


.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.project-tab {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.project-tab.active,
.project-tab:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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


.skills-interactive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.skill-category {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.category-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    cursor: pointer;
}

.skill-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    width: 0;
    transition: width 1s ease;
    border-radius: 4px;
}

.skill-item:hover .skill-progress {
    animation: skillGlow 1s ease infinite alternate;
}

@keyframes skillGlow {
    to {
        box-shadow: 0 0 20px var(--accent-color);
    }
}


/* Fixed Code Demo Styles */

.code-demo {
    margin-top: 60px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.code-editor {
    background: #1e1e1e;
    color: #d4d4d4;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2d2d30;
    border-bottom: 1px solid #3e3e42;
}

.editor-tabs {
    display: flex;
    gap: 8px;
}

.tab {
    padding: 6px 12px;
    background: #3c3c3c;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border: none;
    color: #d4d4d4;
}

.tab.active {
    background: #007acc;
    color: white;
}

.tab:hover {
    background: #4a4a4a;
}

.tab.active:hover {
    background: #1f7abf;
}

.editor-controls {
    display: flex;
    gap: 8px;
}

.editor-controls i {
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.editor-content {
    display: flex;
    height: 350px; /* Fixed height to enable scrolling */
    overflow: hidden;
}

.line-numbers {
    background: #1e1e1e;
    color: #858585;
    padding: 16px 12px;
    border-right: 1px solid #3e3e42;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    user-select: none;
    white-space: pre;
    text-align: right;
    min-width: 40px;
    flex-shrink: 0;
    overflow: hidden;
}

.code-content {
    flex: 1;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre;
    background: #1e1e1e;
    color: #d4d4d4;
    overflow: auto; /* Enable both horizontal and vertical scrolling */
    scrollbar-width: thin;
    scrollbar-color: #555 #1e1e1e;
}

/* Custom scrollbar for webkit browsers */
.code-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-content::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.code-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.code-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.code-content::-webkit-scrollbar-corner {
    background: #1e1e1e;
}

/* Syntax highlighting styles */
.code-content .keyword {
    color: #569cd6;
    font-weight: bold;
}

.code-content .string {
    color: #ce9178;
}

.code-content .comment {
    color: #6a9955;
    font-style: italic;
}

.code-content .number {
    color: #b5cea8;
}

.code-content .method {
    color: #dcdcaa;
}

.code-content .property {
    color: #9cdcfe;
}

.code-output {
    background: #0f0f0f;
    color: #00ff00;
    height: 150px; /* Fixed height for output */
    border-top: 1px solid #3e3e42;
    display: flex;
    flex-direction: column;
}

.output-header {
    padding: 8px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d4d4d4;
    flex-shrink: 0;
}

.output-content {
    flex: 1;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 #0f0f0f;
}

/* Custom scrollbar for output */
.output-content::-webkit-scrollbar {
    width: 8px;
}

.output-content::-webkit-scrollbar-track {
    background: #0f0f0f;
}

.output-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.output-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .code-demo {
        margin: 40px -16px 0;
        border-radius: 0;
    }

    .editor-content {
        height: 280px;
    }

    .code-output {
        height: 120px;
    }

    .line-numbers {
        padding: 16px 8px;
        min-width: 35px;
        font-size: 0.8rem;
    }

    .code-content {
        padding: 16px 12px;
        font-size: 0.8rem;
    }

    .output-content {
        font-size: 0.8rem;
        padding: 12px;
    }

    .editor-header {
        padding: 8px 12px;
    }

    .tab {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .editor-controls i {
        padding: 6px;
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}


.contact-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.quick-contact h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

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

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

.form-group label {
    position: absolute;
    top: 16px;
    left: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    pointer-events: none;
    background: var(--bg-primary);
    padding: 0 4px;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-28px) scale(0.875);
    color: var(--accent-color);
}

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

.submit-btn {
    padding: 16px 32px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}


.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.preview-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    box-shadow: var(--shadow-heavy);
    transform: scale(0.8);
    transition: transform var(--transition-medium);
}

.preview-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.preview-content {
    text-align: center;
}

.preview-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.preview-description {
    color: var(--text-secondary);
    line-height: 1.6;
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-medium);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-medium);
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}


@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 100px 0 60px;
        min-height: 80vh;
    }

    .typewriter {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .main-content {
        padding: 60px 0;
    }

    .section {
        margin-bottom: 80px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .stats-container {
        gap: 20px;
        flex-wrap: wrap;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-tabs,
    .project-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-tab,
    .project-tab {
        padding: 6px 16px;
        font-size: 0.875rem;
    }

    .three-column,
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skills-interactive {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-card {
        padding: 24px;
    }

    .card-actions {
        flex-direction: column;
        gap: 8px;
    }

    .code-demo {
        margin: 40px -16px 0;
        border-radius: 0;
    }

    .editor-content {
        flex-direction: column;
    }

    .line-numbers {
        order: 2;
        border-right: none;
        border-top: 1px solid #3e3e42;
    }

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .profile-img {
        width: 100px;
        height: 100px;
    }

    .profile-inner {
        font-size: 28px;
    }

    .ring-1 {
        width: 110px;
        height: 110px;
    }

    .ring-2 {
        width: 120px;
        height: 120px;
    }

    .ring-3 {
        width: 130px;
        height: 130px;
    }

    .typewriter {
        font-size: 1.75rem;
    }

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

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

    .project-icon {
        font-size: 2rem;
    }

    .cta-button,
    .submit-btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
}


.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.game-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-medium);
}

.game-card.visible {
    opacity: 1;
    transform: scale(1);
}


.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/*--------about section----------------*/
.about-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.interactive-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.interactive-card:hover::before {
    left: 100%;
}

.interactive-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
    transition: transform var(--transition-medium);
}

.interactive-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-text-content {
    position: relative;
    z-index: 2;
}

.text-block {
    margin-bottom: 24px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.text-block:last-child {
    margin-bottom: 0;
}

/* Interactive text elements */
.highlight-text {
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
}

.typing-text {
    color: var(--accent-color);
    font-weight: 600;
    border-right: 2px solid var(--accent-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--accent-color); }
    51%, 100% { border-color: transparent; }
}

.digital-labs-link {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.labs-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.labs-text:hover {
    transform: scale(1.05);
}

.labs-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 10;
}

.digital-labs-link:hover .labs-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-heavy);
    min-width: 250px;
    text-align: center;
}

.tooltip-content strong {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

.tooltip-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.tooltip-stats {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tooltip-stats span {
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.skill-highlight {
    position: relative;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.skill-highlight[data-skill="technical"] {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.skill-highlight[data-skill="ux"] {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.skill-highlight:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.emoji-word {
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast);
    font-weight: 500;
}

.emoji-word:hover {
    transform: scale(1.1);
}

.emoji-word::after {
    content: attr(data-emoji);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.emoji-word:hover::after {
    transform: translateX(-50%) scale(1);
}

.code-snippet-inline {
    background: var(--bg-secondary);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.code-snippet-inline:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.github-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.github-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-fast);
}

.github-link:hover::after {
    width: 100%;
}

.meaningful-text {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Sidebar styles */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.info-card,
.journey-card,
.fun-facts-card,
.focus-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: all var(--transition-medium);
}

.info-card:hover,
.journey-card:hover,
.fun-facts-card:hover,
.focus-card:hover {
    box-shadow: var(--shadow-light);
    border-color: var(--accent-color);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.info-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid var(--border-color);
    transition: all var(--transition-medium);
}

/* .status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
} */

.info-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.info-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.stat-row:hover {
    background: rgba(59, 130, 246, 0.1);
}

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

.stat-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Journey timeline */
.journey-card h4,
.fun-facts-card h4,
.focus-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 20px;
}

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

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-item.active .timeline-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px #10b981;
}

.timeline-item.future .timeline-dot {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Fun facts grid */
.facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fact-item:hover {
    transform: scale(1.05);
    background: rgba(59, 130, 246, 0.1);
}

.fact-icon {
    font-size: 1.5rem;
    min-width: 24px;
}

.fact-text {
    display: flex;
    flex-direction: column;
}

.fact-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Learning progress */
.learning-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.learning-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.learning-progress {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    width: var(--progress, 0%);
    border-radius: 3px;
    transition: width 1s ease;
}

.learning-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 140px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .about-layout {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
}

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

    .about-sidebar {
        position: static;
    }

    .interactive-card {
        padding: 24px;
    }

    .text-block {
        font-size: 1rem;
    }

    .facts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tooltip-content {
        min-width: 200px;
    }
}

/*-----about me avatar------*/
.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-medium);
    border: 2px solid rgba(255, 255, 255, 0.2);
}


.info-avatar:hover .avatar-image {
    transform: scale(1.05);
}




.info-avatar:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border-color: var(--accent-color);
}

.link-github {
    display: flex;
    gap: 2rem;
}

.link-github {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.link-github:hover,
.link-github.active {
    color: var(--accent-color);
}

.link-github::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-fast);
}

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


.project-card, .tool-item, .experiment-card {
    animation: none !important;
    transition: all 0.3s ease !important;
}

/* Enhanced Contact Hub Styles - Replace in your styles.css */

.contact-hub {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Add subtle background pattern */
.contact-hub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hub > * {
    position: relative;
    z-index: 2;
}

.contact-hub h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Hover glow effect */
.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: var(--accent-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 10px 40px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

/* Icon animation */
.method-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.contact-method:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.contact-method:hover .method-icon::after {
    width: 100%;
    height: 100%;
}

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

.method-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.contact-method:hover .method-info h4 {
    color: var(--accent-color);
}

.method-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.method-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.method-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.method-btn:hover {
    background: #1f5abf;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.method-btn:hover::before {
    left: 100%;
}

.method-btn:active {
    transform: translateY(0) scale(0.98);
}

.method-btn i {
    transition: transform 0.3s ease;
}

.method-btn:hover i {
    transform: scale(1.2);
}

.contact-cta {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

.contact-cta p {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.contact-cta strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .contact-hub {
        padding: 32px 20px;
        border-radius: 16px;
    }
    
    .contact-hub h3 {
        font-size: 1.75rem;
    }
    
    .contact-intro {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .contact-method {
        padding: 20px;
        gap: 16px;
    }
    
    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .method-info h4 {
        font-size: 1.1rem;
    }
    
    .method-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .contact-cta {
        padding: 20px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .contact-method {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    }
    
    .contact-method:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    }
}

/* Animation for when section comes into view */
.contact-hub.animate-in {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered animation for contact methods */
.contact-method {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.contact-method:nth-child(1) { animation-delay: 0.1s; }
.contact-method:nth-child(2) { animation-delay: 0.2s; }
.contact-method:nth-child(3) { animation-delay: 0.3s; }
.contact-method:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
