#nebula-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, #8A2BE2 60%, transparent 100%),
                            radial-gradient(ellipse 60% 40% at 30% 70%, #00D4FF 40%, transparent 100%),
                            radial-gradient(ellipse 40% 30% at 80% 80%, #FF00CC 30%, transparent 100%),
                            linear-gradient(120deg, #0E0E1E 60%, #1a1a2e 100%);
    opacity: 0.7;
    pointer-events: none;
    animation: nebula-move 20s linear infinite alternate;
}

@keyframes nebula-move {
    0% { filter: blur(0px); }
    100% { filter: blur(8px); }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 6s ease-in-out infinite;
}

@keyframes gradient-x {
    0%, 100% { background-position: left center; }
    50% { background-position: right center; }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards;
}
.animate-fade-in.delay-200 {
    animation-delay: 0.2s;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

.glass-effect {
    background: rgba(16, 16, 32, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-glow {
    background: linear-gradient(90deg, #8A2BE2 0%, #00D4FF 100%);
    color: #fff;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 16px 4px #8A2BE280, 0 0 32px 8px #00D4FF40;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    text-shadow: 0 2px 8px #00D4FF80;
    border: none;
    font-size: 1.125rem;
}
.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 32px 8px #00D4FF80, 0 0 48px 12px #8A2BE280;
    background: linear-gradient(90deg, #00D4FF 0%, #8A2BE2 100%);
}

.nav-link {
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}
.nav-link:after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00D4FF, #8A2BE2);
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -4px;
}
.nav-link:hover {
    color: #00D4FF;
}
.nav-link:hover:after {
    width: 100%;
}
.nav-link-contact {
    background: linear-gradient(90deg, #8A2BE2 0%, #00D4FF 100%);
    color: #fff;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0 8px 2px #8A2BE280;
    transition: background 0.3s, box-shadow 0.3s;
}
.nav-link-contact:hover {
    background: linear-gradient(90deg, #00D4FF 0%, #8A2BE2 100%);
    box-shadow: 0 0 16px 4px #00D4FF80;
}

.skill-pill {
    background: #1a1a2e;
    color: #e0e0ff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.12);
    border: 1px solid rgba(138, 43, 226, 0.25);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    transform: translateZ(0);
}
.skill-pill:hover {
    background-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
    transform: scale(1.05);
}

.project-card .project-overlay {
    transition: opacity 0.3s, background 0.4s;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.tab-pane {
    transition: opacity 300ms ease, transform 300ms ease;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
.tab-pane.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#game-dev-projects,
#web-dev-projects,
#olympus-projects {
    transition: opacity 300ms ease, transform 300ms ease;
    opacity: 1;
    transform: translateY(0);
}
#game-dev-projects:not(.show),
#web-dev-projects:not(.show),
#olympus-projects:not(.show) {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
.section-title-underline {
    position: relative;
    display: block;
    margin: 0 auto;
    margin-bottom: 2rem;
    text-align: center;
}
.section-title-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
html {
    background-color: #0a0a1a;
}

:root {
    --accent: #7c3aed;
}

body {
    font-family: 'Inter', sans-serif;
    
    color: #e0e0e0;
    overflow-x: hidden;
}

#resume-content {
    color: #e0e0e0;
}

#resume-content .resume-header {
    text-align: center;
    margin-bottom: 2rem;
}

#resume-content .resume-header h1 {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

#resume-content .resume-header p {
    color: #d1d5db;
    margin-top: 0.5rem;
}

#resume-content .resume-header a {
    color: #00D4FF;
    text-decoration: none;
}

#resume-content .resume-header a:hover {
    text-decoration: underline;
}

#resume-content .resume-section {
    margin-top: 1.5rem;
}

#resume-content .resume-section h2 {
    color: #bdbdfb;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

#resume-content .resume-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

#resume-content .qualification-spacer {
    height: 1.25rem;
}

#resume-content .md-spacer {
    height: 1rem;
}

#resume-content p {
    color: #e5e7eb;
    line-height: 1.65;
}

#resume-content ul {
    margin-left: 1.25rem;
    list-style: disc;
}

#resume-content li {
    margin: 0.25rem 0;
}

#resume-content .resume-pill-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#resume-content .resume-pill-list .skill-pill {
    margin: 0;
}

#resume-content .resume-footer {
    margin-top: 1.5rem;
    color: #9ca3af;
}

#resume-content .resume-footer ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

#resume-content .resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

#resume-content .resume-actions a {
    background: #7c3aed;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

#resume-content .resume-actions a:hover {
    background: #8b5cf6;
}

.resume-pdf {
    background: #ffffff;
    color: #1f2937;
    padding: 0.45in 0.5in;
    width: 7.5in;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.45;
    font-size: 10pt;
}

.resume-pdf h1 {
    font-size: 18pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    color: #111827;
    text-align: center;
}

.resume-pdf h2 {
    font-size: 11.5pt;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.2rem;
}

.resume-pdf h3 {
    font-size: 10.5pt;
    font-weight: 600;
    margin-top: 0.55rem;
    margin-bottom: 0.15rem;
    color: #1f2937;
}

.resume-pdf h4 {
    font-size: 9.5pt;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.15rem;
    color: #4b5563;
}

.resume-pdf p {
    margin-bottom: 0.35rem;
    text-align: left;
}

.resume-pdf .md-spacer {
    height: 0.35rem;
}

.resume-pdf a {
    color: #1f2937;
    text-decoration: none;
}

.resume-pdf ul {
    margin-left: 1.35rem;
    margin-bottom: 0.4rem;
    list-style: disc;
}

.resume-pdf li {
    margin: 0.2rem 0;
    line-height: 1.4;
}

.resume-pdf hr {
    border: none;
    height: 1px;
    background: #d1d5db;
    margin: 0.5rem 0;
}

.resume-pdf .contact-info {
    text-align: center;
    margin-bottom: 0.6rem;
    font-size: 9pt;
    color: #6b7280;
}

.resume-pdf .contact-info a {
    color: #374151;
    margin: 0 0.5rem;
}

.resume-pdf .section-content {
    margin-bottom: 0.5rem;
}

.resume-pdf .resume-section {
    margin-top: 0;
    padding: 0;
}

.resume-pdf .resume-header {
    margin-bottom: 0.5rem;
}

.resume-pdf .qualification-spacer {
    height: 0.5rem;
}

.resume-pdf .job-title {
    font-weight: 600;
    color: #1f2937;
    margin-top: 0.5rem;
}

.resume-pdf .job-details {
    font-size: 9pt;
    color: #4b5563;
    font-style: normal;
    margin-bottom: 0.25rem;
}

.resume-pdf .interests-inline {
    font-size: 10pt;
    color: #374151;
    margin-bottom: 0;
    line-height: 1.5;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#header.glass-effect {
    background: #0E0E1E;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(31, 41, 55, 0.6);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    border-radius: 0;
}

.hero-gradient-text {
    background: linear-gradient(90deg,
        rgba(138, 43, 226, 0.6),
        rgba(74, 0, 224, 0.6),
        rgba(0, 212, 255, 0.6)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-gradient-text[href^="mailto:"] {
    background: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--accent) !important;
    color: var(--accent) !important;
}

#home .hero-gradient-text {
    background: none;
    background-clip: initial;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: var(--accent);
    color: var(--accent);
}

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

.project-card:hover img {
    transform: scale(1.05);
}

.project-card img {
    display: block;
    width: 100%;
    height: auto;
}

.project-card .relative {
    /* Removed line-height:0 which caused inherited zero line-height inside overlay text leading to overlapping lines */
    overflow: hidden;
}

/* Ensure readable line height inside project overlays */
.project-card .project-overlay h3,
.project-card .project-overlay p {
    line-height: 1.25;
}

.about-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 20%;
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}
