/* ===== about page specific styles ===== */

.about-hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 70% 30%, var(--glow-indigo), transparent 50%),
        var(--bg-primary);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-hero-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 4rem;
    }
}

.about-hero-content {
    order: 2;
}

@media (min-width: 768px) {
    .about-hero-content {
        order: 1;
    }
}

.about-hero-image {
    order: 1;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .about-hero-image {
        order: 2;
        justify-content: flex-end;
    }
}

.about-hero-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--border-soft);
    box-shadow: var(--shadow-deep);
}

@media (min-width: 768px) {
    .about-hero-image img {
        width: 300px;
        height: 300px;
    }
}

@media (min-width: 1024px) {
    .about-hero-image img {
        width: 350px;
        height: 350px;
    }
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    max-width: 600px;
}

/* journey section */
.section-journey {
    background: var(--bg-secondary);
}

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

@media (min-width: 1024px) {
    .journey-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.journey-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.journey-text:last-child {
    margin-bottom: 0;
}

.journey-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.journey-stat {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.journey-stat:hover {
    border-color: var(--accent-primary);
}

.journey-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.journey-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* timeline section */
.section-timeline {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.timeline {
    margin-top: 3rem;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(212, 165, 116, 0.1));
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--glow-indigo);
}

.timeline-content {
    padding-left: 1rem;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .timeline-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-company {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-list {
    list-style: none;
}

.timeline-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* philosophy about section */
.section-philosophy-about {
    background: var(--bg-secondary);
}

.philosophy-content {
    max-width: 700px;
    margin-bottom: 3rem;
}

.philosophy-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.philosophy-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .philosophy-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pillar-card {
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pillar-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

.pillar-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.pillar-card:hover .pillar-title {
    color: var(--accent-primary);
}

.pillar-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* skills section */
.section-skills {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.skills-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.skill-tag {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(123,124,255,0.1);
}

.certifications {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.cert-list {
    margin-top: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cert-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* illustrations section */
.section-illustrations {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.illustrations-header {
    text-align: center;
    margin-bottom: 3rem;
}

.illustrations-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.illustrations-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .illustrations-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.illustration-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-secondary);
}

.illustration-item:nth-child(5) {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .illustrations-gallery {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .illustration-item:nth-child(5) {
        grid-column: span 1;
    }
}

.illustration-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

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

.illustration-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.illustration-item:hover::after {
    opacity: 1;
}


/* ===== mobile responsiveness ===== */
@media (max-width: 767px) {
    .about-hero {
        padding: 7rem 0 3rem;
    }
    
    .about-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .about-hero-image img {
        width: 180px;
        height: 180px;
    }
    
    .journey-grid {
        gap: 2rem;
    }
    
    .journey-text {
        font-size: 0.9375rem;
    }
    
    .journey-stats {
        gap: 1rem;
    }
    
    .journey-stat {
        padding: 1.25rem;
    }
    
    .journey-stat-number {
        font-size: 2rem;
    }
    
    .section-timeline {
        padding: 4rem 0;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1.125rem;
    }
    
    .timeline-content {
        padding-left: 0.75rem;
    }
    
    .section-philosophy-about {
        padding: 4rem 0;
    }
    
    .philosophy-pillars {
        gap: 1rem;
    }
    
    .pillar-card {
        padding: 1.5rem;
    }
    
    .pillar-title {
        font-size: 1rem;
    }
    
    .section-skills {
        padding: 4rem 0;
    }
    
    .skills-cloud {
        gap: 0.5rem;
        margin-bottom: 3rem;
    }
    
    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* light mode fixes for about page */
[data-theme="light"] .about-hero-image img {
    border-color: var(--border-soft);
}

[data-theme="light"] .about-title {
    color: var(--text-primary);
}

[data-theme="light"] .journey-text {
    color: var(--text-secondary);
}

[data-theme="light"] .timeline-title {
    color: var(--text-primary);
}

[data-theme="light"] .pillar-title {
    color: var(--text-primary);
}

[data-theme="light"] .skill-tag {
    color: var(--text-primary);
    border-color: var(--border-soft);
}
