/* first letter styling */
.about-layout p:first-of-type::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 3.5rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: var(--primary);
    font-weight: 700;
    font-family: var(--mono);
}

/* about layout with text wrapping */
.about-layout {
    display: block;
    position: relative;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-slideshow {
    float: right;
    width: min(42vw, 500px);
    --wrap-top: 56px;
    --wrap-bottom: 72px;
    shape-outside: inset(var(--wrap-top) 0 var(--wrap-bottom) 0 round 12px);
    shape-margin: 16px;
    margin: var(--wrap-top) 0 var(--wrap-bottom) 24px;
}

.slideshow-container {
    width: 100%;
    height: 350px;
    background: var(--bg3);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    position: relative;
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

.slide img, .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.slideshow-controls {
    text-align: center;
    margin-top: 0.5rem;
}

.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 6px;
    background-color: var(--border);
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background-color: var(--primary);
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.3s ease;
    z-index: 10;
}

.slide-arrow:hover {
    background: rgba(185, 28, 28, 0.8);
}

.slide-arrow.prev {
    left: 10px;
}

.slide-arrow.next {
    right: 10px;
}

/* education styling */
.education-container, .education-image { margin-top: 3rem; }
.education-image { text-align: center; }

.education-image img, .education-image video {
    width: 700px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border);
}

/* education code decoration */
.education-card::before {
    content: 'class Education {';
    position: absolute;
    top: -22px;
    left: 0;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.9;
}

.education-card::after {
    content: '}';
    position: absolute;
    bottom: -22px;
    left: 0;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.9;
}

.project-display { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 2rem; }

/* timeline layout */
.experience-list { max-width: 800px; margin: 3rem auto 0; position: relative; }
.experience-list::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--border);
}

.experience-item { display: flex; gap: 2rem; margin-bottom: 4rem; position: relative; align-items: flex-start; }

/* experience code decoration */
.experience-details::before {
    content: 'class WorkExperience {';
    position: absolute;
    top: -22px;
    left: 0;
    color: var(--secondary);
    font-family: var(--mono);
    font-size: 0.85rem;
    opacity: 0.9;
}

.experience-details::after {
    content: '}';
    position: absolute;
    bottom: -22px;
    left: 0;
    color: var(--secondary);
    font-family: var(--mono);
    font-size: 0.85rem;
    opacity: 0.9;
}

/* activities code decoration */
.activity-category::before {
    content: 'const skills = {';
    position: absolute;
    top: -22px;
    left: 0;
    color: var(--tertiary);
    font-family: var(--mono);
    font-size: 0.85rem;
    opacity: 0.9;
}

.activity-category::after {
    content: '};';
    position: absolute;
    bottom: -22px;
    left: 0;
    color: var(--tertiary);
    font-family: var(--mono);
    font-size: 0.85rem;
    opacity: 0.9;
}

/* activities grid layout */
.activity-level {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.activity-image img, .activity-image video {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: 12px;
}

/* resume preview styling */
.resume { text-align: center; position: relative; }

.resume-preview {
    margin: 2rem 0;
    text-align: center;
}

.resume-image {
    width: 500px;
    height: 575px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: white;
    padding: 1rem;
}

.resume h2 {
    position: relative;
    margin-bottom: 3rem;
}

.resume h2::after {
    content: '// view my resume below';
    display: block;
    font-family: var(--mono);
    color: var(--text3);
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* mobile responsive adjustments */
@media (max-width: 768px) {
    .about p:first-of-type::first-letter { float: none; font-size: inherit; line-height: inherit; margin: 0; color: inherit; font-weight: inherit; }
    .about-layout { display: block; }
    .about-slideshow { float: none; shape-outside: none; shape-margin: 0; margin: 0 auto 1.5rem; width: 100%; max-width: 300px; clear: both; }
    .slideshow-container { width: 100%; max-width: 100%; }
    .slide img, .slide video { height: 300px; }
    .education-image img, .education-image video { width: 100%; max-width: 350px; height: auto; }
    .activity-level { grid-template-columns: 1fr; }
    .activity-image img, .activity-image video { height: 200px; }
    .resume-image { width: 250px; height: 320px; }
    .experience-item { flex-direction: column; text-align: center; gap: 1rem; margin-bottom: 3rem; }
    .experience-list::before { display: none; }
    .education-card::before, .education-card::after, .experience-details::before, .experience-details::after, .activity-category::before, .activity-category::after { display: none; }
}
