html {
    scroll-behavior: smooth;
}

body {
    background: #F3F6F9;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/* Top navigation bar */
.navigation-bar {
    /* Positioning */
    position: fixed;
    top: 0;
    width: 100%;

    /* Dimensions */
    height: 64px;

    /* Layout */
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    /* Visual - Updated to match theme */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 249, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(48, 186, 217, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* Animation */
    transition: all 0.3s ease;
    z-index: 5;

    /* Start hidden for loading animation */
    transform: translateY(-100%);
    opacity: 0;
}

.navigation-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #30BAD9, #405559, #30BAD9);
    opacity: 0.6;
}

.language-body {
    position: relative;
    cursor: pointer;
    margin-right: 16px;
}

.language-button {
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
    color: #405559;
}

.language-button:hover {
    background: rgba(48, 186, 217, 0.1);
    transform: scale(1.05);
}

.language-body:hover .language-menu,
.language-body.open .language-menu {
    display: block;
}

.language-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 249, 0.98));
    backdrop-filter: blur(10px);
    min-width: 140px;
    border: 1px solid rgba(48, 186, 217, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 4000;
    border-radius: 12px;
    overflow: hidden;
}

.language-menu a {
    display: block;
    padding: 12px 16px;
    color: #405559;
    text-decoration: none;
    white-space: nowrap;
    font-family: Calibri, sans-serif;
    font-weight: 500;
    transition: all 0.25s ease;
}

.language-menu a:hover {
    background: linear-gradient(90deg, rgba(48, 186, 217, 0.1), rgba(64, 85, 89, 0.1));
    color: #30BAD9;
    padding-left: 20px;
}

.logo-body {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
}

.logo-top {
    cursor: pointer;
    justify-content: center;
    align-items: center;
    justify-self: center;
    height: 48px;
    max-width: 100%;
    transition: all 0.25s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-top:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.navigation-body {
    position: relative;
    cursor: pointer;
    margin-right: 16px;
}

.navigation-button {
    display: inline-block;
    width: 36px;
    height: 24px;
    top: 6px;
    right: 16px;
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.25s ease;
}

.navigation-button:hover {
    background: rgba(48, 186, 217, 0.1);
}

.navigation-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: #405559;
    position: absolute;
    transition: all 0.25s ease;
    border-radius: 1px;
}

.navigation-button span:nth-child(1) {
    top: 0;
}

.navigation-button span:nth-child(2) {
    top: 8px;
}

.navigation-button span:nth-child(3) {
    top: 16px;
}

.navigation-body.active .navigation-button span:nth-child(1) {
    transform: translateY(8px) rotate(-45deg);
}

.navigation-body.active .navigation-button span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navigation-body.active .navigation-button span:nth-child(3) {
    transform: translateY(-8px) rotate(45deg);
}

.navigation-menu {
    margin-top: 0;
    top: 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: fixed;
    right: calc(-1 * 320px);
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(135deg, #405559, #343E40);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 5;
    border-left: 2px solid rgba(48, 186, 217, 0.3);
}

.navigation-item {
    color: #F3F6F9;
    display: block;
    font-size: 20px;
    font-family: Calibri, sans-serif;
    font-weight: 500;
    border-right: 3px solid transparent;
    padding: 16px 24px;
    margin: 4px 0;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.navigation-item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, rgba(48, 186, 217, 0.2), rgba(48, 186, 217, 0.1));
    transition: width 0.3s ease;
    z-index: 5;
}

.navigation-item:hover {
    color: #30BAD9;
    border-right-color: #30BAD9;
    padding-right: 28px;
    text-shadow: 0 0 8px rgba(48, 186, 217, 0.3);
}

.navigation-item:hover::before {
    width: 100%;
}

.navigation-separator {
    display: block;
    background: linear-gradient(90deg, transparent, rgba(48, 186, 217, 0.3), transparent);
    height: 1px;
    width: 80%;
    margin: 8px auto;
}

.body {
    animation: reveal .5s linear;
}

.home {
    width: 100%;
    height: 100vh;
}

.body-home {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: white;
    position: relative;
}

.body-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../media/construction_main.jpg') no-repeat center;
    background-size: cover;
    filter: blur(8px);
    z-index: 0;

    /* Start with heavy blur */
    filter: blur(20px);
    opacity: 0;
    animation: revealBackground var(--bg-duration) ease-out forwards;
}

.home-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    animation: 
        logoFadeIn var(--logo-duration) ease-in-out var(--logo-delay) forwards,
        logoFadeOut 0.8s ease-in-out calc(var(--logo-delay) + var(--logo-duration)) forwards;
}

.home-logo-center img {
    height: 120px;
    max-width: 90vw;
    object-fit: contain;
}

.home-motto {
    align-self: center;
    justify-content: center;
    position: relative;
    z-index: 1;

    /* Start hidden */
    opacity: 0;
    transform: translateY(30px);
    animation: mottoAppear var(--motto-duration) ease-out var(--motto-delay) forwards;
}

.typing-animation {
    font-size: 32px;
    font-family: monospace;
    color: black;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid black;
    animation: typing 3.5s steps(16, end), blink-caret .5s step-end infinite;
}

@keyframes typing {
    from {
        width: 0%
    }

    to {
        width: 16ch
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: black
    }
}

.social-button {
    z-index: 1;

    /* Start hidden */
    opacity: 0;
    transform: translateY(30px);
    animation: socialAppear var(--motto-duration) ease-out calc(var(--motto-delay) + 0.3s) forwards;
}

#whatsapp-button,
#instagram-button,
#facebook-button {
    width: 100%;
    border-radius: 24px;
    padding: 1rem 1rem;
    font-size: 1rem;
    background-color: #405559;
    cursor: pointer;
    border: none;
    color: #F3F6F9;
}

#whatsapp-button:hover,
#instagram-button:hover,
#facebook-button:hover {
    background-color: black;
}

.about {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.about-title {
    position: relative;
    font-family: Candara;
    font-size: 32px;
    color: #343E40;
    text-align: center;
    animation: reveal both;
    animation-timeline: view(0% auto);
    animation-range: entry 0% cover 50%;
}

.about-text {
    font-family: Calibri;
    width: 75%;
    font-size: 18px;
    color: #343E40;
    margin: 0 auto;
    animation: reveal both;
    animation-timeline: view(0% auto);
    animation-range: entry 0% cover 25%;
}

.about-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vision-section,
.mission-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Calibri;
    width: 75%;
    font-size: 18px;
    color: #343E40;
    margin: 0 auto;
    animation: reveal both;
    animation-timeline: view(0% auto);
    animation-range: entry 0% cover 25%;
}

.vision-section .about-text,
.mission-section .about-text {
    width: 75%;
}

.project {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-title {
    position: relative;
    font-family: Candara;
    font-size: 32px;
    color: #343E40;
    text-align: center;
    animation: reveal both;
    animation-timeline: view(0% auto);
    animation-range: entry 0% cover 50%;
}

.body-project {
    width: 100%;
    height: 90vh;
    display: grid;
    place-items: center;
}

.project-wrapper {
    width: 99%;
    height: 75%;
    display: flex;
    gap: 2px;
    animation: reveal both;
    animation-timeline: view(0% auto);
    animation-range: entry 0% cover 50%;
}

.project-item {
    flex: 1 1 0;
    border-radius: 8px 8px 32px 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.6) 2px 2px 12px;
    text-align: center;
    padding: 8px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 18px;
    cursor: pointer;
    transition:
        flex-grow 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        blur 0.25s ease;
    will-change: transform;
    text-decoration: none;
}

.project-wrapper:hover .project-item {
    background-color: rgba(0, 0, 0, 0.75);
    filter: blur(2px);
}

.project-wrapper:hover .project-item:hover {
    flex-grow: 5;
    box-shadow: rgba(0, 0, 0, 0.75) 4px 8px 18px;
    filter: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.lucca-villa {
    background-image: url('../media/project/lucca-villa/lucca-villa_1.jpg');
}

.henna-villa {
    background-image: url('../media/project/henna-villa/henna-villa_1.jpg');
}

.dorttepe-bungolov {
    background-image: url('../media/project/dorttepe-bungolov/dorttepe-bungolov_1.jpg');
}

.villa-deluxe {
    background-image: url('../media/project/villa-deluxe/villa-deluxe_1.jpg');
}

.jacop-villa {
    background-image: url('../media/project/jacop-villa/jacop-villa_1.jpg');
}

.bodrum-villa {
    background-image: url('../media/project/bodrum-villa/bodrum-villa_1.jpg');
}

.lucca-villa_detail {
    display: none;
}

.henna-villa_detail {
    display: none;
}

.dorttepe-bungolov_detail {
    display: none;
}

.villa-deluxe_detail {
    display: none;
}

.jacop-villa_detail {
    display: none;
}

.bodrum-villa_detail {
    display: none;
}

.hidden-when-modal {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2;
}

.modal.open {
    display: grid;
    place-items: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    overflow: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    padding: 32px;
    animation: modal-in .5s ease-out;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-body h3 {
    margin-top: 0;
    font-family: Candara;
    font-size: 32px;
}

.modal-body p {
    font-family: Calibri;
    font-size: 18px;
}

.image_detail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;
}

.modal-body .image_detail {
    display: none;
}

.gallery {
    margin: 16px;
}

.gallery-main {
    position: relative;
    border-radius: 8px;
}

.gallery-main img {
    width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.gallery-prev {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.gallery-nav {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.gallery-nav::-webkit-scrollbar {
    height: 4px;
}

.gallery-nav::-webkit-scrollbar-thumb {
    background: #405559;
    border-radius: 2px;
    cursor: pointer;
}

.thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    scroll-snap-align: start;
    transition: opacity 0.25s ease, border-color 0.25s ease;
}

.thumb:hover {
    opacity: 0.75;
}

.thumb.active {
    opacity: 1;
    border-color: #30BAD9;
}

body.modal-open {
    overflow: hidden;
}

.application {
    width: 100%;
    margin-bottom: 64px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.application-title {
    position: relative;
    margin-bottom: 48px;
    font-family: Candara;
    font-size: 32px;
    color: #343E40;
    text-align: center;
    animation: reveal both;
    animation-timeline: view(0% auto);
    animation-range: entry 0% cover 50%;
}

.body-application {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.application-wrapper {
    --item: 9;
    --item-width: 512px;
    --item-height: 256px;
    --duration: 30s;
    width: 75%;
    max-width: 100%;
    margin-inline: auto;
    position: relative;
    height: var(--item-height);
    overflow: hidden;
    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 25%,
            rgba(0, 0, 0, 1) 75%,
            rgba(0, 0, 0, 0));
}

.application-item {
    width: var(--item-width);
    height: var(--item-height);
    background-size: cover;
    background-position: center;
    display: block;
    margin: auto;
    border-radius: 5%;
    box-shadow: gray 2px 2px 8px;
    position: absolute;
    animation: slide var(--duration) linear infinite;
    animation-delay: calc(var(--duration) / var(--item) * (var(--item) - var(--image)) * -1);
}

.application-item:nth-child(1) {
    --image: 1;
    background-image: url('../media/application/application_1.jpg');
}

.application-item:nth-child(2) {
    --image: 2;
    background-image: url('../media/application/application_2.jpg');
}

.application-item:nth-child(3) {
    --image: 3;
    background-image: url('../media/application/application_3.jpg');
}

.application-item:nth-child(4) {
    --image: 4;
    background-image: url('../media/application/application_4.jpg');
}

.application-item:nth-child(5) {
    --image: 5;
    background-image: url('../media/application/application_5.jpg');
}

.application-item:nth-child(6) {
    --image: 6;
    background-image: url('../media/application/application_6.jpg');
}

.application-item:nth-child(7) {
    --image: 7;
    background-image: url('../media/application/application_7.jpg');
}

.application-item:nth-child(8) {
    --image: 8;
    background-image: url('../media/application/application_8.jpg');
}

.application-item:nth-child(9) {
    --image: 9;
    background-image: url('../media/application/application_9.jpg');
}

.application-text {
    font-family: Calibri;
    width: 50%;
    font-size: 18px;
    color: #343E40;
    animation: reveal both;
    animation-timeline: view(0% auto);
    animation-range: entry 0% cover 25%;
}

.contact {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.contact::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('../media/construction_contact.jpg') no-repeat center;
    z-index: -1;
    filter: blur(16px);
}

.body-contact {
    max-width: 75%;
    min-height: 75%;
    display: grid;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #F0F0F0;
    box-shadow: gray 2px 2px 32px;
    animation: translateX linear;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
}

.contact-image {
    height: 100%;
    background: url('../media/construction_contact.jpg') no-repeat center;
    background-size: cover;
}

.contact-field {
    padding: 8px 24px;
}

.contact-title {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 24px;
    font-family: Candara;
    font-size: 32px;
    color: #343E40;
}

.contact-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    height: 2px;
    width: 75%;
    border-radius: 2px;
    opacity: 0.75;
    background-color: #30BAD9;
}

.field {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #405559;
    background-color: #F3F6F9;
    font-size: 1rem;
    margin-bottom: 24px;
    font-family: Calibri;
    border-radius: 24px;
}

.field:hover {
    background-color: #30BAD9;
}

.field:focus {
    border-color: #30BAD9;
    background-color: #F3F6F9;
}

.contact-button {
    width: 100%;
    border-radius: 24px;
    padding: 1rem 1rem;
    font-size: 1rem;
    background-color: #405559;
    cursor: pointer;
    border: none;
    color: #F3F6F9;
}

.contact-button:hover {
    background-color: #30BAD9;
}

.footer {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    background-image:
        linear-gradient(rgba(13, 13, 13, 0.75), rgba(13, 13, 13, 1)),
        url('../media/construction_footer.jpg');
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-title {
    display: none;
}

.body-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

.logo-footer {
    margin-top: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: appear both;
    animation-timeline: view();
}

.logo-bottom {
    height: 124px;
    align-items: center;
}

.information {
    margin-top: 5vh;
    gap: 1vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: blur linear both;
    animation-timeline: view(50% auto);
}

.address {
    text-align: center;
    text-decoration: none;
    color: white;
    font-family: Calibri;
}

.address:hover {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
}

.phone {
    text-align: center;
    text-decoration: none;
    color: white;
    font-family: Consolas;
}

.phone:hover {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
}

.mail {
    text-align: center;
    font-family: Consolas;
    text-decoration: none;
    color: white;
}

.mail:hover {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
}

.social {
    text-align: center;
    display: flex;
    flex-direction: row;
}

.social-media {
    margin: 32px;
    text-decoration: none;
    color: white;
    font-family: Rockwell, serif;
}

.social-media:hover {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
}

.developer {
    margin-top: 25vh;
    font-family: "tomarik-poster", sans-serif;
    color: white;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.separator-developer {
    background: white;
    height: 1px;
    width: 75vw;
    opacity: 0.25;
}

.erimbeklevic {
    text-align: center;
    font-family: "tomarik-serif", serif;
    font-style: italic;
    text-decoration: none;
    color: white;
    position: relative;
}

.erimbeklevic::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    bottom: -4px;
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4 T30 4 T40 4' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
    background-size: 16px 8px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.erimbeklevic:hover {
    color: grey;
}

.erimbeklevic:hover::after {
    transform: scaleX(1);
    animation: erimbeklevic-wave 1s linear infinite;
}

@keyframes erimbeklevic-wave {
    to {
        background-position-x: -16px;
    }
}

.copyright {
    text-align: center;
    font-size: 8px;
    color: gray;
    font-family: Lucida Sans;
}

@keyframes slide {
    from {
        left: max(calc(var(--item-width) * var(--item)), 100%);
    }

    to {
        left: calc(-1 * var(--item-width));
    }
}

@keyframes reveal {
    from {
        filter: blur(8px);
        opacity: 0;
        scale: 0.75;
    }

    to {
        filter: none;
        opacity: 1;
        scale: 1;
    }
}

@keyframes translateX {
    from {
        opacity: 0;
        transform: translateX(-25vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(-5vw) scale(0.25);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blur {
    0% {
        filter: blur(16px);
    }

    25% {
        filter: blur(8px);
    }

    50% {
        filter: blur(4px);
    }

    55% {
        filter: blur(0px);
    }
}

/* Add loading animation styles */
.loading-sequence {
    --bg-duration: 1.5s;
    --logo-delay: 1.5s;
    --logo-duration: 2s;
    --motto-delay: 3.5s;
    --motto-duration: 1.5s;
    --nav-delay: 4.5s;
    --nav-duration: 0.8s;
}

.navigation-bar {
    /* Start hidden for loading animation */
    transform: translateY(-100%);
    opacity: 0;
}

.navigation-bar.loaded {
    animation: slideInNav var(--nav-duration) ease-out var(--nav-delay) forwards;
}

.body-image {
    /* Start with heavy blur */
    filter: blur(20px);
    opacity: 0;
    animation: revealBackground var(--bg-duration) ease-out forwards;
}

.home-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    animation: 
        logoFadeIn var(--logo-duration) ease-in-out var(--logo-delay) forwards,
        logoFadeOut 0.8s ease-in-out calc(var(--logo-delay) + var(--logo-duration)) forwards;
}

.home-logo-center img {
    height: 120px;
    max-width: 90vw;
    object-fit: contain;
}

.home-motto {
    /* Start hidden */
    opacity: 0;
    transform: translateY(30px);
    animation: mottoAppear var(--motto-duration) ease-out var(--motto-delay) forwards;
}

.social-button {
    /* Start hidden */
    opacity: 0;
    transform: translateY(30px);
    animation: socialAppear var(--motto-duration) ease-out calc(var(--motto-delay) + 0.3s) forwards;
}

/* Loading animation keyframes */
@keyframes revealBackground {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.1);
    }
    100% {
        opacity: 0.5;
        filter: blur(8px);
        transform: scale(1);
    }
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes logoFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes mottoAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes socialAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInNav {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Disable animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .navigation-bar,
    .body-image,
    .home-logo-center,
    .home-motto,
    .social-button {
        animation: none !important;
    }
    
    .navigation-bar.loaded {
        transform: translateY(0);
        opacity: 1;
    }
    
    .home-motto,
    .social-button {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width:1080px) {
    .navigation-bar {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "logo nav lang";
        padding: 0 24px;
    }

    .logo-body {
        grid-area: logo;
        justify-self: left;
    }

    .logo-top {
        height: 48px;
        margin-left: 0;
    }

    .navigation-body {
        grid-area: nav;
        cursor: pointer;
        margin-right: 0;
    }

    .navigation-button {
        display: none;
    }

    .navigation-menu {
        justify-content: center;
        position: static;
        top: auto;
        right: auto;
        width: auto;
        height: auto;
        max-width: none;
        flex-direction: row;
        background: transparent;
        border: none;
        gap: 8px;
    }

    .navigation-item {
        position: relative;
        color: #405559;
        border-right: none;
        text-decoration: none;
        padding: 12px 20px;
        margin: 0;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.25s ease;
    }

    .navigation-item::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #30BAD9, #405559);
        transition: width 0.3s ease;
        border-radius: 1px;
    }

    .navigation-item:hover {
        color: #30BAD9;
        background: rgba(48, 186, 217, 0.08);
        transform: translateY(-1px);
        text-shadow: none;
        padding-right: 20px;
        border-right-color: transparent;
    }

    .navigation-item:hover::before {
        width: 80%;
    }

    .navigation-separator {
        display: none;
    }

    .language-body {
        grid-area: lang;
        justify-self: right;
        margin-right: 0;
    }

    .body-contact {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-image {
        height: 100%;
    }
}

@media (max-width:480px) {
    .logo-top {
        height: 48px;
    }
}