:root {
    --primary-color: #ecd0c2;
    --secondary-color: #f7e9e0;
    --text-color: #333;
    --dark-text: #222;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --footer-bg: #333;
    --footer-text: #ffffff;

    /* Fontovi */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #a67f6f;
    --secondary-color: #3a2e2a;
    --text-color: #e0e0e0;
    --dark-text: #f0f0f0;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --footer-bg: #111111;
    --footer-text: #e0e0e0;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-text);
}

/* ===== HEADER/NAV STYLES ===== */
.navbar {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    max-width: 150px;
}

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    transition: color 0.3s;
    font-family: var(--body-font);
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Theme Toggle Styles */
.theme-switcher {
    display: flex;
    align-items: center;
}

.theme-checkbox {
    opacity: 0;
    position: absolute;
}

.theme-label {
    background-color: var(--secondary-color);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    height: 26px;
    width: 60px;
    transform: scale(1.1);
}

.theme-label .theme-ball {
    background-color: var(--bg-color);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 22px;
    width: 22px;
    transform: translateX(0px);
    transition: transform 0.2s linear;
}

.theme-checkbox:checked+.theme-label .theme-ball {
    transform: translateX(34px);
}

.sun-icon,
.moon-icon {
    font-size: 14px;
}

.sun-icon {
    color: #f39c12;
}

.moon-icon {
    color: #f1c40f;
}

/* ===== FOOTER STYLES ===== */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--footer-text);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-divider {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ===== UTILITY STYLES ===== */
.container {
    max-width: 1200px;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--dark-text);
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 8px;
    font-family: var(--body-font);
}

.btn-primary:hover {
    background-color: #e0b9a7;
    color: var(--dark-text);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-family: var(--body-font);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--dark-text);
}

/* ===== RESPONSIVE HEADER/FOOTER ===== */
@media (max-width: 768px) {
    .navbar-collapse {
        text-align: center;
    }

    .logo-img {
        height: 35px;
        max-width: 130px;
    }

    .theme-label {
        transform: scale(0.9);
    }

    .social-icons a {
        font-size: 1.25rem;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 30px;
        max-width: 110px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}