*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

:root {
    --bg-color: #ffffff;
    --text-color: #d5d5d5;
    --muted-color: rgba(80, 80, 80, 0.7);
    --footer-color: rgba(20, 20, 20, 0.7);
    --footer-color-dark-bg: rgba(255, 255, 255, 0.72);
    --accent-color: darkgoldenrod;
    --secondary-accent: darkseagreen;
    --toggle-border: rgba(20, 20, 20, 0.18);
    --toggle-bg: rgba(255, 255, 255, 0.7);
}

body.dark-mode {
    --bg-color: #111111;
    --text-color: #f5f5f5;
    --muted-color: rgba(255, 255, 255, 0.55);
    --footer-color: rgba(255, 255, 255, 0.72);
    --footer-color-dark-bg: rgba(255, 255, 255, 0.72);
    --accent-color: darkgoldenrod;
    --secondary-accent: #a7d3b0;
    --toggle-border: rgba(255, 255, 255, 0.18);
    --toggle-bg: rgba(20, 20, 20, 0.72);
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer {
    width: 100%;
    padding: 0.9rem 1.2rem 1.2rem;
    margin-top: auto;
    position: relative;
    z-index: 5;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-instagram svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.footer-instagram:hover svg {
    fill: url(#instagram-gradient);
}


.footer-nav {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-nav a,
.footer-copy {
    font-size: 0.72rem;
    line-height: 1;
    color: var(--footer-color-dark-bg);
}

.footer-nav a {
    transition: opacity 0.3s ease;
}

.site-footer.light .footer-nav a:hover {
    color: darkgoldenrod;
}

.footer-copy {
    margin: 0;
}

.site-footer.light .footer-instagram,
.site-footer.light .footer-nav a,
.site-footer.light .footer-copy {
    color: var(--footer-color);
}



@media (max-width: 768px) {
    .site-footer {
        padding: 0.8rem 1rem 1rem;
    }

    .site-footer-inner {
        gap: 0.7rem;
        align-items: flex-start;
    }

    
    .footer-nav a,
    .footer-copy {
        font-size: 0.65rem;
        line-height: 2;
    }
}

.portraits-page,
.travel-page,
.gallery-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portraits-menu,
.travel-menu,
.gallery-menu {
    flex: 1;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    border: 1px solid var(--toggle-border);
    background: var(--toggle-bg);
    color: var(--text-color);
    font: inherit;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.theme-toggle:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 0.8rem;
        font-size: 0.85rem;
        padding: 0.42rem 0.65rem;
    }
}