/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D3D3D3, #C0C0C0);
    border-radius: 100px;
    border: 2px solid #F5F5F5;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #A9A9A9, #999);
}



/* ===================== NAVIGATION BUBBLE INDICATOR ===================== */
.nav-bubble-indicator {
    position: absolute;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(16, 185, 129, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 18px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
    z-index: -1;
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-bubble-indicator.active {
    opacity: 1;
}

.dark .nav-bubble-indicator {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(16, 185, 129, 0.25));
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-link {
    position: relative;
    z-index: 1;
    padding: 8px 16px;
}

/* ===================== HERO SECTION ===================== */
.hero-bg {
    background-color: #F5F5F5;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 240, 0.7) 0%, transparent 70%),
        linear-gradient(135deg, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
        linear-gradient(225deg, rgba(34, 211, 238, 0.03) 0%, transparent 50%);
}

.dark .hero-bg {
    background-color: #0f172a;
    background-image:
        linear-gradient(135deg, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
        linear-gradient(225deg, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
}

.profile-img-wrapper {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    animation: float 3s ease-in-out infinite;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
    contain: layout style;
    backface-visibility: hidden;
}

.profile-img-wrapper img {
    object-position: top center;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}



.hero-watermark {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 700;
    color: rgba(100, 116, 139, 0.06);
    top: -30%;
    left: -10%;
    z-index: 0;
    line-height: 1;
    letter-spacing: -0.1em;
}

@media (max-width: 640px) {
    .hero-watermark {
        font-size: 70px;
        top: -20%;
        left: -5%;
        opacity: 0.5;
    }
}

.dark .hero-watermark {
    color: rgba(148, 163, 184, 0.05);
}

/* Social Icon Buttons */
.social-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 50%;
    position: relative;
}

.social-icon-btn:hover {
    color: #22d3ee;
    transform: scale(1.15);
}

.social-icon-btn:active {
    transform: scale(0.9);
}

/* Social Link Tooltip */
.social-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15, 23, 42, 0.95);
    color: #22d3ee;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 100;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}

.social-icon-btn:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dark .social-tooltip {
    background: rgba(226, 232, 240, 0.95);
    color: #0f172a;
}

.dark .social-tooltip::after {
    border-top-color: rgba(226, 232, 240, 0.95);
}

/* Footer Social Links */
.footer-social-link {
    color: #94a3b8;
    transition: all 0.25s ease;
    position: relative;
    display: inline-block;
}

.footer-social-link:hover {
    color: #22d3ee;
    transform: translateY(-2px);
}

.footer-social-link:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Terminal-style card  */
.terminal-card {
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(211, 211, 211, 0.4);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 640px) {
    .terminal-card {
        border-radius: 1rem;
        padding: 16px 24px;
        gap: 12px;
    }
}

.terminal-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(34, 211, 238, 0.06);
    transform: translateY(-1px);
}

.terminal-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #22d3ee;
    border-radius: 4px 0 0 4px;
}

.dark .terminal-card {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(148, 163, 184, 0.1);
}

/* ===================== PROJECT CARDS  ===================== */
.project-card {
    padding: 16px;
    border: 1px solid rgba(211, 211, 211, 0.35);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 640px) {
    .project-card {
        padding: 24px;
        min-height: 180px;
    }
}

.project-card:hover {
    transform: translateY(-3px) scale(1.015);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08),
        0 4px 16px -4px rgba(34, 211, 238, 0.1);
}

.project-card:active {
    transform: scale(0.98);
}

.dark .project-card {
    background: rgba(30, 41, 59, 0.35);
    border-color: rgba(34, 211, 238, 0.12);
}

.dark .project-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 8px 24px -8px rgba(34, 211, 238, 0.12);
}

/* Project Card Link Icons */
.project-card a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card a:hover {
    transform: translateY(-2px) scale(1.15);
    color: #22d3ee !important;
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4),
        0 0 24px rgba(34, 211, 238, 0.2);
}

.project-card a:active {
    transform: scale(0.95);
}

.dark .project-card a:hover {
    background: rgba(34, 211, 238, 0.15);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.5),
        0 0 32px rgba(34, 211, 238, 0.25);
}

/* =====================================================================
   FEATURED PROJECT CARDS (fp-*)
   ===================================================================== */

.fp-section {
    background: linear-gradient(180deg, #F5F5F5 0%, rgba(245, 250, 255, 0.5) 50%, #F5F5F5 100%);
}

.dark .fp-section {
    background: #0f172a;
}

.fp-projects-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ── Individual card ── */
.fp-card {
    border-radius: 24px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.5s ease;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(203, 213, 225, 0.6);
}

.fp-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(34, 211, 238, 0.15);
}

.dark .fp-card {
    background: rgba(20, 24, 44, 0.95);
    border: 1px solid rgba(71, 85, 105, 0.2);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.12),
        0 1px 4px rgba(0, 0, 0, 0.06);
}

.dark .fp-card:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(34, 211, 238, 0.06);
}

/* Inner layout: text left, image right */
.fp-card-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 340px;
    align-items: center;
}

/* ── Text column ── */
.fp-card-text {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

/* "Featured Project" badge */
.fp-badge {
    display: inline-block;
    width: fit-content;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b5cf6;
    margin-bottom: 4px;
}

.dark .fp-badge {
    color: #a78bfa;
}

/* Title */
.fp-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.dark .fp-title {
    color: #f1f5f9;
}

/* Description glassmorphic card */
.fp-desc-card {
    background: rgba(241, 245, 249, 0.6);
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark .fp-desc-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-desc-card p {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

.dark .fp-desc-card p {
    color: #94a3b8;
}

.fp-highlight {
    color: #0284c7;
    font-weight: 600;
}

.dark .fp-highlight {
    color: #22d3ee;
}

/* Tech pills row */
.fp-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.fp-tech-pill {
    padding: 5px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fp-tech-pill:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.35);
    transform: translateY(-1px);
}

.dark .fp-tech-pill {
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.dark .fp-tech-pill:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.35);
}

/* Link icons */
.fp-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.fp-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 10px;
    color: #64748b;
    font-size: 18px;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
}

.fp-link-icon:hover {
    color: #0284c7;
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 4px 16px rgba(14, 165, 233, 0.15),
        0 0 24px rgba(14, 165, 233, 0.08);
}

.fp-link-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dark .fp-link-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #64748b;
}

.dark .fp-link-icon:hover {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow:
        0 4px 16px rgba(34, 211, 238, 0.2),
        0 0 24px rgba(34, 211, 238, 0.1);
}

/* ── Image column ── */
.fp-card-img {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 28px 28px 12px;
}

.fp-card-img img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.6s ease;
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.dark .fp-card-img img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.fp-card:hover .fp-card-img img {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-4px);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(34, 211, 238, 0.08);
}

.dark .fp-card:hover .fp-card-img img {
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(34, 211, 238, 0.12),
        0 0 48px rgba(34, 211, 238, 0.06);
}

/* Reversed card: flip perspective */
.fp-card-reverse .fp-card-img {
    padding: 28px 12px 28px 28px;
}

.fp-card-reverse .fp-card-img img {
    transform: perspective(1200px) rotateY(2deg) rotateX(1deg);
}

.fp-card-reverse:hover .fp-card-img img {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-4px);
}

/* Placeholder when no screenshot */
.fp-img-placeholder {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.6) 0%, rgba(203, 213, 225, 0.4) 100%);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    transition: border-color 0.3s ease;
}

.dark .fp-img-placeholder {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px dashed rgba(100, 116, 139, 0.3);
    color: #475569;
}

.fp-img-placeholder span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0.6;
}

.fp-card:hover .fp-img-placeholder {
    border-color: rgba(34, 211, 238, 0.2);
}

/* ── Reversed card (image left, text right) ── */
.fp-card-reverse .fp-card-inner {
    direction: rtl;
}

.fp-card-reverse .fp-card-inner > * {
    direction: ltr;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .fp-card-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .fp-card-text {
        padding: 28px 24px 20px;
    }

    .fp-card-img {
        padding: 0 20px 24px;
        overflow: hidden;
    }

    .fp-card-img img {
        transform: none !important;
        max-height: 220px;
    }

    .fp-card:hover .fp-card-img img,
    .fp-card-reverse:hover .fp-card-img img {
        transform: translateY(-2px) !important;
    }

    .fp-card-reverse .fp-card-img {
        padding: 0 20px 24px;
    }

    .fp-img-placeholder {
        height: 200px;
    }

    .fp-card-reverse .fp-card-inner {
        direction: ltr;
    }

    .fp-projects-list {
        gap: 32px;
    }

    .fp-title {
        font-size: 22px;
    }

    .fp-desc-card {
        padding: 16px 18px;
    }

    .fp-desc-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fp-card {
        border-radius: 18px;
    }

    .fp-card-text {
        padding: 22px 18px 16px;
    }

    .fp-card-img {
        padding: 0 18px 22px;
    }

    .fp-img-placeholder {
        height: 160px;
        border-radius: 12px;
    }

    .fp-tech-pill {
        padding: 4px 10px;
        font-size: 10px;
    }

    .fp-link-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Glass Navigation */
.nav-glass {
    background: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(211, 211, 211, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.02);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===================== GLASSMORPHISM THEME TOGGLE SWITCH ===================== */
.theme-switch {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.theme-switch-track {
    position: relative;
    width: 56px;
    height: 28px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.35),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-switch:hover .theme-switch-track {
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.45),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

/* Thumb / Knob */
.theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow:
        0 2px 8px rgba(245, 158, 11, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Icons inside the track */
.theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    left: 7px;
    color: #fbbf24;
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
}

.moon-icon {
    right: 7px;
    color: #94a3b8;
    opacity: 0;
    transform: translateY(-50%) scale(0.5) rotate(90deg);
}

/* ---- DARK MODE STATE ---- */
.dark .theme-switch-track {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.dark .theme-switch:hover .theme-switch-track {
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.dark .theme-switch-thumb {
    left: 30px;
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    box-shadow:
        0 2px 8px rgba(129, 140, 248, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.dark .sun-icon {
    opacity: 0;
    transform: translateY(-50%) scale(0.5) rotate(-90deg);
}

.dark .moon-icon {
    opacity: 1;
    color: #c4b5fd;
    transform: translateY(-50%) scale(1) rotate(0deg);
}

/* Subtle Grid Pattern Background */
.bg-grid-pattern {
    background-image: radial-gradient(#D3D3D3 1px, transparent 1px);
    background-size: 40px 40px;
}



/* Blog Typography (Prose) */
.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #475569;
    font-size: 0.9375rem;
}

@media (min-width: 640px) {
    .prose p {
        margin-bottom: 1.5rem;
        line-height: 1.8;
        font-size: 1.125rem;
    }
}

.prose h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .prose h2 {
        font-size: 1.75rem;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
    color: #475569;
    font-size: 0.9375rem;
}

@media (min-width: 640px) {
    .prose ul {
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
        font-size: 1.125rem;
    }
}

.prose li {
    margin-bottom: 0.5rem;
}

/* Blog code blocks mobile fix */
.prose pre {
    font-size: 0.75rem;
    padding: 1rem;
    border-radius: 0.625rem;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
    .prose pre {
        font-size: 0.875rem;
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
}

/* Utility for hiding views â€” smooth fade */
.view-hidden {
    display: none !important;
}

#portfolio-view,
#blog-view {
    opacity: 1;
    transform: none;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#blog-list,
#blog-detail {
    opacity: 1;
    transform: none;
}

#blog-list.hidden,
#blog-detail.hidden {
    display: none !important;
}

/* Blob animations (unused - kept for reference) */

/* Line clamp for text truncation */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================== DARK MODE STYLES ===================== */

/* Dark mode base styles */
.dark {
    color-scheme: dark;
}

.dark body {
    background-color: #0f172a;
    color: #e2e8f0;
}

/* Dark mode navigation */
.dark .nav-glass {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark a[href="javascript:void(0)"] {
    color: #f8fafc;
}

/* Dark mode sections */
.dark header {
    background-color: #0f172a;
}

.dark #contact {
    background-color: #1e293b;
    border-color: #334155;
}

.dark #projects {
    background-color: #0f172a;
}


/* Dark mode text colors */
.dark h1,
.dark h2,
.dark h3 {
    color: #f8fafc;
}

.dark .text-slate-900 {
    color: #f8fafc !important;
}

.dark .text-slate-800 {
    color: #e2e8f0 !important;
}

.dark .text-slate-700 {
    color: #cbd5e1 !important;
}

.dark .text-slate-600 {
    color: #94a3b8 !important;
}

.dark .text-slate-500 {
    color: #64748b !important;
}

.dark .text-slate-400 {
    color: #475569 !important;
}

/* Dark mode backgrounds */
.dark .bg-slate-50 {
    background-color: #1e293b !important;
}

.dark .bg-white {
    background-color: #1e293b !important;
}

.dark .bg-slate-100 {
    background-color: #334155 !important;
}

.dark .bg-white\/70 {
    background-color: rgba(30, 41, 59, 0.7) !important;
}

/* Dark mode borders */
.dark .border-slate-100 {
    border-color: #334155 !important;
}

.dark .border-slate-200 {
    border-color: #475569 !important;
}

.dark .border-white {
    border-color: #334155 !important;
}

.dark .border-white\/50 {
    border-color: rgba(51, 65, 85, 0.5) !important;
}

/* Dark mode hover effects */
.dark .hover\:bg-white:hover {
    background-color: #334155 !important;
}

.dark .hover\:bg-slate-100:hover {
    background-color: #475569 !important;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Dark mode grid pattern */
.dark .bg-grid-pattern {
    background-image: radial-gradient(#334155 1px, transparent 1px);
}

/* Dark mode blobs */
.dark .bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.1);
}

.dark .bg-indigo-100 {
    background-color: rgba(99, 102, 241, 0.1);
}

/* Dark mode cards and elements */
.dark .bg-slate-50 {
    background-color: #1e293b !important;
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.dark .shadow-premium {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.dark .shadow-premium-hover {
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.3);
}

/* Dark mode mobile menu */
.dark #mobile-menu {
    background-color: #1e293b;
    border-color: #334155;
}

/* Dark mode prose */
.dark .prose p {
    color: #94a3b8;
}

.dark .prose h2 {
    color: #f8fafc;
}

.dark .prose ul {
    color: #94a3b8;
}

/* Smooth transition for dark mode â€” only apply during toggle, not during scroll */
body.theme-transitioning {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-transitioning nav {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== SCROLL REVEAL (Storytelling) ===================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
    contain: layout style;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* No fade-out â€” once visible, stays visible */

/* Stagger children inside a reveal group */
.scroll-reveal .reveal-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.active .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.active .reveal-child:nth-child(1) {
    transition-delay: 0.05s;
}

.scroll-reveal.active .reveal-child:nth-child(2) {
    transition-delay: 0.12s;
}

.scroll-reveal.active .reveal-child:nth-child(3) {
    transition-delay: 0.19s;
}

.scroll-reveal.active .reveal-child:nth-child(4) {
    transition-delay: 0.26s;
}

.scroll-reveal.active .reveal-child:nth-child(5) {
    transition-delay: 0.33s;
}

.scroll-reveal.active .reveal-child:nth-child(6) {
    transition-delay: 0.40s;
}

/* ===================== MOBILE RESPONSIVE ADDITIONS ===================== */

/* Prevent horizontal overflow on mobile */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* GPU-promote sections for smoother composite during scroll */
section {
    contain: layout style;
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

/* Mobile menu smooth transition */
#mobile-menu {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    nav .max-w-6xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hide nav bubble indicator on mobile */
    .nav-bubble-indicator {
        display: none;
    }

    /* Mobile menu improvements */
    #mobile-menu {
        padding: 1rem 1.25rem;
    }

    #mobile-menu button {
        padding: 0.625rem 0;
        font-size: 0.9375rem;
    }

    /* Hero section mobile centering */
    .hero-bg .flex-col {
        text-align: center;
    }

    .hero-bg .text-left {
        text-align: center;
    }

    .hero-bg .flex.gap-4,
    .hero-bg .flex.gap-5 {
        justify-content: center;
    }

    .hero-bg .terminal-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-bg .max-w-2xl {
        text-align: left;
    }

    /* Profile image float animation - gentler on mobile */
    @keyframes float {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-5px);
        }
    }

    /* Academic timeline marker fix */
    .border-l-2 .absolute.-left-\[33px\] {
        left: -33px;
    }

    /* Footer mobile fix */
    footer .flex-col {
        gap: 1rem;
    }

    /* Tighter section flow for mobile/desktop-mode-on-phone */
    section {
        scroll-margin-top: 60px;
    }
}

/* Small phones (below 375px) */
@media (max-width: 374px) {
    .font-display.text-4xl {
        font-size: 2rem;
    }

    .terminal-card {
        padding: 10px 12px;
        gap: 6px;
    }

    .project-card {
        padding: 12px;
        min-height: 130px;
    }

    .social-icon-btn {
        width: 38px;
        height: 38px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .social-icon-btn {
        width: 44px;
        height: 44px;
    }

    /* Disable hover-only effects */
    .project-card:hover {
        transform: none;
    }

    .social-icon-btn:hover {
        transform: none;
    }

    /* Hide tooltips on touch */
    .social-tooltip {
        display: none;
    }

    /* Smoother scrolling */
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding-top: 5rem;
        padding-bottom: 1rem;
    }
}

/* Desktop mode on phone â€” content should flow tightly */
@media (min-width: 980px) and (max-height: 450px) {
    header {
        padding-top: 4.5rem;
        padding-bottom: 1rem;
    }

    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* =====================================================================
   PROJECTS SECTION
   ===================================================================== */

.projects-section {
    background: linear-gradient(180deg, #F5F5F5 0%, rgba(255, 255, 250, 0.5) 50%, #F5F5F5 100%);
    position: relative;
    border-top: 1px solid rgba(211, 211, 211, 0.3);
}

.dark .projects-section {
    background: #0f172a;
    border-top-color: rgba(51, 65, 85, 0.3);
}

/* =====================================================================
   HOW I WORK / PROCESS SECTION
   ===================================================================== */

.process-section {
    background: linear-gradient(180deg, #F5F5F5 0%, #FFFFF0 50%, #F5F5F5 100%);
    position: relative;
    border-top: 1px solid rgba(211, 211, 211, 0.3);
}

.dark .process-section {
    background: #0f172a;
    border-top-color: rgba(51, 65, 85, 0.3);
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    max-width: 140px;
    flex-shrink: 0;
}

.process-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(34, 211, 238, 0.06));
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #10b981;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.dark .process-icon-wrap {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(34, 211, 238, 0.10));
    border-color: rgba(16, 185, 129, 0.3);
}

.process-step:hover .process-icon-wrap {
    transform: translateY(-4px) scale(1.08);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.process-step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.dark .process-step-title {
    color: #f1f5f9;
}

.process-step-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D3D3D3;
    font-size: 14px;
    padding-top: 22px;
    flex-shrink: 0;
}

.dark .process-arrow {
    color: #334155;
}

@media (max-width: 768px) {
    .process-timeline {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 8px;
    }

    .process-arrow {
        display: none;
    }

    .process-step {
        max-width: 100%;
        padding: 8px 4px;
    }

    .process-icon-wrap {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================================
   SKILLS & TOOLS SECTION
   ===================================================================== */

.skills-section {
    background: linear-gradient(180deg, #F5F5F5 0%, rgba(255, 255, 240, 0.4) 50%, #F5F5F5 100%);
    position: relative;
    border-top: 1px solid rgba(211, 211, 211, 0.3);
}

.dark .skills-section {
    background: #0f172a;
    border-top-color: rgba(51, 65, 85, 0.3);
}

.skill-category-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(211, 211, 211, 0.35);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dark .skill-category-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(71, 85, 105, 0.4);
}

.skill-category-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(34, 211, 238, 0.08);
    transform: translateY(-3px);
}

.dark .skill-category-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.skill-category-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(211, 211, 211, 0.3);
    border-radius: 10px;
}

.dark .skill-category-icon {
    background: rgba(255, 255, 255, 0.06);
}

.skill-category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.dark .skill-category-title {
    color: #f1f5f9;
}

.skill-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(211, 211, 211, 0.35);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.dark .skill-pill {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(71, 85, 105, 0.35);
    color: #cbd5e1;
}

.skill-pill:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(34, 211, 238, 0.08);
}

.dark .skill-pill:hover {
    background: rgba(34, 211, 238, 0.08);
}

.skill-pill-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.exploring-pill {
    display: inline-block;
    padding: 8px 20px;
    border: 1.5px solid rgba(34, 211, 238, 0.45);
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #0891b2;
    background: rgba(34, 211, 238, 0.06);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.dark .exploring-pill {
    color: #22d3ee;
}

.exploring-pill:hover {
    background: rgba(34, 211, 238, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.12);
}

/* =====================================================================
   GITHUB ACTIVITY SECTION
   ===================================================================== */

.github-section {
    background: linear-gradient(180deg, #F5F5F5 0%, rgba(255, 255, 240, 0.3) 50%, #F5F5F5 100%);
    position: relative;
    border-top: 1px solid rgba(211, 211, 211, 0.3);
}

.dark .github-section {
    background: #0f172a;
    border-top-color: rgba(51, 65, 85, 0.3);
}

.github-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(211, 211, 211, 0.35);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dark .github-card {
    background: rgba(30, 41, 59, 0.45);
    border-color: rgba(71, 85, 105, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.github-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(34, 211, 238, 0.06);
    transform: translateY(-2px);
}

.dark .github-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.github-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.github-streak-img {
    max-height: 180px;
}

/* Custom GitHub Contribution Graph */
.contrib-graph-wrapper {
    background: #0d1117;
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 16px;
    padding: 20px 20px 16px;
    overflow: hidden;
}

.contrib-graph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.contrib-count-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #c9d1d9;
}

.contrib-year-selector {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.contrib-year-pill {
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contrib-year-pill:hover {
    color: #c9d1d9;
}

.contrib-year-pill.active {
    background: #1f6feb;
    color: #fff;
    font-weight: 600;
}

.contrib-graph-body {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
}

.contrib-loading {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #8b949e;
    text-align: center;
    padding: 40px 0;
}

.contrib-heatmap {
    display: flex;
    gap: 3px;
}

.contrib-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contrib-day {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: #161b22;
    outline: 1px solid rgba(27, 31, 35, 0.06);
}

.contrib-day[data-level="0"] {
    background: #161b22;
}

.contrib-day[data-level="1"] {
    background: #0e4429;
}

.contrib-day[data-level="2"] {
    background: #006d32;
}

.contrib-day[data-level="3"] {
    background: #26a641;
}

.contrib-day[data-level="4"] {
    background: #39d353;
}

.contrib-day:hover {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: -1px;
}

.contrib-months {
    display: flex;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #8b949e;
    margin-bottom: 6px;
    padding-left: 0;
}

.contrib-month-label {
    text-align: left;
}

.contrib-graph-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 10px;
}

.contrib-legend-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #8b949e;
    margin: 0 2px;
}

.contrib-legend-box {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    display: inline-block;
}

/* Tooltip for contribution day */
.contrib-tooltip {
    position: fixed;
    background: #1b1f23;
    color: #c9d1d9;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #30363d;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%);
}

@media (max-width: 640px) {
    .contrib-graph-wrapper {
        padding: 14px 12px 12px;
    }

    .contrib-day {
        width: 9px;
        height: 9px;
    }

    .contrib-heatmap {
        gap: 2px;
    }

    .contrib-week {
        gap: 2px;
    }
}

/* Dark mode overrides for Tailwind utility classes in new sections */
.dark .projects-section .text-slate-900,
.dark .process-section .text-slate-900,
.dark .skills-section .text-slate-900,
.dark .github-section .text-slate-900,
.dark .academic-section .text-slate-900 {
    color: #f1f5f9 !important;
}

.dark .projects-section .text-slate-500,
.dark .process-section .text-slate-500,
.dark .skills-section .text-slate-500,
.dark .github-section .text-slate-500,
.dark .academic-section .text-slate-500 {
    color: #94a3b8 !important;
}

.dark .process-section .border-emerald-400\/30,
.dark .skills-section .border-cyan-400\/30,
.dark .github-section .border-emerald-400\/30 {
    border-color: inherit;
}

/* =====================================================================
   INTRO SPLASH SCREEN
   ===================================================================== */

/* ----- Full-screen overlay ----- */
#intro-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #030712;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

#intro-splash.splash-exit {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

#intro-splash.splash-gone {
    display: none !important;
}

/* ----- Arc container ----- */
#splash-arc {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ----- Language cards ----- */
.splash-lang-card {
    position: absolute;
    width: 96px;
    height: 112px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    transform-origin: center center;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: default;
    user-select: none;
}

.splash-lang-card .card-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
    border-radius: 6px;
}

@keyframes cardFloat {
    0% {
        translate: 0px 0px;
    }

    15% {
        translate: 1.2px -5px;
    }

    35% {
        translate: 0.8px -11px;
    }

    50% {
        translate: 0px -13px;
    }

    65% {
        translate: -0.8px -11px;
    }

    85% {
        translate: -1.2px -5px;
    }

    100% {
        translate: 0px 0px;
    }
}

/* â”€â”€ Desktop card reveal keyframe â”€â”€ */
@keyframes cardReveal {
    0% {
        opacity: 0;
        filter: blur(10px) brightness(1.4);
        transform: translate(-50%, calc(-50% + 52px)) rotate(var(--card-tilt, 0deg)) scale(0.05);
    }

    55% {
        opacity: 1;
        filter: blur(0) brightness(1.15);
    }

    78% {
        filter: blur(0) brightness(1);
        transform: translate(-50%, calc(-50% - 5px)) rotate(var(--card-tilt, 0deg)) scale(1.06);
    }

    100% {
        filter: blur(0) brightness(1);
        transform: translate(-50%, -50%) rotate(var(--card-tilt, 0deg)) scale(1);
    }
}

/* ----- Center content ----- */
#splash-center {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.splash-terminal-prefix {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(13px, 1.6vw, 16px);
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    animation: splashFadeUp 0.5s 0.3s ease both;
}

.splash-prompt {
    color: #22d3ee;
}

.splash-caret {
    color: #10b981;
}

#splash-typed-text {
    color: #e2e8f0;
}

.splash-cursor-blink {
    color: #22d3ee;
    animation: blinkCaret 0.75s step-end infinite;
}

@keyframes blinkCaret {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

#splash-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 7vw, 80px);
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.03em;
    line-height: 1;
    opacity: 0;
    animation: splashFadeUp 0.6s 1.6s cubic-bezier(0.25, 1, 0.5, 1) both;
    white-space: nowrap;
}

.splash-dot-dev {
    color: #22d3ee;
}

#splash-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 1.6vw, 16px);
    color: #64748b;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: splashFadeUp 0.5s 2.1s ease both;
}

#splash-skip-btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 9999px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.07);
    color: #22d3ee;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    animation: splashFadeUp 0.5s 2.6s ease both;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

#splash-skip-btn:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.6);
    transform: translateY(-2px);
}

#splash-skip-btn:active {
    transform: scale(0.97);
}

@keyframes splashFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* â”€â”€ Responsive mobile splash â”€â”€ */
@media (max-width: 639px) {

    /* Cards orbit around the centre â€” smaller so all 12 fit the ring */
    .splash-lang-card {
        width: 58px;
        height: 70px;
        border-radius: 12px;
        gap: 4px;
        font-size: 7.5px;
        letter-spacing: 0.025em;
    }

    /* Logo size for mobile orbit cards */
    .splash-lang-card .card-icon {
        width: 28px;
        height: 28px;
    }

    /* Center content stacks above the orbit ring */
    #splash-center {
        position: relative;
        z-index: 5;
        pointer-events: auto;
        gap: 10px;
    }

    /* Smaller name so it fits without clashing with the ring */
    #splash-name {
        font-size: clamp(28px, 8vw, 42px) !important;
        white-space: nowrap;
    }

    /* Compact tagline */
    #splash-tagline {
        font-size: 10.5px !important;
        letter-spacing: 0.02em;
    }

    /* Compact skip button */
    #splash-skip-btn {
        padding: 8px 16px;
        font-size: 11px;
        margin-top: 2px;
    }
}

/* =====================================================================
   BLOG POSTS MARQUEE SECTION
   ===================================================================== */

/* "Explore My Blogs" glassmorphism button */
.explore-blogs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0891b2;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        color 0.3s ease;
    box-shadow:
        0 2px 12px rgba(34, 211, 238, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

.explore-blogs-btn:hover {
    transform: scale(1.07);
    color: #22d3ee;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow:
        0 8px 32px rgba(34, 211, 238, 0.22),
        0 4px 16px rgba(34, 211, 238, 0.12),
        0 0 0 1px rgba(34, 211, 238, 0.15),
        0 0 50px -6px rgba(34, 211, 238, 0.18);
}

.explore-blogs-btn:active {
    transform: scale(0.97);
}

.explore-blogs-arrow {
    transition: transform 0.3s ease;
    font-size: 13px;
}

.explore-blogs-btn:hover .explore-blogs-arrow {
    transform: translateX(4px);
}

/* Dark mode */
.dark .explore-blogs-btn {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(34, 211, 238, 0.2);
    color: #67e8f9;
    box-shadow:
        0 2px 12px rgba(34, 211, 238, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.15);
}

.dark .explore-blogs-btn:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(34, 211, 238, 0.5);
    color: #22d3ee;
    box-shadow:
        0 8px 32px rgba(34, 211, 238, 0.25),
        0 4px 16px rgba(34, 211, 238, 0.15),
        0 0 0 1px rgba(34, 211, 238, 0.2),
        0 0 60px -6px rgba(34, 211, 238, 0.2);
}

@media (max-width: 640px) {
    .explore-blogs-btn {
        padding: 11px 24px;
        font-size: 14px;
        gap: 8px;
        border-radius: 12px;
    }
}

/* =====================================================================
   ACADEMIC SECTION
   ===================================================================== */

.academic-section {
    background: linear-gradient(180deg, #F5F5F5 0%, rgba(245, 250, 255, 0.5) 50%, #F5F5F5 100%);
    position: relative;
}

.dark .academic-section {
    background: #0f172a;
    border-top-color: rgba(51, 65, 85, 0.3);
}

/* =====================================================================
   BLOG POSTS MARQUEE SECTION
   ===================================================================== */

.blog-marquee-section {
    background: linear-gradient(180deg, #F5F5F5 0%, rgba(255, 255, 240, 0.4) 50%, #F5F5F5 100%);
    position: relative;
}

.dark .blog-marquee-section {
    background: #0f172a;
    border-top-color: rgba(51, 65, 85, 0.3) !important;
}

/* Wrapper with edge faders */
.blog-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0 24px;
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
}

/* Scrolling track */
.blog-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marqueeScroll var(--marquee-duration, 60s) linear infinite;
    will-change: transform;
}

.blog-marquee-wrapper:hover .blog-marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* â”€â”€ Individual Blog Card â”€â”€ */
.blog-marquee-card {
    flex-shrink: 0;
    width: 340px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(211, 211, 211, 0.35);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 4px 20px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition:
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.35s ease;
    position: relative;
}

.blog-marquee-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow:
        0 16px 48px -8px rgba(34, 211, 238, 0.18),
        0 8px 24px -6px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(34, 211, 238, 0.12),
        0 0 40px -4px rgba(34, 211, 238, 0.12);
}

.blog-marquee-card:active {
    transform: translateY(-4px) scale(1.01);
}

/* Dark mode card */
.dark .blog-marquee-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(71, 85, 105, 0.35);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark .blog-marquee-card:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow:
        0 16px 48px -8px rgba(34, 211, 238, 0.22),
        0 8px 24px -6px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(34, 211, 238, 0.15),
        0 0 50px -4px rgba(34, 211, 238, 0.15);
}

/* Card image */
.blog-marquee-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-marquee-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-marquee-card:hover .blog-marquee-card-img img {
    transform: scale(1.08);
}

/* Category badge */
.blog-marquee-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0891b2;
    border: 1px solid rgba(211, 211, 211, 0.3);
    z-index: 2;
}

.dark .blog-marquee-card-badge {
    background: rgba(15, 23, 42, 0.85);
    color: #22d3ee;
    border-color: rgba(71, 85, 105, 0.4);
}

/* Hover overlay */
.blog-marquee-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.0) 0%,
            rgba(15, 23, 42, 0.75) 60%,
            rgba(15, 23, 42, 0.92) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    padding: 16px;
}

.blog-marquee-card:hover .blog-marquee-card-overlay {
    opacity: 1;
}

.blog-marquee-card-overlay-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    text-align: center;
    line-height: 1.35;
    max-width: 85%;
}

.blog-marquee-card-overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(34, 211, 238, 0.6);
    background: rgba(34, 211, 238, 0.12);
    color: #22d3ee;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background 0.25s ease, transform 0.2s ease;
}

.blog-marquee-card-overlay-cta:hover {
    background: rgba(34, 211, 238, 0.25);
    transform: translateY(-1px);
}

/* Card body */
.blog-marquee-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-marquee-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #94a3b8;
}

.blog-marquee-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-marquee-card:hover .blog-marquee-card-title {
    color: #22d3ee;
}

.dark .blog-marquee-card-title {
    color: #f1f5f9;
}

.dark .blog-marquee-card:hover .blog-marquee-card-title {
    color: #22d3ee;
}

.blog-marquee-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .blog-marquee-card-desc {
    color: #94a3b8;
}

.blog-marquee-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.blog-marquee-card-tag {
    padding: 3px 8px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: #0891b2;
}

.dark .blog-marquee-card-tag {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.25);
    color: #22d3ee;
}

/* â”€â”€ Responsive marquee â”€â”€ */
@media (max-width: 640px) {
    .blog-marquee-card {
        width: 280px;
    }

    .blog-marquee-card-img {
        height: 140px;
    }

    .blog-marquee-track {
        gap: 16px;
    }

    .blog-marquee-card-body {
        padding: 12px 14px 16px;
    }

    .blog-marquee-card-title {
        font-size: 14px;
    }

    .blog-marquee-card-desc {
        font-size: 12px;
    }

    .blog-marquee-wrapper {
        -webkit-mask-image: linear-gradient(to right,
                transparent 0%,
                black 4%,
                black 96%,
                transparent 100%);
        mask-image: linear-gradient(to right,
                transparent 0%,
                black 4%,
                black 96%,
                transparent 100%);
    }
}

@media (max-width: 374px) {
    .blog-marquee-card {
        width: 250px;
    }

    .blog-marquee-card-img {
        height: 120px;
    }
}

/* â”€â”€ Reduced motion preference â”€â”€ */
@media (prefers-reduced-motion: reduce) {
    .blog-marquee-track {
        animation-duration: 120s !important;
    }
}

/* ===================================================================== */

/* ===================== GLOWING CURSOR DOT ===================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #22d3ee;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.15s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    will-change: transform, opacity;
    box-shadow:
        0 0 6px rgba(34, 211, 238, 0.6),
        0 0 14px rgba(34, 211, 238, 0.3);
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(34, 211, 238, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, background 0.3s ease;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.08);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.04) 0%, transparent 70%);
}

/* Visible state â€” applied via JS when mouse enters the viewport */
.cursor-dot.visible,
.cursor-ring.visible {
    opacity: 1;
}

/* Hover state â€” when hovering clickable elements */
.cursor-dot.hovering {
    width: 12px;
    height: 12px;
    background: #10b981;
    box-shadow:
        0 0 8px rgba(16, 185, 129, 0.7),
        0 0 20px rgba(16, 185, 129, 0.3);
}

.cursor-ring.hovering {
    width: 48px;
    height: 48px;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.1);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

/* Dark mode enhancements */
.dark .cursor-dot {
    box-shadow:
        0 0 8px rgba(34, 211, 238, 0.8),
        0 0 20px rgba(34, 211, 238, 0.4);
}

.dark .cursor-ring {
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
}

.dark .cursor-dot.hovering {
    box-shadow:
        0 0 10px rgba(16, 185, 129, 0.9),
        0 0 28px rgba(16, 185, 129, 0.4);
}

.dark .cursor-ring.hovering {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.15);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

/* Hide on touch / mobile devices */
@media (hover: none),
(pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* =====================================================================
   WHY HIRE ME / CTA SECTION
   ===================================================================== */

.cta-section {
    background: linear-gradient(180deg, #F5F5F5 0%, rgba(240, 253, 250, 0.6) 30%, rgba(236, 254, 255, 0.5) 70%, #F5F5F5 100%);
    position: relative;
    border-top: 1px solid rgba(211, 211, 211, 0.3);
}

.dark .cta-section {
    background: linear-gradient(180deg, #0f172a 0%, rgba(6, 78, 59, 0.08) 30%, rgba(8, 51, 68, 0.08) 70%, #0f172a 100%);
    border-top-color: rgba(51, 65, 85, 0.3);
}

/* Decorative background glow blobs */
.cta-bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.10) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    filter: blur(60px);
    animation: ctaGlowFloat 8s ease-in-out infinite;
}

.cta-bg-glow-2 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: auto;
    bottom: -120px;
    left: -100px;
    right: auto;
    width: 350px;
    height: 350px;
    animation-delay: -4s;
    animation-direction: reverse;
}

.dark .cta-bg-glow {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
}

.dark .cta-bg-glow-2 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

@keyframes ctaGlowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.1); }
}

/* Gradient text for "great" */
.cta-gradient-text {
    background: linear-gradient(135deg, #22d3ee, #10b981, #22d3ee);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ctaGradientShift 4s ease-in-out infinite;
}

@keyframes ctaGradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Primary CTA Button */
.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #0d9488, #10b981);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s ease,
        background-position 0.6s ease;
    box-shadow:
        0 4px 16px rgba(8, 145, 178, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.08);
    animation: ctaBtnGradient 5s ease-in-out infinite;
}

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

.cta-primary-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 12px 40px rgba(8, 145, 178, 0.35),
        0 6px 20px rgba(16, 185, 129, 0.2),
        0 0 0 1px rgba(34, 211, 238, 0.2);
}

.cta-primary-btn:active {
    transform: translateY(0) scale(0.98);
}

.cta-arrow {
    transition: transform 0.3s ease;
    font-size: 13px;
}

.cta-primary-btn:hover .cta-arrow {
    transform: translateX(4px);
}

/* Secondary CTA Button */
.cta-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0891b2;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(34, 211, 238, 0.3);
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        color 0.3s ease;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.03);
}

.cta-secondary-btn:hover {
    transform: translateY(-3px);
    color: #22d3ee;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow:
        0 8px 28px rgba(34, 211, 238, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

.cta-secondary-btn:active {
    transform: scale(0.97);
}

/* Dark mode CTA buttons */
.dark .cta-primary-btn {
    box-shadow:
        0 4px 20px rgba(8, 145, 178, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark .cta-primary-btn:hover {
    box-shadow:
        0 12px 48px rgba(8, 145, 178, 0.45),
        0 6px 24px rgba(16, 185, 129, 0.25),
        0 0 0 1px rgba(34, 211, 238, 0.3);
}

.dark .cta-secondary-btn {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(34, 211, 238, 0.2);
    color: #67e8f9;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.dark .cta-secondary-btn:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(34, 211, 238, 0.5);
    color: #22d3ee;
    box-shadow:
        0 8px 32px rgba(34, 211, 238, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

/* CTA Stats */
.cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cta-stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #22d3ee, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.cta-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 640px) {
    .cta-primary-btn,
    .cta-secondary-btn {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .cta-stat-number {
        font-size: 24px;
    }
}

/* =====================================================================
   FOCUS-VISIBLE KEYBOARD ACCESSIBILITY
   ===================================================================== */

/* Universal focus-visible outline for keyboard users */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.theme-switch:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Remove default outlines only when NOT using keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
    outline: none;
}

/* Skip-to-content link (screen reader / keyboard users) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: #0f172a;
    color: #22d3ee;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    z-index: 100000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}



