:root {
    --primary-color: #0069ff;
    --dark-bg: #1a1a1a;
}

body {
    scroll-behavior: smooth;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 2100;
    min-height: 66px; 
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Waterfall Gallery */
.waterfall-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.waterfall-item {
    padding: 10px;
    width: 33.333%;
}

.waterfall-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .waterfall-item {
        width: 50%;
    }
}

@media (max-width: 600px) {
    .waterfall-item {
        width: 100%;
    }
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/modern-arbetsplats-webbdesign-kungsbacka.webp') no-repeat center center;
    background-size: cover;
    min-height: 80vh;
    color: white;
}

/* Portfolio Scroll Container */
.portfolio-scroll-container {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f8f9fa;
}

.portfolio-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.portfolio-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.portfolio-scroll-container img {
    transition: transform 0.3s ease;
}

.portfolio-scroll-container img:hover {
    transform: scale(1.02);
}

/* Sticky Footer Fix */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#blog-container, 
#main-content, 
main,
.container.my-5 {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.f-skatt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.f-skatt-badge i {
    flex-shrink: 0;
    font-size: 1.25rem;
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 360px);
        height: 100vh;
        background: #fff;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 2200;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: stretch;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .mobile-menu-close {
        border: none;
        background: transparent;
        color: #1a1a1a;
        font-size: 1.2rem;
        line-height: 1;
    }

    .navbar-collapse .navbar-nav {
        align-items: flex-start !important;
        padding: 0 1.5rem 1.5rem;
        gap: 0.25rem;
    }

    .navbar-collapse .nav-link {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.7rem 0 !important;
    }

    .navbar-collapse .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 0.75rem;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .f-skatt-badge {
        font-size: 0.95rem;
        padding: 0.65rem 0.8rem !important;
        border-radius: 0.6rem !important;
    }
}

@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #dee2e6 !important;
    }
}
