/**
 * Infinity Classes - Ultra-Premium Developer Portfolio & Appreciation Stylesheet
 * White Background with Subtle Light Gray Cartesian X-Y Vector Lines
 * Full Developer Portrait Card, Interactive Likes, Custom Rupee Toffee Modal & Telemetry
 */

/* ==========================================================================
   1. WHITE BACKGROUND WITH LIGHT GRAY VECTOR GRID & CARTESIAN X-Y LINES
   ========================================================================== */
.dev-page-canvas {
    background-color: #FFFFFF;
    background-image: 
        linear-gradient(rgba(226, 232, 240, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
        linear-gradient(rgba(241, 245, 249, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 245, 249, 0.8) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
    background-position: -1px -1px;
    color: #0F172A;
}

/* Light Cartesian X-Y Plane */
.xy-plane-light {
    position: relative;
    border-left: 2px dashed #94A3B8;
    border-bottom: 2px dashed #3B82F6;
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
}

.xy-axis-badge-y-light {
    position: absolute;
    top: -12px;
    left: -12px;
    background: #FF4D15;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(255, 77, 21, 0.35);
}

.xy-axis-badge-x-light {
    position: absolute;
    bottom: -14px;
    right: 0;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.xy-origin-tag-light {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #FF4D15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #FF4D15;
    font-weight: 900;
    box-shadow: 0 0 6px rgba(255, 77, 21, 0.4);
}

/* ==========================================================================
   2. HERO SECTION & DEVELOPER FULL PORTRAIT
   ========================================================================== */
.dev-hero-light {
    position: relative;
    padding: 4rem 1rem 3rem;
    overflow: hidden;
    border-bottom: 1px solid #E2E8F0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 77, 21, 0.04) 0%, #FFFFFF 60%);
}

.dev-portrait-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 460px;
    margin: 0 auto;
    border-radius: 2rem;
    overflow: hidden;
    background: #F1F5F9;
    border: 4px solid #FFFFFF;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.9);
}

@media (min-width: 1024px) {
    .dev-portrait-card {
        height: 500px;
    }
}

.dev-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-portrait-card:hover .dev-portrait-img {
    transform: scale(1.04);
}

.dev-verified-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #10B981;
    color: #FFFFFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 5;
}

.dev-status-pill-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 9999px;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* ==========================================================================
   3. APPRECIATION BUTTONS (LIKE & TOFFEE)
   ========================================================================== */
.dev-appreciation-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-top: 1rem;
}

.btn-dev-like {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    background: #FFF1F2;
    color: #E11D48;
    border: 2px solid #FECDD3;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.12);
}

.btn-dev-like:hover {
    background: #FFE4E6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.25);
}

.btn-dev-like.liked {
    background: #E11D48;
    color: #FFFFFF;
    border-color: #BE123C;
}

.btn-dev-toffee {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    color: #FFFFFF;
    border: 2px solid #FCD34D;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-dev-toffee:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.toffee-counter-badge {
    background: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
}

/* Social Icon Strip */
.dev-social-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 1rem;
}

.btn-social-circle-light {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-social-circle-light:hover {
    transform: translateY(-3px) scale(1.08);
    color: #FFFFFF;
}

.social-gh:hover  { background: #1E293B; border-color: #1E293B; }
.social-in:hover  { background: #0A66C2; border-color: #0A66C2; }
.social-tw:hover  { background: #0F172A; border-color: #0F172A; }
.social-wa:hover  { background: #25D366; border-color: #25D366; }
.social-mail:hover{ background: #EA4335; border-color: #EA4335; }
.social-web:hover { background: #FF4D15; border-color: #FF4D15; }
.social-ig:hover  { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); border-color: #DD2A7B; color: #FFFFFF; }

/* ==========================================================================
   4. TOFFEE RAZORPAY / RUPEE POPUP MODAL (₹11 SE SHURU)
   ========================================================================== */
.toffee-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.toffee-modal-backdrop.active {
    display: flex;
}

.toffee-modal-dialog {
    background: #FFFFFF;
    border-radius: 2rem;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem 2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid #E2E8F0;
}

.rupee-pill-btn {
    padding: 0.65rem 1rem;
    border-radius: 1rem;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    font-weight: 800;
    font-size: 0.88rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.rupee-pill-btn:hover {
    border-color: #F59E0B;
    background: #FFFBEB;
    color: #D97706;
}

.rupee-pill-btn.active {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-color: #D97706;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.floating-toffee {
    position: fixed;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 9999999;
    animation: floatUp 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.6) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-120px) scale(1.3) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-240px) scale(1) rotate(360deg);
    }
}

/* ==========================================================================
   VERTICAL UPWARD SCROLLING APPRECIATION FEED (SHOWS 5 AT A TIME)
   ========================================================================== */
.toffee-vertical-scroller-viewport {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    height: 410px;
    overflow: hidden;
    padding: 0 4px;
    border-radius: 1.5rem;
    background: transparent;
}

.scroller-mask-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(to bottom, #F8FAFC 25%, rgba(248, 250, 252, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

.scroller-mask-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(to top, #F8FAFC 25%, rgba(248, 250, 252, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

.toffee-vertical-track {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    animation: scrollUpToffee 26s linear infinite;
    will-change: transform;
}

.toffee-vertical-track:hover {
    animation-play-state: paused;
}

@keyframes scrollUpToffee {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.toffee-feed-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 1rem;
    padding: 0.75rem 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.toffee-feed-card:hover {
    border-color: #FBBF24;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.12);
    transform: translateY(-1px);
}

.toffee-avatar-initial {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #B45309;
    font-weight: 800;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #FCD34D;
    flex-shrink: 0;
}

.toffee-amount-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: #FFFBEB;
    color: #B45309;
    font-weight: 800;
    font-size: 0.72rem;
    border: 1px solid #FDE68A;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.1);
    white-space: nowrap;
}

/* ==========================================================================
   5. LIGHT THEME FULL STACK TECH GRID & CODE TERMINAL
   ========================================================================== */
.tech-card-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.5rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tech-card-light:hover {
    transform: translateY(-4px);
    border-color: #FF4D15;
    box-shadow: 0 15px 35px rgba(255, 77, 21, 0.1);
}

.tech-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.tech-badge-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

/* Layer Tabs */
.layer-tab-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.layer-tab-btn-light:hover {
    border-color: #FF4D15;
    color: #FF4D15;
    background: #FFF7ED;
}

.layer-tab-btn-light.active {
    background: #FF4D15;
    border-color: #FF4D15;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 77, 21, 0.3);
}

.layer-tab-panel {
    display: none;
    animation: fadeInLayer 0.35s ease forwards;
}

.layer-tab-panel.active {
    display: block;
}

@keyframes fadeInLayer {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Code Terminal Box */
.code-terminal-box {
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-topbar {
    background: #070A12;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-content {
    padding: 1.25rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #CBD5E1;
    overflow-x: auto;
}

/* Circuit Vector Line */
.circuit-trace-line {
    stroke-dasharray: 8 6;
    animation: traceFlow 30s linear infinite;
}

@keyframes traceFlow {
    from { stroke-dashoffset: 500; }
    to { stroke-dashoffset: 0; }
}

.circuit-pulse-node {
    animation: nodePulse 2.5s infinite;
}

@keyframes nodePulse {
    0%, 100% { r: 6; opacity: 0.8; }
    50% { r: 9; opacity: 1; filter: drop-shadow(0 0 6px #FF4D15); }
}

/* Telemetry HUD Ticker Strip */
.telemetry-ticker-bar-light {
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    padding: 0.65rem 1rem;
    overflow-x: auto;
    white-space: nowrap;
}

.telemetry-pill-light {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    color: #334155;
    font-weight: 700;
}
