/* Header Styles */
.site-header {
    background-color: var(--ast-global-color-1);
    height: 8rem;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
}

.site-header-scrolled {
    height: 6rem;
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 100vw;
    position: relative;
    height: 100%;
    margin: 0 5vw;
    padding: 2rem 0 1rem;
    z-index: 1001;
}

/* Left Section Header */
.left-section-header {
    position: relative;
    display: flex;
    justify-content: flex-start;
    width: 25%;
    height: 100%;
    align-items: center;
}

/* Middle Section Header */
.middle-section-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 100%;
}

/* Right Section Header */
.right-section-header {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 25%;
    height: 100%;
    align-items: center;
}

/* Diagonale Header */
.diagonal-header {
    height: 0;
    border-style: solid;
    border-width: 16vh 100vw 0 0;
    border-color: var(--ast-global-color-1) transparent transparent var(--ast-global-color-1);
    z-index: 1001;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
}

.diagonal-header-scrolled {
    border-width: 6vh 100vw 0 0;
}

/* Logobox Header */
.header-logo-box {
    width: 10rem;
    height: auto;
    position: fixed;
    display: flex;
    justify-content: center;
    text-align: center;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
}

.header-logo-box-scrolled {
    width: 7rem;
}

/* Logo Header */
.main-logo {
    width: 100%;
    align-self: center;
    transition: height 0.3s ease-in-out, width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transition-delay: 0.2s;    
}

.main-logo:hover {
    width: 90%;
    transition: height 0.3s ease-in-out, width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transition-delay: 0.2s;
    opacity: 0.7;
}

.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 2rem;
}

.ham-menu {
    height: 100%;
    width: 100%;
    margin-left: auto;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    transition-delay: 0.2s;
}

.ham-menu span {
    display: flex;
    height: 2px;
    width: 100%;
    background-color: var(--ast-global-color-5);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
    transition-delay: 0.2s;
}

.ham-menu:hover {
    transition: opacity 0.3s ease-in-out;
    transition-delay: 0.2s;
    opacity: 0.7;
}

.ham-menu span:nth-child(1) {
    top: 25%;
}

.ham-menu span:nth-child(3) {
    top: 75%;
}

.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(225deg);
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
}

.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-225deg);
}


/* Mobile Header Styles */

@media (max-width: 768px){
    .site-header {
        height: 5rem;
    }
    
    .site-header-scrolled {
        height: 4rem;
    }
    
    .header-container {
        padding: 0.5rem 0 0.5rem;
    }
    
    .header-logo-box {
        width: 6.5rem;
    }
    
    .header-logo-box-scrolled {
        width: 5rem;
    }
    
    .diagonal-header {
        border-width: 4rem 100vw 0 0;
    }
    
    .diagonal-header-scrolled {
        border-width: 2rem 100vw 0 0;
    }
}


/* Desktop Footer Styles */
.site-footer {
    background-color: var(--ast-global-color-1);
    padding: 0;
    position: fixed;
    bottom: -5.5rem;
    left: 0;
    right: 0;
    z-index: 999;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
}

.site-footer-scrolled {
    bottom: -6rem;
}

.site-footer.active {
    bottom: 0;
}

.bar-left {
    background-color: var(--ast-global-color-1);
    height: 100vh;
    width: 1.5rem;
    padding: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
}

.bar-right {
    background-color: var(--ast-global-color-1);
    height: 100vh;
    width: 1.5em;
    padding: 0;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100vw;
    position: relative;
    margin: 0 5vw 0;
    z-index: 999;
}

.top-footer-section {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.left-section-footer {
    position: relative;
    display: flex;
    justify-content: flex-start;
    width: 40%;
    align-items: center;
}

.social-icon {
    display: inherit;
    width: auto;
    opacity: 0;
    gap: 0.75rem;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
}

.social-icon img {
    height: 1.5rem;
}

.social-icon.active {
    opacity: 1;
}

.middle-section-footer {
    position: relative;
    display: flex;
    justify-content: center;
    width: 20%;
    height: 5vh;
    align-items: center;
}

.right-section-footer {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 40%;
    height: 100%;
    align-items: center;
    padding: 0.5rem 0;
}

.right-section-footer:hover .li {
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
}

.bottom-footer-section {
    display: flex;
    width: 100%;
    height: 6rem;
    align-items: center;
    justify-content: center;
}

.circle-footer {
    display: flex;
    background-color: var(--ast-global-color-1);
    height: 4rem;
    width: 4rem;
    margin-top: -0.75rem;
    border-radius: 3rem 3rem 0 0;
    justify-content: center;
    align-items: center;
    padding: 0 0 0.5rem 0;

}

.footer-toggle {
    display: flex;
    position: relative;
    cursor: pointer;
    transition: 0.6s ease-in-out;
    transition-delay: 0.2s;
    width: 40%;
    height: 40%;
    margin: 0;
    padding: 0;
    align-items: flex-end;
}

.footer-toggle:hover {
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
}

.footer-toggle #btn-mail-open {
    display: flex;
    position: absolute;
    opacity: 0;
}

.footer-toggle.active #btn-mail-open {
    opacity: 1;
}

.footer-toggle #btn-mail-closed {
    display: flex;
    position: absolute;
    opacity: 1;
}

.footer-toggle.active #btn-mail-closed {
    opacity: 0;
}

.right-section-footer ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0 0 0 1em;
}

/* Mobile Footer Styles */

@media (max-width: 768px){
    .bar-left {
        display: none;
    }
    
    .bar-right {
        display: none;
    }
    
    .site-footer {
        bottom: -8rem;
    }
    
    .site-footer-scrolled {
    bottom: -9rem;
    }
    
    .top-footer-section {
        height: 2rem;
    }
    
    .left-section-footer {
        width: 0%;
    }
    
    .right-section-footer {
        width: 80%;
        padding: 0;
    }
    
    .bottom-footer-section {
        height: 9rem;
    }
    
    .footer-toggle {
        cursor: none;
    }
    
    .footer-toggle-menu {
        width: auto !important;
    }
    
    .footer-toggle-menu-body {
        flex-direction: column !important;
        gap: 0.5rem;
    }
    
}


/* Footer Toggle Menu */
.footer-toggle-menu {
    width: 75%;
    position: fixed;
    display: flex;
    transition: 0.6s ease-in-out;
    transition-delay: 0.2s;
}

.footer-toggle-menu.active {
    bottom: 0;
    z-index: 900;
}

.footer-toggle-menu-body {
    height: 50%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
}

.socials {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.socials img {
    height: 1.5rem;
}


/* Toggle Menu Styles */
.toggle-menu {
    background-color: var(--ast-global-color-1);
    height: 100vh;
    width: 100vw;
    padding: 30vh 10vw 10vh;
    position: fixed;
    top: 0;
    right: -100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    transition: 0.6s ease-in-out;
    transition-delay: 0.2s;
}

.toggle-menu.active {
    right: 0;
    z-index: 1000;
}

.toggle-menu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.toggle-menu-items .menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    align-self: flex-start;
    height: 100%;
    width: 50%;
    gap: 1rem;
}

.toggle-menu-items .menu-list li {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-menu-items .menu-list li a {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
}

.toggle-menu-items .menu-list li a:hover,
.toggle-menu-items .menu-list li a:active {
    opacity: 0.7;
}

/* Toggle Menu Styles Mobile */

@media (max-width: 769px) {
    .toggle-menu {
        padding: 15vh 5vw 10vh;
    }
    
    .toggle-menu-items {
        display: grid;
    }
    
    .toggle-menu-items .menu-list {
        display: grid;
        height: auto;
        align-items: center;
        width: 100%;
        align-self: center;
    }
    
     .toggle-menu-items .menu-list li {
        display: grid;
    }
    
    .toggle-menu-items .menu-list li a {
        font-size: 2rem !important;
    }
}


/* Submenu Styles */
.sub-menu {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    width: auto;
    height: auto;
    padding: 0 0 0 3vw;
    margin: 0;
    position: absolute;
    left: 100%;
    transition: opacity 1s ease-in-out;
}

.menu-list li:hover .sub-menu {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.toggle-menu-items .menu-list .sub-menu {
    visibility: hidden;
    opacity: 0;
}

.toggle-menu-items .menu-list .sub-menu li a {
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    padding-left: 1rem;
    padding-top: 0.75rem;
    display: flex;
    opacity: 0.5;
}

.toggle-menu-items .menu-list .sub-menu li a:hover,
.toggle-menu-items .menu-list .sub-menu li a:active {
    opacity: 1;
}

/* Submenu item styles with opacity effects */
.sub-menu li {
    padding: 0;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
}

.sub-menu li:active {
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
}

.sub-menu li a {
    color: #fff;
    font-weight: normal; /* Adjust font weight as desired */
    white-space: nowrap; /* Prevent text from wrapping */
    opacity: 0.75; /* Default opacity for submenu items */
    transition: opacity 0.3s ease; /* Transition for smooth hover effect */
}

.sub-menu li a:hover,
.sub-menu li a:active {
    opacity: 1; /* Full opacity on hover and active state */
}


/* Toggle Submenu Styles Mobile */
@media (max-width: 769px) {
    .toggle-menu-items .menu-list .sub-menu {
        display: grid;
        position: relative;
        left: 0;
        padding: 0;
        transition: none;
        visibility: visible;
        opacity: 1;
    }
    
    .menu-list li:hover .sub-menu {
    display: grid;
    visibility: visible;
    opacity: 1;
}
    
    .toggle-menu-items .menu-list .sub-menu li a {
        padding: 0.2rem 0.5rem 0.1rem;
    }
}