/* =====================================
   XTINE BURROUGH
   Contemporary Portfolio Styles
===================================== */

:root {
    --bg: #f5f2ec;
    --surface: #ffffff;
    --text: #181818;
    --muted: #707070;
    --border: rgba(0, 0, 0, 0.08);
    --navbar-height: 4.75rem;
    --carousel-top-offset: clamp(1.25rem, 2.5vh, 2.5rem);

    --transition: 0.35s ease;
}

/* =====================================
   Base
===================================== */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: "Inter", sans-serif;
    font-weight: 300;
    line-height: 1.8;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    /* display: block; */
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

/* =====================================
   Navigation
===================================== */

.navbar {
    background: rgba(245, 242, 236, 0.92) !important;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    min-height: var(--navbar-height);
}

.navbar-brand {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-link {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    margin-left: 1rem;
}

.nav-link:hover {
    opacity: 0.6;
}

/* =====================================
   Hero
===================================== */

.hero-kicker,
.text-uppercase.text-secondary {
    letter-spacing: 0.35em;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color:rgba(248, 239, 199, .9);
    background-color: rgba(0, 0, 0, 0.8);;
}

.hero-title,
h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.02em;
}
/* overlay */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.15);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
}
/* =====================================
   Sections
===================================== */
.hero {
    text-align: center;
}
section {
    position: relative;
}

h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

p {
    color: var(--text);
}

/* =====================================
   Work Cards
===================================== */

.card {
    border: none;
    background: transparent;
}

.card-body {
    padding: 1rem 0;
}
.card-text {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}
.project-card,
.card {
    transition: var(--transition);
}

.project-card:hover,
.card:hover {
    transform: translateY(-4px);
}

.project-card h3,
.card h3 {
    transition: var(--transition);
}

.project-card:hover h3,
.card:hover h3 {
    opacity: 0.7;
}

/* =====================================
   Publications
===================================== */

.publication {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.8rem 0;

    border-top: 1px solid var(--border);

    transition: var(--transition);
}

.publication:hover {
    padding-left: 0.5rem;
}

.publication span:last-child {
    color: var(--muted);
}

/* =====================================
   About Section
===================================== */

.about-text {
    font-size: 1.15rem;
    max-width: 700px;
}

.btn {
    border-radius: 0;
    padding: 0.9rem 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.btn-outline-dark:hover {
    background: #111;
}

#portfolio-description {
    font-size: 1.15rem;
    max-width: 700px;

}
/* =====================================
   Carousel
===================================== */

#heroCarousel {
    margin-top: calc(var(--navbar-height) + var(--carousel-top-offset));
    padding-top: 0;
}

.carousel-inner {
    overflow: visible;
}

.captions {
    color:rgba(255, 255, 200, 1);
    background-color:rgba(0, 0, 0, 0.8)
}
.carousel-item img {
    display: block;
    max-width: 1900px;
    width: 100%;
    height: calc(100vh - var(--navbar-height) - 2.5rem);
    min-height: 18rem;
    object-fit: contain;
    object-position: center top;
}

.carousel-item {
    vertical-align: top;
}
/* =====================================
   Footer
===================================== */

footer {
    margin-top: 6rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--border);
    padding-top: 2rem;

    color: var(--muted);
}

/* =====================================
   Utilities
===================================== */

.lead {
    color: var(--muted);
    font-size: 1.2rem;
}

.text-secondary {
    color: var(--muted) !important;
}
mark {
    background-color: white;
    color: black;
}

/* =====================================
   Large Screens
===================================== */

@media (min-width: 1400px) {

    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4.5rem;
    }
}

/* =====================================
   Tablets
===================================== */

@media (max-width: 992px) {
    :root {
        --navbar-height: 4rem;
        --carousel-top-offset: clamp(0.75rem, 1.5vh, 1.5rem);
    }

    .hero-title {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .publication {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
     #portfolio-description {
        flex-direction: column;
        gap: 1rem;
        margin: 0;
    }
}

/* =====================================
   Mobile
===================================== */

@media (max-width: 768px) {
    :root {
        --navbar-height: 3.5rem;
        --carousel-top-offset: clamp(0.5rem, 1vh, 1rem);
    }

    .hero-title {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .carousel-item, .carousel-item img {
        margin-top: calc(var(--navbar-height) * .8);
        height: calc(100vh - var(--navbar-height) - 1.25rem);
        min-height: 10rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
    #portfolio-description {
        flex-direction: column;
        gap: 1rem;
        margin: 0;
    }
}