body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: #e2e8f0;
    overflow-x: hidden;
    --scroll-darken: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 146, 188, 0.75) rgba(10, 18, 35, 0.95);
}

::selection {
    background: rgba(92, 115, 164, 0.48);
    color: #d7e1f5;
}

::-moz-selection {
    background: rgba(92, 115, 164, 0.48);
    color: #d7e1f5;
}

html::-webkit-scrollbar {
    width: 14px;
}

html::-webkit-scrollbar-track {
    background: rgba(10, 18, 35, 0.96);
    border-left: 1px solid rgba(148, 163, 184, 0.14);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(144, 161, 200, 0.9), rgba(122, 140, 181, 0.82));
    border-radius: 999px;
    border: 3px solid rgba(10, 18, 35, 0.96);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.08);
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(129, 255, 218, 0.92), rgba(100, 255, 218, 0.72));
}

html::-webkit-scrollbar-button:single-button:vertical:increment {
    height: 14px;
    background: rgba(10, 18, 35, 0.96);
    border-left: 1px solid rgba(148, 163, 184, 0.14);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background-image: linear-gradient(45deg, transparent 50%, #6f7f9f 50%), linear-gradient(-45deg, transparent 50%, #6f7f9f 50%);
    background-position: calc(50% - 3px) 6px, calc(50% + 3px) 6px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

html::-webkit-scrollbar-button:single-button:vertical:decrement {
    height: 0;
}
body::before {
    content: "";
    position: fixed;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.15), transparent 70%);
    filter: blur(120px);
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.68));
    opacity: calc(0.08 + (var(--scroll-darken) * 0.52));
    pointer-events: none;
    z-index: 0;
}
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 18, 35, 0.58);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.24);
}
.navbar a {
    color: #94a3b8 !important;
}
.navbar a:hover:not(.nav-cta) {
    color: #64ffda !important;
}

.side-email {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.1rem;
        text-shadow: 0 0 12px rgba(100, 255, 218, 0.22);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #94a3b8;
    opacity: 0.85;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.side-email::after {
    content: "";
    display: block;
    width: 1px;
    height: 72px;
    margin-top: 12px;
    background: linear-gradient(180deg, rgba(100, 255, 218, 0.9), rgba(100, 255, 218, 0.05));
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.25);
}

.side-email:hover {
    color: #64ffda;
    opacity: 1;
    transform: rotate(180deg) translateY(-2px);
    text-shadow: 0 0 12px rgba(100, 255, 218, 0.22);
}

.social-rail {
    position: fixed;
    left: 20px;
    top: 50%;
    bottom: auto;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.95rem;
    transform: translateY(-50%);
}

.social-rail::after {
    content: "";
    width: 1px;
    height: 150px;
    background: linear-gradient(180deg, rgba(100, 255, 218, 0.9), rgba(100, 255, 218, 0.05));
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.25);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #c7cee3;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.social-link i,
.social-link svg {
    font-size: 1.35rem;
    line-height: 1;
}

.social-link svg {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.social-link:hover {
    color: #64ffda;
    background: rgba(100, 255, 218, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(100, 255, 218, 0.18) inset;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.18));
}

.social-link--svg:hover {
    color: #64ffda;
}

.social-link:hover svg {
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.18));
}

.navbar-brand:hover {
    color: #fff !important;
}

.brand-typing {
    position: relative;
    display: inline-block;
    overflow: visible;
    white-space: nowrap;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.22);
    animation: brandPulse 1.9s ease-in-out infinite;
}

.brand-typing::before {
    content: "/ ";
    color: #64ffda;
}

.brand-typing::after {
    content: "";
    position: absolute;
    right: -0.14em;
    top: 0.05em;
    width: 0.08em;
    height: 1.15em;
    background: #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
    animation: brandCaret 0.85s steps(1, end) infinite;
}

@keyframes brandPulse {
    0%,
    100% {
        opacity: 0.86;
        text-shadow: 0 0 8px rgba(100, 255, 218, 0.18);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 16px rgba(100, 255, 218, 0.35);
    }
}

@keyframes brandCaret {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

.brand-icon {
    color: #64ffda;
    font-size: 1rem;
    line-height: 1;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-color: rgba(100, 255, 218, 0.35);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.nav-cta:hover {
    background: #64ffda;
    border-color: #64ffda;
    color: #020617 !important;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(100, 255, 218, 0.25), 0 0 32px rgba(94, 231, 192, 0.14);
}

.hero {
    min-height: 42vh;
    padding: 72px 0 36px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero>div {
    margin-top: clamp(24px, 7vh, 72px);
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    background: linear-gradient(135deg, #64ffda, #5ee7c0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #94a3b8;
}
.section-title {
    margin-bottom: 40px;
    font-weight: 600;
}
.section-heading {
    margin-bottom: 24px;
}
.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: #64ffda;
}
.section-intro {
    color: #94a3b8;
    max-width: 720px;
    margin: 0;
}
.project-category {
    margin-top: 28px;
}
.category-title {
    margin-bottom: 18px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}
.project-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}
.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(100, 255, 218, 0.15),
        0 0 20px rgba(94, 231, 192, 0.1);
}
.project-content {
    padding: 22px;
}
.project-logos {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.project-logos img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    object-fit: contain;
    flex: 0 0 auto;
}
.project-logos-grid {
    gap: 0.5rem;
}
.project-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.project-content h5 {
    color: #fff;
    margin-bottom: 0;
    font-size: 1.1rem;
}
.project-role {
    font-size: 0.8rem;
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.18);
    background: rgba(100, 255, 218, 0.08);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.project-summary {
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.6;
}
.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 16px;
}
.project-badges .badge {
    margin-right: 0;
}
.badge {
    margin-right: 5px;
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.2);
}
.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-right: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
    line-height: 1;
}
.badge-tech i {
    font-size: 1rem;
    line-height: 1;
    flex: 0 0 auto;
}
.badge-tech i.devicon-html5-plain,
.badge-tech i.devicon-css3-plain,
.badge-tech i.devicon-javascript-plain,
.badge-tech i.devicon-bootstrap-plain,
.badge-tech i.devicon-angularjs-plain,
.badge-tech i.devicon-spring-plain {
    font-size: 1.05rem;
}
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 16px;
}
.project-link {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s ease;
}
.project-link:hover {
    color: #64ffda;
    border-bottom-color: #64ffda;
}

.project-link-fun {
    border-bottom-style: dashed;
    border-bottom-color: rgba(100, 255, 218, 0.4);
    color: #7debd0;
    opacity: 0.9;
    cursor: default;
    letter-spacing: 0.02em;
}

.project-link-fun:hover {
    color: #9af7e0;
    border-bottom-color: rgba(154, 247, 224, 0.75);
}
.project-action {
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.project-contributions {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.project-contributions h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #94a3b8;
    margin-bottom: 12px;
}
.project-contributions ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #d7e1ee;
    line-height: 1.7;
}
footer {
    text-align: center;
    padding: 30px;
    color: #64748b;
}
@media (max-width: 576px) {
    .side-email {
        display: none;
    }

    .social-rail {
        display: none;
    }

    .brand-typing {
        font-size: 0.97rem;
    }
    .hero {
        min-height: auto;
        padding: 36px 16px 22px;
        align-items: center;
    }
    .hero>div {
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }
    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.7rem);
        line-height: 1.08;
        margin: 0 auto;
    }
    .hero p {
        font-size: 0.98rem;
        line-height: 1.6;
        max-width: 32ch;
        margin: 14px auto 0;
    }
    .section-heading {
        margin-top: 4px;
    }
    .project-header {
        flex-direction: column;
    }
    .project-role {
        white-space: normal;
    }
    .nav-cta {
        padding: 0.5rem 0.9rem;
        font-size: 0.92rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .brand-typing {
        animation: none;
    }
    .brand-typing::after {
        animation: none;
        opacity: 1;
    }
}