/* ============================================
   ABOUT.CSS
============================================ */

/* ---- Page wrapper ---- */
.about {
    padding: 120px 60px 80px 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ---- Two column layout ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* ============================================
   ABOUT LEFT — Bio
============================================ */
.about-body {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 0.975rem;
}

.about-body strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Highlight items (internship, CGPA etc) */
.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 1.75rem 0 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.highlight-item i {
    width: 34px;
    height: 34px;
    background: rgba(100, 255, 218, 0.07);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* CTA buttons row */
.about-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.about-actions .btn-primary {
    padding: 11px 24px;
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}
.about-actions .btn-primary:hover {
    background: #00bcd4;
    transform: translateY(-2px);
}

.about-actions .btn-secondary {
    padding: 11px 24px;
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, transform 0.2s, color 0.2s;
    text-decoration: none;
}
.about-actions .btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   ABOUT RIGHT — Skills + Timeline
============================================ */

/* Skills label */
.skills-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.skills-section {
    margin-bottom: 2rem;
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   TIMELINE TABS
============================================ */
.timeline-toggle-buttons {
    display: flex;
    gap: 4px;
    margin-bottom: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.timeline-toggle-buttons button {
    padding: 8px 22px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.timeline-toggle-buttons button:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
}

.timeline-toggle-buttons button.active {
    background: var(--primary-color);
    color: #000;
    box-shadow: none;
}

/* ============================================
   TIMELINE
============================================ */
.timeline {
    max-width: 100%;
    margin: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 1.5px;
    background: linear-gradient(
        180deg,
        var(--primary-color),
        var(--accent-purple),
        transparent
    );
}

.timeline-section {
    position: relative;
    display: none;
}

.timeline-section.active {
    display: block;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
    padding-left: 44px;
}

/* Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid var(--background-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
    z-index: 1;
    animation: pulse 2.5s ease-in-out infinite;
}

/* Connecting line between items */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 24px;
    width: 1.5px;
    height: calc(100% + 4px);
    background: linear-gradient(
        180deg,
        rgba(100, 255, 218, 0.3),
        rgba(100, 255, 218, 0.05)
    );
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2); }
    50%       { box-shadow: 0 0 0 6px rgba(100, 255, 218, 0.08); }
}

/* Card */
.timeline-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color 0.3s, transform 0.3s;
}

.timeline-content:hover {
    border-color: rgba(100, 255, 218, 0.25);
    transform: translateY(-3px);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.timeline-content .tl-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================
   AVATAR image (inside .pg on about page)
============================================ */
.about-left .about-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 auto 2rem auto;   /* centers it in the column */
    border: 3px solid rgba(100, 255, 218, 0.25);
    box-shadow:
        0 0 0 6px rgba(100, 255, 218, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-left .about-avatar:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 0 8px rgba(100, 255, 218, 0.08),
        0 15px 50px rgba(0, 0, 0, 0.5);
}


/* ============================================
   RESUME BUTTON (inside about page .pg area)
============================================ */
.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin: 16px 0;
    transition: background 0.2s, transform 0.2s;
}
.resume-btn:hover {
    background: #00bcd4;
    transform: translateY(-2px);
}

/* ============================================
   SKILLS GRID (old #skills-grid kept working)
============================================ */
.skills {
    text-align: center;
}

.skills h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 6px;
}

.skills > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

#skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

#skills-grid div {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 16px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

#skills-grid div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(100, 255, 218, 0.06),
        transparent
    );
    transition: left 0.5s ease;
}

#skills-grid div:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

#skills-grid div:hover::before {
    left: 100%;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1000px) {
    .about {
        padding: 100px 30px 60px 30px;
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    #skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
    }

    #skills-grid div {
        padding: 18px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 500px) {
    .about {
        padding: 90px 16px 50px 16px;
        gap: 30px;
    }

    .timeline-toggle-buttons {
        width: 100%;
    }

    .timeline-toggle-buttons button {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .timeline-item {
        padding-left: 34px;
    }

    .timeline-content {
        padding: 16px;
    }

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

    #skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 8px;
    }

    #skills-grid div {
        padding: 14px 10px;
        font-size: 0.85rem;
    }

    .about-actions {
        flex-direction: column;
    }

    .about-actions .btn-primary,
    .about-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}