/* =================================================================
   GLOBALŪS NUSTATYMAI (KRITIŠKA DIZAINUI)
   ================================================================= */
*, ::before, ::after {
    box-sizing: border-box; 
}

html {
    width: 100vw; 
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    width: 100vw;
    overflow-x: hidden; 
    margin: 0; 
    padding: 0;
}

/* =================================================================
   SLOGANO KARUSELĖS ANIMACIJA (PABRAUKIMAS)
   ================================================================= */

/* Pagrindinė vertikali animacija (Tik dideliems ekranams) */
.slogan-animation {
    animation: slideUpSlogan 8s cubic-bezier(0.85, 0, 0.15, 1) infinite;
    will-change: transform;
}

@keyframes slideUpSlogan {
    0%, 45% { transform: translateY(0); } /* Rodo 1-ąjį (Life changing app) */
    50%, 95% { transform: translateY(-50%); } /* Rodo 2-ąjį (Tasks changing app) */
    100% { transform: translateY(0); }
}

/* Bendros pabraukimo taisyklės */
.highlight-text {
    position: relative;
    display: inline-block;
    z-index: 1; 
}

/* Baltas pabraukimas (::before) - TAI YRA SLANKIOJANTIS ELEMENTAS */
.highlight-text::before {
    content: '';
    position: absolute;
    bottom: -4px; 
    left: 0;
    width: 100%;
    height: 4px; 
    background-color: white; /* Balta spalva */
    transform: scaleX(0); 
    transform-origin: left; 
    transition: none;
    z-index: -1; 
    border-radius: 1px;
}

/* PABRAUKIMO ANIMACIJA - 1 Šūkis (0% - 45% ciklo) */
.highlight-1.highlight-animated::before {
    animation: highlight-reveal-1 8s infinite; 
}

@keyframes highlight-reveal-1 {
    /* 0% - 5%: Nematomas (naudojame scaleX(0)) */
    0%, 5% { transform: scaleX(0); } 
    /* 10% (greitas atidengimas) */
    10% { transform: scaleX(1); } 
    /* 35%: Pilnai matomas */
    35% { transform: scaleX(1); } 
    /* 40% - 100%: Pasislėpia prieš perėjimą */
    40%, 100% { transform: scaleX(0); }
}

/* PABRAUKIMO ANIMACIJA - 2 Šūkis (50% - 95% ciklo) */
.highlight-2.highlight-animated::before {
    animation: highlight-reveal-2 8s infinite; 
}

@keyframes highlight-reveal-2 {
    /* 0% - 55%: Nematomas, kol rodomas pirmas šūkis */
    0%, 55% { 
        transform: scaleX(0); 
    } 
    /* 60% (greitas atidengimas) */
    60% { 
        transform: scaleX(1); 
    } 
    /* 85%: Pilnai matomas */
    85% { 
        transform: scaleX(1); 
    } 
    /* 90% - 100%: Pasislėpia prieš perėjimą */
    90%, 100% { 
        transform: scaleX(0); 
    }
}


/* PAKEITIMAS 1: Klasė, kurią prideda JS, kai tekstas mobiliajame lūžta */
.no-underline-mobile .highlight-text::before {
    display: none !important;
}
.no-underline-mobile .highlight-text {
    animation: none !important;
}


/* =================================================================
   KITI KOMPONENTAI IR KOREKCIJOS
   ================================================================= */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.screenshot-slide {
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

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

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.brand_color {
    color: #2cb06f !important;
}

/* =================================================================
   MEDIA UŽKLAUSOS (MASTELIO KOREKCIJA)
   ================================================================= */
@media (max-width: 640px) {
    .py-24 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    .md\:py-32 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
    
    h1 { font-size: 1.5rem !important; } 
    h2 { font-size: 1.75rem !important; }

    /* PAKEITIMAS 2: Pagerintas eilučių tarpas ilgesniam tekstui */
    .slogan-animation {
        line-height: 1.3 !important; 
    }
    
    /* PAKEISTA: Padidiname aukštį į 64px, kad tilptų lūžęs tekstas (2-3 eilutės) */
    .slogan-animation-item {
        height: 64px !important; 
    }
    .h-\[64px\] { height: 64px !important; }
    
    /* Mobili animacija (būtina pritaikyti, nes keičiamas aukštis) */
    .slogan-animation {
        animation: slideUpSlogan-mobile 8s cubic-bezier(0.85, 0, 0.15, 1) infinite;
    }
}

/* Mobili animacijos taisyklė */
@keyframes slideUpSlogan-mobile {
    0%, 45% { transform: translateY(0); } 
    50%, 95% { transform: translateY(-50%); } 
    100% { transform: translateY(0); }
}

/* Grąžiname pradinę animaciją didesniems nei 640px ekranams */
@media (min-width: 641px) {
    .slogan-animation {
        animation: slideUpSlogan 8s cubic-bezier(0.85, 0, 0.15, 1) infinite;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .py-24 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
    .md\:py-32 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
}