/* =========================================================
   Shivam Rohilla — Portfolio Styles
   Custom layer on top of Tailwind CDN
   ========================================================= */

:root {
    --ink: #05060a;
    --panel: #0a0d14;
    --neon: #00f7ff;
    --violet: #8a5cff;
    --lime: #a3ff12;
    --amber: #ffb74d;
}

html { scroll-behavior: smooth; }

::selection {
    background: var(--neon);
    color: var(--ink);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon), var(--violet));
    border-radius: 10px;
    border: 2px solid var(--ink);
}

/* ---------- Backgrounds ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 247, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 247, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    animation: grid-drift 40s linear infinite;
}

@keyframes grid-drift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
    background: var(--neon);
    top: -150px;
    left: -150px;
}

.bg-glow-2 {
    background: var(--violet);
    bottom: -200px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Custom cursor (desktop only) ---------- */
#cursor-dot, #cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
    opacity: 0;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--neon);
    border-radius: 50%;
}

#cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 247, 255, 0.5);
    border-radius: 50%;
    transition: transform 0.15s ease, opacity 0.2s, width 0.2s, height 0.2s, border-color 0.2s;
}

#cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--violet);
    background: rgba(138, 92, 255, 0.1);
}

@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button, [role="button"] { cursor: none; }
    #cursor-dot, #cursor-ring { opacity: 1; }
}

/* ---------- Scroll progress ---------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--neon), var(--violet), var(--lime));
    z-index: 50;
    transition: width 0.1s;
    box-shadow: 0 0 12px var(--neon);
}

/* ---------- Nav ---------- */
#navbar.scrolled {
    background: rgba(5, 6, 10, 0.75);
    border-bottom-color: rgba(0, 247, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.brand:hover .brand-bracket {
    animation: bracket-flicker 0.6s ease;
}

@keyframes bracket-flicker {
    0%, 100% { opacity: 1; transform: translateX(0); }
    20% { opacity: 0.3; }
    40% { opacity: 1; transform: translateX(2px); }
    60% { opacity: 0.5; transform: translateX(-1px); }
    80% { opacity: 1; transform: translateX(0); }
}

.nav-link {
    position: relative;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--neon); }
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--neon);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* ---------- Animated Hamburger ---------- */
.hamburger {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover,
.hamburger:focus-visible {
    background: rgba(0, 247, 255, 0.08);
    border-color: rgba(0, 247, 255, 0.3);
}

.hamburger-box {
    position: relative;
    width: 22px;
    height: 16px;
}

.hamburger-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
    transition:
        top 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.25s,
        opacity 0.2s;
}

.hamburger-bar:nth-child(1) { top: 0; }
.hamburger-bar:nth-child(2) { top: 7px; width: 70%; }
.hamburger-bar:nth-child(3) { top: 14px; width: 85%; }

.hamburger:hover .hamburger-bar:nth-child(2),
.hamburger:hover .hamburger-bar:nth-child(3) { width: 100%; }

.hamburger.is-open .hamburger-bar {
    background: var(--neon);
    box-shadow: 0 0 8px var(--neon);
    transition:
        top 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
        background 0.25s,
        opacity 0.2s;
}

.hamburger.is-open .hamburger-bar:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
    width: 100%;
}

.hamburger.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    width: 100%;
}

.hamburger.is-open .hamburger-bar:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
    width: 100%;
}

/* ---------- Mobile Overlay Menu ---------- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    visibility: hidden;
    pointer-events: none;
}

.mobile-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-overlay-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(138, 92, 255, 0.25), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(0, 247, 255, 0.2), transparent 60%),
        rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    clip-path: circle(0% at calc(100% - 40px) 40px);
    transition: clip-path 0.7s cubic-bezier(0.83, 0, 0.17, 1);
}

.mobile-overlay.is-open .mobile-overlay-bg {
    clip-path: circle(150% at calc(100% - 40px) 40px);
}

.mobile-overlay-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 247, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 247, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s 0.3s;
}

.mobile-overlay.is-open .mobile-overlay-grid {
    opacity: 1;
}

.mobile-overlay-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 96px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-tag {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s 0.4s, transform 0.4s 0.4s;
}

.mobile-overlay.is-open .mobile-tag {
    opacity: 1;
    transform: translateY(0);
}

.mobile-list {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.mobile-link {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 18px 8px;
    text-decoration: none;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.25s,
        padding-left 0.3s;
}

.mobile-link::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.08), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.mobile-link:hover,
.mobile-link:active {
    color: var(--neon);
    padding-left: 18px;
}

.mobile-link:hover::before {
    left: 100%;
}

.mobile-link .m-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: var(--neon);
    font-weight: 400;
    opacity: 0.8;
    align-self: center;
}

.mobile-link .m-text {
    flex: 1;
}

.mobile-link .m-arrow {
    font-size: 1rem;
    color: var(--neon);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.3s, transform 0.3s;
    align-self: center;
}

.mobile-link:hover .m-arrow {
    opacity: 1;
    transform: translateX(0);
}

.mobile-overlay.is-open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-overlay.is-open .mobile-link:nth-child(1) { transition-delay: 0.30s, 0.30s, 0s, 0s; }
.mobile-overlay.is-open li:nth-child(1) .mobile-link { transition-delay: 0.30s; }
.mobile-overlay.is-open li:nth-child(2) .mobile-link { transition-delay: 0.38s; }
.mobile-overlay.is-open li:nth-child(3) .mobile-link { transition-delay: 0.46s; }
.mobile-overlay.is-open li:nth-child(4) .mobile-link { transition-delay: 0.54s; }
.mobile-overlay.is-open li:nth-child(5) .mobile-link { transition-delay: 0.62s; }

.mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s 0.7s, transform 0.5s 0.7s;
}

.mobile-overlay.is-open .mobile-footer {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open {
    overflow: hidden;
}

/* ---------- Hero text effects ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--neon) 0%, var(--violet) 50%, var(--lime) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
}

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

.caret {
    color: var(--neon);
    animation: blink 1s steps(2, start) infinite;
    margin-left: 2px;
}

.caret-block {
    display: inline-block;
    background: var(--neon);
    color: var(--neon);
    width: 8px;
    height: 14px;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ---------- Terminal card ---------- */
.terminal {
    background: linear-gradient(135deg, rgba(10, 13, 20, 0.95), rgba(10, 13, 20, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 247, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
    transition: transform 0.5s ease;
    position: relative;
}

.terminal::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--neon), transparent, var(--violet));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.terminal:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-8px);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-body {
    padding: 20px;
}

.terminal-body pre {
    margin-top: 10px;
    white-space: pre-wrap;
    font-family: "JetBrains Mono", monospace;
}

/* ---------- Section headers ---------- */
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section-number {
    font-family: "JetBrains Mono", monospace;
    color: var(--neon);
    font-size: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
    min-width: 100px;
}

/* ---------- About ---------- */
.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}
.info-pill:hover {
    border-color: rgba(0, 247, 255, 0.4);
    background: rgba(0, 247, 255, 0.05);
    transform: translateY(-2px);
}

.avatar-wrap {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.avatar-inner {
    position: absolute;
    inset: 20px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(0, 247, 255, 0.08), rgba(138, 92, 255, 0.08)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s;
}

.avatar-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-wrap:hover .avatar-inner {
    transform: scale(1.02);
}

.avatar-corners span {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--neon);
}
.avatar-corners span:nth-child(1) {
    top: 0; left: 0;
    border-top: 2px solid var(--neon);
    border-left: 2px solid var(--neon);
}
.avatar-corners span:nth-child(2) {
    top: 0; right: 0;
    border-top: 2px solid var(--violet);
    border-right: 2px solid var(--violet);
}
.avatar-corners span:nth-child(3) {
    bottom: 0; left: 0;
    border-bottom: 2px solid var(--violet);
    border-left: 2px solid var(--violet);
}
.avatar-corners span:nth-child(4) {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--neon);
    border-right: 2px solid var(--neon);
}

/* ---------- Stack cards ---------- */
.stack-card {
    position: relative;
    background: rgba(10, 13, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.stack-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(0, 247, 255, 0.4), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.stack-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 247, 255, 0.2);
    box-shadow: 0 20px 50px -20px rgba(0, 247, 255, 0.2);
}

.stack-card:hover::before {
    opacity: 1;
}

.stack-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.stack-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.stack-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stack-tags span {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Timeline ---------- */
.timeline-line {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--neon), var(--violet), var(--lime));
    opacity: 0.4;
}

@media (min-width: 768px) {
    .timeline-line { left: 20px; }
}

.timeline-item {
    position: relative;
    padding-left: 48px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .timeline-item { padding-left: 60px; }
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6), 0 0 20px currentColor;
}

@media (min-width: 768px) {
    .timeline-dot { left: 14px; }
}

.timeline-card {
    background: rgba(10, 13, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.timeline-card:hover {
    border-color: rgba(0, 247, 255, 0.2);
    transform: translateX(6px);
    box-shadow: -10px 10px 40px -10px rgba(0, 247, 255, 0.15);
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.exp-tags span {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(0, 247, 255, 0.06);
    border: 1px solid rgba(0, 247, 255, 0.15);
    border-radius: 999px;
    color: rgba(0, 247, 255, 0.9);
}

/* ---------- Projects ---------- */
.featured-card {
    position: relative;
    background: rgba(10, 13, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
}

.featured-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.2), transparent 60%);
    pointer-events: none;
    transition: all 0.5s;
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 247, 255, 0.25);
    box-shadow: 0 30px 60px -20px rgba(0, 247, 255, 0.25);
}

.featured-card:hover .featured-glow {
    transform: scale(1.4);
}

.proj-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

/* ---------- Client / Production cards ---------- */
.client-card {
    position: relative;
    display: block;
    background: rgba(10, 13, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 28px 28px 32px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
}

.client-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
            rgba(255, 255, 255, 0.04),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.client-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.client-card:hover::before {
    opacity: 1;
}

.client-stripe {
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    opacity: 0.8;
}

.client-mark {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    pointer-events: none;
    opacity: 0.85;
    transition: transform 0.4s, opacity 0.3s;
}

.client-card:hover .client-mark {
    transform: rotate(-6deg) scale(1.05);
    opacity: 1;
}

.client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.client-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.oss-card {
    display: block;
    background: rgba(10, 13, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 22px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.oss-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 247, 255, 0.2);
    box-shadow: 0 20px 40px -15px rgba(0, 247, 255, 0.18);
}

.oss-card:hover h4 {
    color: var(--neon);
}

.oss-card h4 {
    transition: color 0.3s;
}

/* ---------- Contact ---------- */
.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(10, 13, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s;
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 247, 255, 0.25);
    background: rgba(0, 247, 255, 0.04);
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Misc ---------- */
section { position: relative; }

code {
    background: rgba(0, 247, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 247, 255, 0.15);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .terminal {
        transform: none;
    }
}

@media (max-width: 640px) {
    .section-title { font-size: 1.5rem; }
    .terminal-body { padding: 16px; }
    .terminal-body pre { font-size: 0.75rem; }
    .featured-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
