/* Global Projects */
.acv-global-projects {
    background: #002E3E;
    position: relative;
    overflow: hidden;
}

/* Full-width map as background */
.acv-gp-map {
    position: relative;
    width: 100%;
    min-height: 1340px;
    background-size: 87% auto;
    background-repeat: no-repeat;
    background-position: 15em -7em;
    padding-top: 150px;
    transform: scale(1.05);
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s ease;
}

.acv-global-projects.is-in-view .acv-gp-map {
    transform: scale(1);
    opacity: 1;
}

/* Animated radar/scan effect overlay */
.acv-gp-radar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

/* Temporarily disable radar visuals/animation without removing markup */
.acv-gp-radar,
.acv-gp-radar-sweep,
.acv-gp-radar-ring {
    display: none;
    animation: none !important;
}

/* Radar sweep */
@keyframes radarSweep {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.acv-gp-radar-sweep {
    position: absolute;
    width: 1800px;
    height: 1800px;
    top: 46.5%;
    left: 53.4%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 330deg,
            rgba(0, 186, 198, 0.08) 345deg,
            rgba(0, 186, 198, 0.2) 355deg,
            rgba(0, 186, 198, 0.35) 360deg);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.acv-global-projects.is-in-view .acv-gp-radar-sweep {
    opacity: 1;
    animation: radarSweep 10s linear infinite;
    animation-delay: 0.5s;
}

/* Radar pulse rings */
.acv-gp-radar-ring {
    position: absolute;
    width: 1400px;
    height: 1400px;
    top: 46.5%;
    left: 53.4%;
    transform: translate(-50%, -50%) scale(0);
    border: 1px solid rgba(0, 186, 198, 0.3);
    border-radius: 50%;
    opacity: 0;
}

.acv-global-projects.is-in-view .acv-gp-radar-ring {
    animation: radarPulse 4s ease-out infinite;
}

.acv-global-projects.is-in-view .acv-gp-radar-ring:nth-child(2) {
    animation-delay: 1.3s;
}

.acv-global-projects.is-in-view .acv-gp-radar-ring:nth-child(3) {
    animation-delay: 2.6s;
}

/* Animated grid overlay */
.acv-gp-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 186, 198, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 186, 198, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.acv-global-projects.is-in-view .acv-gp-grid {
    opacity: 1;
}

/* Connection lines SVG - disabled */
.acv-gp-connections {
    display: none;
}

.acv-gp-connection-line {
    fill: none;
    stroke: url(#connectionGradient);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(245, 130, 32, 0.5));
}

.acv-global-projects.is-in-view .acv-gp-connection-line {
    opacity: 1;
    animation: drawLine 2s ease-out forwards;
}

.acv-global-projects.is-in-view .acv-gp-connection-line:nth-child(2) {
    animation-delay: 0.3s;
}

.acv-global-projects.is-in-view .acv-gp-connection-line:nth-child(3) {
    animation-delay: 0.6s;
}

.acv-global-projects.is-in-view .acv-gp-connection-line:nth-child(4) {
    animation-delay: 0.9s;
}

.acv-global-projects.is-in-view .acv-gp-connection-line:nth-child(5) {
    animation-delay: 1.2s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Animated particles/dots traveling along paths */
.acv-gp-particle {
    fill: #F58220;
    filter: drop-shadow(0 0 6px rgba(245, 130, 32, 0.8));
}

.acv-global-projects.is-in-view .acv-gp-particle {
    animation: particleMove 3s ease-in-out infinite;
}

@keyframes particleMove {

    0%,
    100% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }
}

/* Glow hotspots */
@keyframes hotspotGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.acv-gp-hotspot {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 186, 198, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.acv-global-projects.is-in-view .acv-gp-hotspot {
    animation: hotspotGlow 3s ease-in-out infinite;
}

.acv-gp-hotspot:nth-child(2) {
    animation-delay: 1s;
}

.acv-gp-hotspot:nth-child(3) {
    animation-delay: 2s;
}

/* Text overlay in top-left */
.acv-gp-overlay {
    position: relative;
    z-index: 20;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px 0 35px;
}

.acv-gp-header {
    text-align: left;
    max-width: 38em;
}

/* Header text entrance animations */
.acv-gp-eyebrow,
.acv-gp-title,
.acv-gp-content,
.acv-gp-header .acv-gp-button {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.acv-global-projects.is-in-view .acv-gp-eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.acv-global-projects.is-in-view .acv-gp-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.acv-global-projects.is-in-view .acv-gp-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.acv-global-projects.is-in-view .acv-gp-header .acv-gp-button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.acv-gp-eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
    line-height: 1.2;
}

.acv-gp-title {
    font-size: 2.25rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 24px;
    line-height: 1.15;
}

.acv-gp-content {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.acv-gp-content p {
    margin: 0;
}

/* Button styles moved to /css/buttons.css */

/* Marker animations */
@keyframes markerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.4), 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(245, 130, 32, 0), 0 2px 12px rgba(0, 0, 0, 0.3);
    }
}

@keyframes markerEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes markerFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-4px);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Markers */
.acv-gp-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%) scale(0);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    background: radial-gradient(circle at 30% 30%, #F5922A, #e07b1a);
}

/* Ripple effect pseudo-element */
.acv-gp-marker::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(245, 130, 32, 0.6);
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    top: 50%;
    left: 50%;
}

.acv-gp-marker.is-positioned {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Staggered entrance animation when section is in view */
.acv-global-projects.is-in-view .acv-gp-marker.is-positioned {
    animation: markerEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(1) {
    animation-delay: 0.1s;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(2) {
    animation-delay: 0.2s;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(3) {
    animation-delay: 0.3s;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(4) {
    animation-delay: 0.4s;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(5) {
    animation-delay: 0.5s;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(6) {
    animation-delay: 0.6s;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(7) {
    animation-delay: 0.7s;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(8) {
    animation-delay: 0.8s;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(9) {
    animation-delay: 0.9s;
}

.acv-global-projects.is-in-view .acv-gp-marker:nth-child(10) {
    animation-delay: 1.0s;
}

/* Subtle floating animation after entrance */
.acv-global-projects.is-in-view .acv-gp-marker.is-positioned.has-entered {
    animation: markerFloat 3s ease-in-out infinite;
}

/* Pulse animation on idle markers */
.acv-gp-marker.is-positioned.has-entered::before {
    animation: ripple 2s ease-out infinite;
}

.acv-gp-marker:hover,
.acv-gp-marker:focus-visible {
    transform: translate(-50%, -50%) scale(1.2) !important;
    box-shadow: 0 4px 25px rgba(245, 130, 32, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
    outline: none;
    animation: none !important;
}

.acv-gp-marker:hover::before,
.acv-gp-marker:focus-visible::before {
    animation: none;
    opacity: 0;
}

.acv-gp-marker.is-active {
    transform: translate(-50%, -50%) scale(1.25) !important;
    box-shadow: 0 6px 30px rgba(245, 130, 32, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    z-index: 15;
    animation: none !important;
}

.acv-gp-marker.is-active::before {
    animation: none;
    opacity: 0;
}

.acv-gp-marker-icon {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Popup */
@keyframes popupEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

@keyframes popupExit {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(20px);
    }
}

.acv-gp-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8) translateY(20px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.acv-gp-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1) translateY(0);
    animation: popupEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.acv-gp-popup.is-closing {
    animation: popupExit 0.3s ease-in forwards;
}

.acv-gp-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.acv-gp-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.acv-gp-popup-content {
    display: flex;
    flex-direction: column;
}

.acv-gp-popup-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}

.acv-gp-popup-image:empty {
    display: none;
}

.acv-gp-popup-image.has-image {
    display: block;
}

.acv-gp-popup-info {
    padding: 18px;
}

.acv-gp-popup-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f3950;
    margin: 0 0 8px;
}

.acv-gp-popup-intro {
    font-size: 0.9rem;
    color: #4a5b66;
    margin: 0 0 12px;
    line-height: 1.5;
}

.acv-gp-popup-location,
.acv-gp-popup-client,
.acv-gp-popup-year,
.acv-gp-popup-manufacturers,
.acv-gp-popup-products,
.acv-gp-popup-services {
    font-size: 0.85rem;
    color: #5a6d7a;
    margin: 0 0 5px;
}

.acv-gp-popup-location i,
.acv-gp-popup-client i,
.acv-gp-popup-year i,
.acv-gp-popup-manufacturers i,
.acv-gp-popup-products i,
.acv-gp-popup-services i {
    width: 16px;
    color: #F58220;
    margin-right: 6px;
}

.acv-gp-popup-manufacturers strong,
.acv-gp-popup-products strong,
.acv-gp-popup-services strong {
    color: #0f3950;
}

.acv-gp-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #F58220;
    font-weight: 400;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.acv-gp-popup-link:hover {
    color: #d96f1a;
}

.acv-gp-popup-link i {
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .acv-gp-overlay {
        padding: 0 40px 0 55px;
    }

    .acv-gp-header {
        max-width: 350px;
    }

    .acv-gp-map {
        min-height: 600px;
    }

    .acv-gp-title {
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .acv-gp-map {
        min-height: 550px;
        padding-top: 40px;
        background-size: 140% auto;
        background-position: 20% top;
    }

    .acv-gp-overlay {
        padding: 0 30px 0 45px;
    }

    .acv-gp-header {
        max-width: 320px;
    }

    .acv-gp-title {
        font-size: 1.75rem;
    }

    .acv-gp-marker {
        width: 32px;
        height: 32px;
    }

    .acv-gp-marker-icon {
        font-size: 1.3rem;
    }

    /* Reduce radar effect on tablet */
    .acv-gp-radar-sweep {
        width: 1200px;
        height: 1200px;
    }

    .acv-gp-radar-ring {
        width: 900px;
        height: 900px;
    }

    .acv-gp-grid {
        background-size: 40px 40px;
    }
}

@media (max-width: 600px) {
    .acv-gp-map {
        min-height: 500px;
        padding-top: 30px;
        background-size: 180% auto;
        background-position: 30% top;
    }

    .acv-gp-overlay {
        padding: 0 25px 0 25px;
    }

    .acv-gp-header {
        max-width: none;
    }

    .acv-gp-title {
        font-size: 1.5rem;
    }

    .acv-gp-content {
        font-size: 0.88rem;
    }

    .acv-gp-marker {
        width: 28px;
        height: 28px;
        border-width: 2px;
    }

    .acv-gp-marker-icon {
        font-size: 1.1rem;
    }

    .acv-gp-popup {
        width: 92%;
        max-width: none;
    }

    .acv-gp-popup-image {
        height: 110px;
    }

    .acv-gp-popup-info {
        padding: 14px;
    }

    /* Hide heavy effects on mobile for performance */
    .acv-gp-radar,
    .acv-gp-grid,
    .acv-gp-connections {
        display: none;
    }

    /* Simplify marker animations on mobile */
    .acv-gp-marker::before {
        display: none;
    }

    .acv-global-projects.is-in-view .acv-gp-marker.is-positioned.has-entered {
        animation: none;
        transform: translate(-50%, -50%);
    }
}
}
}