/* Smooth transitions */
a {
    transition: all 0.2s ease-in-out;
}

/* Subtle link underline effect */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #111827;
    transition: width 0.2s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

.hero {
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero {
        min-height: 100vh;
    }
    .hero .max-w-4xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) {
    .hero {
        min-height: 0;
    }
} /* Fixad stängande hakparentes för media query */

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

nav a {
    position: relative;
    font-weight: 500;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

.carousel-container {
    margin: 0 -20px;
    padding: 0 20px;
    overflow: hidden;
}

.main-carousel {
    width: 100%;
}

.carousel-cell {
    width: 90%;
    margin-right: 24px;
}

.flickity-page-dots {
    bottom: -40px;
}

.flickity-page-dots .dot {
    width: 32px;
    height: 3px;
    margin: 0 4px;
    border-radius: 2px;
    background-color: #E2E8F0;
    transition: all 0.3s ease;
}

.flickity-page-dots .dot.is-selected {
    background-color: var(--accent);
    width: 48px;
}

#chatPopup {
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#chatPopup:not(.hidden) {
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
