:root {
    --primary: #7fb2a4;
    --primary-dark: #67aa98;

    --dark: #1f2937;
    --gray: #6b7280;
    --light-bg: #f4f8f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: var(--dark);
}

.container {
    width: 80%;
    max-width: 1600px;
    margin: auto;
}

/* HERO */

.team-hero {
    position: relative;

    min-height: 50vh;

    background:
        linear-gradient(
            rgba(20, 30, 30, 0.25),
            rgba(20, 30, 30, 0.35)
        ),
        url("../img/team-hero.png");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(15, 25, 22, 0.55),
            rgba(15, 25, 22, 0.65)
        );
}

.team-hero-content {
    position: relative;
    z-index: 2;

    color: white;

    max-width: 700px;
}

.team-hero-content h1 {
    font-size: 4rem;

    margin-bottom: 20px;

    font-weight: 600;
}

.team-hero-content p {
    font-size: 1.2rem;

    color: rgba(255,255,255,0.9);
}

/* TEAM */

.team-section {
    padding: 100px 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(127,178,164,0.08),
            transparent 35%
        );
}

.team-grid {
    display: flex;

    justify-content: center;

    gap: 40px;

    flex-wrap: wrap;
}

/* CARD */

.team-card {
    background: white;

    width: 100%;
    max-width: 420px;

    border-radius: 30px;

    overflow: hidden;

    box-shadow: 0 10px 35px rgba(0,0,0,0.06);

    transition: 0.4s ease;

    position: relative;

    border: 1px solid rgba(127,178,164,0.08);
}

.team-card:hover {
    transform: translateY(-10px);

    border-color: rgba(127,178,164,0.2);

    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.team-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--primary-dark)
    );

    transform: scaleX(0);

    transform-origin: left;

    transition: 0.35s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

/* IMAGE */

.team-image {
    height: 380px;

    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

/* CONTENT */

.team-content {
    padding: 35px;
}

.role {
    display: inline-block;

    background: rgba(127,178,164,0.12);

    color: var(--primary-dark);

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 0.9rem;

    margin-bottom: 18px;

    font-weight: 600;
}

.team-content h2 {
    font-size: 2rem;

    margin-bottom: 18px;
}

.team-content p {
    color: var(--gray);

    margin-bottom: 25px;

    line-height: 1.7;
}

/* TAGS */

.team-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.team-tags span {
    background: #f3f6f5;

    padding: 10px 14px;

    border-radius: 12px;

    font-size: 0.9rem;

    color: #4b5563;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 999;

    background: rgba(15, 25, 22, 0.35);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ukrycie */
.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 0;
}

.nav-logo img {
    height: 42px;
    width: auto;

    display: block;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;

    font-weight: 500;

    font-size: 0.95rem;

    transition: 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-cta {
    background: var(--primary);

    padding: 10px 18px;

    border-radius: 12px;

    color: white !important;
}

.nav-cta:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);
}

/* toggle hidden on desktop */
.nav-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

@media (max-width: 900px) {

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;

        height: 100vh;
        width: 100%;

        background: rgba(15, 25, 22, 0.95);
        backdrop-filter: blur(12px);

        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 25px;

        transform: translateX(100%);
        transition: 0.35s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.4rem;
    }

    .nav-cta {
        padding: 14px 24px;
        font-size: 1.1rem;
    }
}