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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e3a5f;
    background: linear-gradient(180deg, #87CEEB 0%, #a8d8ea 35%, #c5e3f6 65%, #e8f4fc 100%);
    background-attachment: scroll;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
    background: #0f172a;
    color: #e5e7eb;
}

body.dark-mode .section-title {
    color: #e5e7eb;
}

body.dark-mode .section-subtitle {
    color: #cbd5f5;
}

body.dark-mode .about {
    background: linear-gradient(
        180deg,
        #0f172a 0%,
        #16223a 25%,
        #1e293b 100%
    );
}

.about {
    position: relative;
}

body.dark-mode .about::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
        180deg,
        transparent,
        #0f172a
    );
    pointer-events: none;
}

body.dark-mode .about-text p {
    color: #cbd5f5;
}

body.dark-mode .skills h3,
body.dark-mode .certifications h3 {
    color: #e5e7eb;
}

body.dark-mode .projects {
    background: #1e293b;
}

body.dark-mode .contact {
    background: #1e293b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .navbar {
    background: rgba(255, 251, 245, 0.92);
    border-bottom: 1px solid rgba(214, 158, 46, 0.2);
    box-shadow: 0 2px 20px rgba(44, 82, 130, 0.06);
}

body:not(.dark-mode) .nav-logo a {
    color: #2c5282;
}

body:not(.dark-mode) .nav-logo a:hover {
    color: #c45c26;
}

body:not(.dark-mode) .nav-link {
    color: #2c5282;
}

body:not(.dark-mode) .nav-link:hover {
    color: #c45c26;
}

body:not(.dark-mode) .nav-link::after {
    background: #c45c26;
}

body:not(.dark-mode) .nav-link.active {
    color: #d69e2e;
}

body:not(.dark-mode) .nav-link.active::after {
    background: #d69e2e;
}

body:not(.dark-mode) .dark-mode-toggle {
    border: 2px solid rgba(44, 82, 130, 0.35);
    color: #2c5282;
}

body:not(.dark-mode) .dark-mode-toggle:hover {
    border-color: #c45c26;
    background: rgba(196, 92, 38, 0.08);
    color: #c45c26;
}

body:not(.dark-mode) .bar {
    background: #2c5282;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #d1d5db;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d1d5db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d1d5db;
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: #2abe74;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    height: 3px;
    background: #2abe74;
    bottom: -5px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #ffffff;
    font-size: 1.2rem;
}

.dark-mode-toggle:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
}

.dark-mode-toggle i {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-mode-toggle #sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.dark-mode-toggle #moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

body.dark-mode .dark-mode-toggle #sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

body.dark-mode .dark-mode-toggle #moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.2), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(99, 102, 241, 0.15), transparent 45%),
        #0f172a;
    color: #e5e7eb;
}

/* Light mode: summery sky gradient */
body:not(.dark-mode) .hero {
    background: linear-gradient(180deg, #6eb5e0 0%, #87CEEB 25%, #a8d8ea 55%, #c5e3f6 80%, #e0f4ff 100%);
    color: #1e3a5f;
}

body:not(.dark-mode) .hero::before {
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Stars - visible in dark mode only */
.hero-stars {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><g fill="white"><circle cx="23" cy="41" r="0.8" opacity="0.9"/><circle cx="87" cy="19" r="0.6" opacity="0.7"/><circle cx="156" cy="67" r="0.5" opacity="0.6"/><circle cx="234" cy="33" r="0.8" opacity="0.8"/><circle cx="312" cy="89" r="0.6" opacity="0.7"/><circle cx="48" cy="128" r="0.5" opacity="0.5"/><circle cx="129" cy="145" r="0.7" opacity="0.8"/><circle cx="201" cy="112" r="0.5" opacity="0.6"/><circle cx="278" cy="167" r="0.6" opacity="0.7"/><circle cx="67" cy="203" r="0.5" opacity="0.5"/><circle cx="178" cy="221" r="0.8" opacity="0.9"/><circle cx="256" cy="198" r="0.5" opacity="0.6"/><circle cx="334" cy="244" r="0.6" opacity="0.7"/><circle cx="19" cy="278" r="0.6" opacity="0.6"/><circle cx="112" cy="312" r="0.5" opacity="0.5"/><circle cx="198" cy="289" r="0.7" opacity="0.8"/><circle cx="289" cy="334" r="0.5" opacity="0.6"/><circle cx="45" cy="356" r="0.6" opacity="0.7"/><circle cx="145" cy="38" r="0.5" opacity="0.5"/><circle cx="367" cy="156" r="0.6" opacity="0.6"/><circle cx="92" cy="267" r="0.5" opacity="0.5"/><circle cx="223" cy="278" r="0.7" opacity="0.8"/></g></svg>');
    background-size: 400px 400px;
    opacity: 0.85;
}

body.dark-mode .hero-stars {
    display: block;
}

/* Clouds - visible in light mode only */
.hero-clouds {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-stars, .hero-clouds { will-change: transform; }

body:not(.dark-mode) .hero-clouds {
    display: block;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
    animation: cloudFloat 25s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.cloud-1 {
    width: 120px;
    height: 40px;
    top: 18%;
    left: 10%;
    animation-delay: 0s;
}
.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 15px;
}
.cloud-1::after {
    width: 70px;
    height: 35px;
    top: -15px;
    left: 55px;
}

.cloud-2 {
    width: 160px;
    height: 50px;
    top: 35%;
    right: 8%;
    animation-delay: -5s;
    animation-duration: 30s;
}
.cloud-2::before {
    width: 65px;
    height: 65px;
    top: -30px;
    left: 20px;
}
.cloud-2::after {
    width: 85px;
    height: 45px;
    top: -20px;
    left: 75px;
}

.cloud-3 {
    width: 100px;
    height: 35px;
    top: 55%;
    left: 5%;
    animation-delay: -10s;
    animation-duration: 28s;
}
.cloud-3::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 10px;
}
.cloud-3::after {
    width: 55px;
    height: 30px;
    top: -12px;
    left: 45px;
}

.cloud-4 {
    width: 140px;
    height: 45px;
    top: 72%;
    right: 15%;
    animation-delay: -15s;
    animation-duration: 32s;
}
.cloud-4::before {
    width: 55px;
    height: 55px;
    top: -28px;
    left: 18px;
}
.cloud-4::after {
    width: 75px;
    height: 40px;
    top: -18px;
    left: 65px;
}

.cloud-5 {
    width: 90px;
    height: 32px;
    top: 28%;
    left: 45%;
    animation-delay: -8s;
    animation-duration: 26s;
}
.cloud-5::before {
    width: 40px;
    height: 40px;
    top: -18px;
    left: 8px;
}
.cloud-5::after {
    width: 50px;
    height: 28px;
    top: -10px;
    left: 40px;
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(15px) translateY(-5px);
    }
    50% {
        transform: translateX(-10px) translateY(5px);
    }
    75% {
        transform: translateX(20px) translateY(3px);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
}

body:not(.dark-mode) .highlight {
    color: #d97706;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #cbd5f5;
}

body:not(.dark-mode) .hero-subtitle {
    color: #2563eb;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cbd5f5;
    line-height: 1.7;
}

body:not(.dark-mode) .hero-description {
    color: #1e40af;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6366f1 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #818cf8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4), 0 0 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #cbd5f5;
    border: 2px solid #9333ea;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    border-color: #a855f7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 30px rgba(99, 102, 241, 0.2);
}

body:not(.dark-mode) .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #1e3a5f;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

body:not(.dark-mode) .btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

body:not(.dark-mode) .btn-secondary {
    color: #2563eb;
    border-color: #2563eb;
}

body:not(.dark-mode) .btn-secondary:hover {
    background: #2563eb;
    color: white;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}


.code-line {
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    margin: 1rem 0;
    border-radius: 2px;
    animation: codeTyping 2s ease-in-out infinite;
}

body:not(.dark-mode) .code-line {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.code-line:nth-child(1) { width: 80%; animation-delay: 0s; }
.code-line:nth-child(2) { width: 60%; animation-delay: 0.5s; }
.code-line:nth-child(3) { width: 90%; animation-delay: 1s; }
.code-line:nth-child(4) { width: 70%; animation-delay: 1.5s; }

/* Section Styles */
section {
    padding: 28rem 0;
    scroll-margin-top: 90px; /* Account for fixed navbar + extra spacing */
    opacity: 1;
    transition: opacity 0.4s ease-out;
    will-change: opacity;
}

/* Extra scroll margin for mobile devices */
@media (max-width: 768px) {
    section {
        scroll-margin-top: 120px; /* More spacing on mobile for better visibility */
    }
    
    /* Also add scroll-margin-top to section titles directly */
    .section-title {
        scroll-margin-top: 120px;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

body:not(.dark-mode) .section-title {
    color: #1e3a5f;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #2b463f;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body:not(.dark-mode) .section-subtitle {
    color: #2563eb;
    opacity: 0.9;
}

/* About Section */
.about {
    background: #9ca3af;
}

body:not(.dark-mode) .about {
    background: linear-gradient(180deg, #e0f4ff 0%, #f0f9ff 50%, #f8fcff 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.7;
}

body:not(.dark-mode) .about-text p {
    color: #1e40af;
    opacity: 0.95;
}

.skills {
    margin-top: 3rem;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #373d49;
}

body:not(.dark-mode) .skills h3,
body:not(.dark-mode) .certifications h3 {
    color: #1e3a5f;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #1f2937;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 1.5rem;
    color: #60a5fa;
    transition: color 0.3s ease;
}

.skill-item span {
    font-weight: 500;
    color: #cbd5f5;
    transition: color 0.3s ease;
}

body:not(.dark-mode) .skill-item {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
    border: 2px solid rgba(37, 99, 235, 0.25);
}

body:not(.dark-mode) .skill-item:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25), 0 0 20px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.5);
}

body:not(.dark-mode) .skill-item i {
    color: #2563eb;
}

body:not(.dark-mode) .skill-item span {
    color: #1e3a5f;
}

body.dark-mode .skill-item {
    background: #374151;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(0, 0, 0, 0.4);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

body.dark-mode .skill-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    opacity: 0.5;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .skill-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: #374151;
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .skill-item:hover {
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(96, 165, 250, 0.2),
        0 0 0 2px rgba(0, 212, 255, 0.4);
}

body.dark-mode .skill-item:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.6) 0%, rgba(96, 165, 250, 0.5) 100%);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.5),
        0 0 35px rgba(96, 165, 250, 0.3);
}

body.dark-mode .skill-item i {
    color: #93c5fd;
}

body.dark-mode .skill-item span {
    color: #e5e7eb;
}

.certifications {
    margin-top: 3rem;
}

.certifications h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #373d49;
}

.certification-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #1f2937;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.certification-item:hover {
    transform: translateY(-5px);
}

.certification-item i {
    font-size: 1.5rem;
    color: #ff9900;
    transition: color 0.3s ease;
}

.certification-item span {
    font-weight: 500;
    color: #cbd5f5;
    transition: color 0.3s ease;
}

body:not(.dark-mode) .certification-item {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.25);
}

body:not(.dark-mode) .certification-item:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3), 0 0 20px rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

body:not(.dark-mode) .certification-item i {
    color: #d97706;
}

body:not(.dark-mode) .certification-item span {
    color: #1e3a5f;
}

body.dark-mode .certification-item {
    background: #374151;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(0, 0, 0, 0.4);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

body.dark-mode .certification-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.3) 100%);
    opacity: 0.5;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .certification-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: #374151;
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .certification-item:hover {
    box-shadow: 
        0 8px 25px rgba(251, 191, 36, 0.3),
        0 0 30px rgba(245, 158, 11, 0.2),
        0 0 0 2px rgba(251, 191, 36, 0.4);
}

body.dark-mode .certification-item:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.6) 0%, rgba(245, 158, 11, 0.5) 100%);
    box-shadow: 
        0 0 20px rgba(251, 191, 36, 0.5),
        0 0 35px rgba(245, 158, 11, 0.3);
}

body.dark-mode .certification-item i {
    color: #fbbf24;
}

body.dark-mode .certification-item span {
    color: #e5e7eb;
}

/* Projects Section */
.projects {
    background: #7d8590;
}

body:not(.dark-mode) .projects {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

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

.project-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.project-card {
    background: #263852;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 4px solid #27dd6d88;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

/* Dark mode: glowing gradient border effect */
body.dark-mode .project-card {
    background: #1a1f2e;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(0, 212, 255, 0.25);
    position: relative;
}

body.dark-mode .project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 15px;
    background: linear-gradient(135deg, #00d4ff 0%, #5b8def 50%, #a855f7 100%);
    opacity: 0.5;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 13px;
    background: #1a1f2e;
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 60px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2),
        0 0 60px rgba(168, 85, 247, 0.15),
        0 0 0 2px rgba(0, 212, 255, 0.6);
}

body.dark-mode .project-card:hover::before {
    opacity: 1;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 50px rgba(91, 141, 239, 0.4),
        0 0 70px rgba(168, 85, 247, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid #09ff67c9;
}

body:not(.dark-mode) .project-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
}

body:not(.dark-mode) .project-card:hover {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.18);
}

body:not(.dark-mode) .project-title {
    color: #1e3a5f;
}

body:not(.dark-mode) .project-card:hover .project-title {
    color: #d97706;
}

body:not(.dark-mode) .project-description {
    color: #1e40af;
    opacity: 0.9;
}

body:not(.dark-mode) .project-card:hover .project-description {
    color: #1e40af;
}

body:not(.dark-mode) .tech-tag {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

body:not(.dark-mode) .project-link {
    color: #2563eb;
}

body:not(.dark-mode) .project-link:hover::before {
    background: rgba(37, 99, 235, 0.15);
}

body:not(.dark-mode) .project-card:hover .project-link {
    color: #d97706;
}

body:not(.dark-mode) .project-placeholder {
    color: #1e3a5f;
    opacity: 0.5;
}

.project-image {
    height: 320px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 2;
}

.cleanreps-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

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

.project-card:hover .project-title {
    color: #fbbe24b4;
}

.project-card:hover .project-description {
    color: #fbbe24ab;
}

body.dark-mode .project-card:hover .project-description {
    color: #e5e7eb;
}

.project-placeholder {
    color: white;
    font-size: 3rem;
    opacity: 0.8;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.2s ease;
}

.project-placeholder.hidden {
    display: none;
}

/* Mobile-only image indicators */
.image-carousel-dots {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    gap: 8px;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.image-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    pointer-events: none;
}

.image-carousel-dot.active {
    width: 8px;
    height: 8px;
    background: rgba(251, 191, 36, 0.9);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.image-switch-hint {
    display: none;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.image-switch-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Show mobile indicators only on touch devices */
@media (hover: none) and (pointer: coarse) {
    .image-carousel-dots {
        display: flex;
    }
    
    .image-switch-hint {
        display: block;
    }
}

/* Also show on smaller screens (mobile devices) */
@media (max-width: 768px) {
    .image-carousel-dots {
        display: flex;
    }
    
    .image-switch-hint {
        display: block;
    }
}

/* Hide on desktop with hover capability */
@media (hover: hover) and (pointer: fine) {
    .image-carousel-dots,
    .image-switch-hint {
        display: none !important;
    }
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fbbe247e;
}

body.dark-mode .project-title {
    color: #ffffff;
    font-weight: 700;
}

body.dark-mode .project-card:hover .project-title {
    color: #00d4ff;
}

.project-description {
    color: #fbbe2442;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

body.dark-mode .project-description {
    color: #cbd5f5;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.tech-tag {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

body.dark-mode .tech-tag {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.project-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    z-index: 1;
}

body.dark-mode .project-link {
    color: #ffffff;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(107, 93, 93, 0.301);
    border-radius: 20px;
    transition: background 0.3s ease;
    z-index: -1;
}

body.dark-mode .project-link::before {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* First link (Code) - outlined button with gradient border */
body.dark-mode .project-links .project-link:first-child {
    position: relative;
}

body.dark-mode .project-links .project-link:first-child::before {
    background: transparent;
    border: 1.5px solid rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 0 8px rgba(0, 212, 255, 0.2),
        inset 0 0 8px rgba(168, 85, 247, 0.1);
}

/* Visual feedback only on Code button hover */
body.dark-mode .project-links .project-link:first-child:hover::before {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.7);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.6),
        0 0 25px rgba(91, 141, 239, 0.4),
        inset 0 0 12px rgba(0, 212, 255, 0.15);
}

/* Second link (Live Demo) - gradient background button */
body.dark-mode .project-links .project-link:last-child::before {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2) 0%, rgba(91, 141, 239, 0.2) 100%);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

/* Purple/blue gradient background on button hover (border stays unchanged) */
body.dark-mode .project-links .project-link:last-child:hover::before {
    background: linear-gradient(90deg, rgba(91, 141, 239, 0.4) 0%, rgba(168, 85, 247, 0.5) 100%);
    box-shadow: 
        0 0 12px rgba(0, 212, 255, 0.5),
        0 0 20px rgba(91, 141, 239, 0.3);
}

.project-link:hover::before {
    background: rgba(251, 191, 36, 0.2);
}

body.dark-mode .project-link:hover::before {
    border-color: rgba(0, 212, 255, 0.5);
}

.project-card:hover .project-link {
    color: #fcd34d;
}

/* Keep text colors unchanged when hovering over card */
body.dark-mode .project-card:hover .project-link {
    color: #ffffff;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: #9ca3af;
}

body:not(.dark-mode) .contact {
    background: linear-gradient(180deg, #f8fcff 0%, #e0f4ff 100%);
}

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #1f2937;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex: 0 0 auto;
    min-width: 200px;
    width: auto;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #60a5fa;
    width: 30px;
    transition: color 0.3s ease;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #cbd5f5;
    transition: color 0.3s ease;
}

.contact-item p {
    color: #cbd5f5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}

body.dark-mode .contact-item {
    background: #374151;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(0, 0, 0, 0.4);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

body.dark-mode .contact-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.3) 0%, rgba(16, 185, 129, 0.3) 100%);
    opacity: 0.5;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .contact-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: #374151;
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .contact-item:hover {
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(110, 231, 183, 0.2),
        0 0 0 2px rgba(0, 212, 255, 0.4);
}

body.dark-mode .contact-item:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.6) 0%, rgba(110, 231, 183, 0.5) 100%);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.5),
        0 0 35px rgba(110, 231, 183, 0.3);
}

body.dark-mode .contact-item i {
    color: #93c5fd;
}

body.dark-mode .contact-item h3 {
    color: #e5e7eb;
}

body.dark-mode .contact-item p {
    color: #e5e7eb;
}

body:not(.dark-mode) .contact-item {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
    border: 2px solid rgba(37, 99, 235, 0.25);
}

body:not(.dark-mode) .contact-item:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25), 0 0 20px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.5);
}

body:not(.dark-mode) .contact-item i {
    color: #2563eb;
}

body:not(.dark-mode) .contact-item h3 {
    color: #1e3a5f;
}

body:not(.dark-mode) .contact-item p {
    color: #1e3a5f;
}

.contact-item > div {
    flex: 1 1 0%;
    min-width: 0;
    overflow: visible;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
}

body:not(.dark-mode) .footer {
    background: linear-gradient(180deg, #1e3a5f 0%, #2563eb 100%);
    color: rgba(255, 255, 255, 0.95);
}

body:not(.dark-mode) .social-link:hover {
    color: #fbbf24;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #fbbf24;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(17, 24, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    body:not(.dark-mode) .nav-menu {
        background-color: rgba(255, 251, 245, 0.98);
        box-shadow: 0 10px 40px rgba(44, 82, 130, 0.1);
    }

    body:not(.dark-mode) .nav-menu .nav-link {
        color: #2c5282;
    }

    body:not(.dark-mode) .nav-menu .nav-link:hover {
        color: #c45c26;
    }

    .nav-controls {
        gap: 0.75rem;
    }

    .dark-mode-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .contact-content {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        display: flex;
        align-items: stretch;
    }
    
    .contact-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        flex-shrink: 0;
        padding: 1rem;
        display: flex;
    }
    
    .contact-item i {
        font-size: 1.2rem;
        width: 24px;
        flex-shrink: 0;
    }
    
    .contact-item h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }

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

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

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .project-card {
        margin: 0 10px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1e293b;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #475569;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Scroll Progress Spine */
#scroll-spine {
    position: fixed;
    left: 16px;
    top: 70px;
    bottom: 0;
    width: 2px;
    z-index: 9999;
    pointer-events: none;
    /* Track background - always visible */
    background: rgba(37, 99, 235, 0.15);
    --spine-progress: 0;
}

body.dark-mode #scroll-spine {
    background: rgba(147, 197, 253, 0.12);
}

#scroll-spine .spine-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform-origin: top;
    transform: scaleY(var(--spine-progress, 0));
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.5) 0%,
        rgba(245, 158, 11, 0.4) 50%,
        rgba(37, 99, 235, 0.5) 100%
    );
    transition: transform 0.1s ease-out;
}

body.dark-mode #scroll-spine .spine-fill {
    background: linear-gradient(
        180deg,
        rgba(147, 197, 253, 0.4) 0%,
        rgba(251, 191, 36, 0.35) 50%,
        rgba(147, 197, 253, 0.4) 100%
    );
}

/* Marker that travels down the spine */
#scroll-spine .spine-marker {
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    will-change: top, transform;
    transition: top 0.08s linear;

    /* default: subtle dot */
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.25);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.20);
}

/* Light mode: leaf */
body:not(.dark-mode) #scroll-spine .spine-marker {
    width: 18px;
    height: 18px;
    background: none;
    box-shadow: none;
}

/* Draw a little leaf using CSS */
body:not(.dark-mode) #scroll-spine .spine-marker::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0) 45%),
                linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.85));
    border-radius: 60% 60% 60% 60% / 75% 75% 45% 45%;
    transform: rotate(-25deg);
    box-shadow: 0 10px 18px rgba(16, 185, 129, 0.25);
}

/* Leaf vein */
body:not(.dark-mode) #scroll-spine .spine-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 25%;
    width: 1.5px;
    height: 55%;
    background: rgba(255,255,255,0.7);
    transform: translateX(-50%) rotate(-25deg);
    border-radius: 2px;
    opacity: 0.85;
}

/* Dark mode: moon */
body.dark-mode #scroll-spine .spine-marker {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9), rgba(255,255,255,0.2) 55%, rgba(255,255,255,0) 70%);
    box-shadow:
        0 0 14px rgba(147, 197, 253, 0.35),
        0 0 26px rgba(251, 191, 36, 0.12);
}

/* Crescent cutout */
body.dark-mode #scroll-spine .spine-marker::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 50%;
    transform: translateX(5px) translateY(-2px);
    opacity: 0.9;
}

/* Cursor Glow Effect - Contained within tiles (Dark Mode Only) */
.skill-item,
.certification-item,
.project-card,
.contact-item {
    overflow: hidden;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-opacity: 0;
}

/* Glow effect container - child element added via JavaScript */
.tile-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    opacity: var(--glow-opacity, 0);
    transition: opacity 0.3s ease;
    overflow: hidden;
    border-radius: inherit;
}

/* Outer glow layer */
body.dark-mode .tile-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle 200px at var(--glow-x) var(--glow-y),
        rgba(168, 85, 247, 0.2) 0%,
        rgba(99, 102, 241, 0.15) 25%,
        rgba(0, 212, 255, 0.1) 40%,
        transparent 60%
    );
    filter: blur(30px);
    will-change: opacity;
}

/* Inner glow layer for more depth */
body.dark-mode .tile-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle 120px at var(--glow-x) var(--glow-y),
        rgba(168, 85, 247, 0.3) 0%,
        rgba(99, 102, 241, 0.2) 30%,
        transparent 50%
    );
    filter: blur(15px);
    will-change: opacity;
}

/* Ensure tile content stays above glow */
.skill-item > *:not(.tile-glow),
.certification-item > *:not(.tile-glow),
.project-card > *:not(.tile-glow),
.contact-item > *:not(.tile-glow) {
    position: relative;
    z-index: 2;
}