:root {
        --primary: #78003F;
        --primary-light: #8d0149;
        --primary-dark: #5A002E;
        --secondary: #FF7BAC;
        --accent: #FFB8D9;
        --light: #FFF5FA;
        --dark: #2D0017;
        --gray: #6D6D6D;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Montserrat', sans-serif;
        color: var(--dark);
        overflow-x: hidden;
        background-color: var(--light);
        min-height: 100vh;
    }

    /* Fono sluoksniai */
    .background-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -2;
    }

    

    .library-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://images.unsplash.com/photo-1589998059171-988d887df646?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1800&q=80');
        background-size: cover;
        background-position: center;
        opacity: 0.3;
    }

    .animated-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(-45deg, var(--primary-dark), var(--primary), #B8005F, var(--primary-light));
        background-size: 400% 400%;
        /* animation: gradient 14s ease infinite; */
        mix-blend-mode: multiply;
    }

    @keyframes gradient {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }


    .container {
        width: 100%;
        max-width: 1350px;
        margin: 0 auto;
        padding: 0 30px;
    }



    .header {
        padding: 70px 0 50px;
        text-align: center;
        color: white;
        position: relative;
    }

    #title {
        font-size: 3rem;
        font-weight: 500;
        margin-bottom: 10px;
        /*animation: fadeInDown 1s ease, logoGlow 3s ease-in-out infinite;*/
        position: relative;
        display: inline-block;
    }

    .logo span {
        color: var(--accent);
        font-weight: 400;
    }

    #description {
        font-size: 1.3rem;
        opacity: 0.9;
        animation: fadeIn 1.5s ease;
        letter-spacing: 1px;
    }

    .main-content {
        padding: 40px 0 100px;
        min-height: calc(100vh - 220px);
    }

    .intro-section {
        text-align: center;
        margin-bottom: 60px;
        color: white;
        animation: fadeIn 1s ease;
    }

    .intro-section h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        font-weight: 600;
        animation: fadeIn 1.2s ease;
    }

    .intro-section p {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.7;
        opacity: 0.9;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        animation: fadeIn 1.4s ease;
    }

    /* Tinklelio stilius */
    .systems-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 30px;
        margin-top: 50px;
        padding: 0;
    }

    /* Kortelės su vienu stačiu kampu */
    .system-card {
        background: rgba(255, 255, 255, 0.96);
        border-radius: 0 15px 15px 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateY(20px);
        opacity: 0;
        border: 1px solid rgba(255, 255, 255, 0.6);
        position: relative;
        z-index: 1;
        will-change: transform;
    }

    /* Pagrindinės svetainės kortelė */
    .main-website {
        position: relative;
        border: 2px solid var(--accent);
        background-color: #a50658;
        color: #fff;
        bottom: 50px;
        animation: fadeInDown 1s ease, logoGlow 3s ease-in-out infinite;
    }
    .main-website p {
        color: #fff;
    }
    .main-website .system-title {
        color: #fff;
    }
    .main-website .system-icon {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        color: white;
    }
    

    .main-website::before {
        content: 'Pagrindinė';
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--accent);
        color: white;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 2;
    }

    /* Alternatyvus kampų apvalinimas skirtingoms kortelėms */
    .system-card:nth-child(3n+1) { border-radius: 12px 0 12px 12px; }
    .system-card:nth-child(3n+2) { border-radius: 12px 12px 0 12px; }
    .system-card:nth-child(3n+3) { border-radius: 12px 12px 12px 0; }

    .system-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(120,0,63,0.05) 0%, rgba(163,0,84,0.03) 100%);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .system-card.visible {
        transform: translateY(0);
        opacity: 1;
    }

    /* Hover efektas */
    .system-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .system-card:hover::before {
        opacity: 1;
    }

    .system-image {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .system-card:hover .system-image {
        transform: scale(1.02);
    }

    .system-content {
        padding: 25px;
        position: relative;
    }

    .system-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        color: white;
        font-size: 1.2rem;
        box-shadow: 0 5px 15px rgba(120, 0, 63, 0.2);
    }

    .system-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: var(--primary-dark);
        position: relative;
        font-weight: 600;
    }

    /* Po pavadinimų juostelės efektas */
    .system-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        transition: width 0.4s ease;
    }

    .system-card:hover .system-title::after {
        width: 70px;
    }

    .system-description {
        color: var(--gray);
        margin-bottom: 25px;
        line-height: 1.7;
        font-size: 1rem;
    }

    .system-link {
        display: inline-flex;
        align-items: center;
        padding: 10px 24px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
        color: white;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 5px 20px rgba(120, 0, 63, 0.2);
        position: relative;
        overflow: hidden;
        font-size: 0.95rem;
    }

    .system-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(120, 0, 63, 0.3);
    }

    .system-link i {
        margin-left: 10px;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .system-link:hover i {
        transform: translateX(3px);
    }

    .footer {
        text-align: center;
        padding: 25px 0;
        background-color: rgba(0, 0, 0, 0.2);
        color: white;
        position: relative;
        font-size: 0.95rem;
    }

    /* Animacijos */
   /* @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    } */

            /* Logo animacija */
    @keyframes logoGlow {
        0%, 100% {
            text-shadow: 0 0 10px rgba(255, 184, 217, 0.5);
        }
        50% {
            text-shadow: 0 0 20px rgba(255, 184, 217, 0.8);
        }
    }

    /* Kortelių animacijos vienas po kito */
    .system-card {
       /* animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;*/
    }

    .system-card:nth-child(1) { animation-delay: 0.1s; }
    .system-card:nth-child(2) { animation-delay: 0.2s; }
    .system-card:nth-child(3) { animation-delay: 0.3s; }
    .system-card:nth-child(4) { animation-delay: 0.4s; }
    .system-card:nth-child(5) { animation-delay: 0.5s; }
    .system-card:nth-child(6) { animation-delay: 0.6s; }
    .system-card:nth-child(7) { animation-delay: 0.7s; }

    /* Responsive dizainas */
    @media (max-width: 1300px) {
        .systems-grid {
            grid-template-columns: repeat(auto-fit, minmax(280px, 3fr));
        }
        .main-website {
            position: static;
            order: -1
        }
    }

    @media (max-width: 768px) {
        .systems-grid {
            grid-template-columns: 1fr;
            gap: 25px;
        }
        
        .system-card {
            border-radius: 12px !important;
            max-width: 100%;
            margin-bottom: 10px;

        }
        .main-website {
            position: static;
            order: -1
        }
        
        .logo {
            font-size: 2.2rem;
        }
        
        .logo span {
            font-size: 1.4rem;
        }
        
        .intro-section h2 {
            font-size: 1.8rem;
        }
        
        .intro-section p {
            font-size: 1.1rem;
        }
    }
    .logo-wrapper {
        display: inline-block;
        background-color: white;   /* Baltas fonas už paveikslėlio */
        padding: 10px;             /* Tarpas tarp paveikslėlio ir borderio */
        border: 3px solid white;   /* Baltas rėmelis */
        border-radius: 50%;        /* Apvalumas */
        margin: 20px auto;
        text-align: center;
        opacity: 0.9;
        }

    .logo-wrapper img {
        display: block;
        border-radius: 50%;   
            width: 150px;
            height: 150px; /* Paveikslėlio dydis */
            
    }

    .gradient-button{
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        font-size: 16px;
        color: white;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
        border: 2px solid rgba(255, 255, 255, 0.3);
        //border-radius: 50px;
        backdrop-filter: blur(8px);
        cursor: pointer;
        transition: all 2s ease;
        text-transform: uppercase;
        font-weight: 400;
        margin-top: 30px;
        letter-spacing: 2px;
        font-size: 1.1rem;
        text-decoration: none;
    }


    .gradient-button .arrow {
        display: inline-block;
        transition: transform 2s ease;
    }

    .gradient-button:hover {
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.1));
    }

    .gradient-button:hover .arrow {
        transform: translateX(5px);
    }

    .menu-container {
        position: relative;
}

.burger {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 30px;
  background: transparent;
  border: none;
  color: #fffdfd;
  cursor: pointer;
  z-index: 1001;
}

.menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background: rgba(226, 216, 216, 0.8);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Popup animacijos */
.popup-enter {
  opacity: 0;
  transform: scale(0.9);
}

.popup-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s, transform 0.4s;
}

.popup-exit-active {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s, transform 0.4s;
}

/* Meniu mygtuko stilius */
#vubMenuButton {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 16px;
  color: white;
  background: rgba(120, 0, 63, 0.7);
  padding: 10px;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s;
}

#vubMenuButton:hover {
  background: rgba(120, 0, 63, 0.9);
}




/* Kortelių vienodo aukščio išlygiavimas */
.systems-grid {
  align-items: stretch; /* užtikrina, kad visos kortelės bus vienodo aukščio */
}

/* Kortelės turinys – kad mygtukas būtų apačioje */
.system-card {
  display: flex;
  flex-direction: column;
}

/* Turinys užima visą likusį aukštį */
.system-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Aprašymas turi užimti tiek vietos, kiek reikia, o mygtukas nusileidžia į apačią */
.system-description {
  flex-grow: 1;
}

/* Mygtukas fiksuojamas apačioje kortelės */
.system-link {
  align-self: flex-start;
  margin-top: auto; /* stumia mygtuką į apačią */
}

