.video-container, #bg-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}
.video-container:after {
    content:"";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

header {
    background: transparent;
    /*border-bottom: 1px solid rgba(255,255,255,0.1);*/
}

html {
	min-height: 100%;
}

body {
	height: 100%;
	background-size: cover;
	color: rgba(255,255,255,0.85);
}

.text {
    font-size: 1.5rem;
    font-weight: 300;
}

.text a {
	color: rgba(255,255,255,0.85);
	font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.25);
    transition: color 0.15s, border-bottom 0.15s;
}

.text a:hover {
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,1);
    color: rgba(255,255,255,1);
}

.text a:active {
    transition: 0s;
}

h3 {
    font-variant: small-caps;
    font-size: 1.5rem;
}

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

li {
    margin-bottom: 0.5rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.info-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: rgba(255,255,255,0.85);
    transition: box-shadow 0.1s ease-out;
    opacity: 0;
    animation: cardFloat 0.5s ease-out forwards;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    transform-style: preserve-3d;
    min-width: 0;
}

.info-card.clickable-card {
    cursor: pointer;
}

.info-card.clickable-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    color: white;
}

.card-header {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 1;
    text-transform: lowercase;
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.6);
}

.card-hero {
    font-size: 3rem;
    font-weight: 200;
    line-height: 1;
    color: rgba(255,255,255,0.95);
}

.card-unit {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.6;
}

.card-description {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.7;
    line-height: 1.4;
}

.card-content {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

@keyframes cardFloat {
    to {
        opacity: 1;
    }
}

.info-card:nth-child(1) { animation-delay: 0ms; }
.info-card:nth-child(2) { animation-delay: 150ms; }
.info-card:nth-child(3) { animation-delay: 300ms; }
.info-card:nth-child(4) { animation-delay: 450ms; }
.info-card:nth-child(5) { animation-delay: 600ms; }
.info-card:nth-child(6) { animation-delay: 750ms; }
.info-card:nth-child(7) { animation-delay: 900ms; }
.info-card:nth-child(8) { animation-delay: 1050ms; }
.info-card:nth-child(9) { animation-delay: 1200ms; }
.info-card:nth-child(10) { animation-delay: 1350ms; }
.info-card:nth-child(11) { animation-delay: 1500ms; }
.info-card:nth-child(12) { animation-delay: 1650ms; }
.info-card:nth-child(13) { animation-delay: 1800ms; }
.info-card:nth-child(14) { animation-delay: 1950ms; }
.info-card:nth-child(15) { animation-delay: 2100ms; }
.info-card:nth-child(16) { animation-delay: 2250ms; }
.info-card:nth-child(17) { animation-delay: 2400ms; }
.info-card:nth-child(18) { animation-delay: 2550ms; }

.section-header {
    font-variant: small-caps;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    text-align: center;
    color: rgba(255,255,255,0.9);
}

.card-content a {
	color: rgba(255,255,255,0.9);
	font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,.3);
    transition: color 0.15s, border-bottom 0.15s;
}

.card-content a:hover {
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.8);
    color: rgba(255,255,255,1);
}

.card-content a:active {
    transition: 0s;
}

@media (min-width: 768px) and (max-width: 991px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .text {
        font-size: 1rem;
    }

    h3 {
        font-size: 1rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .info-card {
        margin: 0;
        padding: 1.25rem;
    }

    .card-header {
        font-size: 0.8rem;
    }

    .card-hero {
        font-size: 2.5rem;
    }

    .card-unit {
        font-size: 1.2rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    .card-content {
        font-size: 1rem;
    }

    .section-header {
        font-size: 1rem;
    }

    .btn-social-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-social {
        text-align: center;
        width: 20%;
        min-width: 60px;
    }

    .btn-social:first-of-type {
        border-left: none;
    }

    .btn-social-text {
        display: none;
    }
}

.btn-social {
    text-align: left;
    width: 20%;
    border: white;
    transition: background-color 0.15s;
    border-left: 1px solid rgba(255,255,255,0.3);
    border-radius: 0;
}

.btn-social:active {
    transition: 0s;
}


.btn-social-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.btn-social-bar {
    opacity: 0.8;
    transition: opacity 0.15s;
    display: flex;
    max-width: 1400px;
}
.btn-social-bar:hover {
    opacity: 1.0;
}

.btn-social {
    background-color: transparent;
}
.btn-social i {
    font-size: 2rem;
}

.btn-twitter:hover {
    background-color: #1DA1F2;
}
.btn-twitter:active {
    background-color: #0c86d0;
}
.btn-instagram:hover {
    background-color: #E4405F;
}
.btn-instagram:active {
    background-color: #d31e40;
}
.btn-linkedin:hover {
    background-color: #0077B5;
}
.btn-linkedin:active {
    background-color: #005682;
}
.btn-github:hover {
    background-color: #181717;
}
.btn-github:active {
    background-color: #323030;
}
.btn-strava:hover {
    background-color: #fc4c02;
}
.btn-strava:active {
    background-color: #b93801;
}
.btn-email:hover {
	background-color: rgba(255,255,255,0.3);
}
.btn-email:active {
	background-color: rgba(200,200,200,0.3);
}

.btn-twitter,
.btn-instagram,
.btn-linkedin,
.btn-github,
.btn-strava,
.btn-email {
    color: inherit !important;
}

.btn-twitter:hover,
.btn-twitter:active,
.btn-instagram:hover,
.btn-instagram:active,
.btn-linkedin:hover,
.btn-linkedin:active,
.btn-github:hover,
.btn-github:active
.btn-strava:hover,
.btn-strava:active {
    color: white !important;
}