@font-face {
    font-family: 'Laguna';
    src: url('../fonts/laguna.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #ffffff;
    --card-bg: #f5f5f5;
    --text-main: #111111;
    --text-muted: #666666;
    --accent-color: #000000;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

.site-width { max-width: 1280px; }

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Laguna';
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    background-image: url('https://dotwork.qodeinteractive.com/wp-content/uploads/2018/06/background.gif')
}

/* Navbar Styling */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
    color: var(--text-main) !important;
    z-index: 1051;
    /* Keeps logo visible over full-screen mobile menu */
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main) !important;
}

/* Full-Screen Mobile Navigation Overlay (< 992px) */
/* Full-Screen Mobile Navigation Overlay (< 992px) */
@media (max-width: 991.98px) {

    body:has(.navbar-collapse.show),
    body:has(.navbar-collapse.collapsing) {
        overflow: hidden;
    }

    .navbar-toggler {
        z-index: 1051;
        /* Above the overlay menu */
        border: none !important;
        box-shadow: none !important;
        padding: 0;
    }

    /* Hamburger & X Icon Toggle */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2817, 17, 17, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        transition: transform 0.3s ease, background-image 0.2s ease;
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2817, 17, 17, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e") !important;
        transform: rotate(90deg);
    }

    /* 
       Full-Screen Overlay Animation 
       Overrides Bootstrap's default height collapse with a smooth Fade + Scale 
    */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh !important;
        /* Forces fixed full-screen height instantly */
        /*background-color: var(--bg-color);*/
        background-color: rgba(250, 250, 250, 0.85);
        backdrop-filter: blur(50px);
        z-index: 1050;
        display: flex !important;
        flex-direction: column;
        justify-content: center !important;
        align-items: center;

        /* Hidden initial state */
        opacity: 0;
        visibility: hidden;
        transform: scale(0.96);

        /* Smooth cubic-bezier transition for opacity & scale */
        transition: opacity 0.1s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0.1s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.1s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Neutralizes Bootstrap's height calculation state during toggling */
    .navbar-collapse.collapsing {
        height: 100vh !important;
        transition: opacity 0.1s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0.1s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.1s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Visible active state */
    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .navbar-nav {
        width: 100%;
        text-align: center;
        padding: 0;
        background-color: rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(10px);
        height: calc(100vh - 90px);
        position: fixed;
        top: 90px;
        display: flex;
        justify-content: center;
    }

    .nav-link {
        font-size: clamp(2.25rem, 7vw, 3.5rem);
        font-weight: 100;
        margin: 1.25rem 0 !important;
        color: var(--text-main) !important;
        transition: opacity 0.2s ease, transform 0.2s ease;

    }

    .nav-link:hover {
        opacity: 0.5;
    }
}

/* Hero Section */
.hero-section {
    padding: 120px 0 60px 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-main);
}

/* Filter Controls */
.filter-container {
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-main);
    background-color: rgba(0, 0, 0, 0.15);
}

/* Portfolio Item / Card */
.portfolio-item {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.portfolio-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 125%;
    /* 4:5 Aspect Ratio */
    overflow: hidden;
}

.portfolio-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.06);
}

/* Overlay Meta Info (Image Hover) */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.portfolio-category {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Visible Details Below Card */
.portfolio-info-static {
    margin-top: 1rem;
}

.portfolio-info-static .title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.portfolio-info-static .category {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4rem 0 2rem 0;
    margin-top: 6rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-main);
}

/* Utility for JavaScript Filter Logic */
.portfolio-item.is-hidden {
    display: none !important;
}