
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
    background-color: #f3f7f5;
    margin: 0;
    padding-top: 60px;
}
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;   /* yan boşluq 24px */
    box-sizing: border-box;
}
.portfolio-header {
    background: linear-gradient(135deg, #e3f4ee 0%, #f9fdfc 100%);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 18px;
    border: 1px solid #d4ece2;
    box-shadow: 0 10px 30px rgba(26,133,102,0.10);
}

.portfolio-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 6px;
}

.portfolio-header h1 {
    margin: 0;
    font-size: 2.1rem;
    color: #0a4d3c;
    letter-spacing: -0.5px;
}

.header-links {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.header-links a {
    margin-left: 6px;
    color: #1a8566;
}

.portfolio-header p {
    margin: 4px 0 0 0;
    color: #335;
    font-size: 0.98rem;
}



h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #0a4d3c;
    margin-top: 14px;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.35rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #1a8566 0%, #3bc490 100%);
    border-radius: 999px;
}

p {
    margin-bottom: 0.7em;
    color: #333;
    font-size: 1rem;
}


section {
    background: #ffffff;
    max-width: 1400px;
    margin: 18px auto;
    padding: 22px 26px;
    border-radius: 16px;
    border-left: 4px solid #1a8566;
    box-shadow: 0 8px 24px rgba(26,133,102,0.08);
    box-sizing: border-box;
}

.chart-row {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 18px;
}

.chart-row figure {
    flex: 1 1 50%;
    margin: 0;
}

section img,
section iframe {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;           /* aspect ratio saxlanılsın */
    margin: 0 auto;
}


.chart-row figure > div {
    width: 100% !important;
}

.cc4-charts {
    text-align: left !important;
}

/* Vega-Lite  */
.vega-embed {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.cc4-charts img {
    display: block;
    margin-left: 0 !important;
    margin-right: auto !important;
}


/* Vega-Lite charts
.vega-embed {
    min-height: 380px !important;
}


a {
    color: #1a8566;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: #0a4d3c;
    text-decoration: underline;
}


.loader-container {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 36px;
    aspect-ratio: 1;
    background:
        radial-gradient(farthest-side, #fff 90%, #0000) 50% / 8px 8px no-repeat,
        conic-gradient(from -90deg at 14px 14px, #0000 90deg, #1a8566 0) 0 0 / 26px 26px;
    animation: l7 0.9s infinite;
}

@keyframes l7 {
    0% { background-position: 50%, 0 0; }
    50% { background-position: 50%, 26px 0; }
    100% { background-position: 50%, 26px 26px; }
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(90deg, #1a8566 0%, #3bc490 100%);
    box-shadow: 0 2px 6px rgba(26,133,102,0.4);
    z-index: 10000;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 9px 14px;
    font-size: 14px;
    background-color: #1a8566;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(26,133,102,0.45);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.2s, background 0.3s;
}

#backToTop:hover {
    background-color: #145f4d;
    transform: translateY(-2px);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1100px) {
    .main-wrapper {
        max-width: 100%;
        padding: 0 16px 32px;
    }
}

@media (max-width: 900px) {
    .chart-row {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .portfolio-header {
        padding: 16px 16px;
    }
    .portfolio-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .portfolio-header h1 {
        font-size: 1.6rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    section {
        padding: 16px 16px;
        margin: 14px auto;
    }
}
