/* JetBrains Mono Font */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-400.ttf') format('truetype');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-500.ttf') format('truetype');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-600.ttf') format('truetype');
}


.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ── Scroll-triggered fade-in ── */
.fade-in-section {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Smooth details/summary accordion ── */
details .details-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
details[open] .details-content {
    grid-template-rows: 1fr;
}
details .details-content > div {
    overflow: hidden;
}

/* ── Profile image glow ── */
.profile-glow {
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.profile-glow:hover {
    box-shadow: 0 0 24px -4px rgba(103, 232, 249, 0.35), 0 0 8px -2px rgba(103, 232, 249, 0.2);
    border-color: rgba(103, 232, 249, 0.3);
}

/* ── Hero text reveal ── */
.hero-text-reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: heroReveal 0.8s ease-out 0.4s forwards;
}
@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Section progress indicator ── */
.section-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #67E8F9, #22D3EE);
    z-index: 50;
    transition: width 0.15s ease-out;
    width: 0;
}

/* ── Stat card tilt ── */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(1.5deg) translateY(-2px);
    box-shadow: 0 8px 30px -12px rgba(103, 232, 249, 0.15);
}

/* ── Background noise grain ── */
.noise-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ── Counter animation ── */
.counter-value {
    display: inline-block;
}

/* ── Active nav link ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #67E8F9;
    transition: width 0.25s ease;
}
.nav-link.is-active {
    color: #F4F4F5;
}
.nav-link.is-active::after {
    width: 100%;
}

.blog-content {
    color: #A1A1AA;
    font-size: 1rem;
    line-height: 1.75;
}
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #F4F4F5;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}
.blog-content h1 {
    font-size: 2rem;
}
.blog-content h2 {
    font-size: 1.5rem;
}
.blog-content h3 {
    font-size: 1.25rem;
}
.blog-content p {
    margin: 0 0 1rem;
}
.blog-content a {
    color: #67E8F9;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}
.blog-content ul,
.blog-content ol {
    margin: 0 0 1rem 1.5rem;
}
.blog-content li {
    margin: 0.4rem 0;
}
.blog-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid rgba(103, 232, 249, 0.5);
    background: rgba(39, 39, 42, 0.6);
    color: #E4E4E7;
}
.blog-content code {
    background: rgba(39, 39, 42, 0.7);
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.9em;
}
.blog-content pre {
    background: rgba(24, 24, 27, 0.9);
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1rem 0;
}
.blog-content pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}
