/* Container for the About page card */
.about-card {
    position: relative;
    width: 90%;
    max-width: var(--max-width);
    border: var(--border-width) solid var(--primary-color);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background-color: var(--bg-color);
    text-decoration: none;
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 3rem 0;
    z-index: 5;
}

.about-title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Terminal Window Effect */
.terminal-window {
    border: var(--border-width) solid var(--primary-color);
    background: transparent;
    width: 100%;
    max-width: 800px;
    overflow-x: auto;
}

.terminal-header {
    border-bottom: var(--border-width) solid var(--primary-color);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #A4193D
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
}

.terminal-title {
    margin-left: auto;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: #FFDFB9
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 150px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--primary-color);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Grids for Experience and Education */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.grid-box {
    border: var(--border-width) solid var(--primary-color);
    padding: 2rem;
    position: relative;
}

.box-title {
    font-family: "Trirong", serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: var(--border-width) solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Timeline lists */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline li {
    position: relative;
    padding-left: 1rem;
    border-left: 2px dashed var(--primary-color);
}

.timeline .date {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.2rem;
    display: block;
}

.timeline h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
}

.timeline p {
    font-size: 0.9rem;
    opacity: 0.9;
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
}

.timeline a {
    text-decoration: none;
    color: var(--primary-color);
    /* Matches your existing text color */
}


/* ══════════════════════════════════════════
   ABOUT PAGE RESPONSIVE BREAKPOINTS
══════════════════════════════════════════ */

/* ── Tablet (768px – 1023px) ── */
@media (max-width: 1023px) and (min-width: 768px) {
    .about-card {
        width: 92%;
        padding: 1.75rem;
    }

    .about-title {
        font-size: clamp(3rem, 7vw, 5rem);
    }

    .about-content-wrapper {
        gap: 2rem;
        margin: 2rem 0;
    }

    /* Responsive: two-column grid maintained at tablet */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .grid-box {
        padding: 1.5rem;
    }

    .terminal-body {
        font-size: 0.92rem;
    }
}

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {
    .about-card {
        width: 95%;
        padding: 1.25rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .about-title {
        font-size: clamp(2.5rem, 11vw, 4rem);
        margin-bottom: 1rem;
    }

    .about-content-wrapper {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    /* Responsive: terminal text wraps properly on narrow screens */
    .terminal-body {
        padding: 1rem;
        font-size: 0.88rem;
        overflow-x: auto;
        word-break: break-word;
    }

    .grid-box {
        padding: 1.25rem;
    }

    .timeline h3 {
        font-size: 0.95rem;
    }

    .timeline p {
        font-size: 0.82rem;
    }

    /* Responsive: single column grid on mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive: card footer stacks on mobile */
    .about-card .card-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .about-card .align-right {
        text-align: left;
    }
}

/* ── Large phones (481px – 767px) ── */
@media (min-width: 481px) and (max-width: 767px) {
    .about-card {
        width: 92%;
    }

    /* Responsive: slightly bigger terminal font for readable phones */
    .terminal-body {
        font-size: 0.9rem;
    }
}

/* ── Small phones (< 480px) ── */
@media (max-width: 480px) {
    .about-card {
        width: 98%;
        padding: 1rem;
    }

    .about-title {
        font-size: clamp(2rem, 14vw, 3rem);
    }

    .terminal-body {
        padding: 0.75rem;
        font-size: 0.82rem;
    }

    .grid-box {
        padding: 1rem;
    }

    .box-title {
        font-size: 1.2rem;
    }

    .timeline h3 {
        font-size: 0.88rem;
    }

    .timeline p {
        font-size: 0.78rem;
    }

    .timeline .date {
        font-size: 0.72rem;
    }
}