/* Custom styles for Xatreamhubaitech */

/* Logo sizing - Responsive */
.navbar__logo img,
.logo img,
footer .logo img {
    max-width: 45% !important;
    /* Mobile Default */
}

@media (min-width: 992px) {

    .navbar__logo img,
    .logo img,
    footer .logo img {
        max-width: 65% !important;
        /* Desktop View */
    }
}

.offcanvas-menu__header .logo img {
    max-width: 35% !important;
}

/* Portfolio Header Stats */
.header-stats .stat-item h4 {
    color: var(--primary-color, #ff6b00);
    font-weight: 700;
}

.header-stats .stat-item p {
    font-size: 14px;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Fix for navbar menu button wrapping on mobile */
.primary-navbar .navbar {
    flex-wrap: nowrap !important;
    gap: 15px !important;
    justify-content: space-between !important;
    align-items: center !important;
}

@media (min-width: 992px) {
    .primary-navbar .navbar {
        gap: 60px !important;
    }
}

/* Ensure navbar options are visible and aligned */
.navbar__options {
    display: flex !important;
    align-items: center !important;
    min-width: fit-content;
}

/* Ensure logo doesn't push the button out of view */
.navbar__logo {
    display: flex;
    align-items: center;
    max-width: 60%; /* Allow logo more room but limit it */
}

/* Portfolio Hover Effects - Premium HUD Style */
.portfolio-m__single {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 107, 0, 0.1);
    transition: border-color 0.4s ease;
}

.portfolio-m__single:hover {
    border-color: rgba(255, 107, 0, 0.5);
}

.portfolio-m__single .thumb {
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-m__single:hover .thumb {
    transform: scale(1.08);
}

.portfolio-m__single .thumb img {
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.portfolio-m__single:hover .thumb img {
    filter: grayscale(0%);
}

.portfolio-m__single .content {
    position: absolute !important;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px !important;
    background: linear-gradient(0deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.7) 50%, 
        transparent 100%) !important;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    z-index: 2;
}

.portfolio-m__single .project-overview {
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    line-height: 1.6;
}

.portfolio-m__single:hover .project-overview {
    max-height: 150px;
    opacity: 1;
    transform: translateY(0);
}

.portfolio-m__single .light-title-lg {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 700;
}

.portfolio-m__single .light-title-lg a {
    color: #fff;
    transition: color 0.3s ease;
}

.portfolio-m__single:hover .light-title-lg a {
    color: var(--primary-color, #ff6b00);
}

/* Force hide old arrow container */
.portfolio-m__single .tr {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-m__single .content {
        padding: 20px !important;
    }
    .portfolio-m__single .project-overview {
        font-size: 13px;
        max-height: none;
        opacity: 1;
        transform: none;
        margin-top: 8px;
    }
    .portfolio-m__single .light-title-lg {
        font-size: 18px;
    }
}

/* Contact Us - Ready to Get Started Section Fix */
.join__content h2 {
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
}

@media (max-width: 576px) {
    .join__content {
        padding: 40px 20px !important;
    }
    .join__content p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    .join__content .cta-buttons {
        gap: 15px !important;
    }
    .join__content .btn {
        width: 100%;
        padding: 15px 25px !important;
        font-size: 1rem !important;
    }
}