* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%),
        rgba(64, 64, 64, 0.56);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-primary-ink);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--navbar-height);
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
    box-shadow:
        0 14px 40px rgba(12, 12, 12, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar__logo {
    font-weight: 700;
    font-size: 1.7rem;
    font-family: var(--font-heading);
    z-index: 1001;
}

.navbar__logo a {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.navbar__logo a:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

/* Desktop Menu */
.navbar__menu--desktop {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar__menu--desktop a {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.navbar__menu--desktop a:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

/* =========================
   DROPDOWN NAVIGATION
   ========================= */
.navbar__dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-main-link {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.dropdown-main-link:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    color: inherit;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 0;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.dropdown-toggle:focus,
.dropdown-toggle:focus-visible,
.dropdown-toggle:active,
.dropdown-toggle[aria-expanded='true'] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.dropdown-toggle:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.dropdown-arrow {
    margin-left: 0.25rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.navbar__dropdown:hover .dropdown-arrow,
.navbar__dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%),
        rgba(44, 44, 44, 0.68);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1001;
}

.navbar__dropdown:hover .dropdown-menu,
.navbar__dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    padding: 0;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: inherit;
    min-width: 220px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0 0.25rem;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
    opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px 0;
    z-index: 1001;
    transition: opacity 0.3s ease;
    position: relative;
}

.mobile-menu-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 2px;
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--navbar-height);
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: calc(100vh - var(--navbar-height));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%),
        rgba(44, 44, 44, 0.78);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        -10px 0 28px rgba(0, 0, 0, 0.18),
        inset 1px 0 0 rgba(255, 255, 255, 0.12);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-ink);
}

.mobile-menu__nav {
    padding: 2rem 0;
}

.mobile-menu__section {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__toggle,
.mobile-menu__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 2rem;
    background: none;
    border: none;
    color: var(--color-primary-ink);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-menu__toggle:hover,
.mobile-menu__link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    padding-left: 2.5rem;
}

.mobile-menu__arrow {
    transition: transform 0.3s ease;
}

.mobile-menu__toggle.active .mobile-menu__arrow {
    transform: rotate(180deg);
}

.mobile-menu__submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__submenu.active {
    max-height: 300px;
    background-color: var(--color-secondary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin: 0.5rem 1rem;
    padding: 0.25rem 0;
}

.mobile-menu__submenu li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__submenu li:last-child {
    border-bottom: none;
}

.mobile-menu__submenu a {
    display: block;
    padding: 1rem 3rem;
    color: var(--color-primary-ink);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-menu__submenu a:hover {
    color: var(--color-primary-ink);
    background-color: var(--color-primary);
    padding-left: 3.5rem;
}

/* =========================
   SITE FOOTER
   ========================= */
.site-footer {
    background-color: var(--color-medium-gray);
    color: var(--color-light);
    padding: 1.5rem 0 2rem;
    margin-top: 0;
    border-top: 1px solid var(--color-light-gray);
}

.site-footer__container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0 var(--page-content-padding);
}

/* First Row: Back to Top centered */
.site-footer__back-to-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Second Row: Site links (left) and Social/Contact (right) */
.site-footer__middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Third Row: Breadcrumbs (left) and DMCA + Copyright (right) */
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.site-footer__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* DMCA Badge */
.dmca-badge {
    display: inline-flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.dmca-badge:hover {
    opacity: 1;
}

.dmca-badge img {
    height: 20px;
    width: auto;
    vertical-align: middle;
}

/* Breadcrumbs in footer */
.site-footer .breadcrumbs {
    padding: 0;
    background-color: transparent;
    margin: 0;
}

.site-footer .breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.site-footer .breadcrumbs li::after {
    content: ' > ';
    margin-left: 0.5rem;
    color: var(--color-light);
    opacity: 0.6;
}

.site-footer .breadcrumbs li:last-child::after {
    display: none;
}

.site-footer .breadcrumbs a {
    color: var(--color-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.site-footer .breadcrumbs a:hover {
    opacity: 1;
}

.site-footer .breadcrumbs [aria-current="page"] {
    color: var(--color-light);
    opacity: 0.6;
}

.site-footer__copyright {
    font-size: 0.9rem;
    color: var(--color-light);
    opacity: 0.8;
}

.site-footer__links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: var(--color-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.site-footer__links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.site-footer__social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-light);
    transition: all 0.3s ease;
}

.site-footer__social a:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
}

.icon--medium {
    width: 20px;
    height: 20px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-light);
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}


@media (max-width: 768px) {

    /* Hide desktop menu on mobile */
    .navbar__menu--desktop {
        display: none;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
    }

    /* Adjust navbar padding on mobile */
    .navbar__container {
        padding: 0 1rem;
    }

    .navbar__logo {
        font-size: 1.4rem;
    }
}

@media (min-width: 769px) {

    /* Show desktop menu on larger screens */
    .navbar__menu--desktop {
        display: flex;
    }

    /* Hide mobile menu elements */
    .mobile-menu-btn,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}
