/* About Page Specific Styles */

/* Animations for About Section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* About Intro Section */
.about-intro {
    padding: 120px 0;
    background: linear-gradient(135deg, 
        var(--dark-color) 0%, 
        rgba(13, 30, 45, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.about-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 87, 183, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.about-intro-content {
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-intro-text {
    flex: 1;
    max-width: 800px;
    animation: fadeInLeft 1s ease-out;
}

.about-intro-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--blue-color) 0%, var(--yellow-color) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    line-height: 1.2;
    animation: gradientShift 3s ease-in-out infinite;
}

.about-intro-text h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--blue-color) 0%, var(--yellow-color) 100%);
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 0.5s forwards;
}

@keyframes expandWidth {
    to {
        width: 80px;
    }
}

.about-intro-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-align: justify;
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.about-intro-text p:first-of-type {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    padding-left: 25px;
    animation-delay: 0.6s;
}

.about-intro-text p:first-of-type::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, var(--blue-color) 0%, var(--yellow-color) 100%);
    border-radius: 2px;
    animation: expandHeight 1s ease-out 1s forwards;
}

@keyframes expandHeight {
    to {
        height: 40px;
    }
}

.about-intro-text p:last-of-type {
    font-style: italic;
    color: rgba(255, 215, 0, 0.9);
    background: rgba(255, 215, 0, 0.05);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--yellow-color);
    position: relative;
    margin-top: 40px;
    animation-delay: 0.9s;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.about-intro-text p:last-of-type:hover {
    background: rgba(255, 215, 0, 0.08);
    transform: translateY(15px);
}

.about-intro-text p:last-of-type::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: var(--yellow-color);
    font-family: serif;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 0.7;
    }
}

.about-intro-image {
    flex: 1;
    animation: fadeInRight 1s ease-out 0.4s both;
}

.about-intro-image img {
    border-radius: 15px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 87, 183, 0.2),
        0 0 50px rgba(255, 215, 0, 0.1);
    transition: all 0.4s ease;
    transform: scale(0.95);
    animation: scaleIn 1s ease-out 0.8s forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.about-intro-image img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 87, 183, 0.3),
        0 0 70px rgba(255, 215, 0, 0.2);
}

/* About History Section */
.about-history {
    background-color: var(--gray-color);
    padding: 100px 0;
}

.history-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.history-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--blue-color), var(--accent-color));
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    padding-left: 120px;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 40px;
    background: linear-gradient(135deg, var(--blue-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-weight: 700;
}

.timeline-content h3 {
    color: white;
    margin-bottom: 10px;
}

/* About Values Section */
.about-values {
    background-color: var(--dark-color);
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    padding: 2px;
    background: linear-gradient(135deg, var(--blue-color), var(--accent-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.3s ease;
}

.value-item:hover::before {
    opacity: 1;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 87, 183, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* About Team Section */
.about-team {
    background-color: var(--gray-color);
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    padding: 2px;
    background: linear-gradient(135deg, var(--blue-color), var(--accent-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member:hover::before {
    opacity: 1;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 87, 183, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
}

.member-photo {
    height: 300px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    margin-top: 20px;
    color: white;
    font-size: 1.5rem;
}

.member-position {
    color: var(--blue-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.member-bio {
    padding: 0 20px 20px;
}

/* Responsive styles for about page */
@media (max-width: 1200px) {
    .about-intro-text h2 {
        font-size: 3rem;
    }
    
    .about-intro-text p {
        font-size: 1.2rem;
    }
    
    .about-intro-text p:first-of-type {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .about-intro {
        padding: 80px 0;
    }
    
    .about-intro-content {
        flex-direction: column;
        gap: 50px;
    }
    
    .about-intro-text {
        max-width: none;
        text-align: center;
    }
    
    .about-intro-text h2 {
        font-size: 2.8rem;
    }
    
    .about-intro-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-intro-text p:first-of-type {
        text-align: center;
        padding-left: 0;
        padding-top: 25px;
        position: relative;
    }
    
    .about-intro-text p:first-of-type::before {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        width: 60px;
        height: 4px;
    }
    
    .about-intro-text,
    .about-intro-image {
        width: 100%;
    }
    
    .about-intro-image {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .about-intro {
        padding: 60px 0;
    }
    
    .about-intro-text {
        animation: fadeInUp 0.8s ease-out;
    }
    
    .about-intro-text h2 {
        font-size: 2.4rem;
        margin-bottom: 30px;
        animation: gradientShift 4s ease-in-out infinite;
    }
    
    .about-intro-text p {
        font-size: 1.1rem;
        text-align: left;
        margin-bottom: 25px;
        animation: fadeInUp 0.8s ease-out 0.2s forwards;
    }
    
    .about-intro-text p:first-of-type {
        font-size: 1.2rem;
        text-align: left;
        padding-left: 20px;
        padding-top: 0;
        animation-delay: 0.4s;
    }
    
    .about-intro-text p:first-of-type::before {
        left: 0;
        transform: none;
        top: 10px;
        width: 4px;
        height: 35px;
        animation: none;
        height: 35px;
    }
    
    .about-intro-text p:last-of-type {
        padding: 20px;
        margin-top: 30px;
        animation-delay: 0.6s;
        transform: none;
    }
    
    .about-intro-text p:last-of-type:hover {
        transform: none;
    }
    
    .about-intro-text p:last-of-type::before {
        font-size: 2.5rem;
        top: -8px;
        left: 12px;
        animation: none;
        opacity: 0.7;
    }
    
    .about-intro-text h2::after {
        animation: none;
        width: 80px;
    }
    
    .about-intro-image {
        animation: fadeInUp 0.8s ease-out 0.3s both;
    }
    
    .about-intro-image img {
        animation: none;
        transform: scale(1);
    }
    
    .history-timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-year {
        width: 70px;
        font-size: 14px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .about-intro {
        padding: 40px 0;
    }
    
    .about-intro-content {
        gap: 40px;
    }
    
    .about-intro-text {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .about-intro-text h2 {
        font-size: 2rem;
        margin-bottom: 25px;
        animation: none;
        background-size: 100% 100%;
    }
    
    .about-intro-text h2::after {
        animation: none;
        width: 60px;
        height: 3px;
    }
    
    .about-intro-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 20px;
        animation: fadeInUp 0.6s ease-out 0.2s forwards;
    }
    
    .about-intro-text p:first-of-type {
        font-size: 1.1rem;
        padding-left: 18px;
        animation-delay: 0.3s;
    }
    
    .about-intro-text p:first-of-type::before {
        width: 3px;
        height: 30px;
        top: 8px;
        animation: none;
    }
    
    .about-intro-text p:last-of-type {
        padding: 18px;
        margin-top: 25px;
        border-radius: 10px;
        animation-delay: 0.4s;
        transform: none;
        transition: none;
    }
    
    .about-intro-text p:last-of-type:hover {
        background: rgba(255, 215, 0, 0.05);
        transform: none;
    }
    
    .about-intro-text p:last-of-type::before {
        font-size: 2rem;
        top: -6px;
        left: 10px;
        animation: none;
        opacity: 0.7;
    }
    
    .about-intro-image {
        animation: fadeInUp 0.6s ease-out 0.3s both;
    }
    
    .about-intro-image img {
        border-radius: 12px;
        animation: none;
        transform: scale(1);
    }
    
    .history-timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-year {
        width: 50px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .about-intro-text {
        animation: none;
    }
    
    .about-intro-text h2 {
        font-size: 1.8rem;
        animation: none;
    }
    
    .about-intro-text h2::after {
        width: 60px;
        height: 3px;
        animation: none;
    }
    
    .about-intro-text p {
        font-size: 0.95rem;
        animation: none;
        opacity: 1;
    }
    
    .about-intro-text p:first-of-type {
        font-size: 1rem;
        padding-left: 15px;
        animation: none;
    }
    
    .about-intro-text p:last-of-type {
        padding: 15px;
        font-size: 0.95rem;
        animation: none;
    }
    
    .about-intro-image {
        animation: none;
    }
}
