/* Global Overrides */

/* Flag Icons */
.flag-icon {
    height: 14px;
    width: auto;
    display: inline-block !important;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -2px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Evidence Categories */
.evidence-category {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* Expert Grid Headers */
.expert-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.expert-icon {
    margin-bottom: 0 !important;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Logo Stacked */
.logo {
    line-height: 1.1 !important;
    display: inline-block;
    text-align: center;
}

/* Section Spacing Standardization */
.section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Hero Tweak */
.page-hero {
    padding-top: 12vh !important;
    min-height: 80vh;
}

@media (max-width: 768px) {
    .page-hero {
        padding-top: 15vh !important;
    }

    .section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

#contact {
    padding-top: 0 !important;
}

/* Force Mobile Menu on Tablet/Laptop */
@media (max-width: 1280px) {
    .desktop-only {
        display: none !important;
    }

    .hamburger {
        display: block !important;
    }
}

/* Ensure Hamburger Visibility */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: #ffffff !important;
    /* Force White */
    transition: all 0.3s;
}

/* Mobile Menu Failsafe Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.mobile-btn {
    margin-top: 1rem;
}

/* Anchor Scroll Offset */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

/* Force Contact Center & Big Text */
.contact-intro {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 900px;
    font-size: 2.5rem !important;
    /* Doubled size */
    line-height: 1.2 !important;
    display: block;
}
/* Fix White Lines between Sections */
html, body {
    background-color: #050505 !important; /* Force Black Background */
}
.section {
    border: none !important;
    outline: none !important;
}

/* Portfolio Refinements */
.work-grid {
    margin-top: 5rem !important;
}

.work-image {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    filter: grayscale(100%);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s ease !important;
}

.work-item:hover .work-image {
    filter: grayscale(0%);
    transform: scale(1.08) !important;
}

.work-image-wrapper {
    background: #000; /* Prevent white flash */
}

.work-info {
    border-left: 1px solid #fff !important; /* Ensure visibility on dark bg */
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}

.work-title {
    font-size: 1.75rem !important;
    letter-spacing: -0.02em;
}

.work-meta {
    opacity: 0.6;
    font-size: 0.8rem !important;
}

/* Stagger fix for mobile */
@media (max-width: 768px) {
    .work-grid {
        gap: 3rem !important;
    }
    .work-item:nth-child(even) {
        margin-top: 0 !important;
    }
}

/* Portfolio Modal */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.portfolio-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    padding: 4rem;
    scrollbar-width: thin;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .modal-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.modal-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.modal-section {
    margin-bottom: 3rem;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.impact-stat {
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item-wrapper:first-child {
    grid-column: span 2;
}

.gallery-item {
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: contain !important;
    filter: grayscale(100%);
    transition: filter 0.8s ease, transform 1.2s ease;
}

.gallery-item-wrapper:hover .gallery-item {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pt-6 {
    padding-top: 1.5rem;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* Lightbox for 'Openout' View */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-item-wrapper {
    position: relative;
    cursor: zoom-in;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gallery-item-wrapper:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Center two-line navigation links */
.nav-link, .mobile-link {
    text-align: center;
    line-height: 1.2;
    display: inline-block;
}

/* Floating Contact Buttons Override */
.floating-contact {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-btn.btn-metallic {
    width: 60px;
    height: 60px;
    min-width: unset;
    padding: 0;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, filter 0.3s ease;
    text-decoration: none;
}

.floating-btn.btn-metallic:hover {
    transform: scale(1.1) translateY(-2px);
    filter: brightness(1.2);
}

.floating-btn i {
    color: #000;
    margin: 0;
    line-height: 1;
}

@media (max-width: 768px) {
    .floating-contact {
        right: 1.5rem;
        gap: 0.8rem;
    }
    .floating-btn.btn-metallic {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}


