:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --bg-light: #f0f2f5;
    --bg-dark: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    max-width: 900px;
    margin: 0 auto; 
    padding: 40px 20px;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    transition: var(--transition);
}


body > * {
    background: var(--card-bg);
    padding: 10px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}



h3 {
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    letter-spacing: 1px;
}

/* Стиль списків як тегів */
ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

li {
    background: #e2e8f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: var(--transition);
}

li:hover {
    background: var(--primary-color);
    color: white;
}

/* Кнопка перемикання */
.btn-theme {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.4);
    z-index: 1000;
}


body.dark-mode {
    background: #0f172a !important; 
    color: #f1f5f9 !important;     
}


body.dark-mode > *, 
body.dark-mode section, 
body.dark-mode div, 
body.dark-mode footer,
body.dark-mode header {
    background: #1e293b !important; 
    color: #f1f5f9 !important;     
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}


body.dark-mode h1 {

    background: linear-gradient(to right, #00d2ff, #92fe9d) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    
   
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
    

    color: transparent !important;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

body.dark-mode h3 {
    color: #38bdf8 !important;
    border-left-color: #38bdf8 !important;
}


body.dark-mode li {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

body.dark-mode li:hover {
    background: #38bdf8 !important;
    color: #0f172a !important;
}


body.dark-mode strong {
    color: #fbbf24 !important; 
}