/* ===========================
   CSS VARIABLES & THEMES
=========================== */
:root {
    --hover-color: #8a8a8a;
    --click-color: #A3C9F1;
    --text-color: #333;

    --bg-main: #ffffff;
    --text-main: #333;
    --navbar-bg: transparent;
    --navbar-text: #333;
}

body.dark {
    --bg-main: #000000;
    --text-main: #ffffff;
    --navbar-bg: #000000;
    --navbar-text: #ffffff;
}

/* ===========================
   FONT
=========================== */

@font-face {
    font-family: 'General Sans';
    src: url('font/GeneralSans-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans';
    src: url('font/GeneralSans-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
}

/* ===========================
   BASE
=========================== */
body {
    position: relative;
    overflow-x: hidden;
    font-family: 'General Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* ===========================
   HEADER & NAV
=========================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1000;
}

.logo-img {
    height: 65px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: 20px;
}

.main-menu li {
    margin-right: 30px;
}

.nav-item {
    text-decoration: none;
    color: var(--navbar-text);
    padding: 5px 0;
    display: block;
    transition: color 0.2s;
}

/* ===========================
   NAV ACTIONS (hamburger + toggle)
=========================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* ===========================
   THEME TOGGLE BUTTON
=========================== */
.theme-toggle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    outline: 1px solid var(--navbar-text);
    background-color: #000;
    transition: background-color 0.3s ease;
}

body.dark .theme-toggle {
    background-color: #fff;
}

/* ===========================
   NAV STATES (hover / active)
=========================== */
.main-item:hover {
    color: var(--hover-color);
}

.main-item.active,
.main-item.clicked {
    color: var(--click-color);
}

body.dark .main-item.active,
body.dark .main-item.clicked {
    color: var(--click-color);
}

/* ===========================
   HAMBURGER MENU
=========================== */
.hamburger-menu {
    cursor: pointer;
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px;
    transition: transform 0.3s;
}

.bar {
    width: 100%;
    height: 1.5px;
    background-color: var(--navbar-text);
    border: none;
    box-shadow: none;
    transition: all 0.3s;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 8px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -8px);
}

/* ===========================
   DROPDOWN MENU
=========================== */
.dropdown-menu {
    list-style: none;
    padding: 10px 20px;
    margin: 0;
    position: absolute;
    top: 70px;
    right: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1001;
    min-width: 150px;
    text-align: right;

    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: none;
}

.dropdown-menu.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    padding: 8px 85px;
    pointer-events: auto;
}

.dropdown-menu a {
    color: var(--navbar-text);
    pointer-events: auto;
}

.sub-item {
    font-size: 16px;
    padding: 0;
}

.sub-item:hover {
    color: var(--hover-color);
}

.sub-item.active,
.sub-item.clicked {
    color: var(--click-color);
}