body.menu-open {
    overflow: hidden;
}

/* ===================================================================
   TYPOGRAPHY
=================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

small {
    font-size: 0.85rem;
}

/* ===================================================================
   LINK
=================================================================== */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), background var(--transition-fast);
}

a:hover {
    text-decoration: none;
}

/* ===================================================================
   LIST
=================================================================== */
ul, ol {
    list-style: none;
}

/* ===================================================================
   IMAGE
=================================================================== */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===================================================================
   BUTTON
=================================================================== */
button {
    font: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* ===================================================================
   INPUT
=================================================================== */
input, textarea, select {
    font: inherit;
    outline: none;
}

/* ===================================================================
   ACCESSIBILITY
=================================================================== */
a:focus-visible, 
button:focus-visible, 
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ===================================================================
   CONTAINER
=================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 20px;
}


/* ===================================================================
   MAIN CONTENT
=================================================================== */
.site-content {
    width: 100%;
    min-height: 100vh;
    padding: 30px 0;
}

/* ===================================================================
   UTILITY
=================================================================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.d-none      { display: none !important; }
.d-block     { display: block !important; }

.shadow      { box-shadow: var(--shadow-md); }
.rounded     { border-radius: var(--radius-md); }

/* ===================================================================
   HEADER
=================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--primary);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ===================================================================
   LOGO
=================================================================== */
.site-logo { flex-shrink: 0; }

.site-logo a {
    display: flex;
    align-items: center;
    height: var(--header-height);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    transition: color var(--transition-fast);
}

.site-logo a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================================================
   MAIN NAVIGATION
=================================================================== */
.main-nav {
    margin-left: auto;
    margin-right: 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    height: var(--header-height);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover { color: rgba(255, 255, 255, 0.92); }

/* Nav Hover Effect */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.nav-item:hover > .nav-link::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--white);
    font-weight: 700;
}

/* ===================================================================
   DROPDOWN
=================================================================== */
.dropdown { position: relative; }

.dropdown > .nav-link i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.dropdown:hover > .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    padding: 8px 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child { border-bottom: none; }

.dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--primary);
    color: var(--white);
    padding-left: 28px;
}


/* ===================================================================
   HEADER ACTIONS
=================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===================================================================
   ICON BUTTON
=================================================================== */
.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: transparent;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.icon-button:active {
    transform: scale(0.95);
}

/* ===================================================================
   SEARCH & MOBILE BUTTON
=================================================================== */
.search-button i {
    font-size: 18px;
}

.menu-button {
    display: none;
}

.menu-button i {
    font-size: 20px;
}

/* ===================================================================
   OVERLAY
=================================================================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===================================================================
   MOBILE MENU
=================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    overflow-y: auto;
    z-index: 1001;
}

.mobile-menu.active {
    right: 0;
}

/* Scrollbar */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 20px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}


/* ===================================================================
   MOBILE HEADER
=================================================================== */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-header h2 {
    color: var(--white);
    font-size: 18px;
    letter-spacing: 1px;
}

.mobile-menu-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu-header button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-header button:active {
    transform: scale(0.95);
}

/* ===================================================================
   MOBILE NAVIGATION
=================================================================== */
.mobile-navigation {
    padding: 10px 0;
}

.mobile-navigation ul {
    margin: 0;
    padding: 0;
}

.mobile-navigation li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-navigation li:last-child {
    border-bottom: none;
}

.mobile-navigation a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-navigation a:hover,
.mobile-navigation a.active {
    background: var(--primary);
    color: var(--white);
}

/* ===================================================================
   MOBILE DROPDOWN
=================================================================== */
.mobile-dropdown {
    overflow: hidden;
}

.mobile-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    color: var(--text);
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-dropdown-button:hover {
    background: var(--gray-50);
}

.mobile-dropdown-button i {
    font-size: 13px;
    transition: transform var(--transition-fast);
}

/* Active State */
.mobile-dropdown.active .mobile-dropdown-button {
    background: var(--primary);
    color: var(--white);
}

.mobile-dropdown.active .mobile-dropdown-button i {
    transform: rotate(180deg);
}


/* ===================================================================
   MOBILE SUBMENU
=================================================================== */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background: var(--gray-50);
    transition: max-height 0.35s ease;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 20px 0 42px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-submenu a:hover {
    background: var(--primary);
    color: var(--white);
    padding-left: 50px;
}

/* ===================================================================
   ANIMATION KEYFRAMES
=================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ===================================================================
   ANIMATION CLASSES
=================================================================== */
.fade-in  { animation: fadeIn 0.35s ease forwards; }
.fade-up  { animation: fadeUp 0.4s ease forwards; }
.fade-down { animation: fadeDown 0.4s ease forwards; }
.zoom-in  { animation: zoomIn 0.35s ease forwards; }


/* ===================================================================
   UTILITY CLASSES (TRANSITION, RADIUS, SHADOW, DISPLAY, FLEX)
=================================================================== */
.transition     { transition: all var(--transition); }

.radius-sm      { border-radius: var(--radius-sm); }
.radius-md      { border-radius: var(--radius-md); }
.radius-lg      { border-radius: var(--radius-lg); }

.shadow-sm      { box-shadow: var(--shadow-sm); }
.shadow-md      { box-shadow: var(--shadow-md); }
.shadow-lg      { box-shadow: var(--shadow-lg); }

.d-none         { display: none !important; }
.d-block        { display: block !important; }
.d-flex         { display: flex !important; }

.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.align-center   { align-items: center; }

/* ===================================================================
   TEXT ALIGNMENT
=================================================================== */
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }

/* ===================================================================
   SPACING (MARGIN)
=================================================================== */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }


/* ===================================================================
   UTILITY CLASSES (CURSOR, SELECT, VISIBILITY, OPACITY)
=================================================================== */
.pointer   { cursor: pointer; }
.no-select { user-select: none; }

.hidden    { visibility: hidden; }
.visible   { visibility: visible; }

.opacity-0   { opacity: 0; }
.opacity-100 { opacity: 1; }

/* ===================================================================
   ACCESSIBILITY & SELECTION
=================================================================== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

/* ===================================================================
   SCROLLBAR
=================================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* ===================================================================
   REDUCED MOTION
=================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================================================
   RESPONSIVE LAYOUT
=================================================================== */
@media (max-width: 1200px) {
    :root { --container-width: 1140px; }
    .nav-menu { gap: 22px; }
}

@media (max-width: 992px) {
    :root { --header-height: 68px; }
    .main-nav { display: none; }
    .menu-button { display: flex; }
    .site-logo a { font-size: 28px; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    .container { padding-inline: 18px; }
    .site-logo a { font-size: 24px; letter-spacing: 1px; }
    .icon-button { width: 40px; height: 40px; }
    .search-button i, .menu-button i { font-size: 18px; }
    .mobile-menu { width: 320px; }
}

@media (max-width: 576px) {
    :root { --header-height: 60px; }
    .container { padding-inline: 16px; }
    .site-logo a { font-size: 22px; }
    .mobile-menu { width: 100%; right: -100%; }
    .mobile-menu.active { right: 0; }
    .mobile-menu-header { height: 60px; }
    .mobile-menu-header h2 { font-size: 16px; }
}

@media (max-width: 480px) {
    .site-logo a { font-size: 20px; }
    .icon-button { width: 38px; height: 38px; }
    .mobile-navigation a, .mobile-dropdown-button { min-height: 52px; font-size: 14px; }
    .mobile-submenu a { font-size: 13px; padding-left: 36px; }
}

@media (max-width: 360px) {
    .container { padding-inline: 14px; }
    .site-logo a { font-size: 18px; }
    .icon-button { width: 36px; height: 36px; }
    .mobile-menu-header { padding-inline: 16px; }
    .mobile-navigation a, .mobile-dropdown-button { padding-inline: 16px; }
    .mobile-submenu a { padding-left: 32px; }
}

/* ===================================================================
   INTERACTION STATES
=================================================================== */
@media (hover: hover) {
    .nav-link:hover { color: rgba(255, 255, 255, 0.92); }
    .dropdown-menu a:hover, 
    .mobile-navigation a:hover { background: var(--primary); color: var(--white); }
}

@media (hover: none) {
    .nav-link:hover::after { width: 0; }
}

/* ===================================================================
   PRINT
=================================================================== */
@media print {
    .site-header, .mobile-menu, .overlay {
        display: none !important;
    }
}