/* General Styles */

body {
    font-family: 'Josefin Sans', sans-serif;
    color: #111;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: #999;
}


/* Header & Navbar */

.site-header {
    background-color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Container Normalization */
.container {
    max-width: 1200px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.navbar-brand {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.navbar-brand img {
    height: 80px; /* Standardize height */
    width: auto;
}

.navbar-nav .nav-item:last-child .nav-link {
    padding-right: 0 !important;
}

.navbar {
    margin-top: 0px;
}

.navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    padding: 0 15px !important;
}

.navbar-nav .nav-link.active {
    color: #111;
}

.navbar-nav .nav-link:hover {
    color: #999;
}


/* Mobile Menu Modernization */

.offcanvas {
    background-color: #fff;
    width: 85% !important;
    max-width: 380px !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.offcanvas-header {
    padding: 20px 25px;
}

.offcanvas-body {
    padding: 30px 25px;
}

.offcanvas-body .navbar-nav {
    gap: 0;
}

.offcanvas-body .nav-link {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0; /* For animation */
    transform: translateY(20px); /* For animation */
}

/* Add an icon or arrow for premium feel */
.offcanvas-body .nav-link::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    color: #ccc;
    transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover::after,
.offcanvas-body .nav-link.active::after {
    transform: translateX(5px);
    color: #cc0000;
}

.offcanvas-body .nav-link.active {
    color: #cc0000;
}

/* Staggered Animation for Menu Items when Offcanvas opens */
.offcanvas.show .nav-link {
    opacity: 1;
    transform: translateY(0);
}

.offcanvas.show .nav-item:nth-child(1) .nav-link { transition: all 0.3s ease 0.1s; }
.offcanvas.show .nav-item:nth-child(2) .nav-link { transition: all 0.3s ease 0.2s; }
.offcanvas.show .nav-item:nth-child(3) .nav-link { transition: all 0.3s ease 0.3s; }
.offcanvas.show .nav-item:nth-child(4) .nav-link { transition: all 0.3s ease 0.4s; }

.offcanvas-footer {
    opacity: 0;
    transition: all 0.5s ease 0.5s;
}

.offcanvas.show .offcanvas-footer {
    opacity: 1;
}

.mobile-contact-info p {
    font-size: 14px;
    color: #444;
}

.mobile-contact-info i {
    width: 25px;
    color: #cc0000;
}

.mobile-social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.mobile-social-links a:hover {
    color: #cc0000 !important;
    transform: translateY(-3px);
}


/* Main Content */

.main-content {
    padding-bottom: 60px;
}

.page-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    display: none;
    /* Hidden in the original design usually, but kept in markup just in case */
}


/* Filters */

.portfolio-filters {
    margin-bottom: 20px;
    text-align: left;
}

.portfolio-filters .list-inline-item {
    margin-right: 15px;
    margin-bottom: 10px;
}

.portfolio-filters a {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-filters a.active,
.portfolio-filters a:hover {
    color: #111;
}


/* Portfolio Grid */

.portfolio-item {
    margin-bottom: 20px;
}

.portfolio-box {
    position: relative;
}

.portfolio-img {
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.portfolio-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.portfolio-box:hover .portfolio-img img {
    transform: scale(1.05);
}

/* Project Detail Specific Styles */
.project-detail-container {
    max-width: 1140px;
    margin: 0 auto;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.project-info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.project-info-list li span.label {
    flex: 0 0 140px;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.project-info-list li span.value {
    flex: 1;
    color: #666;
    font-size: 14px;
}


.portfolio-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.portfolio-info h3 a {
    color: #111;
}

.portfolio-info .terms {
    font-size: 13px;
    color: #999;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-info .terms a {
    color: #999;
}

.portfolio-info .terms a:hover {
    color: #111;
}


/* Footer */

.site-footer {
    background-color: #2c2c2c !important;
    color: white !important;
    padding: 60px 0 20px 0 !important;
}

.footer-logo {
    height: 120px !important;
    width: auto;
    margin-bottom: 25px;
}

.social-links .list-inline-item {
    margin-left: 15px;
}

.social-links a {
    font-size: 16px;
    color: #111;
}

.social-links a:hover {
    color: #999;
}


/* Responsive Adjustments */

@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 60px;
    }
}

/* Project Info Section */
.project-info-section {
    margin-top: 30px;
    padding-top: 20px;
}

.project-info-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #cc0000;
    text-transform: none;
}

.project-info-table {
    width: 100%;
    margin-bottom: 30px;
}

.project-info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.project-info-row:last-child {
    border-bottom: none;
}

.project-info-label {
    flex: 0 0 120px;
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.project-info-value {
    flex: 1;
    font-size: 14px;
    color: #555;
    padding-left: 20px;
}