@font-face {
    font-family: 'RunicFont';
    src: url('../fonts/RunicFont.woff2') format('woff2'),
         url('../fonts/RunicFont.woff') format('woff'),
         url('../fonts/RunicFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/hyperborea.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    z-index: -2;
    transform: scale(1.05);
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: -1;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.brand-font {
    font-family: 'RunicFont', serif;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: #fff !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.nav-pills .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-section {
    min-height: calc(100vh - 56px);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.main-title {
    font-size: 4.5rem;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 3px solid rgba(255,255,255,0.2);
}

.side-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.anthem-block {
    max-width: 1200px;
}

.anthem-text {
    white-space: pre-line;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    line-height: 1.6;
}

.analytics-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.square-card {
    aspect-ratio: 1 / 1;
    min-height: 250px;
}

.card-label {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.status-goyda {
    font-size: 3rem;
    color: #28a745;
    text-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
    letter-spacing: 0.1em;
}

.debt-value {
    font-size: 2.5rem;
    text-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

.pork-value {
    font-size: 2.5rem;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.title-shadow {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.goydometer-container {
    min-height: 400px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.chart-bar {
    width: 80%;
    margin: 0 auto;
}

.chart-value {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.special-value {
    color: #28a745 !important;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.8);
    font-size: 1rem !important;
}

.api-badge {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: default;
}

.memorial-img {
    max-width: 100%;
    width: 350px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    filter: grayscale(80%) opacity(0.9);
    transition: filter 0.5s ease;
}
.memorial-img:hover {
    filter: grayscale(0%) opacity(1);
}

.memorial-caption {
    font-family: 'RunicFont', serif;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    margin-top: 20px;
    line-height: 1.8;
}

.track-item {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    transition: background 0.3s ease;
}
.track-item:last-child {
    border-bottom: none !important;
}
.track-item:hover {
    background: rgba(255,255,255,0.02) !important;
}

.play-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.track-progress {
    height: 4px;
    cursor: pointer;
}

.about-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.about-title {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

.glory-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.5), 2px 2px 5px #000;
    letter-spacing: 0.1em;
}

.rkn-love {
    opacity: 0.35;
    font-size: 0.9rem;
    font-style: italic;
    user-select: none;
    transition: opacity 0.3s ease;
}
.rkn-love:hover {
    opacity: 0.6;
}

.quote-container {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px dashed rgba(255,255,255,0.1);
    padding: 2rem;
}

.quote-img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    margin-bottom: 1.5rem;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    text-align: center;
    color: #e0e0e0;
}

.quote-text a {
    color: #ffcccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quote-text a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (min-width: 1200px) {
    .main-title {
        font-size: 5rem;
    }
}

@media (max-width: 991.98px) {
    .main-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 767.98px) {
    .anthem-text {
        font-size: 1.1rem;
        margin: 1.5rem 0;
    }
    .side-img {
        max-width: 200px;
    }
}

@media (max-width: 575.98px) {
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 0.05em;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-img {
        max-width: 200px;
    }
    
    .anthem-text {
        font-size: 1rem;
    }
}