:root {
    --brand-accent-1: var(--info);
    --brand-accent-2: var(--primary-500);
    --brand-accent-3: var(--primary-600);
    --shadow-bento: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-squish: 0 5px 15px rgba(37, 99, 235, 0.2);
}

#masthead-profile-img,
.portfolio-expanded-view img {
    user-drag: none;
    -webkit-user-drag: none;
}

.btn-professional-primary:hover:not(.disabled) {
    background-color: var(--primary-500) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: var(--shadow-squish) !important;
}


.glass-panel {
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-bento);
    border-radius: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.15);
}

.bento-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.9)) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-bento);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.bento-card:hover::before {
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.1);
}

/* Gradient Text Utilities */
.text-neon {
    color: var(--brand-accent-1) !important;
}

.text-neon-purple {
    color: var(--brand-accent-2) !important;
}

/* Horizontal Premium Timeline */
.timeline-container {
    position: relative;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 700px;
    width: 100%;
    min-width: max-content;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--brand-accent-1);
    background: linear-gradient(90deg, var(--brand-accent-1), var(--brand-accent-2), var(--brand-accent-3));
    transform: translateY(-50%);
    border-radius: 4px;
    z-index: 5;
}

.timeline-item {
    position: relative;
    flex: 1 0 350px;
    display: flex;
    justify-content: center;
    min-height: 700px;
}

.timeline-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--slate-900);
    border: 3px solid var(--brand-accent-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    z-index: 10;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.timeline-item:nth-child(even) .timeline-node {
    border-color: var(--brand-accent-2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    color: var(--brand-accent-2);
}

.timeline-item:nth-child(odd) .timeline-node {
    color: var(--brand-accent-1);
}

.timeline-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--brand-accent-1);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-connector {
    background: var(--brand-accent-2);
}

.timeline-card-wrapper {
    width: 100%;
}

.timeline-card-wrapper .bento-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.timeline-item.up .timeline-card-wrapper {
    position: absolute;
    bottom: calc(50% + 50px);
    left: 10px;
    right: 10px;
}

.timeline-item.up .timeline-connector {
    bottom: 50%;
    height: 50px;
}

.timeline-item.down .timeline-card-wrapper {
    position: absolute;
    top: calc(50% + 50px);
    left: 10px;
    right: 10px;
}

.timeline-item.down .timeline-connector {
    top: 50%;
    height: 50px;
}

.timeline-item.down .bento-card:hover,
.timeline-item.down .hover-lift:hover {
    transform: translateY(4px) !important;
}

/* Responsive Vertical Fallback */
@media (max-width: 900px) {
    .timeline-container {
        flex-direction: column;
        align-items: flex-start;
        min-width: 100% !important;
        min-height: auto !important;
        padding: 50px 20px !important;
    }

    .timeline-line {
        top: 0;
        bottom: 0;
        left: 40px;
        width: 4px;
        height: 100%;
        transform: none;
        z-index: 5;
    }

    .timeline-item {
        min-height: auto;
        width: 100%;
        padding-left: 100px;
        margin-bottom: 40px;
        display: block;
    }

    .timeline-node {
        top: 50px;
        left: 40px;
        transform: translate(-50%, -50%);
    }

    .timeline-connector {
        display: none;
    }

    .timeline-item.up .timeline-card-wrapper,
    .timeline-item.down .timeline-card-wrapper {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
    }
}