/* Critical CSS - Above the fold styles */
@font-face {
    font-family: 'Barlow';
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Barlow', sans-serif;
    background: #0a0f18;
    background-image: radial-gradient(ellipse at top, rgba(14, 116, 144, 0.2), #0a0f18 70%);
    color: #e5e7eb;
    line-height: 1.6;
    padding-bottom: 100px;
}

.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #0e7490, #0a0f18);
}

/* Page transitions */
.page-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page-content.active {
    display: block;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active .underline {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    }
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-vertical {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

@keyframes scroll-vertical-reverse {
    from {
        transform: translateY(-50%);
    }
    to {
        transform: translateY(0);
    }
}

/* Swiper custom styles */
swiper-container::part(pagination) {
    bottom: 0;
}

swiper-container::part(bullet-active) {
    background-color: #22d3ee;
}

swiper-slide {
    padding-bottom: 3rem;
}

/* ElevenLabs Conversational Agent Mobile Optimization */
@media (max-width: 768px) {
    elevenlabs-convai {
        transform: scale(0.9) !important;
        transform-origin: bottom right !important;
        position: fixed !important;
        bottom: 15px !important;
        right: 15px !important;
        z-index: 1000 !important;
    }
    
    elevenlabs-convai:not(:hover):not(:focus-within) {
        transform: scale(0.7) !important;
        opacity: 0.8 !important;
        transition: all 0.3s ease !important;
    }
    
    elevenlabs-convai:hover,
    elevenlabs-convai:focus-within {
        transform: scale(1.0) !important;
        opacity: 1 !important;
        transition: all 0.3s ease !important;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    elevenlabs-convai {
        transform: scale(0.85) !important;
        transform-origin: bottom right !important;
    }
}

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}