@import url('https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&display=swap');
/* Import icons from boxicons library */
@import url('https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css');

html {
    scroll-behavior: smooth;
    height: 100%;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arvo', serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1001;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s;
    background-color: #063453;
    box-shadow: 0 2px 8px rgba(6,52,83,0.04);
}

/* Transparent header for banner pages */
header.transparent {
    background-color: rgba(30, 30, 30, 0.3);
    box-shadow: none;
}

header.transparent .logo-img img {
    filter: brightness(0) invert(1) drop-shadow(0 0 2px #0008);
}

header.transparent .logo-text {
    color: #fff;
}

.header .Header {
    padding: 0 20px;
    border-bottom: 2px solid #fe6800;
}

.header::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: -1;
    top: 0;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.sticky::after {
    background-color: rgba(0, 0, 0, 0.1);
}

.header .Logo .logo-img{
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.sticky .Logo .logo-img{
    opacity: 1;
}

.header .Logo .logo-text{
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.sticky .Logo .logo-text{
    opacity: 0;
}

.sticky {
    background-color: #063453 !important;
    box-shadow: 0 2px 8px rgba(6,52,83,0.10);
}

.Header{
    width: 100%;
    max-width: 1300px;
    margin: 0 10%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    margin: auto;
    flex-direction: row;
}

/* Header 3-column layout */
.header .Header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    gap: 20px;
    height: 100px;
    padding: 0;
}

.header .Logo {
    justify-self: start;
    align-self: center;
}

.header .nav-links {
    justify-self: center;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .nav-links a:not(.dashboard-btn):not(.profile-btn) {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1;
    display: flex;
    align-items: center;
}

.header .nav-links a:not(.dashboard-btn):not(.profile-btn):hover {
    transform: scale(1.05);
}

.header .nav-links a:not(.dashboard-btn):not(.profile-btn):hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: #fe6800;
    border-radius: 1px;
}

.header .nav-links .selected {
    position: relative;
}

.header .nav-links .selected::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: #fe6800;
    border-radius: 1px;
}

/* Right side buttons container */
.header .header-buttons {
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .header-buttons .dashboard-btn,
.header .header-buttons .profile-btn {
    margin: 0;
}

.sticky .Logo img{
    filter: brightness(0) invert(1);
    background-color: transparent;
    height: 100px;
    width: auto;
    max-height: 100px;
    object-fit: contain;
}

.sticky .Logo {
    transition: all 0.3s ease-in-out;
}

.Logo img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
    max-height: 100px;
    object-fit: contain;
}

.sticky .Logo:hover {
    transform: scale(1.1);
}

.sticky .Logo:hover .logo-img img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(16deg) brightness(118%) contrast(119%) !important;
}

.Logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    height: 100%;
}

.logo-text {
    position: absolute;
    width: auto;
    top : 20px;
    left: 20px;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(254, 104, 0, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(254, 104, 0, 0.3);
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
}

.profile-btn:hover {
    background: rgba(254, 104, 0, 0.2);
    border-color: #fe6800;
    transform: scale(1.05);
}

.profile-btn i {
    font-size: 18px;
    color: #fe6800;
}

.profile-btn span {
    font-size: 14px;
    font-weight: 600;
}

.sticky .profile-btn {
    background: rgba(254, 104, 0, 0.2);
    border-color: #fe6800;
}

.sticky .profile-btn:hover {
    background: rgba(254, 104, 0, 0.3);
}

.menu-toggle{
    display: none;
}

#check{
    display: none;
}

.dashboard-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-right: 10px;
    color: #fff;
    text-decoration: none;
}

.dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: scale(1.05);
}

.dashboard-btn i {
    font-size: 18px;
    color: #fff;
}

.dashboard-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.sticky .dashboard-btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.sticky .dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (width < 768px){
    header, .Header {
        height: 80px;
    }
    
    .Logo img {
        height: 80px;
        width: auto;
        max-height: 80px;
        object-fit: contain;
    }
    
    .sticky .Logo img {
        height: 80px;
        width: auto;
        max-height: 80px;
        object-fit: contain;
    }

    .logo-text {
        font-size: 20px;
        top: 15px;
    }

    .header::after {
        backdrop-filter: blur(50px);
    }  

    .Header {
        display: flex !important;
        grid-template-columns: none !important;
    }
    
    .Header .nav-links{
        position: absolute;
        top : 80px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 80px);
        border-top: 1px solid #fe6800;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        font-size: 1.5rem;
        transform: translateX(100%);
        transition: all 0.3s ease-in-out;
    }

    .header .nav-links{
        background-color: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(50px);
    }

    .sticky .nav-links {
        background-color: #063453;
    }
    /* add a menu button */
    .menu-toggle{
        display: block;
        cursor: pointer;
        font-size: 2.5rem;
        color: #fff;
        padding: 20px;
        z-index: 1001;
    }

    .menu-toggle #close-menu{
        display: none;
    }

    #check:checked + .menu-toggle #close-menu{
        display: block;
    }
    #check:checked + .menu-toggle #open-menu{
        display: none;
    }
    #check:checked~ .nav-links{
       transform: translateX(0%);
    }
}