@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --accent-hover: #33aaff;
    --accent-dark: #005bb5;
    --highlight: #ea580c;

    /* Deep Navy / Slate */
    --site-bg: #020617;
    --site-bg-alt: #0a1128;

    /* Slate Structure */
    --site-structure: #1e293b;
    --site-surface: #0f172a;
    --site-border: rgba(51, 65, 85, 0.5);

    /* Accent: Electric Cyan / Ocean Blue */
    --site-accent: #06b6d4;
    --site-accent-alt: #0284c7;
    --site-accent-soft: rgba(6, 182, 212, 0.12);
    --site-accent-glow: rgba(6, 182, 212, 0.45);
    --accent-main: var(--site-accent);

    /* Text */
    --site-text: #f8fafc;
    --site-muted: #94a3b8;
}

html,
body {
    background: linear-gradient(180deg, var(--site-bg) 0%, var(--site-bg-alt) 100%);
    color: var(--site-text);
    min-height: 100vh;
}


body {
    font-family: 'Outfit', sans-serif;
}

.tech-label {
    font-family: 'JetBrains Mono', monospace;
}


.page-content {
    display: none;
    contain: content;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.group:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.hide-scroll {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

/* Leaflet Map Dark Theme Overrides */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background-color: #0c132b !important;
    color: white !important;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.leaflet-container a.leaflet-popup-close-button {
    color: #9ca3af !important;
    padding: 4px !important;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.leaflet-bar a {
    background-color: #0c132b !important;
    color: #d1d5db !important;
    border-color: #1f2937 !important;
}

.leaflet-bar a:hover {
    color: #f59e0b !important;
    background-color: #151c33 !important;
}

/* --- New Feature Section Styles --- */
.new-feature-section {
    padding: 4rem 2rem;
    background-color: #151c33;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.new-feature-section h2 {
    color: #2dd4bf;
    /* Matches the teal-400 theme */
    margin-bottom: 1rem;

}

/* --- Map Marker Styles --- */
.custom-number-marker {
    background-color: #2dd4bf;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.custom-number-marker.current-project {
    background-color: var(--highlight);
    border: 2px solid white;
    animation: pulse-current 1.5s infinite;
}

@keyframes pulse-current {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(234, 88, 12, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

.contact-marker-pulse {
    background-color: var(--accent-main);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse-contact 1.5s infinite;
}

@keyframes pulse-contact {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 150, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 150, 255, 0);
    }
}

/* --- ANIMATED GLOWING NAV UNDERLINE --- */
.nav-link,
.group>button.flex.items-center.gap-1 {
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.nav-link::after,
.group>button.flex.items-center.gap-1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-main);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 12px 2px var(--site-accent-glow);
    border-radius: 4px;
}

.nav-link:hover::after,
.group:hover>button.flex.items-center.gap-1::after {
    width: 100%;
}

.nav-link:hover,
.group:hover>button.flex.items-center.gap-1 {
    color: var(--accent-main) !important;
}

/* Map old dark gray to Deep Navy */
[class*="bg-[#242424]"] {
    background-color: var(--site-structure) !important;
}

[class*="bg-[#242424]/95"] {
    background-color: rgba(30, 41, 59, 0.95) !important;
}

[class*="bg-[#242424]/80"] {
    background-color: rgba(30, 41, 59, 0.80) !important;
}

[class*="bg-[#242424]/60"] {
    background-color: rgba(30, 41, 59, 0.60) !important;
}

[class*="bg-[#242424]/50"] {
    background-color: rgba(30, 41, 59, 0.50) !important;
}

[class*="bg-[#242424]/40"] {
    background-color: rgba(30, 41, 59, 0.40) !important;
}

[class*="bg-[#242424]/30"] {
    background-color: rgba(30, 41, 59, 0.30) !important;
}

[class*="bg-[#242424]/20"] {
    background-color: rgba(30, 41, 59, 0.20) !important;
}

[class*="bg-[#1f2937]"] {
    background-color: var(--site-surface) !important;
}

/* Map old safety orange to Electric Cyan */
[class*="bg-[#ff6b00]"] {
    background-color: var(--site-accent) !important;
    color: var(--site-bg) !important;
}

[class*="bg-[#ff6b00]/10"] {
    background-color: var(--site-accent-soft) !important;
    color: var(--site-accent) !important;
}

[class*="text-[#ff6b00]"],
.text-orange-400 {
    color: var(--site-accent) !important;
}

[class*="hover:text-[#ff6b00]"]:hover {
    color: var(--site-accent-alt) !important;
}

[class*="hover:bg-[#f59e0b]"]:hover {
    background-color: var(--site-accent-alt) !important;
}

/* Utility text overrides */
[class*="text-[#121212]/80"] {
    color: rgba(248, 250, 252, 0.92) !important;
}

[class*="bg-[#242424] text-[#121212]"] {
    color: var(--site-text) !important;
}

/* Borders & Glows */
[class*="border-gray-800"],
[class*="border-[#242424]"] {
    border-color: var(--site-border) !important;
}

[class*="border-[#ff6b00]"] {
    border-color: var(--site-accent) !important;
}

[class*="hover:border-[#ff6b00]"]:hover {
    border-color: var(--site-accent-alt) !important;
}

[class*="shadow-[0_0_30px_15px_rgba(251,146,60,0.3)]"] {
    box-shadow: 0 0 30px 15px var(--site-accent-soft) !important;
}

.bg-orange-400 {
    background-color: var(--site-accent) !important;
}


/* --- WHY CHOOSE US INTERACTIVE COMPONENT --- */
.why-trigger-card {
    border-left-width: 4px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-trigger-card.active-tab {
    border-color: var(--site-accent) !important;
    background-color: var(--site-accent-soft) !important;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.08);
}

.why-progress-bar-container {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: transparent;
}

.why-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--site-accent);
    box-shadow: 0 0 8px var(--site-accent-glow);
}

.hero-slide-bg {
    will-change: transform;
}

.modal-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.modal-wrapper.open .modal-backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* --- GALLERY B2B TELEMETRY LAYOUT --- */
.gallery-card {
    break-inside: avoid;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.95) 90%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- B2B RFQ SURVEY WIZARD --- */
.rfq-card-option {
    border: 2px solid var(--site-border);
    background-color: rgba(30, 41, 59, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rfq-card-option:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background-color: rgba(30, 41, 59, 0.4);
}

.rfq-card-option.selected {
    border-color: var(--site-accent) !important;
    background-color: var(--site-accent-soft) !important;
    box-shadow: 0 0 15px var(--site-accent-glow);
}

.rfq-step-slide {
    display: none;
}

.rfq-step-slide.active {
    display: block;
    animation: slideInRfq 0.4s ease-out;
}

@keyframes slideInRfq {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-toggle-btn {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-toggle-btn.active {
    color: var(--site-bg) !important;
}

/* Custom switch track background slider indicator */
.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    height: calc(100% - 4px);
    background-color: var(--site-accent);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
    border-radius: 9999px;
    z-index: 0;
}

/* --- B2B EQUIPMENT & VESSEL FLEET HUB --- */
.fleet-grid-card {
    border: 2px solid var(--site-border);
    background-color: rgba(30, 41, 59, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fleet-grid-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background-color: rgba(30, 41, 59, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px rgba(6, 182, 212, 0.15);
}

.fleet-grid-card.selected {
    border-color: var(--site-accent) !important;
    background-color: var(--site-accent-soft) !important;
    box-shadow: 0 0 15px var(--site-accent-glow);
}

.blueprint-inspector {
    background-color: #020617;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center;
    border: 2px solid var(--site-border);
    box-shadow: inset 0 0 40px rgba(2, 6, 23, 0.9);
}

.pulse-badge-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-badge-active::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    vertical-align: middle;
    animation: beaconPulse 1.5s infinite;
}

.pulse-badge-standby {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pulse-badge-standby::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #f59e0b;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes beaconPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.filter-tab-btn {
    border: 1px solid var(--site-border);
    background-color: rgba(30, 41, 59, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab-btn:hover {
    border-color: rgba(6, 182, 212, 0.4);
    color: #06b6d4;
}

.filter-tab-btn.active {
    background-color: var(--site-accent) !important;
    color: var(--site-bg) !important;
    border-color: var(--site-accent) !important;
    font-weight: bold;
    box-shadow: 0 0 10px var(--site-accent-glow);
}

/* --- NEWS SECTION --- */
.news-section-wrapper {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-section-title {
    color: var(--site-text);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

.news-section-title span {
    color: var(--site-accent);
}

.news-card {
    background-color: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -10px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    background-color: rgba(30, 41, 59, 0.4);
}

.news-date {
    color: var(--site-accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--site-accent-soft);
    border-radius: 9999px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.news-content p {
    color: var(--site-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-content p:last-child {
    margin-bottom: 0;
}

/* --- 3D RESOURCES CAROUSEL --- */
.carousel-container {
    perspective: 1200px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.resource-3d-card {
    flex: 0 0 auto;
    width: 340px;
    scroll-snap-align: center;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.resource-3d-card:hover {
    transform: rotateY(-4deg) rotateX(4deg) translateY(-8px) translateZ(20px);
    box-shadow: -15px 15px 40px rgba(6, 182, 212, 0.15);
    z-index: 10;
}

.carousel-nav-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--site-border);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-nav-btn:hover {
    background: var(--site-accent);
    color: #020617;
    box-shadow: 0 0 20px var(--site-accent-glow);
    border-color: var(--site-accent);
}

/* --- GET IN TOUCH OPERATIONS CONSOLE ADDITIONS --- */
.console-input {
    background-color: #020617 !important;
    border: 2px solid var(--site-border) !important;
    padding: 1.25rem !important;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem !important;
    color: white !important;
}

.console-input:focus {
    border-color: var(--site-accent) !important;
    box-shadow: 0 0 15px var(--site-accent-glow) !important;
}

/* Telemetry CRT Monitor Style */
.telemetry-preview-container {
    background-color: #020617;
    border: 2px solid var(--site-border);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.08);
}

.telemetry-preview-container::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(6, 182, 212, 0.02), rgba(6, 182, 212, 0.01), rgba(6, 182, 212, 0.02));
    z-index: 10;
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
}

.cursor-blink {
    border-left: 2px solid var(--site-accent);
    animation: cursorBlink 0.9s step-end infinite;
}

@keyframes cursorBlink {
    from, to { border-color: transparent }
    50% { border-color: var(--site-accent) }
}

/* B2B FAQ Accordions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.faq-content.open {
    max-height: 350px;
    opacity: 1;
}

.faq-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-arrow.rotated {
    transform: rotate(180deg);
}

/* Location tab transitions */
.loc-tab-btn {
    border-bottom: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.loc-tab-btn.active {
    border-bottom-color: var(--site-accent) !important;
    color: var(--site-accent) !important;
}

/* Grid sonar map scanning background effect */
.sonar-scan-panel {
    position: relative;
}

.sonar-scan-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(to bottom, rgba(6, 182, 212, 0.03) 0%, transparent 100%);
    animation: radarScan 4s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes radarScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

