/* Header Background */
.header-background {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    background-color: #0d0e10;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
    background-position: top;
    background-repeat: no-repeat;
    filter: brightness(0.5) blur(5px);
    background-image: url("../../images/backgrounds/AboutPage/aboutHeader.webp");
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #b8b8b8;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background-color: #08080C;
    color: white;
    text-align: center;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo and Cards Section */
.logo-and-cards {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    height: 400px;
    width: auto;
}

.cards-container {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-card {
    background: rgba(31, 31, 31, 0.23);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.21);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4b8aff;
}
.about-card:hover .card-icon {
    color: #336fe0;
    transform: scale(1.1);
    transition: transform 0.3s ease 0s, color 0.3s ease 0s;
}
.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    font-size: 1rem;
    color: #b8b8b8;
}

/* Team Section */
.team-section {
    margin-top: 4rem;
}

.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Team Group Titles */
.team-group-titles {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-group-title {
    font-size: 1.5rem;
    color: #b8b8b8;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.team-group-title:hover {
    color: white;
}

.team-group-title.active {
    color: #4b8aff;
    font-weight: bold;
}

.team-group-title.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #4b8aff;
    border-radius: 3px;
}

/* Team Carousel */
.team-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.team-cards {
    display: flex;
    transition: transform 0.5s ease;
}

.team-group {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 190px;
    height: 254px;
    perspective: 1000px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

.title {
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: white;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    cursor: pointer;
}

.flip-card-front, .flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.21);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(31, 31, 31, 0.23);
    backdrop-filter: blur(10px);
}

.flip-card-front {
    color: white;
}

.flip-card-back {
    color: white;
    transform: rotateY(180deg);
    background: rgba(31, 31, 31, 0.4);
}

/* Team Icon */
.team-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4b8aff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.flip-card:hover .team-icon {
    color: #336fe0;
    transform: scale(1.1);
}

/* Card Content */
.flip-card p {
    font-size: 1rem;
    color: #b8b8b8;
    margin: 0.25rem 0;
}

.flip-card p.title {
    color: white;
    margin-bottom: 0.5rem;
}

/* Instagram Link */
.instagram-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.instagram-link:hover {
    color: #c13584;
}


/* Mobile Styles */
@media (max-width: 768px) {
    /* Header Background */
    .header-background {
        min-height: 50vh;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* About Section */
    .about {
        padding: 2rem 1rem;
    }

    /* Logo and Cards Section */
    .logo-and-cards {
        flex-direction: column;
        gap: 2rem;
        justify-content: center;
        align-items: center;
    }


    .about-logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .about-logo {
        height: 200px;
        width: auto;
        margin: 0 auto;
    }

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

    .about-card {
        min-height: 180px;
        display: flex;
        width: 100%;
        flex-direction: column;
        justify-content: space-between;
    }
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .card-icon {
        font-size: 1.5rem;
    }

    .about-card h3 {
        font-size: 1.25rem;
    }

    .about-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        margin-top: auto;
    }

    .team-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .team-group-titles {
        gap: 1rem;
    }

    .team-group-title {
        font-size: 1.2rem;
        padding: 0.3rem 0.8rem;
    }

    .team-group {
        gap: 1rem;
    }

    .flip-card {
        width: 140px;
        height: 200px;
    }

    .title {
        font-size: 1.2em;
    }

    .team-icon {
        font-size: 1.5rem;
    }

    .instagram-link {
        font-size: 1.25rem;
    }
}
