/* =========================================
   VARIABLES & GLOBAL RESETS
========================================= */
:root {
    --wix-red: #bb152a; 
    --wix-red-hover: #960f21;
    --text-dark: #2b2b2b;
    --text-grey: #555555;
    --bg-light-grey: #e9e9e9; 
    --bg-mid-grey: #d5d5d5; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   HOMEPAGE SPECIFIC (100vh Viewport Fit)
========================================= */
.home-body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

/* --- Global Header --- */
.main-header {
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    z-index: 100;
    border-bottom: 1px solid #eaeaea;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.red-square {
    width: 14px;
    height: 14px;
    background-color: var(--wix-red);
}

.site-title a {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--wix-red);
}

.divider {
    color: #000;
    font-weight: 300;
    margin: 0 5px;
}

.site-subtitle {
    font-size: 0.9rem;
    color: var(--text-grey);
    letter-spacing: 1.5px;
    font-weight: 300;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #000;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--wix-red);
}

/* --- Homepage Layout --- */
.home-main {
    flex: 1; 
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.grey-bg-block {
    position: absolute;
    left: 0;
    top: 5vh; 
    bottom: 5vh; 
    width: 38%;
    background-color: var(--bg-mid-grey);
    z-index: 0;
}

.home-container {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
}

/* Overlapping Card */
.profile-card {
    width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    margin-left: 15%; 
    background: #fff;
}

.card-top {
    background-color: var(--bg-light-grey);
    padding: 60px 40px 40px;
    text-align: center;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    background-color: #ccc;
}

.card-top h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: #000;
}

.red-line {
    width: 50px;
    height: 2px;
    background-color: var(--wix-red);
    margin: 0 auto 20px;
}

.job-title {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #444;
    font-weight: bold;
}

.card-bottom {
    background-color: #fff;
    padding: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.card-bottom a {
    color: #000;
    transition: color 0.3s;
}

.card-bottom a:hover {
    color: var(--wix-red);
}

/* Right Side Text Block */
.home-text {
    flex: 1;
    padding-left: 80px;
    max-width: 650px;
}

.home-text h2 {
    font-size: 7.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
}

.home-text h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 40px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid #000;
    color: #000;
    background: transparent;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

.btn-solid {
    border: 1px solid var(--wix-red);
    background: var(--wix-red);
    color: #fff;
}

.btn-solid:hover {
    background: var(--wix-red-hover);
    border-color: var(--wix-red-hover);
}

.quote {
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 25px;
}

.bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-grey);
    text-align: justify;
}

/* --- Global Footer --- */
.main-footer {
    padding: 30px 60px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    z-index: 100;
    border-top: 1px solid #eaeaea;
}

.footer-right {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-label {
    font-weight: bold;
    color: #000;
    font-size: 0.95rem;
}

.footer-col a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--wix-red);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #000;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--wix-red);
}


/* =========================================
   SUB-PAGE STYLES (Resume, Projects, etc.)
========================================= */
body:not(.home-body) {
    display: block;
    height: auto;
    overflow: auto;
    background-color: #fff;
}

/* Wix standard boundary for content */
.page-container {
    max-width: 980px;
    margin: 60px auto 80px;
    padding: 0 40px;
}

.page-header {
    text-align: left;
    padding: 40px 0 60px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #000;
}

.intro-text {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Resume Timeline */
.timeline {
    margin-top: 40px;
}

.timeline-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 60px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-left {
    flex: 1;
    min-width: 250px;
    padding-right: 40px;
}

.timeline-left h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--wix-red);
}

.job-role {
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.company {
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
    font-size: 1.05rem;
}

.job-type {
    font-size: 0.9rem;
    color: #888;
}

.timeline-right {
    flex: 2;
    min-width: 350px;
}

.timeline-right p {
    margin-bottom: 20px;
    color: #444;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.8;
}

.timeline-right .highlight {
    font-style: italic;
    font-size: 1rem;
    color: #666;
    margin-top: 25px;
    padding-left: 20px;
    border-left: 3px solid var(--wix-red);
}


/* =========================================
   PROJECTS LIST (Centered Vertical Stack)
========================================= */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.project-box h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #000;
}

.project-role {
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: var(--wix-red);
    margin-bottom: 25px;
}

.project-desc {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn-small {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--wix-red);
    background: transparent;
    text-decoration: none;
    color: var(--wix-red);
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start; 
    margin-bottom: 40px;
}

.btn-small:hover {
    background: var(--wix-red);
    color: #fff;
}

.project-media {
    width: 100%;
}

.project-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}


/* =========================================
   INDIVIDUAL PROJECT DETAIL PAGES
========================================= */
.project-detail-header {
    text-align: center;
    padding: 50px 0 40px;
    margin-bottom: 50px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    text-decoration: none;
    color: #777;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--wix-red);
}

.project-detail-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.project-detail-header .project-role {
    text-align: center;
    margin-bottom: 0;
}

.project-content {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 50px;
    background: #ddd;
}

.text-block {
    margin-bottom: 50px;
}

.text-block p {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Gallery Grid */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.project-gallery img {
    width: 100%;
    height: 300px; 
    object-fit: cover;
    display: block;
    background: #ddd;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-gallery img:hover {
    opacity: 0.85;
    transform: scale(0.98);
}

/* Lightbox Modal */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--wix-red);
}

.nav-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    padding: 0 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s ease;
}

.nav-arrow:hover {
    color: var(--wix-red);
}

.nav-arrow.prev {
    left: -80px;
}

.nav-arrow.next {
    right: -80px;
}

/* =========================================
   MOBILE ADJUSTMENTS
========================================= */
@media (max-width: 1100px) {
    .home-body {
        height: auto;
        overflow: auto;
    }
    
    .grey-bg-block {
        display: none;
    }

    .home-container {
        flex-direction: column;
        padding: 40px 20px;
    }

    .profile-card {
        margin-left: 0;
        margin-bottom: 40px;
    }

    .home-text {
        padding-left: 0;
        max-width: 100%;
    }
    
    .main-header, .main-footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-right {
        gap: 30px;
    }
}

@media (max-width: 800px) {
    .page-container, .projects-wrapper {
        padding: 0 30px 40px;
        margin: 20px auto;
        width: 100%;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-left {
        margin-bottom: 25px;
        padding-right: 0;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-arrow {
        position: static;
        transform: none;
        padding: 10px;
    }
    
    .lightbox-content-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }
}
