:root {
    --bg-color: #2b2a29;
    --text-color: #e1e1e1;
    --accent-color: #4a90a4;
    --accent-glow: rgba(255, 140, 0, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Aptos Narrow', sans-serif;
    --transition-speed: 0.3s;

    /* Footer Image Configuration - MANUAL ADJUSTMENT HERE */
    /* ---------------------------------------------------- */

    /* SIZE: Controls the width of the image relative to the video width. */
    /* 0.37 = 37% of video width. Increase to make bigger, decrease to make smaller. */
    --plan-img-scale: 0.23;

    /* VERTICAL POSITION: Controls how much the image overlaps the video bottom. */
    /* 0.15 = 15% of video width. Increase to move UP, decrease to move DOWN. */
    --plan-img-overlap: 0.0;

    /* HORIZONTAL POSITION: Controls how far left the image is shifted from the video edge. */
    /* 0.12 = 12% of video width. Increase to move LEFT, decrease to move RIGHT. */
    --plan-img-shift: 0.178;
    /* ---------------------------------------------------- */
}

@font-face {
    font-family: 'Aptos Narrow';
    src: url('Aptos-Narrow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    height: 100vh;
}

.container {
    width: var(--video-width, 1140px);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    /* transition: width 0.1s ease-out; removed to prevent side shift on load */
}

/* Subtle Grid/Noise Texture */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Header */
header {
    padding: 0 50px;
    padding-top: 6vh;
    padding-bottom: 4vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 100;
    background: #2b2a29;

    flex: 0 0 auto;
    flex-direction: column;
}

.header-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding-right: 0;
}

.slogan {
    font-size: 4vh;
    font-weight: 300;
    color: #3e899b;
    letter-spacing: 2px;
    text-shadow: none;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 4vh;
    width: auto;
    transition: transform 0.3s ease;
    animation: fadeInDown 1s ease-out;
}

/* Mobile breakpoint removed - handled by responsive vh units and 768px query */

.logo-img:hover {
    transform: scale(1.05);
}

/* ... */

/* Responsive */
@media (max-width: 768px) {

    /* ... */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-right: 0;
        gap: 15px;
        text-align: right;
    }

    .slogan {
        font-size: 2.5vh;
        margin-left: 0;
        text-align: right;
    }

    .logo-container {
        width: auto;
        justify-content: flex-end;
        margin-bottom: 0;
    }

    .logo-img {
        max-height: 3vh;
        width: auto;
    }

    /* ... */
}

.lang-switch {
    position: absolute;
    top: -6vh;
    right: 0;
    transform: none;
    display: flex;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.lang-switch a {
    display: block;
    padding: 8px 16px;
    color: #888;
    text-decoration: none;
    font-size: 1.3vh;
    border-radius: 0;
    background-color: #434242;
    margin-left: 5px;
    transition: all var(--transition-speed);
}

.lang-switch a.active,
.lang-switch a:hover {
    background-color: #444;
    color: #fff;
    font-weight: normal;
    box-shadow: none;
}

/* Main Hero */
main {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #ffffff;
    width: 100%;
}

main .container {
    width: 100%;
    display: flex;
    justify-content: center;
}

footer .container {
    flex: 1;
    /* display: flex; removed to restore text flow */
    /* flex-direction: column; removed */
    /* justify-content: flex-end; removed */
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    display: block;
    width: auto;
    height: auto;
    max-height: 60vh;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
    filter: contrast(1.1) saturate(1.1);
}

.overlay-mesh {
    display: none;
}

/* Footer */
footer {
    background: #2b2a29;
    padding: 0 50px;
    padding-top: 4vh;
    position: relative;
    z-index: 100;
    font-size: 1.5vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-plan-img {
    position: absolute;
    top: calc(var(--video-width, 100vw) * var(--plan-img-overlap) * -1);
    /* Adjust based on image size to overlap/connect */
    right: calc(((100vw - var(--video-width, 100vw)) / 2) + (var(--video-width, 100vw) * var(--plan-img-shift)));
    width: calc(var(--video-width, 100vw) * var(--plan-img-scale));
    /* Adjust size as needed */
    height: auto;
    z-index: 5;
    /* Ensure it's above background but maybe below text if needed, or above text */
    pointer-events: none;
    opacity: 0.8;
    transition: none !important;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-left {
    max-width: 50%;
    animation: fadeInDown 1s ease-out 0.2s backwards;
}

.footer-left p {
    color: #aaa;
    margin-bottom: 8px;
}

.footer-left ul {
    list-style: none;
}

.footer-left li {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    color: #ddd;
    line-height: 1.5;
}

.footer-left .bullet {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    flex-shrink: 0;
    background-color: #ef7f1a;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 8px #ef7f1a;
    margin-top: 0.45em;
}

.footer-right {
    text-align: right;
    color: #aaa;
    animation: fadeInDown 1s ease-out 0.4s backwards;
}

.footer-right p {
    margin-bottom: 4px;
}

.footer-right a {
    color: #ef7f1a;
    text-decoration: none;
    transition: text-shadow 0.3s;
}

.footer-right a:hover {
    text-shadow: 0 0 10px rgba(239, 127, 26, 0.6);
    text-decoration: underline;
}

/* Footer Graphics */
.footer-bg-logo {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(50%);
    z-index: 0;
    width: 20vw;
    opacity: 0.1;
    pointer-events: none;
    animation: fadeInDownLogo 1s ease-out 0.6s backwards;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDownLogo {
    from {
        opacity: 0;
        transform: translateY(calc(50% - 20px));
    }

    to {
        opacity: 0.1;
        transform: translateY(50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 15px 12px 15px;
        padding-top: 40px;
        gap: 8px;
        position: relative;
        flex-shrink: 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-right: 0;
        gap: 15px;
        text-align: right;
    }

    .slogan {
        font-size: 2.5vh;
        margin-left: 0;
        text-align: right;
    }

    .logo-container {
        width: auto;
        justify-content: flex-end;
        margin-bottom: 0;
    }

    .logo-img {
        max-height: 5vh;
        width: auto;
    }

    .lang-switch {
        position: absolute;
        top: -40px;
        right: 0;
        transform: none;
        margin: 0;
    }

    footer {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px;
        padding-top: 3vh;
        padding-bottom: 20px;
        min-height: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: left;
        align-items: flex-start;
        position: relative;
        z-index: 2;
        padding-bottom: 10px;
    }

    .footer-left p {
        margin-bottom: 8px;
        font-size: 0.85rem;
    }

    .footer-left li {
        margin-bottom: 8px;
        font-size: 0.85rem;
        line-height: 1.4;
        align-items: flex-start;
    }



    .footer-right {
        text-align: left;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .footer-right p {
        margin-bottom: 4px;
    }

    .footer-left {
        max-width: 100%;
    }

    .footer-bg-logo {
        width: 80vw;
        position: fixed;
        bottom: 0;
        left: 0;
        transform: translateY(50%);
        z-index: 0;
        opacity: 0.1;
        pointer-events: none;
    }

    .footer-graphics {
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.5;
    }

    main {
        flex: 0 0 auto;
        min-height: 0;
        display: flex;
        flex-shrink: 0;
    }

    .hero-image-container {
        position: relative;
        height: auto;
        width: 100%;
        top: auto;
        left: auto;
        background: #2b2a29;
        flex: 0 1 auto;
    }

    .hero-video {
        object-fit: contain;
        width: 100%;
        height: auto;
        display: block;
        max-height: 45vh;
    }

    .overlay-mesh {
        background: radial-gradient(circle at center, transparent 20%, #2b2a29 120%);
    }
}