/* 
   Project: Organic Minimalist
*/

.about-grid {
    display: flex;             /* Using Flex for easier horizontal control */
    flex-direction: row;       /* Forces Side-by-Side */
    align-items: flex-start;
    gap: 4rem;                 /* Professional 'Cloud Dancer' spacing */
    width: 100%;
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.about-image {
    flex: 0 0 40%;             /* Image takes exactly 40% of the width */
    max-width: 450px;          /* Prevents it from getting too huge */
}

.about-image img {
    width: 100%;               /* Fills its 40% container */
    height: auto;
    border-radius: 15px;
    display: block;
    box-shadow: 0 15px 30px rgba(117, 71, 52, 0.1); /* Subtle Tortoise shadow */
}

.about-text {
    flex: 1;                   /* Takes the remaining space */
    padding-top: 1rem;
}

.about-text h1 {
    font-size: 2.5rem;
    color: var(--tortoise);
    margin: 1rem 0;
    line-height: 1.2;
}

.about-text .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--slate-earth);
    opacity: 0.6;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 7rem;
    background: var(--tortoise);
    color: var(--cloud-dancer);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.skill-tags {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.skill-tags span {
    font-size: 0.8rem;
    background: var(--line-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--tortoise);
}

.about-bottom-stack {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-buttons-stack {
    display: flex;
    gap: 2rem; /* spacing between buttons */
}

.experience-stack {
    display: flex;
    align-items: center;
    gap: 2rem; /* Spacing between circles */
    padding: 2rem 0rem 2rem 2rem;
}

.experience-item {
    width: 50px;  /* Size of the circle */
    height: 50px;
    border-radius: 50%;
    overflow: hidden; /* Clips the image into a circle */
    display: block;
    border: 3px solid var(--line-muted);
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.experience-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image distortion */
    display: block;
}

.experience-item:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: var(--amber);
    box-shadow: 0 12px 20px rgba(217, 182, 72, 0.3);
}

/* --- MOBILE STACKING --- */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column; /* Stacks vertically on smaller screens */
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .about-image {
        flex: 0 0 100%;
        max-width: 100%;       /* Allow image to be wider on mobile */
    }

    .skill-tags { justify-content: center; }

    .experience-stack {
        gap: 1rem;
    }
    .experience-item {
        width: 50px;
        height: 50px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cv-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto; /* Makes the background scrollable if content is tall */
}

/* Modal Content Box */
.cv-modal-content {
    background-color: var(--bg-surface);
    margin: 5vh auto;
    padding: 25px;
    width: 90%;
    max-width: 850px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(45, 42, 38, 0.25); /* softened using slate-earth tone */
}

/* Header */
.cv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--line-muted);
    padding-bottom: 15px;
}

.cv-modal-title {
    margin: 0;
    font-family: sans-serif;
    color: var(--slate-earth);
}

/* Close Button */
.cv-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--tortoise);
    transition: color 0.2s ease;
}

.cv-modal-close:hover {
    color: var(--amber);
}

/* Body */
.cv-modal-body {
    padding-top: 20px;
    text-align: center;
    color: var(--slate-earth);
}

/* PDF Viewer */
.cv-pdf-viewer {
    width: 100%;
    height: 600px;
    border: 1px solid var(--line-muted);
    border-radius: 4px;
    background-color: var(--cloud-dancer);
}

.cv-download-wrapper {
    display: flex;
    justify-content: flex-end; /* pushes button to the right */
    margin-bottom: 15px;
}