/* Cleaned CSS: Only necessary styles for current HTML/JS usage */

.skill-category {
    color: #6495ed;
}

.skill-subcategory {
    color: #c9dcff;
}

.lang-tool-card {
    background: #0e1d38;
    color: #c9dcff;
    border: 1px solid #6495ed;
    border-radius: 0.65rem;
    padding: 0.55rem 0.25rem;
    font-size: 0.97rem;
    margin: 0 auto;
    min-width: 82px;
    min-height: 38px;
    box-shadow: 0 2px 8px rgba(100, 149, 237, 0.08);
}

/* Hover/focus effects removed for .lang-tool-card */
:root {
    --reveal-delay: 100ms;
}

html,
body {
    font-family: "JetBrains Mono", monospace;
    background-color: #0e1d38;
}

.home {
    background: linear-gradient(-90deg, #0e1d38, #6495ed, #0e1d38);
    background-size: 600% 600%;
    animation: gradient 5s linear infinite;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transform: translateY(0);
    will-change: transform;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.9s;
}

.home.exit-up {
    transform: translateY(-110%);
    visibility: hidden;
    pointer-events: none;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Radial vignette overlay — darkens the edges for depth */
.home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(8, 15, 31, 0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

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

#moto {
    font-size: clamp(1rem, 8vw, 4rem);
    color: #c9dcff;
}

.moto-gradient {
    display: inline-block;
}

.moto-gradient .moto-text,
.moto-gradient .dots {
    background: linear-gradient(-90deg, #6495ed, #0e1d38, #6495ed);
    background-size: 600% 600%;
    animation: gradient 5s linear infinite;
    animation-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.dots {
    display: inline-block;
    margin-left: 0.1em;
}

.dots span {
    opacity: 0;
}

.moto-gradient .dots span {
    background: linear-gradient(-90deg, #6495ed, #0e1d38, #6495ed);
    background-size: 600% 600%;
    animation: gradient 5s linear infinite, dotsFade 1.2s infinite;
    animation-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1), ease;
    animation-delay: 0s, 0s;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.moto-gradient .dots span:nth-child(1) {
    animation-delay: 0s, 0s;
}

.moto-gradient .dots span:nth-child(2) {
    animation-delay: 0s, 0.2s;
}

.moto-gradient .dots span:nth-child(3) {
    animation-delay: 0s, 0.4s;
}

@keyframes dotsFade {

    0%,
    20% {
        opacity: 0;
    }

    40%,
    60% {
        opacity: 1;
    }

    80%,
    100% {
        opacity: 0;
    }
}

#nv {
    background-color: rgba(14, 29, 56, 0.95);
    border-bottom: 1px solid rgba(100, 149, 237, 0.4);
}

#nv a,
#nv span {
    color: #c9dcff;
}

#nv .nav-link {
    transition: color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

#nv .nav-link:hover {
    color: #6495ed;
}

#moto .moto-text,
.dots {
    font-weight: bold;
}

.about-me {
    min-height: 100vh;
    color: rgb(201, 220, 255);
    text-align: justify;
    background-color: rgb(14, 29, 56);
}

.about-cta {
    text-align: left;
}

.resume-btn {
    display: inline-block;
    text-decoration: none;
    color: #0e1d38;
    background: #6495ed;
    border: 1px solid #6495ed;
    border-radius: 0.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.97rem;
    box-shadow: 0 2px 8px rgba(100, 149, 237, 0.08);
}

.resume-btn:hover,
.resume-btn:focus-visible {
    background: #0e1d38;
    color: #c9dcff;
    border-color: #6495ed;
}

.resume-btn:active {
    background: #0e1d38;
    color: #c9dcff;
}

.about-photo-float {
    float: right;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 0 1.5rem 2rem;
    border: 2px solid rgba(201, 220, 255, 0.22);
    border-radius: 50%;
    filter: contrast(1.05) saturate(1.05);
    shape-outside: circle(50%);
}

@media (max-width: 767.98px) {
    .about-photo-float {
        float: none;
        display: block;
        margin: 0 auto 2rem auto;
        width: 160px;
        height: 160px;
    }
}

.projects {
    background-color: cornflowerblue;
    min-height: 100vh;
    color: rgb(14, 29, 56);
}

h3 {
    color: rgb(201, 220, 255);
}

.repo-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.repo-card {
    background: rgba(14, 29, 56, 0.92);
    color: #c9dcff;
    border: 1px solid rgba(201, 220, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.repo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(14, 29, 56, 0.5);
    border-color: rgba(100, 149, 237, 0.4);
}

.repo-name {
    font-size: 1.1rem;
    color: #c9dcff;
    word-break: break-word;
}

.repo-desc {
    font-size: 0.85rem;
    color: rgba(201, 220, 255, 0.72);
    line-height: 1.5;
}

.repo-meta {
    font-size: 0.78rem;
    color: rgba(201, 220, 255, 0.6);
}

.repo-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.repo-lang-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.repo-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.contact {
    color: #c9dcff;
    background-color: #0e1d38;
    position: relative;
}

/* Gradient top divider */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6495ed, transparent);
}

.contact-heading {
    color: #c9dcff;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.contact-icon {
    color: #c9dcff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(100, 149, 237, 0.18);
    background: rgba(14, 29, 56, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color 0.15s ease-in-out;
}

.contact-icon:hover {
    color: #6495ed;
}

.copyright-text {
    color: rgba(201, 220, 255, 0.55);
    font-size: 0.82rem;
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(6px);
    transition-property: opacity, transform, filter;
    transition-duration: 700ms;
    transition-delay: var(--reveal-delay);
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform, filter;
}

.reveal.reveal--up {
    transform: translate3d(0, 18px, 0);
}

.reveal.reveal--left {
    transform: translate3d(-22px, 0, 0);
}

.reveal.reveal--right {
    transform: translate3d(22px, 0, 0);
}

.reveal.reveal--zoom {
    transform: scale(0.96);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}