header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 115px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.666s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header.no-border {
    border-bottom-color: #181818;
}

.header-logo {
    font-family: 'Ubuntu';
    font-size: 34px;
    color: #fff;
    font-weight: 300;
    margin-left: 70px;
    opacity: 1;
    transition: opacity 0.666s ease;
}

.header-logo.fade-out {
    opacity: 0;
}

#header-cuboctahedron {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.666s ease;
    transform-origin: center;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    opacity: 1;
    width: 108px;
    height: 108px;
    will-change: transform;
    cursor: pointer;
}

#header-cuboctahedron.fade-out {
    opacity: 0;
}

#header-cuboctahedron:hover {
    transform: translateY(-50%) scale(1.1);
}

#header-cuboctahedron:active {
    transform: translateY(-50%) scale(0.95);
}

#header-cuboctahedron svg {
    width: 100%;
    height: 100%;
    fill: #00ff9c;
    transition: fill 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header-cuboctahedron:hover svg {
    fill: #fff;
}

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

.logo img {
    height: 54px;
    width: auto;
}

.theme-switcher {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    width: 91px;
    height: 91px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #666;
    z-index: 1000;
}

.theme-switcher i {
    position: absolute;
    transition: opacity 0.666s ease;
}

.theme-switcher .fa-sun {
    opacity: 1;
}

.theme-switcher .fa-moon {
    opacity: 0;
}

[data-theme="dark"] .theme-switcher .fa-sun {
    opacity: 0;
}

[data-theme="dark"] .theme-switcher .fa-moon {
    opacity: 1;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
    }
    60% {
        transform: translateY(10%);
    }
    80% {
        transform: translateY(-5%);
    }
    100% {
        transform: translateY(0);
    }
}

[data-theme="dark"] header,
[data-theme="light"] header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] header {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.95), rgba(10, 10, 10, 0.95));
    border: none;
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.2);
    backdrop-filter: blur(8px);
}

header .container::after {
    display: none;
}

[data-theme="light"] nav a {
    color: #ffffff;
}

[data-theme="light"] .home-link {
    color: #ffffff;
}

.header-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 15px;
    height: 100%;
}

.home-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 34px;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-left: 15px;
    white-space: nowrap;
    position: absolute;
    left: 125px;
}

nav {
    display: flex;
    gap: 60px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1001;
}

nav a {
    color: #fff !important;
    text-decoration: none;
    font-size: 34px;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    padding: 5px 10px;
    position: relative;
    display: inline-block;
}

nav a:hover {
    transform: scale(1.1);
}

nav a:active {
    transform: scale(0.95);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    text-shadow: 0 0 20px #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    right: 25px;
    width: 91px;
    height: 91px;
    border-radius: 50%;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover::before {
    transform: scale(1.0);
}

.theme-toggle:hover {
    transform: scale(1.0) rotate(180deg);
    text-shadow: 0 0 30px #ffffff;
}

.theme-toggle:active {
    transform: scale(1.0) rotate(180deg);
}

[data-theme="dark"] .theme-toggle {
    color: #fff;
    text-shadow: 0 0 20px #fff;
}

[data-theme="dark"] .theme-toggle::before {
    background: none;
}

[data-theme="dark"] .theme-toggle:hover {
    text-shadow: 0 0 30px #fff;
}

[data-theme="dark"] .sun-icon {
    display: none !important;
}

[data-theme="dark"] .moon-icon {
    display: inline-block !important;
}

.home-link:hover {
    transform: scale(1.1);
}

.home-link:active {
    transform: scale(0.95);
}

[data-theme="dark"] .logo {
    filter: brightness(0) invert(1) !important;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .home-link {
    color: #fff !important;
    text-shadow: none;
}


@media (min-width: 2560px) {
    .home-link,
    nav a {
      font-size: 34px !important;
    }
    nav {
      gap: 60px;
    }
  }
  
  @media (min-width: 1920px) {
    .home-link,
    nav a {
      font-size: 34px !important;
    }
    nav {
      gap: 60px;
    }
  }
  
  @media (min-width: 1680px) {
    .home-link,
    nav a {
      font-size: 32px !important;
    }
    nav {
      gap: 54px;
    }
  }
  
  @media (min-width: 1536px) {
    .home-link,
    nav a {
      font-size: 30px !important;
    }
    nav {
      gap: 48px;
    }
  }
  
  @media (min-width: 1440px) {
    .home-link,
    nav a {
      font-size: 28px !important;
    }
    nav {
      gap: 40px;
    }
  }
  
  @media (min-width: 1280px) {
    .home-link,
    nav a {
      font-size: 26px !important;
    }
    nav {
      gap: 32px;
    }
  }
  
  @media (max-width: 1279px) {
    .home-link,
    nav a {
      font-size: 22px !important;
    }
    nav {
      gap: 25px;
    }
  }
  
  @media (max-width: 1024px) {
    .home-link,
    nav a {
      font-size: 20px !important;
    }
    nav {
      gap: 25px;
    }
  }
  
  @media (max-width: 900px) {
    .home-link,
    nav a {
      font-size: 18px !important;
    }
    nav {
      gap: 18px;
    }
  }
  
  @media (max-width: 768px) {
    .home-link,
    nav a {
      font-size: 16px !important;
    }
    nav {
      gap: 18px;
    }
  }
  
  @media (max-width: 640px) {
    .home-link,
    nav a {
      font-size: 14px !important;
    }
    nav {
      gap: 18px;
    }
  }