
header {
    position: fixed;
    top: 0;
    z-index: 99;
    width: 100%;
    color: white;
    height: 120px;
    background: transparent;
    transition: height 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

header.header-style {
    height: 60px;
    background: var(--secondary-color);
    box-shadow: 0 0 20px 0 #4c4f4d;
}

header.no-header-style {
    height: 60px;
    background: transparent;
    box-shadow: none;
}

.inner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 60px; /* Increased padding in default state */
    transition: padding 0.3s ease-in-out;
}



.logo img {
    width: 150px;
    height: auto;
}



/* Default styles for navigation *

/
 */

#main-list {
    display: flex;
    flex-direction: row;
    gap: 32px;
    transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
    align-items: center;
    align-content: center;
    justify-content: center;
    z-index: 0;
}

.navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;

}

.nav-list {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    margin-right: 32px;
}

/* Hamburger menu (hidden by default) */
.hamburger-menu, .mobile-hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu .bar, .mobile-hamburger-menu .bar {
    width: 30px;
    height: 3px;
    background: black;
    transition: 0.3s;
}

/* On scroll down: Hide normal menu and show hamburger */
.scrolled-down .nav-list {
    display: none;
}

.scrolled-down .hamburger-menu {
    display: flex;
}


/* On scroll up: Show normal menu and hide hamburger */
.scrolled-up .nav-list {
    display: flex;
}

.scrolled-up .hamburger-menu {
    display: none;
}


header ul {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;

}

header li {
    list-style: none;
}

.side-nav {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: var(--secondary-color);
    z-index: 98;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease-in-out;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.side-nav a, .sidenav-btn {
    font-size: 16px;
    padding: 20px;
    text-decoration: none;
    font-family: inherit;
    color: white;
    display: block;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.side-nav a:hover, .sidenav-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* SideNav Open State */
.side-nav.open {
    right: 0; /* Opens menu */
}

/* Close Button */
#exit {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    z-index: 99;
    display: none;
}

#exit svg {
    width: 20px;
    height: 20px;
}


.side-nav .side-nav-list {
    position: relative;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.side-nav .side-nav-list .list {
    list-style: none;
    text-align: center !important;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;

}
.side-nav .side-nav-list .list a {
    color: #fff;
    text-decoration: none;
    font-size: 3em;
    padding: 5px 20px;
    display: inline-flex;
    font-weight: 700;
    transition: 0.5s;
    text-align: center !important;
}
.side-nav .side-nav-list:hover .list a {
    color: #0002;
}
.side-nav .side-nav-list .list:hover a {
    color: #000;
    background: transparent;
}
.side-nav .side-nav-list .list a:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5em;
    color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 500px;
    transition: letter-spacing 0.5s, left 0.5s;
}
.side-nav .side-nav-list .list a:hover:before {
    content: attr(data-text);
    opacity: 1;
    left: 50%;
    letter-spacing: 10px;
    width: 1800px;
    height: 1800px;
}
.side-nav .side-nav-list .list:nth-child(6n + 1) a:before {
    background:  var(--green-color);
}
.side-nav .side-nav-list .list:nth-child(6n + 2) a:before {
    background:  var(--green-color);
}
.side-nav .side-nav-list .list:nth-child(6n + 3) a:before {
    background:  var(--green-color);
}
.side-nav .side-nav-list .list:nth-child(6n + 4) a:before {
    background: var(--green-color);
}
.side-nav .side-nav-list .list:nth-child(6n + 5) a:before {
    background:  var(--green-color);
}
.side-nav .side-nav-list .list:nth-child(6n + 6) a:before {
    background: var(--green-color);
}






.side-nav span {
    display: flex;
    flex-direction: row;
    padding: 0;
}

.side-nav span a:hover{
    background-color: transparent;
    color: white;
}


.services > span {
    display: flex;
    flex-direction: row;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 0;
}

.services a span {
    padding: 0 10px;
}

.services .list a {
    padding: 0 !important;
}

/* Ensure the main navigation is hidden when side-nav is active */
.side-nav .nav-list {
    display: none !important; /* Hide main navigation inside the side-nav */
}

/* Hide the SVG inside side-nav */
.side-nav #mobile-nav svg {
    display: none !important; /* Ensures the mobile menu icon does not appear */
}
