:root {
    --bg-color: #ffffff;
    --text-color: #333;
    --header-bg: #ffffff;
    --footer-color: #666;
    --link-color: #3498db;
    --toggle-bg: #333;
    --toggle-color: #fff;
}

.dark-mode {
    --bg-color: #121212;
    --text-color: #eaeaea;
    --header-bg: #121212;
    --footer-color: #aaa;
    --link-color: #48dbfb;
    --toggle-bg: #feca57;
    --toggle-color: #121212;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background: var(--header-bg);
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--toggle-bg);
    color: var(--toggle-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

main {
    max-width: 800px;
    margin: auto;
}

section {
    margin-bottom: 2rem;
}

h1,
h2 {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    text-decoration: underline;
}

h1,
h2 {
    text-decoration: none;
    animation: colorChange 10s ease-in-out infinite;
}

@keyframes colorChange {
    0% { color: #ff6b6b; }
    5% { color: #ee5a24; }
    10% { color: #ff9f43; }
    15% { color: #feca57; }
    20% { color: #f9ca24; }
    25% { color: #badc58; }
    30% { color: #6ab04c; }
    35% { color: #00b894; }
    40% { color: #1abc9c; }
    45% { color: #00cec9; }
    50% { color: #48dbfb; }
    55% { color: #54a0ff; }
    60% { color: #3498db; }
    65% { color: #5f27cd; }
    70% { color: #9b59b6; }
    75% { color: #a55eea; }
    80% { color: #e056fd; }
    85% { color: #fd79a8; }
    90% { color: #e84393; }
    95% { color: #ff4757; }
    100% { color: #ff6b6b; }
}

ul {
    padding-left: 20px;
    list-style: none;
}

#contact li {
    display: flex;
    margin-bottom: 0.75rem;
}

#contact li::before {
    display: none;
}

.contact-label {
    min-width: 80px;
    margin-right: 1rem;
    font-weight: 500;
}

#contact li a {
    min-width: 0;
    word-break: break-all;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: var(--footer-color);
    font-size: 14px;
    transition: color 0.3s ease;
}