@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 90%;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #0f1a2e 0%, #1f3f6e 25%, #2a4d7a 50%, #1f3f6e 75%, #0f1a2e 100%);
    background-attachment: fixed;
    overflow: hidden;
    padding-bottom: 80px;
}

.container-tabs {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

h1 {
    margin: 2rem 0 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    width: 90%;
    max-width: 75rem;
    background: linear-gradient(135deg, #ffffff 0%, #6c8bc1 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(108, 139, 193, 0.3);
    letter-spacing: 3px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(108, 139, 193, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(108, 139, 193, 0.5)); }
}

@-moz-document url-prefix() {
    .grid {
        width: 90%;
        display: block !important;
    }
}

.grid {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tab:hover::before {
    left: 100%;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.tab.active {
    background: linear-gradient(135deg, #6c8bc1 0%, #1f3f6e 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 25px rgba(108, 139, 193, 0.4);
}

.tab-content {
    display: none;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: auto;
    gap: 1.25rem;
    overflow-y: auto;
    max-width: 1400px;
    margin: 0 auto;
    max-height: calc(100vh - 280px);
    padding: 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.tab-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.tab-content.active {
    display: grid;
    align-items: stretch;
    animation: fadeIn 0.4s ease-out;
    padding-bottom: 4.25rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    min-width: 260px;
    max-width: 340px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6c8bc1, #1f3f6e, #6c8bc1);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(108, 139, 193, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.card img {
    width: 100%;
    height: 4.5rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.card:hover img {
    transform: scale(1.1);
}

.card h2 {
    margin: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #6c8bc1 0%, #1f3f6e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(108, 139, 193, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.card a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.card a:hover::before {
    left: 100%;
}

.card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 139, 193, 0.5);
    background: linear-gradient(135deg, #1f3f6e 0%, #6c8bc1 100%);
}

.new-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #6c8bc1, #1f3f6e);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(108, 139, 193, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.polygon {
    position: fixed;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(108, 139, 193, 0.3), rgba(31, 63, 110, 0.3));
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation: float 8s infinite ease-in-out;
    z-index: -1;
    filter: blur(1px);
}

.polygon:nth-child(odd) {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.polygon:nth-child(3n) {
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(10deg);
    }
    66% {
        transform: translateY(10px) rotate(-5deg);
    }
}

footer {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    color: #fff;
    font-size: 0.875rem;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.footer-logo {
    width: 4rem;
    height: auto;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.footer-content {
    display: flex;
    align-items: center;
}

footer p {
    margin: 0 1.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.tab-content:has(.card:only-child) {
    justify-items: center;
    grid-template-columns: 1fr;
    max-width: 340px;
}

@media (max-width: 1024px) {
    h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .tabs {
        padding: 0.5rem;
    }
    
    .tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .tab-content,
    .tab-content.active {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        max-width: 900px;
        gap: 1rem;
    }
    
    .card {
        min-width: 220px;
        max-width: 320px;
        padding: 1.25rem;
    }
    
    footer p {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.4rem;
        margin: 1.5rem 0 1rem;
        letter-spacing: 1px;
    }
    
    .tabs {
        width: 95%;
        padding: 0.4rem;
        gap: 0.3rem;
    }
    
    .tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 0.5rem;
    }
    
    .tab-content,
    .tab-content.active {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        max-width: 100%;
        padding: 0.75rem;
        gap: 0.75rem;
        max-height: calc(100vh - 280px);
    }
    
    .card {
        min-width: 150px;
        max-width: 100%;
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .card img {
        height: 3.5rem;
    }
    
    .card h2 {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }
    
    .card a {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
    
    footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    footer p {
        margin: 0;
        font-size: 0.7rem;
        text-align: center;
    }
    
    .footer-logo {
        width: 3rem;
    }
    
    .polygon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (min-width: 1920px) {
    h1 {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }
    
    .tabs {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .tab {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .tab-content,
    .tab-content.active {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        max-width: 1800px;
        gap: 2rem;
    }
    
    .card {
        min-width: 300px;
        max-width: 400px;
        padding: 2rem;
        border-radius: 1.5rem;
    }
    
    .card img {
        height: 6rem;
    }
    
    .card h2 {
        font-size: 1.3rem;
    }
    
    .card a {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    footer {
        padding: 1.25rem 3rem;
    }
    
    footer p {
        font-size: 1rem;
    }
    
    .footer-logo {
        width: 5rem;
    }
    
    .polygon {
        width: 5rem;
        height: 5rem;
    }
}

.card {
    animation: cardEntry 0.5s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.card:nth-child(9) { animation-delay: 0.45s; }
.card:nth-child(10) { animation-delay: 0.5s; }

@keyframes cardEntry {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}