@font-face {
    font-family: 'LobsterTwo-Latin';
    src: url('https://fonts.googleapis.com/css2?family=Lobster+Two&display=swap') format('woff2');
    unicode-range: U+0000-00FF, U+0100-024F;
  }
  @font-face {
    font-family: 'LobsterTwo-Cyrillic';
    src: url('LobsterCyrillic.woff2') format('woff2');
    unicode-range: U+0400-04FF, U+0500-052F;
  }
  body {
    font-family: 'LobsterTwo-Latin','LobsterTwo-Cyrillic', cursive;
  }
:root {
    --main-font: 'HK Grotesk', Arial, sans-serif;
    --scrollbar-bg: #f1f1f1;
    --scrollbar-thumb: #d7263d;
    --scrollbar-thumb-hover: #b91e35;
    --scrollbar-track: rgba(215, 38, 61, 0.1);
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--main-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 15px;
    color: #1E2C74;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Hardware acceleration for smoother scrolling */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Main content area that pushes footer down */
body > *:not(.navbar):not(.site-footer) {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
.site-footer {
    flex-shrink: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    color: #fff;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    /* Hardware acceleration for fixed/sticky navbars */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.navbar-left .logo {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-right a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #333;
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.dropdown-content a {
    color: #fff;
    padding: 0.7rem 1rem;
    display: block;
    text-align: left;
    text-decoration: none;
    background: #333;
    transition: background 0.2s;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.lang-switch {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-switch select {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 1rem;
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: row;
        align-items: flex-start;
        padding: 1rem;
    }
    .navbar-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    .dropdown-content {
        right: auto;
        left: 0;
    }
    html, body {
      font-size: 14px;
      padding: 0;
      margin: 0;
      overflow-x: hidden;
    }
    body {
      font-size: 14px;
      padding: 0 0.5rem;
      letter-spacing: 1px;
    }
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
    margin: 5px;
}

::-webkit-scrollbar-thumb {
    /* Simplified for performance - removed gradients and shadows */
    background: var(--scrollbar-thumb);
    border-radius: 10px;
    border: 2px solid var(--scrollbar-track);
    /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); Removed for performance */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); Removed for performance */
}

::-webkit-scrollbar-thumb:active {
    background: #9a1a2e;
}

::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Smooth scrolling - removed for performance, causes jank on scroll */
/* Use JavaScript smooth scroll only when needed */
/* html {
    scroll-behavior: smooth;
} */

/* Custom scrollbar for specific elements */
.modal-content,
.blog-modal-content,
.admin-modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.modal-content::-webkit-scrollbar,
.blog-modal-content::-webkit-scrollbar,
.admin-modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track,
.blog-modal-content::-webkit-scrollbar-track,
.admin-modal-content::-webkit-scrollbar-track {
    background: rgba(215, 38, 61, 0.05);
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb,
.blog-modal-content::-webkit-scrollbar-thumb,
.admin-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--scrollbar-thumb), var(--scrollbar-thumb-hover));
    border-radius: 8px;
    border: 1px solid rgba(215, 38, 61, 0.1);
} 