/* ==================================== */
/* ========= CONTAINER =============== */
/* ==================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.panelbg {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.centered {
    display: flex;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
    justify-content: center;
    align-items: center;
}

.svg-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(71%) sepia(95%) saturate(1739%) hue-rotate(5deg) brightness(104%) contrast(101%);
    transition: transform 0.3s ease;
    vertical-align: middle;
    margin-left: 0.5rem;

}

.svg-icon:hover {
    transform: translateY(-2px);
}

/* ==================================== */
/* ========= RANDOM =============== */
/* ==================================== */

.pspacing p:not(:last-child) {
    padding-bottom: 1.2rem;
}

.panelspacing {
    margin-top: 2rem;
}

.sized-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hover-img {
    transition: transform 0.3s ease;
}

.hover-img:hover {
    transform: scale(1.05);
}

.arrowed-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    align-items: flex-start;
    padding-left: 0;
    margin-left: 0;
}

.arrowed-list li {
    position: relative;
    padding-left: 1rem;
}

.arrowed-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--text-accent);
}

.table-gap td:not(:last-child) {
    padding-right: 1rem;
}

.table-centered {
    margin-left: auto;
    margin-right: auto;
}

/* ==================================== */
/* ========= BLINKING CURSOR =============== */
/* ==================================== */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--text-accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==================================== */
/* ========= BUTTONS =============== */
/* ==================================== */

.btn {
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;;
    background-color: var(--bg-primary);
}

.btn:hover {
    border-color: var(--text-accent);
    color: var(--text-accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.btn-grid .btn {
    justify-self: center;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .btn-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btn-grid .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ==================================== */
/* =========  CIRCLE IMAGE =============== */
/* ==================================== */

.circle-img {
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 90%;
    width: 80%;
    object-fit: cover;
    justify-self: center;
}

.circle-img:hover {
    transform: scale(1.02);
}

.dec-sized-img {
    width: 75%;
    height: auto;
}

.major-dec-sized-img {
    width: 50%;
    height: auto;
}

@media (max-width: 768px) {
    .dec-sized-img {
        width: 100%;
        height: auto;
    }

    .major-dec-sized-img {
        width: 75%;
        height: auto;
    }
}

/* ==================================== */
/* ========= WORK ITEM =============== */
/* ==================================== */
.work-item {
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.work-item:hover {
    border-color: var(--text-accent);
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--text-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.work-item:hover::before {
    transform: scaleY(1);
}

.work-header {
    padding: 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.work-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-subtitle {
    color: var(--text-accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.work-date {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.work-content {
    padding: 1.5rem;
    background-color: var(--bg-primary);
}

.work-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-accent);
    background: rgba(100, 255, 218, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.work-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.work-list {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    list-style-type: none;
}

.work-list li::before {
    padding-left: 20px;
    content: '▸';
    left: 0;
    color: var(--text-accent);
}

.work-link {
    color: var(--text-accent);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: text-decoration 0.3s, color 0.3s;
    transition: all 0.3s ease;
}

.work-link:hover {
    color: var(--text-accent);
}

@media (max-width: 768px) {
    .work-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .work-links {
        /* justify-content: center; */
        flex-wrap: wrap;
    }
}


/* 
----------------------------
===== Custom Scrollbar =====
----------------------------
*/
* {
  scrollbar-width: auto;
  scrollbar-color: var(--bg-secondary) var(--bg-primary);
}

/* make the scrollbar always present */
html {
  overflow-y: scroll;
}