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

body {
    padding: 30px;
}

html {
    background-color: #000;
}

.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-video.active {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.floating-nav {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --spotlight-opacity: 0;

    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin-inline: auto;
    transform-origin: top center;
    border-radius: 12px;
    padding: 10px 24px;
    z-index: 1000;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: calc(100% - 32px);
    max-width: 850px;
    height: 52px;
    box-sizing: border-box;

    background: rgba(16, 18, 22, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    transition:
            max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
            height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
            background 0.3s ease,
            border-color 0.3s ease,
            box-shadow 0.3s ease;
    overflow: hidden;
}

.floating-nav.expanded {
    max-width: calc(100% - 32px);
    height: calc(100vh - 40px);
}

/*.floating-nav::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 50%;*/
/*    background: radial-gradient(circle, rgba(0, 0, 0, 0.45) 0%,*/
/*                                        rgba(0, 0, 0, 0.15) 10%,*/
/*                                        rgba(0, 0, 0, 0.45) 20%,*/
/*                                        rgba(0, 0, 0, 0.45) 30%,*/
/*                                        rgba(0, 0, 0, 0.45) 40%,*/
/*                                        rgba(0, 0, 0, 0.45) 50%,*/
/*                                        rgba(0, 0, 0, 0.45) 60%,*/
/*                                        rgba(0, 0, 0, 0.15) 70%,*/
/*                                        rgba(0, 0, 0, 0.45) 80%,*/
/*                                        rgba(0, 0, 0, 0.45) 90%,*/
/*                                        rgba(0, 0, 0, 0.45) 100%,*/
/*                                        transparent 75%);*/
/*    filter: blur(25px);*/
/*    pointer-events: none;*/
/*    z-index: 0;*/
/*    transform: translate(calc(var(--mouse-x, -500px) - 20px), calc(var(--mouse-y, -500px) - 20px));*/
/*    opacity: var(--spotlight-opacity, 0);*/
/*    transition: opacity 0.2s ease;*/
/*}*/

.logo-link,
.nav-links,
.hamburger-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 32px;
}

.logo-link,
.floating-nav a,
.dropdown-menu a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
}

.logo-link:hover,
.floating-nav a:hover,
.dropdown-menu a:hover {
    color: rgb(71, 203, 255);
    box-shadow: none;
}

img#machairalogo {
    height: 25px;
    width: auto;
    display: block;
    margin: 2px;
}

.nav-links {
    margin-left: auto;
    gap: 20px;
}

.floating-nav a,
.dropdown-menu a {
    color: white;
    font-size: 16px;
    transition: color 0.2s ease;
}

.hamburger-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 20px;
    cursor: pointer;
    line-height: 0;
    outline: none;
}

.hamburger-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

.dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 160px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    gap: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.dropdown-menu.is-open {
    display: flex;
}

.floating-nav.expanded .dropdown-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.floating-nav.expanded .dropdown-menu a {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
}

.f, a {
    color: #fff;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
}

.f-g {
    color: rgb(201, 201, 201);
    font-family: 'Manrope', sans-serif;
}

.g {
    color: rgb(155, 155, 155);
    font-family: 'Manrope', sans-serif;
}

.lgst, .lg, .med, .sm, .smr, .smst {
    font-weight: 200;
}

.lgst { font-size: 150px; }
.lg   { font-size: 70px; }
.med  { font-size: 40px; }
.sm   { font-size: 30px; }
.smr  { font-size: 25px; }
.smst { font-size: 20px; }

a:hover {
    box-shadow: inset 0 0px 0 white, inset 0 -1px 0 #fff;
}

footer>a {
    padding: 40px;
}

footer>a:hover {
    border-top: 2px solid #037fa8;
    background-color: rgba(255, 255, 255, 0.05);
}

.contact {
    position: relative;
    margin-top: 10px;
}

.contact i {
    position: absolute;
    top: 45px;
    left: 7px;
}

.form-container {
    width: 430px;
    margin: 0 auto 100px;
}

input, textarea {
    outline: none;
    padding: 0 0 3px 3px;
    margin: 5px 1px 3px 0;
    font-size: 1.5em;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #fff;
    width: 400px;
    font-weight: 200;
    text-indent: 30px;
}

textarea {
    height: 200px;
    resize: none;
    overflow: hidden;
}

input:focus, textarea:focus {
    border-bottom: 1px solid rgb(71, 203, 255);
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    transition: background-color 5500s ease-in-out 0s;
    -webkit-text-fill-color: white !important;
}

@media (hover: hover) and (pointer: fine) {
    .floating-nav:hover {
        background: rgba(18, 20, 26, 0.55);
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.16),
                0 12px 36px rgba(0, 0, 0, 0.5),
                0 0 24px rgba(71, 203, 255, 0.08);
    }
}

@media screen and (max-width: 800px) {
    footer>a {
        padding-left: 20px;
        padding-right: 20px;
    }
    .lgst, .lg {
        font-size: 40px;
    }
    .med {
        font-size: 30px;
    }
}

@media screen and (max-width: 600px) {
    .hamburger-btn {
        display: block;
    }

    input, textarea {
        width: 320px;
        font-size: 1em !important;
        height: 40px;
    }

    textarea#message {
        height: 150px;
    }

    .form-container {
        width: 370px;
        margin: 0 0 100px 0;
    }
}