/* ==========================================================================
   SDC Group / Sobkichu.org - Custom Modern Enhancements
   ========================================================================== */

:root {
    --sdc-primary: #f4623a;
    --sdc-primary-dark: #d94b23;
    --sdc-primary-light: #ff7a54;
    --sdc-dark: #1e242b;
    --sdc-dark-rgb: 30, 36, 43;
    --sdc-slate: #2c3e50;
    --sdc-light-bg: #f8fafc;
    --sdc-card-border: rgba(0, 0, 0, 0.08);
    --sdc-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --sdc-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --sdc-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 1. Navbar Glassmorphism */
#mainNav {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#mainNav.navbar-shrink {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

#mainNav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: #fff;
    transition: color 0.3s;
}

#mainNav.navbar-shrink .navbar-brand {
    color: var(--sdc-dark) !important;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text-main {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.brand-text-sub {
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.75;
}

#mainNav .nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.25s ease;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background-color: var(--sdc-primary);
    transition: transform 0.25s ease;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* 2. Hero Enhancements */
header.masthead {
    position: relative;
    background: linear-gradient(to bottom, rgba(20, 24, 30, 0.75) 0%, rgba(20, 24, 30, 0.85) 100%), url('../assets/img/bg-masthead.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-bricks {
    background: linear-gradient(135deg, #2b303a 0%, #1a1e24 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-bricks:hover {
    background: linear-gradient(135deg, #373e4b 0%, #222730 100%);
    color: #ff9d6c;
    border-color: #ff9d6c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-hampo {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-hampo:hover {
    background: linear-gradient(135deg, #25334a 0%, #172033 100%);
    color: #38bdf8;
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.btn-explore {
    padding: 0.9rem 2rem;
    border-radius: 50rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(244, 98, 58, 0.4);
    transition: all 0.3s ease;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(244, 98, 58, 0.5);
}

/* 3. Section Badges & Dividers */
.section-badge {
    display: inline-block;
    background: rgba(244, 98, 58, 0.1);
    color: var(--sdc-primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50rem;
    margin-bottom: 0.75rem;
}

.section-badge.badge-light {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 4. Stats / Highlights Strip */
.stats-strip {
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.03);
}

.stat-card {
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: transform 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--sdc-primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 5. Service Cards Upgrade */
.service-box {
    background: #ffffff;
    padding: 2.5rem 1.8rem;
    border-radius: 1rem;
    border: 1px solid var(--sdc-card-border);
    box-shadow: var(--sdc-shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--sdc-shadow-md);
    border-color: rgba(244, 98, 58, 0.3);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    background: rgba(244, 98, 58, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon-wrapper {
    background: var(--sdc-primary);
    color: #fff !important;
}

.service-box:hover .service-icon-wrapper i {
    color: #fff !important;
}

/* 6. Portfolio Category Filter & Cards */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.portfolio-filter-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.portfolio-filter-btn * {
    pointer-events: none;
}

.portfolio-filter-btn:hover {
    background: #f1f5f9;
    color: var(--sdc-primary);
    border-color: #cbd5e1;
}

.portfolio-filter-btn.active {
    background: var(--sdc-primary);
    color: #fff;
    border-color: var(--sdc-primary);
    box-shadow: 0 4px 12px rgba(244, 98, 58, 0.35);
}

.portfolio-item {
    transition: all 0.3s ease;
    overflow: hidden;
}

.portfolio-item.filtered-out {
    display: none !important;
}

.portfolio-card {
    position: relative;
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--sdc-shadow-sm);
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 24, 30, 0.9) 0%, rgba(20, 24, 30, 0.3) 60%, rgba(20, 24, 30, 0) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-cat-badge {
    display: inline-block;
    background: var(--sdc-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
    align-self: flex-start;
}

.portfolio-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

/* 7. Call To Action Banner */
.cta-banner {
    background: linear-gradient(135deg, #1e242b 0%, #111418 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 98, 58, 0.2) 0%, rgba(244, 98, 58, 0) 70%);
    pointer-events: none;
}

/* 8. Contact Section & Info Cards */
.contact-info-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--sdc-card-border);
    box-shadow: var(--sdc-shadow-sm);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sdc-shadow-md);
    border-color: rgba(244, 98, 58, 0.3);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(244, 98, 58, 0.1);
    color: var(--sdc-primary);
    font-size: 1.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.contact-form-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--sdc-card-border);
    box-shadow: var(--sdc-shadow-md);
}

/* 9. Floating WhatsApp & Quick Call Widget */
.floating-actions-bar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.12);
    color: #fff;
}

.floating-whatsapp {
    background: #25d366;
}

.floating-whatsapp:hover {
    background: #20ba59;
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.5);
}

.floating-call {
    background: var(--sdc-primary);
}

.floating-call:hover {
    background: var(--sdc-primary-dark);
    box-shadow: 0 8px 26px rgba(244, 98, 58, 0.5);
}

.floating-tooltip {
    position: absolute;
    right: 68px;
    background: rgba(30, 36, 43, 0.95);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(8px);
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* 10. Footer Upgrades */
footer.modern-footer {
    background: #111418;
    color: #94a3b8;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--sdc-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .floating-actions-bar {
        bottom: 18px;
        right: 18px;
    }
    .contact-form-container {
        padding: 1.5rem;
    }
    .stat-number {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Modern Built-in Lightbox Gallery Styles (SDC Gallery)
   ========================================================================== */
.sdc-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
    user-select: none;
}

.sdc-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sdc-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sdc-lightbox-container {
    position: relative;
    z-index: 1;
    width: 94vw;
    max-width: 1100px;
    height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sdc-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    max-height: 88vh;
}

.sdc-lightbox-image-wrap {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.sdc-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.sdc-lightbox-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sdc-lightbox-caption-bar {
    width: 100%;
    max-width: 850px;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50rem;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sdc-lightbox-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.sdc-lightbox-badge {
    background: var(--sdc-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 50rem;
    white-space: nowrap;
}

.sdc-lightbox-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sdc-lightbox-counter {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    white-space: nowrap;
}

/* Lightbox Navigation Buttons */
.sdc-lightbox-btn {
    position: fixed;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
    z-index: 10005;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.sdc-lightbox-btn:hover {
    background: var(--sdc-primary);
    border-color: var(--sdc-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(244, 98, 58, 0.5);
}

.sdc-lightbox-close {
    top: 20px;
    right: 25px;
    width: 48px;
    height: 48px;
    font-size: 1.85rem;
    line-height: 1;
}

.sdc-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
}

.sdc-lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.sdc-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
}

.sdc-lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .sdc-lightbox-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .sdc-lightbox-prev {
        left: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    .sdc-lightbox-next {
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    .sdc-lightbox-caption-bar {
        border-radius: 12px;
        padding: 0.6rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .sdc-lightbox-title {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Enterprise Web Applications Showcase (Bricks & HaMPo)
   ========================================================================== */
.webapp-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.25rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.webapp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sdc-primary), #fb923c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.webapp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(244, 98, 58, 0.35);
}

.webapp-card:hover::before {
    opacity: 1;
}

.webapp-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.webapp-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.webapp-feature-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.webapp-card:hover .webapp-feature-item {
    background: #f1f5f9;
}

.webapp-domain-badge {
    font-size: 0.82rem;
    color: #64748b;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    font-family: var(--bs-font-monospace);
}

@media (max-width: 768px) {
    .webapp-card {
        padding: 1.5rem;
    }
}

