/* header.css */

@font-face {
    font-family: 'Helvetica_round';
    src: url("../fonts/helvetica-rounded-bold-5871d05ead8de.otf");
}
@font-face {
    font-family: "HelveticaLight";
    src: url("../fonts/helvetica-light-587ebe5a59211.otf");
}

html {
    font-family: Helvetica_round;
    font-size: 18px;
}

:root {
    --primary-color: #4b8d6c;
    --accentuation-color: #4FBDF2;
    --base-color: #C8D4C1;
    --darker-primary-color: #2a4e3c;
    --lighter-primary-color: #E1E4DF;
    --light: #F9FEF6;
    --dark: #222322;
}

*{
      box-sizing: border-box;
}

header {
    width: 100%;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    left: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.dev-name {
    font-weight: bold;
    font-size: 1.2em;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

/* Light & Dark Mode */
[data-theme="light"] {
    header, html {
        background-color: var(--light);
    }
    
    .logo a {
        color: var(--dark);
    }
    
    .dev-name, nav a {
        color: #222;
        background-color: var(--light);
    }
    nav a:hover {
        color: var(--primary-color);
    }
    
    .nav-links.active {
        background-color: var(--light);
    }
    
    .hamburger {
        color: var(--dark);
    }
}

[data-theme="dark"] {
    header, html {
        background-color: var(--dark);
    }
    .logo a {
        color: var(--light);
    }
    .dev-name, nav a {
        color: var(--light);
    }
    nav a:hover {
        color: var(--primary-color);
    }
    
    .nav-links.active {
        background-color: var(--dark);
    }
    
    .hamburger {
        color: var(--light);
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.8em;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* Theme Toggle Button */
#theme-toggle {
  background-color: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  margin: 3px auto 0 auto;
}

/* Responsive: Mobile-Friendly */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: inherit;
        padding: 15px;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
        width: 180px;
        min-width: 33%;
        padding: 1.5em 2em 1.5em 1.5em;
    }

    nav ul.active {
        display: flex;
        z-index: 500;
    }

    .theme-toggle-li {
        display: list-item;
    }
}

@media (max-width: 450px
    nav ul {
        min-width: 75%;
    }
}

