/* ===== FONT ===== */
@font-face {
    font-family: 'OxaniumFont';
    src: url('/resources/fonts/Oxanium-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 12pt;
}

body {
    background: black;
    font-family: 'OxaniumFont', sans-serif;
    overflow-x: hidden;
}

/* ===== HOMEPAGE GRID LAYOUT ===== */

.homepage {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header-block right"
        "content-block right"
        "footer footer";
    min-height: 100vh;
    width: 100%;
    background: black;
    position: relative;
}
/*===== NAV ICON =====*/
.nav-icon svg {
    width: 32px;
    height: 32px;
}

.nav-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    cursor: pointer;
    z-index: 200;
}

/* ===== FOOTER ===== */
.footer {
    grid-area: footer;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ===== ORANGE LINE ===== */

.homepage::after {
    content: "";
    position: absolute;
    left: 10rem;
    right: 0;
    top: calc(5rem + 7.5rem + 5rem);
    height: 4px;
    background: #ff7a1a;
    z-index: 50;
    pointer-events: none;
}

/* ===== LEFT SIDE ===== */

.header-block {
    grid-area: header-block;
    padding: 9rem 0 0 10rem;
    z-index: 100;
}

.content-block {
    grid-area: content-block;
    padding: 4rem 0 0 10rem;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: flex-end;
}

.contents-header {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.3;
}

.contents-header img {
    display: block;
    margin-bottom: 0.75rem;
    max-height: 44px;
}

/* ===== CONTENT TEXT ===== */

.content-under-line {
    padding-left: 0;
    color: white;
}

.content-under-line h1 {
    font-size: 2rem;
    margin-bottom: 1.75rem;
    font-weight: 700;
    color: white;
}

.content-under-line p {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: white;
    white-space: normal; 
    word-break: keep-all;
}

.content-under-line a {
    color: white;
    text-decoration: none;
}
.content-under-line li {
    margin-left: 2rem;
    font-size: 1.5rem;
    line-height: 3rem;
}

.content-under-line a:hover {
    color: #ff7a1a;
}

.flags-row a:hover {
    opacity: 1 !important;
}

/* ===== LANGUAGE FLAGS ===== */

.languages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.flags-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.flags-row a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.flags-row a:hover img {
    opacity: 1;
    box-shadow: 0 0 5px 3px rgba(255,122,26,0.6), 0 2px 8px rgba(0,0,0,0.2);
    border: none;
}

.flags-row img {
    width: 3.75rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.flags-row div {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

/* ===== RIGHT SIDE ===== */

.right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    min-height: 90vh;
    overflow: hidden;
}

/* Logo bar */

.logo-bar {
    background: #ffffff;
    padding: 5rem 4rem 0.5rem 3rem;
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
    z-index: 10;
    mask-image: linear-gradient(to right, transparent 10%, black 70%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 10%, black 70%, black 100%);
}

.logo-bar .logo {
    max-width: 80%;
    height: 12rem;
    object-fit: contain;
}

/* Right image */

.right-image-container {
    flex: 1;
    width: 100%;
    height: 60%;
    overflow: hidden;
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 66vh;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    display: block;
    mask-image: 
        linear-gradient(to right, transparent 0%, black 80%, black 100%),
        linear-gradient(to top, transparent 0%, black 40%, black 100%);
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 80%, black 100%),
        linear-gradient(to top, transparent 0%, black 40%, black 100%);
    mask-composite: intersect;
    -webkit-mask-composite: destination-in;
    top: 0;
    left: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .homepage {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    .right {
        order: 0;
    }
    .header-block {
        order: 1;
    }
    .content-block {
        order: 2;
    }
    .nav-icon {
        order:2
    }
    .footer {
        order: 3;
        margin-top: auto;
    }

    .homepage::after {
        display: none;
    }

    .right {
        order: 0;
        min-height: auto;
    }

    .logo-bar {
        max-width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .logo-bar .logo {
        max-width: 100%;
    }

    .logo-bar::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 4px;
        background: #ff7a1a;
    }

    .header-block {
        order: 1;
        padding: 2.5rem 2rem 1rem 2rem;
    }

    .content-block {
        order: 2;
        padding: 1.5rem 2rem 3rem 2rem;
    }

    .main-image {
        mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
    }
}

@media (max-width: 480px) {
    .logo-bar .logo {
        height: 80%;
    }

    .content-under-line h1 {
        font-size: 1.4rem;
    }

    .content-under-line p {
        font-size: 0.95rem;
    }
    .nav-icon {
        top: 0.8rem;
        left: 0.8rem;
    }
}