/* Variables */
:root {
    --primary-color: #e63946;
    --text-dark: #1d3557;
    --text-light: #457b9d;
    --background-light: #f1faee;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* About Hero Styles */
.about-hero {
    height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-content p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.about-hero .hero-bg {
    opacity: 0.7;
    animation: heroZoom 20s infinite alternate;
    @media (prefers-reduced-motion: reduce) {
        animation: none;
    }
    filter: brightness(0.6) saturate(1.2);
}

/* About Navigation */
.about-nav {
    background: rgba(17, 17, 17, 0.95);
    position: sticky;
    background-color: rgba(17, 17, 17, 0.95);
    @supports (backdrop-filter: blur(10px)) {
        backdrop-filter: blur(10px);
    }
    z-index: 100;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 1rem;
}

.nav-link {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-family: inherit;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red, #e63946);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* About Content Styles */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.about-section {
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.content-column h2 {
    font-size: 2.5rem;
    color: var(--brand-black, #111);
    margin-bottom: 2rem;
}

.content-column p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.story-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.story-image:hover {
    transform: scale(1.02);
}

/* Team Section Enhancements */
.team-section {
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--brand-black, #111);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.team-member {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
}

.member-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-info .role {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-info .bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 1rem;
}

/* Custom Scrollbar for Bio */
.bio::-webkit-scrollbar {
    width: 4px;
}

.bio::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.bio::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.bio::-webkit-scrollbar-thumb:hover {
    background: #d62828;
}

/* Member Overlay Styling */
.member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-image:hover .member-overlay {
    opacity: 1;
}

.expand-image {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.expand-image:hover {
    transform: scale(1.1);
}

/* Expand Button Styles */
.expand-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    padding: 0.5rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.expand-btn:hover {
    color: #d62828;
    text-decoration: underline;
}

/* Values Section Styling */
.values-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
}

.value-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(230, 57, 70, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.value-card:hover i {
    transform: scale(1.1);
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.value-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Section Header Enhancement */
.values-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.values-section .section-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.values-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.values-section .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .team-member {
        margin-bottom: 3rem;
    }

    .member-image {
        height: 400px;
        border-radius: 15px;
    }

    .team-info {
        padding: 1.5rem;
    }

    .team-info h3 {
        font-size: 1.8rem;
    }

    .team-info .role {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .bio {
        font-size: 1rem;
        line-height: 1.6;
        max-height: none;
    }

    .value-card {
        padding: 2rem;
        margin: 0 1rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Animation */
.zoom-in {
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}