/* Global custom styles for Spider Contractors */

/* Add specific animations or style overrides here if Tailwind isn't enough */
.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #f27d26;
    /* brand color */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Floating Glassy Mobile Menu Backdrop Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6);
    /* navy tint */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Floating Glassy Mobile Menu Drawer Card (Centers itself in mobile views) - Ultra-Glassy, Clear Water-like styling */
.mobile-nav-drawer {
    position: fixed;
    top: 80px;
    left: 50%;
    width: 88vw;
    max-width: 360px;
    max-height: 82vh;
    background: rgba(255, 255, 255, 0.7);
    /* More glassy but still readable */
    backdrop-filter: blur(50px) saturate(200%);
    /* Strong blur and color saturation for water-glass look */
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    box-shadow:
        0 30px 60px rgba(10, 25, 47, 0.25),
        inset 0 0 16px rgba(255, 255, 255, 0.5),
        /* Inside water rim light */
        0 1px 1px rgba(255, 255, 255, 0.4);
    z-index: 200;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 32px;
    /* Smooth rounded corners */
    opacity: 0;
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    /* Crystal rim edge */
    transform: translateX(-50%) scale(0.85);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.2);
    /* Very soft transparent header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.close-drawer {
    background: rgba(10, 25, 47, 0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #0a192f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.close-drawer:hover {
    background: #f27d26;
    /* brand orange */
    color: white;
}

.mobile-links {
    list-style: none;
    padding: 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    /* Makes the links scrollable while keeping header/footer fixed */
}

.mobile-links a {
    color: #0a192f;
    /* Deep navy blue */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    padding: 14px 18px;
    border-radius: 16px;
    /* Rounded corners */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.35);
    /* Pure clear-water glossy overlay */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(10, 25, 47, 0.04), inset 0 0 8px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.mobile-links a:hover,
.mobile-links a.active {
    background: rgba(242, 125, 38, 0.2);
    /* Soft transparent brand color glow */
    color: #e06000;
    padding-left: 24px;
    border-color: rgba(242, 125, 38, 0.4);
    box-shadow: 0 4px 15px rgba(242, 125, 38, 0.15);
}

.drawer-footer {
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.15);
    text-align: center;
    color: #1a202c;
    font-size: 0.85rem;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
    backdrop-filter: blur(10px);
}

/* --- Premium Interactive Map Components --- */

/* Map CSS Theme Filters */
.map-theme-standard {
    filter: none;
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-theme-silver {
    filter: grayscale(1) contrast(1.1) brightness(0.98) saturate(0.7);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-theme-midnight {
    filter: invert(90%) hue-rotate(180deg) brightness(0.92) contrast(1.15);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulsing Radar Ring below the map marker pin */
@keyframes radar-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.radar-ring {
    animation: radar-pulse 2.2s infinite cubic-bezier(0.215, 0.610, 0.355, 1);
}

/* Floating custom marker bouncing animation */
@keyframes pin-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 12px 8px rgba(242, 125, 38, 0.35));
    }
}

.group:hover .pin-marker {
    animation: pin-bounce 1.6s infinite ease-in-out;
}

/* Glow effects for active theme buttons */
.theme-btn-active {
    background-color: #f27d26 !important;
    color: white !important;
    border-color: #f27d26 !important;
    box-shadow: 0 0 15px rgba(242, 125, 38, 0.4);
}

/* --- Vintage Circular Globe Components --- */

/* Vintage Sepia Map Filter */
.map-vintage-filter {
    filter: sepia(0.85) contrast(1.15) brightness(0.8) hue-rotate(-12deg) saturate(0.9);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .map-vintage-filter {
    filter: sepia(0.2) contrast(1.1) brightness(0.95) saturate(1.1);
}

/* Parchment/Grain Texture Overlay */
.parchment-overlay {
    background: radial-gradient(circle, rgba(245, 235, 215, 0.05) 0%, rgba(195, 175, 145, 0.15) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Reticle pulsing animations */
@keyframes reticle-pulse-outer {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }
}

.reticle-pulse-outer {
    animation: reticle-pulse-outer 3s infinite ease-in-out;
}

@keyframes reticle-ring-ping {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.reticle-ping {
    animation: reticle-ring-ping 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Glassy Navbar */
.glass-nav {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* Drum Ring Styles */
.drum-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.drum-scroller {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drum-item {
    position: absolute;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0a192f;
    transition: color 0.2s ease;
}

.drum-item.drum-on {
    color: #f27d26;
    font-size: 1.3rem;
}

/* Premium Crystal Clear Water Glass (No Blur) */
.clear-water-glass {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 20px 50px rgba(10, 25, 47, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}