@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
    --bg: #0d2144;
}

* {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #c8d6e5;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slogo
{
    background-image: url(/sl_logo.png);
}

.snowlabs-parallax {
    background: url(/combo_mid-res.webp) no-repeat fixed;
    background-size: cover;
    background-position: center center;   /* <-- ключевая правка */
}

.curtain
{
    background-color: #04141f;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .snowlabs-parallax {
        background-attachment: scroll;
    }
}

@keyframes subtlePulse {
    0%, 100% {
        opacity: 0.5
    }
    25% {
        opacity: 0.65
    }
    50% {
        opacity: 0.5
    }
    75% {
        opacity: 0.6
    }
}

.bg-raster {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgba(26, 45, 74, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 45, 74, 0.25) 1px, transparent 1px),
    linear-gradient(rgba(26, 45, 74, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 45, 74, 0.5) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, #0d1a33 0%, #060b14 55%, #040914 100%);
    background-size: 32px 32px, 32px 32px, 128px 128px, 128px 128px, 100% 100%;
    mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 75%);
}

/*.glass-card {*/
/*    background: rgba(15, 26, 46, 0.75);*/
/*    backdrop-filter: blur(16px);*/
/*    -webkit-backdrop-filter: blur(16px);*/
/*    border: 1px solid rgba(26, 45, 74, 0.6);*/
/*    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);*/
/*}*/

/*.glass-card:hover {*/
/*    border-color: rgba(74, 143, 231, 0.5);*/
/*    box-shadow: 0 8px 40px rgba(74, 143, 231, 0.1), 0 0 0 1px rgba(74, 143, 231, 0.15);*/
/*}*/

.btn-secondary {
    background: rgba(15, 26, 46, 0.9);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(74, 143, 231, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(74, 143, 231, 0.85);
    border-color: rgba(74, 143, 231, 1);
    color: white;
    /*transform: translateY(-2px);*/
    box-shadow: 0 8px 20px rgba(74, 143, 231, 0.4);
}

.glass-card {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

/* Radial gradient overlay that appears on hover */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(74, 143, 231, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    border-color: rgba(74, 143, 231, 0.7);
    box-shadow: 0 6px 16px rgba(74, 143, 231, 0.15), 0 0 0 1px rgba(74, 143, 231, 0.2);
    /*transform: translateY(-2px);*/
}

.project-card  {
    background: rgba(12, 20, 35, 0.65);      /* more transparent */
    backdrop-filter: blur(20px);              /* stronger blur */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 143, 231, 0.35);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    padding: 0 !important;                   /* remove all padding – cover touches edges */
    position: relative;
}

.project-card:hover {
    border-color: rgba(74, 143, 231, 0.8);
    box-shadow: 0 12px 32px rgba(74, 143, 231, 0.25), 0 0 0 1px rgba(74, 143, 231, 0.3);
    /*transform: translateY(-3px);*/
    background: rgba(12, 20, 35, 0.75);
}

.project-card .cover-wrapper {
    position: relative;
    aspect-ratio: 3.2 / 4;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 0;  /* remove border-radius – card itself has rounded corners */
}

.project-card .cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.project-card h4 {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Smaller progress bar track */
.project-card .progress-bar-track {
    margin-top: 0.5rem;
    height: 4px;  /* was 6px */
}

.card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.card-badges span {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    /*background: rgba(0, 0, 0, 0.65);  !* dark fallback *!*/
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 0.5px solid rgba(255,255,255,0.2);
}

/* Content area (title, release date, progress) – now with internal padding */
.card-content {
    padding: 0.6rem 0.75rem 0.75rem 0.75rem;
}

/* Release date styling */
.release-date {
    font-size: 0.7rem;
    color: #8ba9cc;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.release-date i {
    font-size: 0.65rem;
    opacity: 0.8;
}

.progress-bar-track {
    background: rgba(26, 45, 74, 0.6);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4a8fe7, #6baaf8);
    transition: width 1s ease;
}

.progress-bar-fill.high {
    background: linear-gradient(90deg, #3cb878, #5cd990);
}

.progress-bar-fill.mid {
    background: linear-gradient(90deg, #d4a030, #e8be4a);
}

.progress-bar-fill.low {
    background: linear-gradient(90deg, #e0556a, #f07080);
}

.badge-official {
    background: linear-gradient(135deg, rgba(74, 143, 231, 0.9), rgba(44, 103, 181, 0.9));
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.badge-fan {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(109, 62, 216, 0.9));
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.badge-completed {
    background: linear-gradient(135deg, rgba(60, 184, 120, 0.9), rgba(40, 144, 90, 0.9));
    color: white;
}

.badge-inprogress {
    background: rgba(212, 160, 48, 0.2);
    color: #e8c860;
    border: 1px solid rgba(212, 160, 48, 0.4);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(4, 9, 20, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;               /* чтобы кнопка закрытия позиционировалась абсолютно */
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 45, 74, 0.7);
    border-radius: 1.5rem;
    max-width: 900px;                /* достаточно для текста + обложка */
    width: 92%;
    max-height: 85vh;                /* не выше 85% экрана – появится прокрутка */
    /*min-height: 340px;              !* минимальная высота, чтобы не сжималось в полоску *!*/
    overflow-y: auto;                /* прокрутка внутри окна, если контент превышает max-height */
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2), opacity 0.3s;
    opacity: 0;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    padding: 1.75rem 1.5rem;        /* достаточно места для кнопки закрытия */
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(15, 26, 46, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(26, 45, 74, 0.5);
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8fa8;
    transition: all 0.2s;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: white;
    background: rgba(74, 143, 231, 0.25);
    border-color: rgba(74, 143, 231, 0.5);
}

/* Flex-контейнер для обложки и текста */
.modal-body {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    min-height: 0;
}

/* Колонка с обложкой — фиксированная ширина */
.modal-cover-col {
    flex-shrink: 0;
    width: 200px;
}
.modal-cover-img {
    width: 100%;
    border-radius: 0.75rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Информационная колонка занимает остаток */
.modal-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .modal-content {
        max-width: 95vw;
        padding: 1rem;
        min-height: auto;
    }
    .modal-body {
        flex-direction: column;
        align-items: center;
    }
    .modal-cover-col {
        /*width: 1px;*/
    }
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 26, 46, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a8fe7, #6baaf8);
    border-radius: 10px;
}

.header-glass {
    background: rgba(8, 16, 30, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 45, 74, 0.5);
}

.nav-link {
    position: relative;
    color: #a0b8d0;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: #d0e0f5;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a8fe7;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(26, 45, 74, 0.5);
    border-radius: 999px;
    padding: 3px;
}

.lang-switch a {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    color: #7a8fa8;
    text-decoration: none;
}

.lang-switch a.active {
    background: #4a8fe7;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 143, 231, 0.35);
}

.btn-primary {
    background: linear-gradient(135deg, #4a8fe7, #3a7bcf);
    box-shadow: 0 4px 15px rgba(74, 143, 231, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    /*transform: translateY(-2px);*/
    box-shadow: 0 8px 25px rgba(74, 143, 231, 0.4);
    background: linear-gradient(135deg, #5a9ef7, #4a8fe7);
}

.lang-switch a:hover:not(.active) {
    color: #bccfdf;
    background: rgba(74, 143, 231, 0.2);
}

@media (max-width: 768px) {
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 16, 30, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(26, 45, 74, 0.6);
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        z-index: 50;
    }

    .mobile-menu.open {
        display: flex;
    }
}