/* Final visual polish overrides */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.75) rgba(15, 23, 42, 0.18);
}

body {
    background-image:
        radial-gradient(circle at 82% 8%, rgba(96, 165, 250, 0.18), transparent 30vw),
        radial-gradient(circle at 8% 72%, rgba(56, 189, 248, 0.14), transparent 28vw),
        radial-gradient(circle at 60% 48%, rgba(147, 197, 253, 0.08), transparent 22vw);
    background-attachment: fixed;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    z-index: 100000;
    background: linear-gradient(90deg, #dbeafe, #60a5fa, #22d3ee);
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.62);
    transform-origin: left center;
}

#about {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#neural-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.72;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
    filter: blur(24px);
    opacity: 0.48;
    transform: translate3d(0, 0, 0);
}

.hero-orb-one {
    top: 18%;
    left: 8%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.34), transparent 68%);
}

.hero-orb-two {
    right: 12%;
    bottom: 12%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
}

.hero-container,
.hero-content,
.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

[data-theme="light"] body {
    background-image:
        radial-gradient(circle at 82% 8%, rgba(147, 197, 253, 0.42), transparent 30vw),
        radial-gradient(circle at 8% 72%, rgba(125, 211, 252, 0.26), transparent 28vw),
        radial-gradient(circle at 60% 48%, rgba(219, 234, 254, 0.34), transparent 22vw);
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -1;
    filter: blur(18px);
}

body::before {
    width: 52vw;
    height: 52vw;
    top: -16vw;
    right: -18vw;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.28), rgba(96, 165, 250, 0.08) 42%, transparent 68%);
}

body::after {
    width: 46vw;
    height: 46vw;
    left: -18vw;
    bottom: 6vh;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.08) 46%, transparent 70%);
}

[data-theme="light"] body::before {
    background: radial-gradient(circle, rgba(147, 197, 253, 0.45), rgba(191, 219, 254, 0.18) 45%, transparent 70%);
}

[data-theme="light"] body::after {
    background: radial-gradient(circle, rgba(125, 211, 252, 0.36), rgba(219, 234, 254, 0.2) 48%, transparent 72%);
}

::-webkit-scrollbar {
    width: 11px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.16);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(191, 219, 254, 0.7), rgba(59, 130, 246, 0.82));
    border: 3px solid rgba(15, 23, 42, 0.35);
    border-radius: 999px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.22), 0 0 18px rgba(96, 165, 250, 0.35);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.9), rgba(96, 165, 250, 0.95));
}

.custom-cursor {
    display: none;
}

.custom-cursor-follower {
    width: 44px;
    height: 44px;
    border: 0;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.24), rgba(96, 165, 250, 0.1) 42%, transparent 70%);
    mix-blend-mode: screen;
    transition: transform 0.18s ease-out, width 0.22s ease, height 0.22s ease, opacity 0.22s ease;
}

.cursor-hover .custom-cursor-follower {
    width: 68px;
    height: 68px;
    opacity: 0.9;
}

.glass {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(148, 163, 184, 0.035));
    border-color: rgba(191, 219, 254, 0.16);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .glass {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(219, 234, 254, 0.36));
    border-color: rgba(147, 197, 253, 0.34);
    box-shadow: 0 18px 46px rgba(30, 64, 175, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.glass::before {
    display: none;
}

.glass:hover,
.skill-card:hover,
.project-card:hover {
    border-color: rgba(191, 219, 254, 0.24);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.34), 0 0 34px rgba(125, 211, 252, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .glass:hover,
[data-theme="light"] .skill-card:hover,
[data-theme="light"] .project-card:hover {
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 24px 52px rgba(37, 99, 235, 0.16), 0 0 32px rgba(125, 211, 252, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(191, 219, 254, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.btn-primary,
.btn-secondary {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(255, 255, 255, 0.06));
    color: var(--text-main);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover {
    border-color: rgba(191, 219, 254, 0.36);
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.32), rgba(255, 255, 255, 0.1));
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.26), 0 0 28px rgba(125, 211, 252, 0.28);
}

.hero-content .social-links a,
.contact-info .social-links a {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(96, 165, 250, 0.08));
    border-color: rgba(191, 219, 254, 0.22);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
}

.hero-social-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: -18px;
    margin-bottom: 34px;
}

.hero-social-links a {
    width: auto !important;
    min-width: 118px;
    height: 46px !important;
    padding: 0 18px;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-main) !important;
    text-decoration: none;
    transform: translateZ(0);
}

.hero-social-links a span {
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-content .social-links a:hover,
.contact-info .social-links a:hover {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.28), rgba(255, 255, 255, 0.12));
    color: #fff;
    box-shadow: 0 14px 34px rgba(59, 130, 246, 0.28), 0 0 24px rgba(125, 211, 252, 0.28);
    transform: translateY(-4px);
}

.hero-image-glow {
    background: radial-gradient(circle, rgba(125, 211, 252, 0.34) 0%, rgba(59, 130, 246, 0.12) 42%, transparent 72%);
}

.hero-image {
    filter: grayscale(100%) contrast(1.08) brightness(0.92);
    box-shadow: 0 22px 52px rgba(2, 6, 23, 0.38), 0 0 42px rgba(96, 165, 250, 0.12);
}

.hero-image-wrapper:hover .hero-image {
    filter: grayscale(0%) saturate(1.08) contrast(1.06) brightness(1.02);
    border-color: rgba(191, 219, 254, 0.28);
    box-shadow: 0 24px 62px rgba(2, 6, 23, 0.42), 0 0 46px rgba(125, 211, 252, 0.24);
}

.seq-1,
.seq-2,
.seq-3,
.seq-4 {
    animation: none !important;
    opacity: 1;
}

.hero-buttons,
.hero-social-links,
.hero-image-wrapper {
    will-change: transform, opacity;
}

.project-card,
.skill-card,
.contact-container,
.interest-card {
    transform-style: preserve-3d;
}

.project-card::after,
.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(147, 197, 253, 0.18), transparent 42%);
    transition: opacity 0.28s ease;
    z-index: 1;
}

.project-card:hover::after,
.skill-card:hover::after {
    opacity: 1;
}

.project-content,
.project-image,
.skill-card > *,
.contact-container > * {
    position: relative;
    z-index: 2;
}

.skill-icon {
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), filter 0.38s ease;
}

.skill-card:hover .skill-icon {
    filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.38));
}

.btn,
.project-link,
.modal-btn,
.youtube-glass-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.44);
    transform: translate(-50%, -50%) scale(0);
    animation: rippleBloom 0.62s ease-out forwards;
}

@keyframes rippleBloom {
    to {
        transform: translate(-50%, -50%) scale(18);
        opacity: 0;
    }
}

.contact-container {
    animation: contactPulse 5.5s ease-in-out infinite;
}

@keyframes contactPulse {
    0%,
    100% {
        box-shadow: 0 18px 48px rgba(2, 6, 23, 0.32), 0 0 24px rgba(96, 165, 250, 0.08);
    }
    50% {
        box-shadow: 0 24px 62px rgba(2, 6, 23, 0.38), 0 0 36px rgba(96, 165, 250, 0.16);
    }
}

.form-success {
    padding: 14px 18px;
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(147, 197, 253, 0.28);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-success.active {
    opacity: 1;
    transform: translateY(0);
}

.exp-logo {
    max-width: 145px;
    filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.16));
}

.experience-card:hover .exp-logo {
    filter: drop-shadow(0 14px 28px rgba(96, 165, 250, 0.24));
}

.skills-category:last-child .skills-grid .skill-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 420px;
    width: 100%;
}

.edu-badge,
.badge-item:hover .edu-badge {
    filter: none;
}


.dashboard-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.12), rgba(255, 255, 255, 0.05));
}

.dashboard-collage::after {
    display: none;
}

.dashboard-collage img {
    border-radius: 12px;
    filter: brightness(0.92) saturate(1.04);
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.dashboard-project-card:hover .dashboard-collage img {
    transform: none;
    filter: brightness(1) saturate(1.08);
}

.project-tags span,
.modal-tags span {
    border-color: rgba(147, 197, 253, 0.24);
    background: rgba(96, 165, 250, 0.1);
    box-shadow: none;
}

.project-link,
.modal-btn {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(191, 219, 254, 0.18);
}

.project-link:hover,
.modal-btn-primary:hover,
.modal-btn-secondary:hover {
    background: rgba(96, 165, 250, 0.22);
    border-color: rgba(191, 219, 254, 0.28);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.guitar-card .project-image img {
    object-position: center 28%;
    filter: brightness(0.96) saturate(1.04);
}

.guitar-card:hover .project-image img {
    filter: brightness(1.04) saturate(1.08);
}

.modal-content {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.72));
    border-color: rgba(191, 219, 254, 0.2);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.72), 0 0 42px rgba(96, 165, 250, 0.16);
}

[data-theme="light"] .modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(219, 234, 254, 0.72));
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(96, 165, 250, 0.08);
    border-radius: 999px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.8), rgba(96, 165, 250, 0.82));
    border: 2px solid rgba(15, 23, 42, 0.22);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(125, 211, 252, 0.24);
}

.dashboard-modal-gallery .modal-gallery-main {
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.38), 0 0 26px rgba(96, 165, 250, 0.12);
}

.dashboard-modal-gallery .modal-gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.modal-thumb {
    border: 1px solid rgba(191, 219, 254, 0.12);
    opacity: 0.72;
}

.modal-thumb.active,
.modal-thumb:hover {
    border-color: rgba(191, 219, 254, 0.42);
    box-shadow: 0 0 24px rgba(96, 165, 250, 0.2);
}

.interest-modal .modal-section h4,
.interest-modal .modal-section {
    border: 0;
}

.youtube-glass-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.82), rgba(127, 29, 29, 0.48));
    border: 1px solid rgba(254, 202, 202, 0.3);
    box-shadow: 0 14px 34px rgba(239, 68, 68, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.youtube-glass-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(239, 68, 68, 0.34), 0 0 26px rgba(248, 113, 113, 0.24);
}

.contact-item i {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.16), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(191, 219, 254, 0.18);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.1);
}

.contact-item:hover i {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.26), rgba(255, 255, 255, 0.12));
    color: var(--primary-color);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18), 0 0 24px rgba(125, 211, 252, 0.22);
}

[data-theme="light"] .input-group input,
[data-theme="light"] .input-group textarea {
    background: rgba(255, 255, 255, 0.74);
    color: #0f172a;
    border-color: rgba(96, 165, 250, 0.24);
}

[data-theme="light"] .input-group input::placeholder,
[data-theme="light"] .input-group textarea::placeholder {
    color: #64748b;
}

[data-theme="light"] .input-group input:focus,
[data-theme="light"] .input-group textarea:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.18), 0 14px 32px rgba(37, 99, 235, 0.12);
}

@media screen and (max-width: 768px) {
    .dashboard-collage {
        gap: 6px;
        padding: 8px;
    }


    .custom-cursor-follower {
        display: none;
    }

    .hero-social-links {
        justify-content: center;
        margin-top: -10px;
    }

    .hero-social-links a {
        min-width: 104px;
        height: 42px !important;
    }

    #neural-bg {
        opacity: 0.45;
    }
}
