/* About Hero Section */
.about-hero {
    position: relative;
    height: 500px;
    background-image: url('../../images/gallery/yoyo-beer-garden-panorama-01.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.about-hero-content h1 span {
    color: var(--color-primary);
}

.about-hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Our Story Section */
.our-story {
    padding: 100px 0;
    background-color: var(--color-background-light);
    color: var(--color-text-primary);
}

.story-container {
    margin-top: 60px;
}

.story-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(1) {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(2) {
    transition-delay: 0.4s;
}

.timeline-item:nth-child(3) {
    transition-delay: 0.6s;
}

.timeline-item:nth-child(4) {
    transition-delay: 0.8s;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border-radius: 50%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(244, 81, 30, 0.3);
}

.timeline-date {
    position: absolute;
    top: -10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    background-color: white;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 55%;
}

.timeline-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    padding-top: 40px; /* Thêm padding-top để tránh đè lên năm */
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-top: 20px; /* Thêm margin-top để tạo khoảng cách với timeline-date */
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.timeline-image {
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.timeline-content:hover .timeline-image {
    transform: scale(1.03);
}

/* Stats Section */
.stats-section {
    background-color: var(--color-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background-color: var(--color-background-muted);
    text-align: center;
}

.values-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 60px;
}

.value-item {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    height: 60px;
    width: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: rgba(244, 81, 30, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-text-primary);
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background-color: white;
}

.team-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 60px;
}

.team-member {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.member-info {
    padding: 25px;
    text-align: center;
}

.member-info h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-text-primary);
}

.member-role {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.member-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-background-muted);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-text-primary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Styles cho timeline */
@media (max-width: 992px) {
    .about-hero-content h1 {
        font-size: 2.8rem;
    }
    
    .story-timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 30px;
        right: auto;
        text-align: left;
        top: -20px;
    }
    
    .timeline-content {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 400px;
    }
    
    .about-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .about-hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        height: 300px;
    }
    
    .about-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .timeline-content {
        padding: 25px;
        padding-top: 35px;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .timeline-date {
        font-size: 1rem;
        padding: 3px 8px;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 30px;
        top: -15px;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item {
        min-width: 100%;
    }
}
