/* =========================================================
   about.css — Premium About Us Page Styles for PuNiAd
   ========================================================= */

/* --- About Hero --- */
.about-hero {
    position: relative;
    padding: 160px 40px 90px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg, #f0f6ff 0%, #f8fafc 50%, #f0fdf8 100%);
}

.about-hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    pointer-events: none;
}

.about-hero-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.about-hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
    letter-spacing: -1.5px;
    margin: 14px 0 20px;
    line-height: 1.1;
}

.about-hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.75;
}

/* --- Profile Section --- */
.profile-section {
    padding: 60px 40px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.profile-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 52px;
    background: var(--bg-card);
    border: 1px solid var(--border-slate);
    border-radius: 20px;
    padding: 44px;
    box-shadow: var(--shadow-ambient);
    align-items: start;
}

/* Image column */
.profile-image-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.profile-image-wrap {
    position: relative;
    width: 168px;
    height: 168px;
}

.profile-photo {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--border-slate);
    position: relative;
    z-index: 1;
}

.profile-image-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-blue), var(--secondary-teal), var(--tertiary-purple), var(--primary-blue));
    z-index: 0;
    opacity: 0.35;
    animation: spinGlow 8s linear infinite;
    filter: blur(4px);
}

@keyframes spinGlow {
    to {
        transform: rotate(360deg);
    }
}

.profile-contact-card {
    width: 100%;
    background: var(--bg-slate-50);
    border: 1px solid var(--border-slate);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-all;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary-blue);
}

.contact-item a {
    color: var(--text-slate);
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--primary-blue);
}

/* Bio column */
.profile-bio-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-name-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-name-block h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.profile-role-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--primary-blue-glow);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.profile-bio {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.skill-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-slate-100);
    color: var(--text-slate);
    border: 1px solid var(--border-slate);
    transition: transform 0.2s, box-shadow 0.2s;
}

.skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.skill-tag.blue-tag {
    background: rgba(37, 99, 235, 0.07);
    color: var(--primary-blue);
    border-color: rgba(37, 99, 235, 0.2);
}

.skill-tag.teal-tag {
    background: rgba(13, 148, 136, 0.07);
    color: var(--secondary-teal);
    border-color: rgba(13, 148, 136, 0.2);
}

.skill-tag.purple-tag {
    background: rgba(124, 58, 237, 0.07);
    color: var(--tertiary-purple);
    border-color: rgba(124, 58, 237, 0.2);
}

/* --- Timeline --- */
.timeline-section {
    padding: 40px 40px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 24px;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 6px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-focus);
    border: 2px solid var(--border-slate);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.timeline-dot.active-dot {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: var(--border-slate);
    min-height: 60px;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-slate);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s, transform 0.3s;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-navy);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-right: 8px;
}

.timeline-location {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.timeline-date {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-slate-100);
    color: var(--text-muted);
    border: 1px solid var(--border-slate);
    white-space: nowrap;
}

.timeline-date.active-badge {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    border-color: rgba(37, 99, 235, 0.2);
}

.timeline-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.timeline-bullets li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
}

.timeline-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary-teal);
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tech span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    background: var(--bg-slate-100);
    border: 1px solid var(--border-slate);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* --- Projects --- */
.projects-section {
    padding: 40px 40px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-slate);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.project-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon.blue-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

.project-icon.teal-icon {
    background: rgba(13, 148, 136, 0.1);
    color: var(--secondary-teal);
}

.project-type-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg-slate-100);
    color: var(--text-muted);
    border: 1px solid var(--border-slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teal-badge {
    background: rgba(13, 148, 136, 0.08);
    color: var(--secondary-teal);
    border-color: rgba(13, 148, 136, 0.2);
}

.project-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

.project-subtitle {
    font-size: 0.82rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin: 0;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.project-tech span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    background: var(--bg-slate-100);
    border: 1px solid var(--border-slate);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* --- Education --- */
.education-section {
    padding: 40px 40px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.edu-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-slate);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-soft);
    margin-top: 40px;
    flex-wrap: wrap;
    transition: transform 0.3s, box-shadow 0.3s;
}

.edu-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.edu-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.edu-body {
    flex: 1;
    min-width: 200px;
}

.edu-body h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.edu-institute {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.edu-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.edu-cert {
    flex-shrink: 0;
}

.cert-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 14px;
    background: rgba(124, 58, 237, 0.07);
    color: var(--tertiary-purple);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 20px;
}

/* --- About CTA --- */
.about-cta-section {
    padding: 40px 40px 100px;
    max-width: 1140px;
    margin: 0 auto;
}

.about-cta-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0d9488 100%);
    border-radius: 20px;
    padding: 60px 52px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.about-cta-card h2 {
    color: white;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    letter-spacing: -0.5px;
}

.about-cta-card p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.75;
}

.about-cta-card .btn-primary {
    margin-top: 10px;
    background: white;
    color: var(--primary-blue);
}

.about-cta-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .profile-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .profile-image-col {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-image-wrap {
        width: 120px;
        height: 120px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .timeline-header {
        flex-direction: column;
    }

    .edu-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-cta-card {
        padding: 40px 28px;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding: 130px 24px 60px;
    }

    .profile-section,
    .timeline-section,
    .projects-section,
    .education-section,
    .about-cta-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .profile-card {
        padding: 28px 22px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .profile-image-col {
        flex-direction: column;
        align-items: center;
    }
}