:root {
    --primary: #4cc9f0;
    --secondary: #4361ee;
    --accent: #3f37c9;
    --light: #1e1e2f;
    --lighter: #2c2c3e;
    --text: #f1f1f1;
    --text-light: #adb5bd;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--light);
    color: var(--text);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000;
}

.theme-toggle input {
    height: 1px;
    width: 1px;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-toggle label {
    cursor: pointer;
    width: 60px;
    height: 30px;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 30px;
    position: relative;
    padding: 0 6px;
    transition: background 0.3s ease;
    font-size: 14px;
    color: #fff;
}

.theme-toggle label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle input:checked+label {
    background: #4cc9f0;
}

.theme-toggle input:checked+label::after {
    left: calc(100% - 3px - 24px);
}

.theme-toggle .icon {
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.3s ease;
    z-index: 1;
}

.theme-toggle .sun {
    opacity: 0;
    transform: scale(0.8);
}

.theme-toggle input:checked+label .moon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle input:checked+label .sun {
    opacity: 0;
    transform: scale(0.8);
}

.theme-toggle input:not(:checked)+label .moon {
    opacity: 0;
    transform: scale(0.8);
}

.theme-toggle input:not(:checked)+label .sun {
    opacity: 1;
    transform: scale(1);
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(2px);
}

.circle {
    background: var(--primary);
    animation: float 25s infinite ease-in-out;
}

.triangle {
    width: 0;
    height: 0;
    border-style: solid;
    animation: float 30s infinite ease-in-out;
    border-color: transparent transparent var(--accent) transparent;
}

.square {
    background: var(--secondary);
    animation: float 35s infinite ease-in-out;
    border-radius: 12px;
}

header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out forwards;
    perspective: 1000px;
}

.logo {
    width: 100px;
    height: 100px;
    background: var(--lighter);
    border-radius: 24px;
    margin: 20px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
}

.logo i {
    font-size: 48px;
    color: var(--primary);
    transform: translateZ(30px);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(67, 97, 238, 0.15);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.distros {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.distro-card {
    background: var(--lighter);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    position: relative;
    border: 2px solid transparent;
}

.distro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.distro-header {
    padding: 15px 25px 10px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.distro-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.2);
}

.distro-icon i {
    font-size: 28px;
    color: #fff;
}

.distro-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

.distro-content {
    padding: 20px 25px 25px;
}

.distro-content ul {
    padding-left: 0;
    list-style: none;
}

.distro-content li {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.distro-content li:hover {
    transform: translateX(5px);
    border-bottom-color: var(--accent);
}

.distro-content li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.distro-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.distro-content a:hover {
    color: var(--secondary);
}

.distro-content a i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.distro-content a:hover i {
    transform: translateX(5px);
}

.version-tag {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: auto;
}

.version-tag.latest {
    background: rgba(76, 201, 240, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(76, 201, 240, 0.5);
}

.iso-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 8px;
    padding-left: 28px;
    color: var(--text-light);
    font-size: 0.82rem;
}

a:focus-visible,
input:focus-visible,
label:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 8px;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(100px, 100px);
    }

    50% {
        transform: translate(200px, -50px);
    }

    75% {
        transform: translate(-100px, 150px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.distro-card:nth-child(1) {
    animation-delay: 0.1s;
}

.distro-card:nth-child(2) {
    animation-delay: 0.2s;
}

.distro-card:nth-child(3) {
    animation-delay: 0.3s;
}

.distro-card:nth-child(4) {
    animation-delay: 0.4s;
}

.distro-card:nth-child(5) {
    animation-delay: 0.5s;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .distros {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating-shapes {
        display: none;
    }

    .distro-card {
        opacity: 1;
        transform: none;
    }
}