/*
    ABOUT US PAGE STYLES
    This file adds styles on top of style.css and reviews.css
*/

/* HERO SECTION */
.hero-about {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: var(--background-color);
    overflow: hidden;
}

#hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-about .hero-content {
    z-index: 2;
}

.hero-about p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* GLITCH EFFECT */
.glitch {
    font-family: var(--font-primary);
    font-size: 5rem;
    position: relative;
    letter-spacing: 5px;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    animation: glitch-anim1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-color), 2px 2px var(--primary-color);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim1 {
    0% {
        clip-path: inset(15% 0 86% 0);
    }

    100% {
        clip-path: inset(90% 0 1% 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: inset(77% 0 10% 0);
    }

    100% {
        clip-path: inset(10% 0 80% 0);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(1deg);
    }
}

/* MISSION SECTION */
.mission-section {
    background: var(--dark-grey);
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.mission-text {
    flex: 1.5;
}

.mission-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mission-image {
    flex: 1;
}

.mission-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* PHILOSOPHY SECTION */
.philosophy-section {
    background: var(--background-color);
}

/* STORY TIMELINE SECTION */
.story-section {
    background: var(--dark-grey);
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding: 2rem 0;
}

.story-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--background-color);
    position: relative;
    border-radius: 8px;
    text-align: right;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.visible .timeline-content {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--background-color);
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.5s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item.visible .timeline-dot {
    background-color: var(--primary-color);
}

.timeline-content h3 {
    color: var(--primary-color);
}

/* TEAM SECTION */
.reviewers-section {
    background: var(--background-color);
}

.reviewers-grid .reviewer-card {
    flex: 1;
}

.reviewers-grid {
    display: flex;

}

.reviewer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
}
.reviewer-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
 
    margin-bottom: 1rem;
}

.reviewer-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.reviewer-front {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.reviewer-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reviewer-card:hover .reviewer-front img {
    transform: scale(1.1);
}

.reviewer-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.reviewer-card:hover .reviewer-back {
    opacity: 1;
}

.reviewer-back h5 {
    color: #aaa;
    margin-top: -10px;
    margin-bottom: 10px;
    font-weight: normal;
}

/* WHAT WE COVER SECTION */
.coverage-section {
    position: relative;
    background: var(--dark-grey);
    overflow: hidden;
    color: #fff;
}

.coverage-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.5s ease, transform 10s linear;
    z-index: 0;
}

.coverage-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 12, 29, 0.85);
    z-index: 1;
}

.coverage-section .container {
    position: relative;
    z-index: 2;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.coverage-item {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: default;
    transition: background 0.3s ease, transform 0.3s ease;
}

.coverage-item h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin: 0;
}

.coverage-item i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.coverage-grid:hover .coverage-item {
    opacity: 0.5;
}

.coverage-grid:hover .coverage-item:hover {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.5);
}

/* JOIN COMMUNITY SECTION */
.join-community-section {
    background: var(--dark-grey);
    text-align: center;
}

.join-community-section .cta-button i {
    margin-left: 0.5rem;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .glitch {
        font-size: 3rem;
    }

    .mission-content {
        flex-direction: column;
    }

    .story-timeline::after {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 1px;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
    .reviewers-grid {
       flex-direction: column;
    }
}