/* ============================================================
   JULIE JANCICKOVA – PORTFOLIO
   Master stylesheet · Swiss Minimalism
   ============================================================ */

/* ---------- variables ---------- */
:root {
    --black:  #000;
    --white:  #fff;
    --beige:  #d4c5b0;
    --beige-dim: rgba(212, 197, 176, 0.15);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-body:  rgba(255, 255, 255, 0.75);
}

/* ---------- reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- shared animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateY(-50%) translateX(100px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* reveal helper – JS adds .visible */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1),
                transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   NAVIGATION  (shared across all inner pages)
   ============================================================ */
.main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 5%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--beige-dim);
    z-index: 1000;
}

.nav-logo {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.15rem;
    color: var(--beige);
    transition: color .3s;
}
.nav-logo:hover { color: var(--white); }

.nav-links {
    display: flex;
    gap: 2.8rem;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    transition: color .3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--beige);
    transition: width .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ============================================================
   INDEX  –  hero
   ============================================================ */
.page-wrapper { max-width: 1800px; margin: 0 auto; }

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.hero-left {
    padding: 8rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meta-info {
    font-size: 0.75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--beige);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp .6s ease-out .2s forwards;
}

.hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(4rem, 9vw, 10rem);
    line-height: .95;
    margin-bottom: 2rem;
    letter-spacing: -.03em;
    opacity: 0;
    animation: fadeInUp .6s ease-out .4s forwards;
}
.name-first { display: block; color: var(--beige); }
.name-last  { display: block; font-weight: 400; }

.role-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp .6s ease-out .6s forwards;
}

.bio-paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    font-weight: 300;
    color: var(--text-body);
    opacity: 0;
    animation: fadeInUp .6s ease-out .8s forwards;
}

/* hero photo */
.hero-right { position: relative; overflow: hidden; }

.photo-container {
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 70%;
    transform: translateY(-50%);
    opacity: 0;
    animation: slideInRight 1s ease-out .4s forwards;
}

.photo-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.3);
    transition: filter 1s cubic-bezier(.4,0,.2,1),
                transform 1s cubic-bezier(.4,0,.2,1);
}
.photo-container:hover img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
}

/* index – path cards */
.index-projects {
    padding: 8rem 5rem;
    border-top: 1px solid var(--beige-dim);
}

.index-projects .section-header { margin-bottom: 5rem; }

.section-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--beige);
    font-weight: 300;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.path-card {
    border: 1px solid var(--beige-dim);
    padding: 4rem 3rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    transition: border-color .5s, background .5s;
}

.path-card::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 0; height: 100%;
    background: rgba(212,197,176,.05);
    transition: width .5s cubic-bezier(.4,0,.2,1);
}
.path-card:hover::before { width: 100%; }
.path-card:hover { border-color: var(--beige); background: rgba(255,255,255,.02); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    position: relative; z-index: 1;
}
.card-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 3rem;
    color: var(--beige);
    opacity: .5;
    line-height: 1;
}
.card-tag {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--beige);
}
.card-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative; z-index: 1;
}
.card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
    position: relative; z-index: 1;
}
.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    position: relative; z-index: 1;
}
.card-arrow {
    width: 50px; height: 50px;
    border: 1px solid var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background .3s, color .3s, transform .3s;
}
.path-card:hover .card-arrow {
    background: var(--beige);
    color: var(--black);
    transform: translateX(10px);
}

/* ============================================================
   SHARED PAGE HEADER  (ux, unity, project-detail)
   ============================================================ */
.page-header {
    margin-top: 68px;          /* nav height */
    padding: 6rem 5% 4rem;
    border-bottom: 1px solid var(--beige-dim);
    animation: fadeInUp .8s ease-out;
}
.header-content { max-width: 1400px; margin: 0 auto; }

.page-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -.02em;
    color: var(--beige);
}

.page-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-body);
    max-width: 700px;
    font-weight: 300;
}

/* ============================================================
   UX LISTING  –  alternating image / text rows
   ============================================================ */
.listing-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 5%;
}

.listing-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 8rem;
    padding-bottom: 8rem;
    border-bottom: 1px solid rgba(212,197,176,.1);
}
.listing-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* swap columns on even cards */
.listing-card:nth-child(even) .listing-image { order: 2; }
.listing-card:nth-child(even) .listing-content { order: 1; }

/* image box */
.listing-image {
    min-height: 420px;
    overflow: hidden;
}

.listing-image .img-placeholder {
    width: 100%; height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.listing-card:hover .img-placeholder { transform: scale(1.03); }

.listing-image .img-placeholder .ph-icon {
    font-size: 6rem;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.3));
}

/* text side */
.listing-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.listing-heading {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 1.8rem;
}

.listing-paragraph {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-body);
    font-weight: 300;
}

/* ============================================================
   UNITY LISTING  –  2-col grid of cards (different from UX)
   ============================================================ */
.unity-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.unity-card {
    border: 1px solid var(--beige-dim);
    overflow: hidden;
    transition: border-color .4s, transform .4s;
    position: relative;
}
.unity-card:hover {
    border-color: var(--beige);
    transform: translateY(-6px);
}

/* honours badge */
.unity-card .honours-badge {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    background: var(--beige);
    color: var(--black);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .45rem 1rem;
    z-index: 2;
}

.unity-card .unity-img {
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.unity-card:hover .unity-img { transform: scale(1.04); }

.unity-card .unity-img .ph-icon {
    font-size: 5rem;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
}

.unity-card-body {
    padding: 2.2rem 2rem;
}

.unity-card-body .unity-tag {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--beige);
    margin-bottom: .8rem;
}

.unity-card-body .unity-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.unity-card-body .unity-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    font-weight: 300;
}

/* ============================================================
   PROJECT DETAIL PAGE  –  full deep-dive layout
   ============================================================ */

/* --- hero banner --- */
.detail-hero {
    margin-top: 68px;
    height: 55vh;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.detail-hero .detail-hero-bg {
    position: absolute;
    inset: 0;
    /* gradient set inline per project */
    transition: transform 8s cubic-bezier(.4,0,.2,1);
}
.detail-hero:hover .detail-hero-bg { transform: scale(1.06); }

.detail-hero .detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.15) 0%,
        rgba(0,0,0,.55) 70%,
        rgba(0,0,0,.9) 100%
    );
}

.detail-hero-content {
    position: absolute;
    bottom: 3.5rem;
    left: 5%;
    right: 5%;
    max-width: 900px;
    z-index: 2;
    animation: fadeIn .9s ease-out .3s backwards;
}

.detail-hero-label {
    font-size: .75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--beige);
    margin-bottom: 1rem;
}

.detail-hero-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -.02em;
}

.detail-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-body);
    font-weight: 300;
    max-width: 620px;
    line-height: 1.7;
}

/* --- meta strip (role / year / tools) --- */
.detail-meta-strip {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-bottom: 1px solid var(--beige-dim);
}

.detail-meta-item label {
    display: block;
    font-size: .7rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--beige);
    margin-bottom: .5rem;
}
.detail-meta-item span {
    font-size: 1.05rem;
    color: var(--white);
    font-weight: 300;
}

/* --- body sections --- */
.detail-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 5% 7rem;
}

/* section with text only */
.detail-section {
    margin-bottom: 5rem;
}

.detail-section-label {
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--beige);
    margin-bottom: 1.2rem;
}

.detail-section h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.8rem;
}

.detail-section p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-body);
    font-weight: 300;
    margin-bottom: 1.4rem;
    max-width: 780px;
}

/* image full-width inside detail */
.detail-image-full {
    width: 100%;
    border-radius: 2px;
    margin: 3rem 0;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-full .ph-icon { font-size: 7rem; filter: drop-shadow(0 12px 30px rgba(0,0,0,.4)); }

/* two-col text + image */
.detail-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}
.detail-duo.reverse .detail-duo-text { order: 2; }
.detail-duo.reverse .detail-duo-image { order: 1; }

.detail-duo-image {
    min-height: 340px;
    overflow: hidden;
    border-radius: 2px;
}
.detail-duo-image .img-placeholder {
    width: 100%; height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* blockquote pull */
.detail-quote {
    border-left: 3px solid var(--beige);
    padding: 1.5rem 0 1.5rem 2.5rem;
    margin: 3rem 0;
}
.detail-quote p {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.35rem !important;
    line-height: 1.7 !important;
    color: var(--white) !important;
    max-width: 100% !important;
}

/* tag pills inside detail */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.5rem;
}
.detail-tags span {
    padding: .45rem 1rem;
    border: 1px solid var(--beige-dim);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--beige);
}

/* back link inside detail */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    color: var(--beige);
    margin-top: 2rem;
    transition: color .3s, gap .3s;
}
.detail-back:hover { color: var(--white); gap: 1rem; }

.unity-img-with-photo {
    position: relative;
    overflow: hidden;
}

.unity-img-with-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.unity-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.4s ease;
}

.unity-card:hover .unity-img-with-photo img {
    transform: scale(1.05);
}

.unity-card:hover .unity-img-overlay {
    opacity: 0;
}

/* ============================================================
   SHARED FOOTER  (index, ux, unity, detail)
   ============================================================ */
.site-footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--beige-dim);
    text-align: center;
}
.site-footer p {
    font-size: .88rem;
    color: var(--text-muted);
    letter-spacing: .1em;
}

/* index footer is grid-based */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}
.footer-col h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: .8rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--beige);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.footer-col .footer-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: var(--beige);
    margin-bottom: .5rem;
}
.footer-col .footer-text {
    font-size: .9rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.social-icon {
    color: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .3s, transform .3s;
}
.social-icon:hover { color: var(--white); transform: translateY(-3px); }
.social-icon svg { width: 24px; height: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* tablets */
@media (max-width: 1024px) {
    .nav-links { gap: 1.8rem; }

    /* index hero */
    .hero { grid-template-columns: 1fr; }
    .hero-right { min-height: 55vh; }

    /* index path cards */
    .projects-grid { grid-template-columns: 1fr; }

    /* listing rows → stack */
    .listing-card,
    .listing-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 6rem;
        padding-bottom: 6rem;
    }
    .listing-card:nth-child(even) .listing-image,
    .listing-card:nth-child(even) .listing-content { order: initial; }

    /* unity grid → single col */
    .unity-grid { grid-template-columns: 1fr; max-width: 700px; }

    /* detail duo → stack */
    .detail-duo, .detail-duo.reverse {
        grid-template-columns: 1fr;
    }
    .detail-duo.reverse .detail-duo-text,
    .detail-duo.reverse .detail-duo-image { order: initial; }

    .detail-meta-strip { grid-template-columns: 1fr 1fr; }

    /* footer */
    .footer-grid { grid-template-columns: 1fr; }
}

/* phones */
@media (max-width: 680px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 5%;
    }
    .nav-links { gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
    .nav-links a { font-size: .78rem; }

    .page-header { margin-top: 110px; padding: 3rem 5% 2.5rem; }

    .hero-left { padding: 4rem 2rem; }
    .index-projects { padding: 4rem 2rem; }
    .path-card { padding: 2.5rem 1.8rem; }

    .listing-section { padding: 3rem 5%; }
    .listing-image { min-height: 280px; }

    .detail-hero { height: 45vh; min-height: 320px; }
    .detail-meta-strip { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
    .detail-body { padding: 3rem 5% 5rem; }

    .site-footer { padding: 3rem 5%; }
    .footer-grid { padding: 0; }
}
