/* ===== Stiluri Custom Globale ===== */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Animație la scroll ===== */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animated-element.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Definește întârzierile pentru tranziții */
.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }


/* ===== Imagine Hero Section ===== */
.hero-bg {
    background-image: url('https://images.unsplash.com/photo-1593344484962-796b931739c2?q=80&w=2070&auto=format&fit=crop');
}

/* ===== Stil pentru butoane ===== */
.btn-gradient {
    background-image: linear-gradient(to right, #3b82f6, #2563eb);
    box-shadow: 0 4px 15px 0 rgba(59, 130, 246, 0.4);
}

.btn-gradient:hover {
    background-image: linear-gradient(to right, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

.btn-whatsapp {
    background-color: #25D366;
    box-shadow: 0 4px 15px 0 rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 6px 20px 0 rgba(18, 140, 126, 0.5);
}

.btn-secondary {
    background-color: hsl(222.2 47.4% 11.2% / 0.5);
    border: 1px solid hsl(217.2 32.6% 17.5%);
}

.btn-secondary:hover {
    background-color: hsl(217.2 32.6% 17.5% / 0.8);
}

/* ===== Stil link-uri navigație ===== */
.nav-link {
    position: relative;
    color: #cbd5e1; /* slate-300 */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff; /* white */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3b82f6; /* blue-500 */
    transition: width 0.3s ease;
}

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


/* ===== Stil Card "Glassmorphism" (Pentru Servicii & Recenzii) ===== */
.glass-card {
    background-color: rgba(30, 41, 59, 0.5); /* slate-800 cu transparență */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem; /* rounded-xl */
    padding: 2rem; /* p-8 */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Stiluri pentru Globul 3D (Versiunea Finală) ===== */
.globe-scene {
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

@media (min-width: 1024px) {
    .globe-scene {
        width: 500px;
        height: 500px;
    }
}

.globe {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate-globe 25s linear infinite;
}

/* Inelele care formează globul */
.globe-ring, .globe-equator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.globe-equator {
    transform: rotateX(90deg);
}

/* Iconițele TV de pe glob */
.location-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    color: #3b82f6;
    font-size: 24px;
    text-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    animation: pulse-icon-3d 2s infinite ease-in-out, fade-on-back 25s linear infinite;
}

.location-icon > i {
    display: block;
}

/* Stil pentru iconița activă (selectată de JS) */
.location-icon.is-active {
    color: #fff;
    text-shadow: 0 0 15px #fff, 0 0 25px #3b82f6;
    transform: scale3d(1.3, 1.3, 1.3) !important;
}

/* Wrapper-ul pentru text care anulează rotația globului */
.tooltip-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: un-rotate-globe 25s linear infinite;
}

/* Numele locației (acum e lizibil mereu) */
.location-name {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    padding: 5px 10px;
    background: #fff;
    color: #1e293b;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    pointer-events: none;
    font-size: 14px;
}

/* Afișează numele când iconița este activă */
.location-icon.is-active .location-name {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* ===== Animații ===== */
@keyframes rotate-globe {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@keyframes un-rotate-globe {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(-360deg); }
}

@keyframes pulse-icon-3d {
    0%, 100% {
        text-shadow: 0 0 8px #3b82f6, 0 0 16px #3b82f6;
    }
    50% {
        text-shadow: 0 0 16px #60a5fa, 0 0 32px #3b82f6;
    }
}

@keyframes fade-on-back {
    0%, 25% {
        opacity: 1;
        pointer-events: auto;
    }
    50%, 100% {
        opacity: 0;
        pointer-events: none;
    }
}

/* ===== Contact Section ===== */
#contact iframe {
    border: 0;
}


/* ===== Stiluri pentru Hero Section (Elegant & Professional) ===== */

@keyframes ping-slow {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes ping-slower {
     75%, 100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.animate-ping-slow {
    animation: ping-slow 4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-ping-slower {
    animation: ping-slower 4s cubic-bezier(0, 0, 0.2, 1) infinite;
    animation-delay: 1s;
}

/* ===== Stiluri pentru Butonul de WhatsApp ===== */

#whatsapp-chat-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde WhatsApp */
    color: #FFF;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

#whatsapp-chat-button:hover {
    background-color: #128C7E; /* Verde mai închis la hover */
    transform: scale(1.1);
    animation: none; /* Oprește pulsația la hover */
}

.tooltip-whatsapp {
    position: absolute;
    right: 75px; /* Poziționează textul la stânga butonului */
    top: 50%;
    transform: translateY(-50%);
    background-color: #1e293b; /* slate-800 */
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

#whatsapp-chat-button:hover .tooltip-whatsapp {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}