/* ========================================
   KURC TEAM
======================================== */

:root {
    --primary: #606646;
    --secondary: #FF7A00;
    --background: #000000;
    --text: #22d3ee;
    --muted: #e9e9e9;
    --white: #FFFFFF;
}


/* ========================================
   RESET
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family: "Poppins", sans-serif;
}


/* ========================================
   MAIN TEAM SECTION
======================================== */

.team-section {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 70px 30px 100px;
}


/* ========================================
   HEADER
======================================== */

.team-header {
    text-align: center;

    margin-bottom: 65px;
}

.section-label {
    display: inline-block;

    color: var(--secondary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 8px;
}

.team-header h1 {
    margin: 0;

    font-size: 48px;
    font-weight: 700;

    color: var(--text);
}

.team-header p {
    max-width: 600px;

    margin: 12px auto 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.7;
}


/* ========================================
   TEAM GROUP
======================================== */

.team-group {
    width: 100%;

    margin-top: 70px;
}

.team-group h2 {
    position: relative;

    text-align: center;

    font-size: 24px;
    font-weight: 600;

    margin-bottom: 45px;
}

.team-group h2::after {
    content: "";

    display: block;

    width: 45px;
    height: 3px;

    margin: 10px auto 0;

    background: var(--secondary);

    border-radius: 10px;
}


/* ========================================
   TEAM ROW
======================================== */

.team-row {
    width: 100%;

    display: flex;

    justify-content: center;
    align-items: flex-start;

    flex-wrap: wrap;
}


/* ========================================
   PRESIDENT
======================================== */

.president-level {
    display: flex;

    justify-content: center;
    align-items: center;
}


/* ========================================
   PROFILE
======================================== */

.profile {
    width: 350px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: flex-end;

    margin: 20px;

    padding-top: 20px;

    max-height: 100px;

    cursor: pointer;

    transition:
        max-height 0.5s ease,
        transform 0.3s ease;
}


/* ========================================
   PROFILE PHOTO
======================================== */

.picture {
    width: 60px;
    height: 60px;

    object-fit: cover;

    border-radius: 50%;

    position: relative;

    z-index: 5;

    border: 4px solid transparent;

    transition:
        border 0.3s ease,
        transform 0.3s ease;
}


/* ========================================
   PROFILE DETAILS
======================================== */

.details {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    margin-top: 8px;

    font-size: 15px;
}

.details strong {
    font-weight: 600;
}

.details span {
    font-size: 13px;

    font-weight: 400;

    color: var(--muted);
}


/* ========================================
   CARD
======================================== */

.card {
    width: 400px;
    min-height: 350px;

    margin-bottom: 20px;

    padding: 20px;

    background: var(--primary);

    color: white;

    border-radius: 24px;

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    overflow: visible;

    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.15);

    /* Hidden state */
    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateY(10px);

    /*
       Normal closing transition.
       Visibility waits until opacity animation finishes.
    */
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0s linear 0.5s;
}


/* ========================================
   CARD HEADER
======================================== */

.head {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    margin-bottom: 10px;
}

.head img {
    width: 100px;
    height: 100px;

    object-fit: cover;

    border-radius: 18px;
}

.name {
    margin-left: 10px;

    padding: 5px 9px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 10px;

    font-size: 15px;
    font-weight: 400;
}


/* ========================================
   CARD CONTENT
======================================== */

.content {
    width: 100%;

    flex-grow: 1;

    display: flex;

    justify-content: center;

    flex-direction: column;

    position: relative;

    font-size: 14px;

    line-height: 1.65;
}

.content p {
    margin: 0;
}


/* ========================================
   ROLE
======================================== */

.role {
    color: var(--secondary);

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 8px;
}


/* ========================================
   GLOW
======================================== */

.content::before {
    content: "";

    position: absolute;

    top: 90%;
    left: 70%;

    width: 60px;
    height: 30px;

    background: var(--secondary);

    transform: translate(-50%, 0);

    filter: blur(30px);

    opacity: 0.7;

    pointer-events: none;
}


/* ========================================
   SOCIAL ICONS
======================================== */

.icons {
    width: 100%;

    padding: 0 20px;

    display: flex;

    align-items: center;
    justify-content: space-evenly;

    background: rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    border-radius: 30px;
}

.icons a {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    text-decoration: none;

    font-size: 17px;

    transition: 0.3s ease;
}

.icons a:hover {
    background: white;

    color: var(--primary);

    border-radius: 50%;

    transform: translateY(-3px);
}


/* ========================================
   CARD POINTER
======================================== */

.card::before {
    content: "location_pin";

    position: absolute;

    font-family: "Material Icons";

    color: var(--primary);

    font-size: 80px;

    top: calc(100% - 7px);

    left: 50%;

    transform:
        translate(-50%, 0)
        rotate(180deg);
}


/* ========================================
   DESKTOP HOVER
======================================== */

@media (min-width: 769px) {

    /*
       Wait 1 second before the profile expands.
    */

    .profile:hover {
        max-height: 500px;

        transition-delay: 0.3s;
    }


    /*
       Wait 1 second before the image effect.
    */

    .profile:hover .picture {
        border-color: var(--secondary);

        transform: scale(1.05);

        transition-delay: 0.3s;
    }


    /*
       Card appears after 1 second.
    */

    .profile:hover .card {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);

        /*
           The 0.15 second delay is the important part.
        */

        transition-delay: 0.3s;
    }
}


/* ========================================
   ACTIVE STATE
======================================== */

.profile.active {
    max-height: 500px;
}

.profile.active .picture {
    border-color: var(--secondary);

    transform: scale(1.05);
}

.profile.active .card {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);

    transition-delay: 0s;

    animation: fade 0.5s ease;
}


/* ========================================
   FADE ANIMATION
======================================== */

@keyframes fade {

    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* ========================================
   LEADERSHIP SPACING
======================================== */

.leadership-row {
    gap: 50px;
}


/* ========================================
   MANAGEMENT SPACING
======================================== */

.management-row {
    gap: 5px;
}


/* ========================================
   EXECUTIVE BOARD
======================================== */

.executive-section {
    margin-top: 90px;
}

.executive-row {
    gap: 0;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1100px) {

    .team-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .profile {
        margin: 15px;
    }

    .management-row {
        max-width: 850px;

        margin-left: auto;
        margin-right: auto;
    }

    .executive-row {
        max-width: 850px;

        margin-left: auto;
        margin-right: auto;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .team-section {
        padding: 50px 15px 70px;
    }


    /* Header */

    .team-header {
        margin-bottom: 45px;
    }

    .team-header h1 {
        font-size: 36px;
    }

    .team-header p {
        font-size: 14px;

        padding: 0 10px;
    }


    /* Section */

    .team-group {
        margin-top: 55px;
    }

    .team-group h2 {
        font-size: 21px;

        margin-bottom: 30px;
    }


    /* Rows */

    .team-row {
        flex-direction: column;

        align-items: center;
    }


    /* Profiles */

    .profile {
        width: 100%;

        max-width: 350px;

        min-width: 0;

        margin: 15px auto;
    }


    /* Disable desktop hover */

    .profile:hover {
        max-height: 100px;

        transition-delay: 0s;
    }

    .profile:hover .card {
        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform: translateY(10px);

        transition-delay: 0s;
    }

    .profile:hover .picture {
        border-color: transparent;

        transform: none;

        transition-delay: 0s;
    }


    /* Enable click */

    .profile.active {
        max-height: 500px;
    }

    .profile.active .card {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);

        transition-delay: 0s;
    }

    .profile.active .picture {
        border-color: var(--secondary);

        transform: scale(1.05);

        transition-delay: 0s;
    }


    /* Card */

    .card {
        width: 100%;

        min-height: 300px;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 400px) {

    .team-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .team-header h1 {
        font-size: 30px;
    }

    .profile {
        max-width: 320px;
    }

    .card {
        min-height: 290px;

        padding: 18px;

        border-radius: 20px;
    }

    .content {
        font-size: 13px;
    }

    .name {
        font-size: 13px;
    }

}