/* Site styles (on top of Bootstrap 5.3). Served as /assets/style.css. */

body {
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: #333;
    background-color: #fff;
}
.navbar-brand {
    font-weight: bold;
}
.nav-link {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #333;
}

.nav-link.active {
    font-weight: bold;
}
.navbar {
    position: relative;
    z-index: 10;
}

/* Navbar over a full-screen photo (main page, projects): it lies on the photo instead of pushing it down,
   so the photo starts at the top whatever the navbar's height. data-bs-theme="dark" makes the toggler white. */
.navbar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.navbar-overlay .navbar-brand,
.navbar-overlay .nav-link,
.navbar-overlay .nav-link.active,
.navbar-overlay a:hover {
    color: #fff;
}
.navbar-overlay .nav-link:hover,
.navbar-overlay .nav-link:focus-visible {
    color: rgba(255, 255, 255, 0.75);
}
.navbar-overlay .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 991.98px) {
    /* Mobile menu items: full-width rows (the list stretches them below lg), at least 44px tall to tap. */
    .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }
    /* Over a photo the opened menu gets its own dark panel, readable on any image. It is on the list, not on
       .navbar-collapse: Bootstrap animates that element's height, and padding there makes the animation jump. */
    .navbar-overlay .navbar-nav {
        margin-top: 0.75rem;
        padding: 0.5rem 0;
        border-radius: 0.5rem;
        background: rgba(17, 17, 17, 0.85);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

.nav-social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: sub;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px; /* Slight rounding for a softer look */
}
.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}
.about-text h2 {
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #222;
}
.section-title {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    color: #222;
}
.list-unstyled li {
    margin-bottom: 0.75rem;
    color: #555;
}
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}
/* Main page: the footer lies over the full-screen photo. */
footer.footer-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-top: 0;
    background: transparent;
    border: none;
    color: white;
}
a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #000;
    text-decoration: underline;
}
.project-card {
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s ease;
}
.project-card:hover {
    opacity: 0.8;
    color: #333;
}
.project-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/2;
    transition: transform 0.2s;
}
.project-title {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: normal;
    text-align: center;
}
.gallery-img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.project-img:hover,
.gallery-img:hover {
    transform: scale(1.02);
}
.project-description {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    height: 100svh; /* mobile: the visible height, without the browser's toolbars */
    margin-bottom: 3rem;
}
.hero-section.full-height {
    margin-bottom: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker at the top and bottom: the navbar, the title and the footer stay readable on light photos. */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.45) 100%);
}
.hero-content {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 1rem;
}
.hero-title {
    font-size: clamp(2rem, 1.25rem + 2.5vw, 3rem);
    font-weight: normal;
}

/* Gallery viewer (the site's only modal): photos on near-black, not on the page behind. */
.modal-backdrop {
    --bs-backdrop-opacity: 0.92;
}
