.flip-card {
    background-color: transparent;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 2rem;
}

.flip-card-back {
    transform: rotateY(180deg);
}

@keyframes rotate-icon {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(var(--radius)) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(var(--radius)) rotate(-360deg);
    }
}

.animate-rotate-icon {
    animation: rotate-icon 25s linear infinite;
}

.icon-outer {
    --radius: -626px;
}

.icon-middle {
    --radius: -476px;
}

.icon-inner {
    --radius: -326px;
}

.businessSwiper .swiper-wrapper {
  transition-timing-function: linear !important;
}
.businessSwiper {
  overflow: hidden;
  cursor: grab;
}

.businessSwiper .swiper-slide {
    width: auto;
}


.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu-sidebar.active {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-logo {
    height: 2rem;
    width: auto;
}

.mobile-menu-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.mobile-menu-close svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #374151;
    transition: stroke 0.3s ease;
}

.mobile-menu-close:hover svg {
    stroke: #111827;
}

/* Mobile Menu Nav - List styling */
.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-nav li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-sidebar.active .mobile-menu-nav li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation za list items */
.mobile-menu-sidebar.active .mobile-menu-nav li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-sidebar.active .mobile-menu-nav li:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-sidebar.active .mobile-menu-nav li:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-sidebar.active .mobile-menu-nav li:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-sidebar.active .mobile-menu-nav li:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu-sidebar.active .mobile-menu-nav li:nth-child(6) {
    transition-delay: 0.35s;
}

/* Link styling */
.mobile-menu-nav a {
    display: block;
    padding: 0.3rem 1.25rem;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu-nav a:hover::before,
.mobile-menu-nav a.active::before,
.mobile-menu-nav li.current-menu-item a::before {
    transform: scaleY(1);
}

.mobile-menu-nav a:hover {
    background: #f9fafb;
    color: #214B6E;
    transform: translateX(8px);
}

.mobile-menu-nav li.current-menu-item a,
.mobile-menu-nav a.active {
    color: #214B6E;
    background: #f0f4f8;
}

/* Menu dot styling */
.menu-dot {
    display: inline-block;
    margin-right: 0.5rem;
}

#contact-btn-header {
    width: max-content;
    padding: 1rem;
    margin-left: 1rem;
    color: #fff;
    margin-top: 2rem;
}

body.menu-open {
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .mobile-menu-sidebar {
        width: 90%;
    }
}
/* Contact Popup - Only animations and scrollbar styling */
#contact-popup-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

#contact-popup-overlay.active #contact-popup {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
}

/* Custom Scrollbar Styling for Form - with spacing from edge */
#contact-form::-webkit-scrollbar {
    width: 8px;
}

#contact-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

#contact-form::-webkit-scrollbar-thumb {
    background: #214B6E;
    border-radius: 10px;
    transition: background 0.3s ease;
    margin-right: 0.5rem;
}

#contact-form::-webkit-scrollbar-thumb:hover {
    background: #1a3d57;
}

/* Firefox scrollbar styling */
#contact-form {
    scrollbar-width: thin;
    scrollbar-color: #214B6E #f1f1f1;
}

@media (max-width: 640px) {
    #contact-form::-webkit-scrollbar {
        width: 4px;
    }
}

body.popup-open {
    overflow: hidden;
}