/* =========================
   Reset and Base Styles
   ========================= */

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

/* Base Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f9fc; /* Light neutral background for a blog */
    color: #333333; /* Soft dark gray for readability */
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

/* Link Styles */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6f61; /* Coral accent for blog vibrancy */
}

/* Container Utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* =========================
   Navbar Styles
   ========================= */

/* Navbar Container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo Styles */
.logo a.navbar-brand {
    font-weight: 600;
    color: #333333;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.logo a.navbar-brand:hover {
    color: #ff6f61;
}

.logo img {
    height: 45px; /* Slightly smaller for a blog feel */
    margin-right: 10px;
    vertical-align: middle;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Links Wrapper */
.nav-links {
    display: flex;
    align-items: center;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.menu li a {
    font-size: 1rem;
    color: #333333;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu li a:hover {
    background-color: #ff6f61;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .menu {
        flex-direction: column;
        gap: 1.5rem;
    }

    .menu li a {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }
}

/* =========================
   Footer Styles
   ========================= */

footer {
    background-color: #333333;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    margin-top: 40px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer p:hover {
    opacity: 1;
}

.social-media {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
}

.social-link {
    color: #ffffff;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: #ff6f61;
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #ff6f61;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    bottom: 20px;
}

#back-to-top:hover {
    transform: scale(1.1);
    background-color: #e65b50;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0;
    }

    .social-media {
        gap: 0.8rem;
    }

    .social-link {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}