/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    background: #fff;
    color: #141414;
    line-height: 1.6;
    font-size: 1.15rem;
    text-wrap: pretty;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

a {
    color: #141414;
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.2em;
    text-decoration-color: hsla(0, 0%, 50%, .3);
    transition: text-decoration-color 0.2s ease;
}

a:hover {
    text-decoration-color: #141414;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding-top: clamp(3rem, 5vh, 6rem);
    padding-right: 24px;
    padding-bottom: 3rem;
    padding-left: 24px;
}

/* Header Layout - Side by Side */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align content to top */
    gap: 3rem;
    margin-bottom: 2rem;
}

.header-text {
    flex: 1;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.grid-column h2 {
    margin-top: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Profiles & Entrance Animations */
.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.5s ease;
    border: 1px solid #eee;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

h1 {
    font-weight: 700;
    color: #000;
    font-size: 2.2rem;
    margin: 0.5rem 0 1rem 0;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    background: linear-gradient(45deg, #111 30%, #444 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2,
h3 {
    font-weight: 600;
    color: #111;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    display: inline-block;
    padding-right: 1rem;
}

b {
    font-weight: 600;
    color: #000;
}

.hero {
    font-size: 1.25rem;
    color: #444;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 1.7;
}

/* Sections & Lists */
p {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.job-entry {
    margin-bottom: 1.5rem;
    padding: 1rem;
    margin-left: -1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
}

.job-entry:hover {
    background-color: #f8fafc;
    transform: translateX(8px);
    border-color: #f1f5f9;
}

.job-entry h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.job-entry h3 a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.job-entry:hover h3 a {
    border-bottom: 1px solid #1a1a1a;
}

section ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0.8rem;
}

section ul li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #999;
    font-weight: 300;
    transition: transform 0.2s ease, color 0.2s ease;
}

.job-entry:hover section ul li::before {
    transform: translateX(3px);
    color: #000;
}

/* Date styling */
.date {
    display: block;
    font-size: 0.85rem;
    color: #71717a;
    font-weight: 400;
    margin-bottom: 0.6rem;
}

/* Footer */
hr {
    margin-top: 4rem;
    margin-bottom: 2rem;
    border: none;
    border-top: 1px solid #eaeaea;
}

footer {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

footer a:hover {
    color: #000;
    border-bottom: 1px solid #141414;
}

/* Responsive */
@media (max-width: 850px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .container {
        padding-top: 3rem;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}