/* spa/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #050505;
    color: #f3f4f6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Antigravity Glow Effect */
.antigravity-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 86, 179, 0.15), transparent 80%);
    transition: background 0.1s ease;
}

/* Lenis Smooth Scroll */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Custom Gradient Text */
.glow-text {
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
}

/* Fluid Background Layers */
.bg-fluid-layer {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.bg-noise-layer {
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Newsroom Carousel */
.news-carousel-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.news-carousel-track {
    will-change: transform;
    touch-action: pan-y;
}

.news-slide {
    width: 85vw;
    flex-shrink: 0;
    margin: 0 1rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 1;
    transform: scale(0.95);
    pointer-events: none;
}

@media (min-width: 768px) {
    .news-slide {
        width: 400px;
    }
}

.news-slide.active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 50;
    pointer-events: auto;
    box-shadow: 0 0 50px rgba(0, 204, 204, 0.2);
    border-color: rgba(0, 204, 204, 0.4);
    position: relative;
    background-color: #ffffff;
}

.text-gradient {
    background: linear-gradient(90deg, #009999, #00cccc, #009999);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.animate-gradient {
    background-size: 300% auto;
    animation: textFlow 5s linear infinite;
}

@keyframes textFlow {
    0% {
        background-position: 200% 50%;
    }

    100% {
        background-position: -100% 50%;
    }
}

/* Modal Drawer */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 86, 179, 0.25);
    position: relative;
}

.service-modal.active .service-modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Service Card Hover */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 204, 204, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0, 204, 204, 0.3);
}

.service-card img {
    transition: transform 0.7s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}