/*
 * Styles for the new "About Me" Page
 */

/* General Section Styles */
.about-page-section, .faq-section {
    padding: 4rem 1rem;
}
.about-page-section:nth-of-type(2n) { /* Alternating bg for about sections */
    background-color: var(--light-gray);
}
.faq-section {
    background-color: var(--bg-color);
}
.container--wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* About Content Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}
.about-profile__img {
    position: relative;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    background-color: white;
    padding: 1rem;
}
.about-profile__img img {
    display: block;
    width: 100%;
    border-radius: 24px;
}

/* Emoji Frame Styles */
@keyframes twinkle-emoji {
    0%, 20%, 100% {
        opacity: 0;
        transform: var(--transform-offset) scale(0.7) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: var(--transform-offset) scale(1.2) rotate(10deg);
    }
}

.profile-emoji {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: twinkle-emoji 12s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none;
}

/* Top Edge */
.profile-emoji--1 { top: 0; left: 15%; --transform-offset: translate(-50%, -50%); animation-delay: 0s; }
.profile-emoji--7 { top: 0; left: 50%; --transform-offset: translate(-50%, -50%); animation-delay: 4.2s; }
.profile-emoji--2 { top: 0; left: 85%; --transform-offset: translate(-50%, -50%); animation-delay: 0.7s; }

/* Right Edge */
.profile-emoji--11 { top: 20%; right: 0; --transform-offset: translate(50%, -50%); animation-delay: 7s; }
.profile-emoji--3 { top: 50%; right: 0; --transform-offset: translate(50%, -50%); animation-delay: 1.4s; }
.profile-emoji--8 { top: 80%; right: 0; --transform-offset: translate(50%, -50%); animation-delay: 4.9s; }

/* Bottom Edge */
.profile-emoji--10 { bottom: 0; right: 15%; --transform-offset: translate(50%, 50%); animation-delay: 6.3s; }
.profile-emoji--4 { bottom: 0; right: 50%; --transform-offset: translate(50%, 50%); animation-delay: 2.1s; }
.profile-emoji--9 { bottom: 0; right: 85%; --transform-offset: translate(50%, 50%); animation-delay: 5.6s; }

/* Left Edge */
.profile-emoji--5 { top: 70%; left: 0; --transform-offset: translate(-50%, -50%); animation-delay: 2.8s; }
.profile-emoji--6 { top: 30%; left: 0; --transform-offset: translate(-50%, -50%); animation-delay: 3.5s; }


.about-details h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.about-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.about-profile__tags span {
    background-color: var(--secondary-light);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.about-details p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color-light);
}
.about-details__cta {
    margin-top: 2rem;
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.philosophy-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-align: center;
}
.philosophy-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.philosophy-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}
.philosophy-card p {
    color: var(--text-color-light);
    line-height: 1.6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.project-card {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.project-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.project-card__content {
    padding: 1.5rem;
}
.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.project-card p {
    font-size: 0.9rem;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.faq-card {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}
.faq-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.faq-card p {
    font-size: 0.9rem;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* === Experience Timeline (Full Width Version) === */
.timeline-section-wrapper {
    background-color: var(--light-gray); /* Add a subtle background to separate it */
}

.timeline {
    position: relative;
    width: 100%;
}
.timeline::before { /* The main horizontal line */
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-light);
    border-radius: 2px;
}
.timeline-items {
    display: flex;
    justify-content: space-between;
}
.timeline-item {
    position: relative;
    width: 30%;
    padding-top: 35px; /* Space for the dot and a gap */
    text-align: center;
}
.timeline-item::after { /* The dot on the timeline */
    content: '';
    position: absolute;
    left: 50%;
    top: 10px; /* Must match the line's top position */
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--light-gray);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}
.timeline-content { /* The content box below the dot */
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.timeline-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}
.timeline-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color-light);
}


/* Responsive Styles */
@media (max-width: 992px) {
    .projects-grid,
    .faq-grid,
    .philosophy-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
    
    .about-page-section, .faq-section {
        padding: 3rem 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-profile {
        max-width: 300px;
        margin: 0 auto;
    }
    .about-details h3 {
        margin-top: 1rem;
    }
    .about-profile__tags {
        justify-content: center;
    }
    
    /* Responsive Emoji Styles */
    .profile-emoji {
        font-size: 1.8rem;
    }
    
    /* Responsive Timeline -> switches to vertical */
    .timeline {
        padding-left: 10px; /* Space for the line */
        margin: 1.5rem 0;
    }
    .timeline::before { /* The main vertical line */
        left: 10px;
        top: 0;
        width: 4px;
        height: 100%;
        transform: none; /* Reset desktop transform */
    }
    .timeline-items {
        flex-direction: column;
    }
    .timeline-item {
        width: 100%;
        padding-top: 0; /* Reset desktop padding */
        padding-left: 30px; /* Space from the line */
        margin-bottom: 1.5rem;
        text-align: left;
    }
    .timeline-item:last-child {
        margin-bottom: 0;
    }
    .timeline-item::after { /* The dot on the vertical line */
        left: 10px; /* Align with the line */
        top: 0;
        transform: translate(-50%, 0);
    }
}