/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Montserrat:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #fdfbf7 0%, #ede8dd 100%);
    --text-main: #2c3e50;
    --text-light: #5a6c7d;
    --accent-green: #2d5a45; 
    --accent-terracotta: #ab4a35; 
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-green);
    line-height: 1.3;
}

/* --- НАВИГАЦИЯ --- */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-green);
    text-decoration: none;
}

.nav-links { display: flex; list-style: none; gap: 2.5rem; }

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-terracotta);
}

/* --- ОСНОВЕН КОНТЕЙНЕР --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 5%;
    flex: 1;
}

.page-title { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; color: var(--accent-terracotta); font-weight: 700; }
.page-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-light); margin-bottom: 4rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* --- СТЪКЛЕНИ КАРТИ (Секциите) --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.section-number {
    position: absolute;
    top: -20px; left: 30px;
    background: var(--accent-green);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(45, 90, 69, 0.3);
}

.glass-card h2 { font-size: 2.2rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--accent-terracotta); display: inline-block; padding-bottom: 0.5rem; }
.glass-card h3 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--accent-terracotta); }
.glass-card p { margin-bottom: 1.2rem; font-size: 1.05rem; }

/* --- СТИЛ ЗА ИСТИНСКИТЕ СНИМКИ --- */
.project-image {
    width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    border: 2px dashed var(--accent-green);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Красива сянка */
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.project-image:hover img {
    transform: scale(1.02); /* Лек зуум ефект при посочване */
}
/* --- КОДОВИ БЛОКОВЕ --- */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
    border-left: 4px solid var(--accent-terracotta);
}
code { font-family: 'Fira Code', monospace; }
.keyword { color: #38bdf8; }
.string { color: #a3e635; }
.comment { color: #94a3b8; font-style: italic; }
.function { color: #facc15; }

/* --- СХЕМА НА САЙТА (Sitemap CSS) --- */
.sitemap-tree {
    display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 2rem 0;
}
.sitemap-node {
    background: white; padding: 1rem 2rem; border-radius: 8px;
    border: 1px solid var(--glass-border); font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center;
    border-top: 4px solid var(--accent-green);
}

/* --- FOOTER --- */
footer {
    text-align: center; padding: 2.5rem; background: rgba(253, 251, 247, 0.8);
    border-top: 1px solid var(--glass-border); margin-top: auto; font-size: 0.95rem; color: var(--text-light);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .page-title { font-size: 2rem; }
}
/* Добави или замени тези части в твоя style.css */

.chart-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,1);
    width: 100%;
    margin-bottom: 5rem;
}

/* Контейнери за графиките с повече въздух */
.chart-container {
    position: relative;
    height: 550px; /* Големи графики */
    width: 100%;
}

/* Специфично изместване за зелената и червената графика */
#seoChart, #trafficChart {
    padding-left: 20px; /* Леко изместване вдясно */
}