/* --- Глобальні налаштування та змінні --- */
:root {
    --bg-color: #0d0f0e;
    --text-color: #ffffff;
    --primary-btn-color: #19fb9b;
    --secondary-btn-color: #5497d5;
    --content-bg-color: #4f2ab5; 

    --border-bottom-color: rgba(40, 224, 185, 0.3); 
    --border-right-color: rgba(135, 82, 243, 0.3); 

    --font-header: 'Outfit', sans-serif;
    --font-content: 'Exo 2', sans-serif;

    --header-height: 80px;
    --footer-height: 70px;
    --logo-col-width: 20vw;
}


html, body {
    height: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-content);
    font-size: 1rem;
    line-height: 1.8rem;
    font-weight: 300;
    margin: 0;
}

h2 {
    font-family: var(--font-content);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 2.1rem;
}

p, li {
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    line-height: 1.375rem;
    font-weight: 300;
}

ul {
    list-style-position: inside;
    padding-left: 10px;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.btn {
    font-family: var(--font-content);
    text-transform: uppercase;
    font-size: 0.875rem;
    line-height: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 6px;
    padding: 12px 48px;
    cursor: pointer;
    border: none;
    text-align: center;
}

/* --- 2. Хедер (5 колонок 1fr 1fr 1fr 1fr 1fr) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 10;
    background-color: transparent;
    border-bottom: 1px solid var(--border-bottom-color);
    font-family: var(--font-header);
}

.header-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr; 
    height: 100%;
}

.nav-col {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-right-color);
    
}

.nav-col:last-child {
    border-right: none;
}

.nav-col.logo-col {
    background-color: transparent; 
    justify-content: flex-start;
    padding-left: 22%; 
    pointer-events: all; 
}

.small-logo-link {
    display: inline-block;
}

.small-logo {
    width: 40px;
    height: auto;
}

.nav-link {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 10px;
    pointer-events: all;
}

.btn-stake-now {
    background-color: var(--primary-btn-color);
    color: var(--bg-color);
    pointer-events: all;
}

/* --- 1. Ліва колонка з логотипом --- */
.vertical-logo-col {
    position: fixed; 
    left: 0;
    top: 0; 
    bottom: 0; 
    width: var(--logo-col-width);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
}

.vertical-logo-col img {
    width: 60%;
    max-width: 150px;
    min-width: 50px;
    height: auto;
    object-fit: contain;
}

/* --- 3. ГЛОБАЛЬНИЙ КОНТЕЙНЕР  --- */
.global-scroll-container {
    position: absolute; 
    top: var(--header-height);
    left: var(--logo-col-width); 
    width: calc(100% - var(--logo-col-width)); 
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow-y: auto; 
    
    /* 1. Для Firefox */
    scrollbar-width: none; 
}

/* 2. Для WebKit-браузерів (Chrome, Safari, Edge) - ОФОРМЛЕНО ЯК ОКРЕМЕ ПРАВИЛО */
.global-scroll-container::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.site-main {
    position: relative;
    z-index: 2;
    height: auto; 
}

.page-section {
    width: 100%;
    display: none; 
    position: relative; 
}

/* СТИЛІ ДЛЯ СТОРІНОК (HOME, UNIQUENESS, SECURITY) */
.page-section.active:not(.staking-layout) {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    min-height: calc(100vh - var(--header-height) - var(--footer-height)); 
}

.content-col {
    position: relative;
    z-index: 3;
    padding: 3.75rem 5rem 5rem 5rem;
    grid-column: 1 / span 2;
}

.left-indent {
    padding-left: 1.25rem;
}

.content-col.content-bg { 
    background-color: var(--content-bg-color); 
}

.image-col {
    position: sticky; 
    top: 0; 
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: start;
    justify-content: center;
    grid-column: 3 / span 2; 
}

.img-home {
    position: relative;
    left: 5%;
    /*  top: 0; */
    width: 120%;
    height: auto;
    object-fit: contain;
}

.img-uniqueness {
    position: relative;
    /*  left: 5%; */
    top: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.img-lock {
    position: relative;
    /*  left: 5%; */
    top: 0;
    width: 90%;
    height: auto;
    object-fit: contain;
}


/* --- Стилізація контенту сторінок (Home, Uniqueness, Security) --- */
#home .content-col a {
    text-decoration: underline;
    font-weight: bold;
}

#uniqueness .content-col a:hover {
    text-decoration: underline;
}

#security .content-col a {
    color: var(--primary-btn-color);
    text-decoration: underline;
}

/* СТИЛІ ДЛЯ СТОРІНКИ (STAKING) */
.page-section.staking-layout.active {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    position: relative; 
    overflow: hidden; 
    min-height: calc(100vh - var(--header-height) - var(--footer-height)); 
}

.staking-text-block-left {
    position: relative;
    z-index: 3; 
    height: fit-content; 
    align-self: flex-start;
    grid-column: 1 / span 2;
    padding-top: 3.75rem;
}

.h2-staking {
    padding-left: 5rem
}
.inner-text-block {
    position: relative;   
    display: grid;
    grid-template-columns: 1fr 1fr; 
}

.col-1 {
    padding: 0rem 1rem 0rem 5rem;
}

.col-2 {
    padding-left: 5rem;
}


.staking-text-block-right {
    position: relative;
    z-index: 3;
    height: calc(50vh - - var(--footer-height));
    align-self: self-end;
    margin-bottom: 2rem; 
    grid-column: 3 / span 2;
    padding: 3.75rem 5rem 5rem 5rem;
}

.staking-img-left {
    position: absolute;
    z-index: 2; 
    left: 0; 
    bottom: 0; 
    width: 42vw; 
    height: auto;
    object-fit: contain;
    transform: translateY(15%);
}

.staking-img-right {
    position: absolute;
    z-index: 2; 
    right: 0; 
    top: 0; 
    width: 38vw; 
    height: auto;
    object-fit: contain;
    transform: translateY(-10%); 
}

.staking-links a {
    text-decoration: underline;
    font-size: 0.875rem
}

.link-jpool { color: #19fb9b; }
.link-solblaze { color: #5497d5; }
.link-staking-kiwi { color: #43b4ca; }
.link-solanacompass { color: #9945ff; }

.btn-stake-right-now {
    background-color: var(--secondary-btn-color);
    color: var(--bg-color);
    margin-top: 1.5rem;
}


/* --- 4. Футер (5 колонок 1fr 1fr 1fr 1fr 1fr) --- */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    z-index: 10;
    background-color: transparent;
    border-top: 1px solid var(--border-bottom-color);
    font-family: var(--font-header);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr; 
    height: 100%;
}

.footer-col {
    display: flex;
    align-items: center;
    height: 100%;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-right-color);
}

.footer-col:last-child {
    border-right: none;
}

.footer-col.logo-col {
    background-color: transparent; 
    pointer-events: none;
    grid-column: 1; /* Col 1 */
}

.footer-col.links-col {
    justify-content: center;
    text-transform: uppercase;
    grid-column: 2 / span 2; 
    gap: 4rem;
}
.footer-col.links-col a {
    letter-spacing: 3px;
    pointer-events: all;
}

.footer-col.copyright-col {
    justify-content: center;
    gap: 20px;
    grid-column: 4 / span 2;
}
.footer-sl-logo {
    width: 25px;
    height: auto;
}

/* --- 5. Модальне вікно --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(13, 15, 14, 0.9); 
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid var(--border-right-color);
    width: auto; 
    height: auto;
}

.modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--bg-color);
    border: 1px solid var(--border-right-color);
    color: white;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 28px;
    text-align: center;
}

/* --- Адаптивність (Responsiveness) --- */

/* Планшети та малі десктопи (<= 1200px) */
@media (max-width: 1200px) {
    h2 { font-size: 1.8rem; }
    p, li { font-size: 1rem; }
    .content-col { padding: 2rem; }
    .content-image { left: -10%; }

    /* Staking */
    .page-section.staking-layout {
        padding: 2rem 2.5rem;
    }
    .staking-img-left {
        left: 15%;
        width: 35vw;
    }
    .staking-img-right {
        right: 0%;
        width: 35vw;
    }
}

/* Планшети (<= 1024px) */
@media (max-width: 1024px) {
    .vertical-logo-col {
        display: none;
    }
    
    .nav-col.logo-col {
        display: none;
    }
    .header-nav {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .nav-col {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .footer-col.logo-col {
        display: none;
        grid-column: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr; 
    }
    .footer-col.links-col {
        grid-column: auto;
    }
    .footer-col.copyright-col {
        grid-column: auto;
        padding-right: 2rem;
    }

    /* Контент: займає 100% ширини */
    .global-scroll-container {
        left: 0;
        width: 100vw;
    }
    
    /* Контент: стек (текст над картинкою) - для Home, Uniqueness, Security */
    .page-section:not(.staking-layout) { 
        grid-template-columns: 1fr; /* Скидання на 1 колонку */
        align-content: flex-start;
        gap: 1rem;
        padding: 2rem;
        min-height: auto; 
    }
    
    .page-section:not(.staking-layout) .content-col {
        grid-row: 1; 
        grid-column: auto; /* Скидання на авто */
        min-height: auto; 
    }

    .page-section:not(.staking-layout) .image-col {
        grid-row: 2; 
        grid-column: auto; /* Скидання на авто */
        min-height: 250px; 
        position: relative; 
        top: auto; 
        height: auto; 
    }

    /* Специфічна адаптація для Staking */
    .page-section.staking-layout {
        grid-template-columns: 1fr; /* Скидання на 1 колонку */
        padding: 2rem;
        gap: 2rem;
        min-height: auto;
    }
    .staking-text-block-left,
    .staking-text-block-right {
        padding: 1.5rem;
        height: auto;
        align-self: auto;
        grid-column: auto; /* Скидання на авто */
    }
    .staking-text-block-right {
        margin-bottom: 0;
    }

    .staking-img-left, .staking-img-right {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 70%; 
        margin: 0 auto; 
        transform: none; 
        grid-column: 1; 
    }
    .staking-img-left { order: 3; } 
    .staking-img-right { order: 4; } 
    .staking-text-block-left { order: 1; }
    .staking-text-block-right { order: 2; }

    .footer-col {
        border-bottom: 1px solid var(--border-right-color);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 120px; 
        --footer-height: 100px; 
    }
    
    .header-nav {
        grid-template-columns: 1fr 1fr;
    }
    .nav-col {
        font-size: 0.85rem;
    }
    .nav-col:nth-child(2) {
        border-right: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col {
        border-right: none;
        border-bottom: 1px solid var(--border-right-color);
        justify-content: center;
        padding: 1rem;
        height: 50px;
    }
    .footer-col:last-child {
        border-bottom: none;
    }

    .page-section {
        padding: 1rem;
    }
    h2 { font-size: 1.5rem; }
    p, li { font-size: 0.95rem; }

    .modal-content {
        width: 95vw;
    }
}