@import url('./root.css');
@import url('./global.css');


/* ============================================================
   RESET
============================================================ */

*,
*::before,
*::after {

    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

html {

    scroll-behavior: smooth;
    font-size: 16px;

}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #0A0A0A;
    color: #D1D5DB;
    line-height: 1.6;
    overflow-x: hidden;
}

body,
button,
a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 5.5rem;
    padding-bottom: 6.5rem;
}

/* ============================================================
   SCROLL REVEAL
============================================================ */

.slide-on-scroll {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
    will-change: transform, opacity;
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}


.slide-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ============================================================
   STAGGERED TEAM ANIMATION
============================================================ */
.staggered-slide>* {

    opacity: 0;

    transform: translate3d(0, 40px, 0);

    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);

}


.staggered-slide.is-visible>*:nth-child(3n + 1) {

    opacity: 1;

    transform: translate3d(0, 0, 0);

    transition-delay: 0.08s;

}


.staggered-slide.is-visible>*:nth-child(3n + 2) {

    opacity: 1;

    transform: translate3d(0, 0, 0);

    transition-delay: 0.16s;

}


.staggered-slide.is-visible>*:nth-child(3n + 3) {

    opacity: 1;

    transform: translate3d(0, 0, 0);

    transition-delay: 0.24s;

}





/* ============================================================
   TEAM SECTION
============================================================ */

.team-section {
    background-color: #0A0A0A;
    padding: 90px 0 110px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

/* ============================================================
   TEAM CARD
============================================================ */

.team-card {
    position: relative;
    overflow: hidden;
    background-color: #141414;
    border: 1px solid #262626;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease, border-color 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 18px 42px rgba(165, 0, 13, 0.2);
}


/* ============================================================
   TEAM IMAGE
============================================================ */

.team-img-box {

    width: 100%;

    aspect-ratio: 4 / 6;

    overflow: hidden;

    background-color: #1A1A1A;

}


.team-img-box img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

}


.team-card:hover .team-img-box img {

    transform: scale(1.05);

}


/* ============================================================
   TEAM INFORMATION
============================================================ */

.team-hover-info {

    position: absolute;

    left: 50%;

    bottom: 20px;

    z-index: 2;

    width: 86%;

    padding: 1.15rem;

    text-align: center;

    background: radial-gradient(ellipse at 27% 8%,
            #ff0000 0%,
            #c40000 30%,
            #8a0000 60%,
            #4a0000 85%,
            #330000 100%);

    border: 1px solid #262626;

    border-radius: 12px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.6);

    opacity: 0;

    transform:
        translate3d(-50%, 60px, 0);

    pointer-events: none;

    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease;

}


.team-card:hover .team-hover-info {

    opacity: 1;

    transform:
        translate3d(-50%, 0, 0);

}


.member-name {

    color: #FFFFFF;

    font-size: 1.05rem;

    font-weight: 800;

    line-height: 1.4;

    margin-bottom: 0.25rem;

}


.member-role {

    color: #FFFFFF;

    font-size: 0.85rem;

    font-weight: 600;

    line-height: 1.4;

    margin-bottom: 0.5rem;

}


/* ============================================================
   SOCIAL DOTS
============================================================ */

.social-dots {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    margin-top: 0.4rem;

}


.social-dots span {

    display: inline-block;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background-color: var(--accent-color);

    transition:
        transform 0.3s ease;

}


.team-card:hover .social-dots span:nth-child(1) {

    transform: scale(1.2);

    transition-delay: 0.1s;

}


.team-card:hover .social-dots span:nth-child(2) {

    transform: scale(1.2);

    transition-delay: 0.2s;

}


.team-card:hover .social-dots span:nth-child(3) {

    transform: scale(1.2);

    transition-delay: 0.3s;

}