@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;700;800&display=swap');

/* --- GLOBAL STYLES --- */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #38bdf8;
    --accent-hover: #0284c7;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    scroll-behavior: smooth; 
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* --- SNIPER OVERLAY & RETICLE ANIMATIONS --- */
#loading-overlay {
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.animate-spin-reverse {
    animation: spinReverse 2s linear infinite;
}

/* --- PORTFOLIO & GIS GALLERY STYLES --- */
.portfolio-item {
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-btn {
    user-select: none;
}

#image-comparison-slider #after-img {
    pointer-events: none;
    user-select: none;
}

/* GIS Portfolio Cards Grid */
.gis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.gis-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(56, 189, 248, 0.4);
}

.gis-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.gis-card img:hover {
    opacity: 0.9;
}

.gis-card-body {
    padding: 1.25rem;
}

.gis-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.gis-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gis-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Lightbox Modal */

/* --- LIGHTBOX OVERLAY FIX --- */
.gis-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important; /* Maximum possible browser layer */
    background: rgba(0, 0, 0, 0.95) !important; /* Solid dark backdrop */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gis-lightbox.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.gis-lightbox-img {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2147483648 !important;
}


.gis-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* --- MAP CONTAINER --- */
#map { 
    filter: blur(5px);
    pointer-events: none; /* Stops users from clicking, zooming, or dragging */
    user-select: none;    /* Prevents selecting map text */
    opacity: 0.7;
    height: 450px; 
    width: 100%; 
    z-index: 0; 
    border-radius: 1rem; 
}

/* --- HERO & GLASS EFFECT UTILITIES --- */
.hero-gradient { 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); 
}

.glass { 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px); 
}

.glass-panel {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- MOBILE NAVIGATION TRANSITIONS --- */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    max-height: calc(100vh - 5rem); /* Prevents the menu from exceeding screen height */
    overflow-y: auto;              /* Enables smooth vertical scrolling */
    -webkit-overflow-scrolling: touch; 
}

#mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

#menu-backdrop {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(8px);
}

#menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* --- CUSTOM SCROLLBARS --- */
#review-grid::-webkit-scrollbar {
    height: 4px;
}

#review-grid::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 10px;
}

#review-grid::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.invisible-load { 
    display: none !important; 
}

/* --- STAR RATING STYLES --- */
.star-rating {
    display: flex;
    gap: 6px;
    cursor: pointer;
}
/* Full-Screen Overlay Mode */
body.ghaggar-fullscreen-active {
    overflow: hidden !important;
}

body.ghaggar-fullscreen-active > *:not(#portfolio) {
    display: none !important;
}

#portfolio.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    background-color: #020617 !important; /* Matches slate-950 */
    padding: 2rem !important;
    box-sizing: border-box;
}


.star {
    font-size: 24px;
    color: #334155;
    transition: color 0.2s ease;
}

.star.active {
    color: #F59E0B;
}

/* --- MEDIA QUERIES & HOVER GLOWS --- */
@media (min-width: 768px) {
    #review-grid {
        scrollbar-width: thin;
        scrollbar-color: #2563eb #020617;
    }
}

#review-grid > div:hover {
    box-shadow: 0 0 30px -10px currentColor;
    z-index: 10;
}
