@font-face {
    font-family: 'Handcraft';
    src: url('/fonts/handcraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Malkissat';
    src: url('/fonts/malkissat.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EagleHorizonP';
    src: url('/fonts/EagleHorizonP.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'HigherJump';
    src: url('/fonts/HigherJump.woff2') format('woff2'), /* Modern browsers */
    url('/fonts/HigherJump.woff') format('woff'),   /* Fallback for older browsers */
    url('/fonts/HigherJump.ttf') format('truetype'); /* Last fallback */
    font-weight: normal;
    font-style: normal;
}
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    height: 100px;
    transition: height 0.3s ease, background 0.3s ease;
}

.main-header.scrolled {
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
}

.dropdown {
    display: none;
    position: absolute;
    background: white;
    list-style: none;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown.open {
    display: block;
}


.container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.website-name {
    font-size: 3.6rem;
    font-family: 'HigherJump', Arial, sans-serif;
    color: white;
    transition: font-size 0.3s ease;
    white-space: nowrap;
}

.main-header.scrolled .website-name {
    font-size: 1.2rem;
}

.navigation-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navigation-menu ul li {
    position: relative;
}

.navigation-menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.6rem;
    padding: 5px 15px;
    white-space: nowrap;
    transition: font-size 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled .navigation-menu ul li a {
    font-size: 1.4rem;
    padding: 2px 10px;
}

/* Dropdown Styles */
.navigation-menu ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    list-style: none;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.navigation-menu ul li:hover .dropdown {
    display: block;
}

.navigation-menu ul li .dropdown li {
    margin: 0;
    padding: 5px 10px;
}

.navigation-menu ul li .dropdown li a {
    text-decoration: none;
    color: white;
    font-size: 1.4rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.navigation-menu ul li .dropdown li a:hover {
    color: #ffd700;
}

.navigation-menu ul li .dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid white;
    transition: transform 0.2s ease;
}

.navigation-menu ul li:hover .dropdown-arrow {
    transform: rotate(-90deg);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 50px;
    z-index: 2000;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: white !important;
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-header {
        z-index: 1000 !important;
    }
    .navigation-menu {
        z-index: 1001 !important;
    }
    .hamburger-menu {
        z-index: 2000 !important;
    }

    .navigation-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 197, 215, 1.0);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .navigation-menu.active {
        display: flex;
    }

    .hamburger-menu {
        display: flex;
    }

    .navigation-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .navigation-menu ul li a {
        white-space: nowrap;
    }

    .navigation-menu ul li .dropdown {
        position: relative;
        box-shadow: none;
    }
    .main-header {
        height: 50px;
        padding: 0 10px;
    }
    .main-header.scrolled {
        height: 40px;
    }
    .website-name {
        font-size: 1.5rem;
    }
    .main-header.scrolled .website-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .website-name {
        font-size: 1.5rem;
    }

    .main-header.scrolled .website-name {
        font-size: .75rem;
    }

    .main-header {
        height: 50px;
    }

    .main-header.scrolled {
        height: 40px;
    }
}

/* Landscape orientation for small devices (667px and smaller) */
@media (max-width: 667px) and (orientation: landscape) {
    .website-name {
        font-size: 1.5rem;
    }

    .main-header.scrolled .website-name {
        font-size: .75rem;
    }

    .main-header {
        height: 50px;
    }

    .main-header.scrolled {
        height: 40px;
    }

    .navigation-menu ul li a {
        font-size: 1.2rem;
        padding: 2px 8px;
    }

    .main-header.scrolled .navigation-menu ul li a {
        font-size: 1.1rem;
        padding: 1px 6px;
    }
}