/* ---------- PAGE PRESETS ---------- */
.box {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Century Gothic", Avenir, sans-serif;
    background-color: #2c2c2c;
    color: #ffffff;
}

/* ---------- HEADER ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    padding: 16px 24px;
    background-color: #1f1f1f;
    gap: 20px;

    transition: padding 0.3s ease;
}

.name {
    margin: 0;
    font-size: 28px;
}

.title-text {
    margin: 4px 0 0;
    font-size: 16px;
}

.name-section {
    text-decoration: none;
    color: inherit;
    padding: 8px 14px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.name-section:hover {
    background-color:#2c2c2c;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #2c2c2c;
}

.current {
    font-weight: bold;
}

.contact-link {
    background-color: #4d4d4d;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
}

.contact-link:hover {
    background-color: #5d5d5d;
}

/* ---------- PAGE ---------- */
.page-title {
    text-align: center;
    font-size: clamp(36px, 6vw, 60px);
    margin: 40px 0;
}

.page-links {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 24px;
    margin-bottom: 60px;
}

.scroll-titles {
    scroll-margin-top: 120px;
}

/* ---------- BOX LINKS ---------- */
.box {
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    color: #ffffff;
}

.box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    transition: background-color 0.3s;
}

.box:hover::before {
    background-color: rgba(44, 44, 44, 0.7);
}

.box-title {
    position: relative;
    z-index: 1;
    padding: 12px 20px;
    background: rgba(43,43,43,0.6);
    border-radius: 14px;
}

/* ---------- CONTENT ---------- */
h2, h3 {
    text-align: center;
}

p {
    max-width: 1300px;
    margin: 20px auto 20px;
    text-align: center;
    font-size: 17px;
    line-height: 1.6;
}

/* ---------- MEDIA ---------- */
img,
video {
    max-height: 100%;
    width: auto;
    display: block;
}

/* ---------- FOOTER ---------- */
.footer-barrier {
    height: 60px;
    background-color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- RESPONDS TO DIFFERENT DEVICES ---------- */
@media (max-width: 1024px) {
    .page-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-links {
        grid-template-columns: 1fr;
    }

    img {
        max-height: calc(100% - 32px);
        width: auto;
        margin: 0 auto;
    }

    video {
        max-height: calc(100% - 32px);
        width: auto;
        margin: 0 auto;
    }

    
}

/* ---------- HEADER COMPACT (MOBILE ONLY) ---------- */
@media (max-width: 870px) {
    .header {
        transition: padding 0.3s ease, min-height 0.3s ease;
    }

    .header--compact {
        padding: 8px 16px;
    }

    .header--compact .nav-links,
    .header--compact .contact-link {
        display: none;
    }

    .header--compact .name {
        font-size: 20px;
    }

    .header--compact .title-text {
        font-size: 14px;
    }
}