/* about overlay modal styles | jahrei labs | 2025 */
/* bio modal, social links, and work experience panel */

.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.about-overlay.active {
    opacity: 1;
    visibility: visible;
}

.about-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* For Safari */
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
    .about-backdrop {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

.about-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    margin: 80px auto;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-overlay.active .about-content {
    transform: translateY(0);
    opacity: 1;
}

.about-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.about-close::before,
.about-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
}

.about-close::before {
    transform: rotate(45deg);
}

.about-close::after {
    transform: rotate(-45deg);
}

.signature-container {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.signature {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.about-bio {
    margin-bottom: 10px;
    line-height: 1.7;
}

.about-bio .mission {
    margin-bottom: 15px;
}

.about-bio .mission h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.bottom-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.about-bio .current-work {
    flex: 1;
    margin-top: 0;
}

.about-bio .current-work h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.about-bio .work-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-bio .work-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-bio .work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, #7c3aed 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-bio .work-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.about-bio .work-item:hover::before {
    opacity: 1;
}

.about-bio .work-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.about-bio .work-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    line-height: 1.3;
}

.job-title-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #7c3aed 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.job-title-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.about-bio .work-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.social-links-container {
    margin-top: 0;
    text-align: center;
    position: relative;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    width: 120px;
    padding-top: 40px;
}

.social-circle-trigger {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-circle-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: #d0d5e0;
}

.social-circle-trigger.active {
    background-color: #d0d5e0;
    transform: scale(1.05);
}

.social-trigger-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-circle-trigger.active .social-trigger-icon {
    transform: rotate(45deg);
}

.social-items-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.social-items-container.active {
    pointer-events: auto;
}

.social-item {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    text-decoration: none;
    color: var(--text-color);
}

.social-item:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
}

.social-items-container.active .social-item {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.social-item .social-icon {
    font-size: 18px;
    margin: 0;
}

/* Position social items in a circle around the trigger */
.social-item:nth-child(1) { /* GitHub */
    --angle: 0deg;
    top: calc(50% + 70px * sin(var(--angle)));
    left: calc(50% + 70px * cos(var(--angle)));
    transition-delay: 0.1s;
}

.social-item:nth-child(2) { /* LinkedIn */
    --angle: 60deg;
    top: calc(50% + 70px * sin(var(--angle)));
    left: calc(50% + 70px * cos(var(--angle)));
    transition-delay: 0.15s;
}

.social-item:nth-child(3) { /* Twitter */
    --angle: 120deg;
    top: calc(50% + 70px * sin(var(--angle)));
    left: calc(50% + 70px * cos(var(--angle)));
    transition-delay: 0.2s;
}

.social-item:nth-child(4) { /* Instagram */
    --angle: 180deg;
    top: calc(50% + 70px * sin(var(--angle)));
    left: calc(50% + 70px * cos(var(--angle)));
    transition-delay: 0.25s;
}

.social-item:nth-child(5) { /* YouTube */
    --angle: 240deg;
    top: calc(50% + 70px * sin(var(--angle)));
    left: calc(50% + 70px * cos(var(--angle)));
    transition-delay: 0.3s;
}

.social-item:nth-child(6) { /* Email */
    --angle: 300deg;
    top: calc(50% + 70px * sin(var(--angle)));
    left: calc(50% + 70px * cos(var(--angle)));
    transition-delay: 0.35s;
}

/* Legacy styles - keeping for backwards compatibility but hidden */
.social-links-toggle {
    display: none;
}

.social-links {
    display: none;
}

.social-grid {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content {
        margin: 60px 20px 30px;
        padding: 20px;
        max-width: none;
    }
    
    .signature-container {
        max-width: 200px;
        padding: 12px;
    }
    
    .about-bio {
        margin-bottom: 15px;
        line-height: 1.8;
    }
    
    .about-bio .mission {
        margin-bottom: 18px;
    }
    
    .bottom-section {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .about-bio .current-work {
        margin-top: 0;
    }
    
    .about-bio .mission h3,
    .about-bio .current-work h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .about-bio .work-items {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .about-bio .work-item {
        padding: 18px;
    }
    
    .about-bio .work-header {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .about-bio .work-item h4 {
        font-size: 1.15rem;
    }
    
    .job-title-pill {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .about-bio .work-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .social-links-container {
        margin-top: 0;
        height: 80px;
        width: auto;
    }
    
    .social-circle-trigger {
        width: 45px;
        height: 45px;
    }
    
    .social-trigger-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Adjust circle radius for mobile */
    .social-item:nth-child(1) { /* GitHub */
        top: calc(50% + 60px * sin(var(--angle)));
        left: calc(50% + 60px * cos(var(--angle)));
    }
    
    .social-item:nth-child(2) { /* LinkedIn */
        top: calc(50% + 60px * sin(var(--angle)));
        left: calc(50% + 60px * cos(var(--angle)));
    }
    
    .social-item:nth-child(3) { /* Twitter */
        top: calc(50% + 60px * sin(var(--angle)));
        left: calc(50% + 60px * cos(var(--angle)));
    }
    
    .social-item:nth-child(4) { /* Instagram */
        top: calc(50% + 60px * sin(var(--angle)));
        left: calc(50% + 60px * cos(var(--angle)));
    }
    
    .social-item:nth-child(5) { /* YouTube */
        top: calc(50% + 60px * sin(var(--angle)));
        left: calc(50% + 60px * cos(var(--angle)));
    }
    
    .social-item:nth-child(6) { /* Email */
        top: calc(50% + 60px * sin(var(--angle)));
        left: calc(50% + 60px * cos(var(--angle)));
    }
    
    .social-item {
        width: 35px;
        height: 35px;
    }
    
    .social-item .social-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .about-content {
        margin: 50px 15px 20px;
        padding: 15px;
    }
    
    .signature-container {
        max-width: 180px;
        padding: 10px;
    }
    
    .about-bio {
        font-size: 0.95rem;
    }
    
    .about-bio .work-header {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .about-bio .work-item h4 {
        font-size: 1.1rem;
    }
    
    .job-title-pill {
        font-size: 0.7rem;
        padding: 4px 10px;
        letter-spacing: 0.3px;
    }
    
    .social-links-container {
        height: 70px;
    }
    
    .social-circle-trigger {
        width: 40px;
        height: 40px;
    }
    
    .social-trigger-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Smaller circle radius for small mobile */
    .social-item:nth-child(1) { /* GitHub */
        top: calc(50% + 50px * sin(var(--angle)));
        left: calc(50% + 50px * cos(var(--angle)));
    }
    
    .social-item:nth-child(2) { /* LinkedIn */
        top: calc(50% + 50px * sin(var(--angle)));
        left: calc(50% + 50px * cos(var(--angle)));
    }
    
    .social-item:nth-child(3) { /* Twitter */
        top: calc(50% + 50px * sin(var(--angle)));
        left: calc(50% + 50px * cos(var(--angle)));
    }
    
    .social-item:nth-child(4) { /* Instagram */
        top: calc(50% + 50px * sin(var(--angle)));
        left: calc(50% + 50px * cos(var(--angle)));
    }
    
    .social-item:nth-child(5) { /* YouTube */
        top: calc(50% + 50px * sin(var(--angle)));
        left: calc(50% + 50px * cos(var(--angle)));
    }
    
    .social-item:nth-child(6) { /* Email */
        top: calc(50% + 50px * sin(var(--angle)));
        left: calc(50% + 50px * cos(var(--angle)));
    }
    
    .social-item {
        width: 32px;
        height: 32px;
    }
    
    .social-item .social-icon {
        font-size: 14px;
    }
}