/* Genera style */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');


* {
    /* * is used as a default for all elements */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 80%;
}

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
}

p {
    color: #555555;
}


/* Transitions */

a,
.btn {
    transition: all 300ms ease;
}

/* Document Container Layout */
.document-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Document Header (Replaces Nav) */
.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 3rem;
}

.doc-logo a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.doc-links {
    font-size: 0.95rem;
    color: #888;
}

.doc-links a {
    color: #555;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.doc-links a:hover {
    color: #1a1a1a;
}

/* Document Sections */

.doc-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eaeaea;
}

section.doc-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.1%;
}

.section-hint {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
    font-style: italic;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Hero Stacking */

.hero-section {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0%;
}

.hero-titles {
    flex: 1;
}

.hero-pic {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.hero-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}


/* SECTIONS */

section {
    box-sizing: border-box;
}

.section-container {
    display: flex;
}

#profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    height: 90vh;
    /* Account for nav height */
}

.section__pic-container {
    display: flex;
    height: 300px;
    width: 300px;
    margin: auto 0;
    flex-shrink: 0;
}

.section__pic-container img {
    border-radius: 50%;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.section__text {
    align-self: center;
    text-align: left;
    /* left-aligned layout instead of centered */
    max-width: 600px;
}

.section__text p {
    font-weight: 500;
}

.home-page-text:hover {
    cursor: default;
}

.section__text__p1 {
    text-align: left;
    font-weight: 500;
    margin-bottom: 0.5rem;
}


.section__text__p2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #555555;
    font-weight: 400;
}

.intro-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    font-weight: 400 !important;
    padding-top: 1rem;
}

.inline-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-decoration-color: #ccc;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.inline-link:hover {
    color: #1a1a1a;
    text-decoration-color: #1a1a1a;
}

h2 {
    color: #555555;
    font-size: 1.8rem;
    font-weight: 500;
}

h2 span {
    color: #1a1a1a;
    font-weight: 600;
    position: relative;
    box-sizing: border-box;
}

h2 span::before {
    content: "";
    height: 28px;
    width: 2px;
    position: absolute;
    top: 50%;
    right: -6px;
    background: #1a1a1a;
    transform: translateY(-45%);
    animation: blink 0.7s infinite;
}

h2 span.stop-blinking::before {
    animation: none;
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

.title {
    font-size: 3.5rem;
    text-align: left;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 0px;
    color: #111;
}

#social-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICON */

.icon {
    cursor: pointer;
    height: 1.5rem;
    opacity: 0.7;
    transition: opacity 300ms ease, transform 300ms ease;
}

.icon:hover {
    opacity: 1;
}

.email-icon {
    transform: scale(1.3);
}

.email-icon:hover {
    transform: scale(1.3);
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    font-weight: 500;
    transition: all 300ms ease;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-color-1,
.btn-color-2 {
    border: 1px solid #e0e0e0;
}

.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1 {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.btn-color-1:hover {
    background: #333;
    border-color: #333;
}

.btn-color-2 {
    background: none;
    color: #1a1a1a;
}

.btn-color-2:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* --- NEW SECTION STYLES: EXPERIENCE --- */

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    margin-top: 0;
}

.exp-list {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.exp-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fafafa;
    /* Solid background so text doesn't wash out */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    cursor: default;
}

.exp-card:not(:has(.nested-roles)) {
    cursor: pointer;
}

/* Background image placeholder that reveals on hover (image set inline per card) */
.exp-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right center;
    /* Align to right since we mask the left */
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    /* Mask gradient carefully applied only to the background image layer. Matches Laroye AI reference by keeping the left half mostly clear. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 45%, black 85%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 45%, black 85%, black 100%);
}

/* Individual Role Background (for nested timelines) */
.role-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    /* Behind the content but inside the role item */
    border-radius: 8px;
    /* Match the role-item hover radius */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 45%, black 85%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 45%, black 85%, black 100%);
}

/* Ensure content stays above background */
.exp-content {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1rem 0.90rem;
    transition: padding 0.4s ease;
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.exp-logo {
    flex-shrink: 0;
}

.company-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.company-link:hover {
    text-decoration: underline;
    opacity: 0.7;
}

.mock-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}

.carleton-logo {
    transform: scale(1.6);
}

.exp-titles h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 0px;
    transition: color 0.4s ease;
}

.exp-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.exp-titles {
    flex: 1;
}

.exp-titles p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    transition: color 0.4s ease;
}

.exp-date {
    margin-left: auto;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.4s ease;
}

.exp-card:not(:has(.nested-roles)):hover .exp-date {
    opacity: 0;
    pointer-events: none;
}

/* Experience card one-liner summary */
.exp-summary {
    font-size: 0.9rem;
    color: #555;
    margin: 0.3rem 0 0 calc(60px + 1rem);
    transition: opacity 0.4s ease;
}

.exp-card:not(:has(.nested-roles)):hover .exp-summary {
    opacity: 0;
    pointer-events: none;
}

/* Details section (hidden by default) — overlays the summary on hover */
.exp-details {
    position: absolute;
    left: 0;
    bottom: 0.75rem;
    opacity: 0;
    padding-left: calc(60px + 2rem);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* --- NESTED ROLES TIMELINE --- */
.nested-roles {
    margin-top: 0.5rem;
    margin-left: 0;
    padding-left: 0;
}

.role-item {
    position: relative;
    padding: 1rem 0 1rem calc(60px + 1rem);
    /* Aligns role text perfectly with the main header text */
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, padding 0.4s ease;
    border-radius: 8px;
    margin-left: 0;
    margin-bottom: 0.2rem;
}

.role-item:last-child {
    margin-bottom: 0;
}

.role-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.role-item:hover .role-bg {
    opacity: 1;
}

/* Timeline Dot */
.role-item::before {
    content: '';
    position: absolute;
    left: 30px;
    /* Perfectly centered under the 60px company logo */
    top: 1.45rem;
    /* Align roughly with title text center (1rem top padding + 0.45rem line height offset) */
    width: 10px;
    height: 10px;
    background-color: #b0b0b0;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Vertical Connecting Line */
.role-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    /* Perfectly centered under the 60px company logo */
    top: 1.45rem;
    bottom: -1.65rem;
    /* Extend exactly to the next item's dot top (0.2rem margin + 1.45rem next dot offset) */
    width: 2px;
    background-color: #e0e0e0;
    transform: translateX(-50%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Darken dot on hover */
.role-item:hover::before {
    background-color: #666;
}

.role-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.2rem;
    padding-left: 0.5rem;
}

.role-header h4 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.05rem;
    font-weight: 600;
}

.role-date {
    font-size: 0.85rem;
    color: #888;
    transition: all 0.4s ease;
}

.role-summary {
    position: relative;
    z-index: 2;
    margin: 0.4rem 0 0.5rem 0.5rem;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.4s ease;
}

.role-item:hover .role-date,
.role-item:hover .role-summary {
    opacity: 0;
    pointer-events: none;
}

.role-type {
    position: relative;
    z-index: 2;
    margin: 0;
    padding-left: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Specific Role Tech Stack (hidden by default, reveals on role hover) */
.role-tech-stack {
    position: absolute;
    bottom: 1.2rem;
    left: calc(60px + 1.5rem);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.role-item:hover .role-tech-stack {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-top: 0%;
}

.tech-tag:not(:last-child)::after {
    content: ',';
}

.tech-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    background: none;
    padding: 0;
    border: none;
    transition: color 0.3s ease;
}

/* --- HOVER STATES --- */

.exp-card:hover {
    border-color: transparent;
    background: #fafafa;
}

.exp-card:hover .exp-bg {
    opacity: 1;
}





.exp-card:hover .exp-details {
    opacity: 1;
    pointer-events: auto;
}

/* --- SECTION INTRO (Pill, Header, Subtitle) --- */
.section-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3.5rem;
    padding-top: 1rem;
}

.pill-badge {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 0.4rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: inline-block;
    letter-spacing: 0.2px;
}

.intro-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.intro-desc {
    font-size: 1.15rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- PROJECTS SECTION --- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    /* since it's an <a> */
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.project-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaeaea;
    /* placeholder bg while loading */
}

.project-media img,
.project-media video,
.project-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    border: none;
    pointer-events: none;
    /* Prevents interaction with YT player, allows clicking the card to go to GitHub */
}



.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.project-header h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0;
}

.project-icon {
    width: 22px;
    height: 22px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.project-icon:hover {
    opacity: 1;
}

.project-desc {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes the tech-stack down to the bottom */
}

/* --- FOOTER --- */

.doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.doc-footer p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.footer-icon {
    width: 24px;
    height: 24px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    filter: invert(0);
    /* Ensure they are dark icons */
}

.footer-icon[alt="Email"] {
    transform: scale(1.3);
}

.footer-icon:hover {
    opacity: 1;
}

/* --- EXPERIENCE MODAL --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-overlay.show .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #1a1a1a;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    padding-right: 2rem;
    /* space for close button */
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0 0 0.4rem 0;
}

.modal-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.modal-date-badge {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.modal-body ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #444;
}

.modal-body li {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-body li:last-child {
    margin-bottom: 0;
}