/* ================================================
   ABOUT PAGE STYLES
   ================================================ */

:root {
    --primary: #2596be;
    --secondary: #fd9909;
    --dark: #333;
    --light: #f4f4f4;
    --white: #fff;
    --gray: #888;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero-about {
    min-height: 500px;
    background: url('../images/about.png') center/cover no-repeat;
    /* ← new background image */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-about .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="%23000" /><rect width="1200" height="600" fill="url(%23grid)" /></svg>');
    opacity: 0.8;
}

.hero-about .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-about .hero-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
}

.hero-about .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* ================================================
   ABOUT SECTION
   ================================================ */

.about-section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================
   ABOUT GRID
   ================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.about-text {
    animation-delay: 0.2s;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
    animation: expandWidth 0.8s ease forwards;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.about-text .btn {
    margin-top: 1.5rem;
    display: inline-block;
}

.about-image {
    animation-delay: 0.4s;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.1), rgba(253, 153, 9, 0.1));
    border: 2px solid rgba(37, 150, 190, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(37, 150, 190, 0.2);
    transform: translateY(-5px);
}

/* ================================================
   VALUES GRID
   ================================================ */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.value-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(37, 150, 190, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.value-card:nth-child(1) {
    animation-delay: 0.2s;
}

.value-card:nth-child(2) {
    animation-delay: 0.4s;
}

.value-card:nth-child(3) {
    animation-delay: 0.6s;
}

.value-card:hover {
    background: rgba(37, 150, 190, 0.05);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 150, 190, 0.15);
}

.value-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.value-card .image-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.1), rgba(253, 153, 9, 0.1));
    border: 2px solid rgba(37, 150, 190, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto;
}

.value-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
}

/* ================================================
   TEAM SECTION
   ================================================ */

.team-section {
    margin: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(37, 150, 190, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.team-member:nth-child(1) {
    animation-delay: 0.1s;
}

.team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.team-member:nth-child(3) {
    animation-delay: 0.3s;
}

.team-member:nth-child(4) {
    animation-delay: 0.4s;
}

.team-member:hover {
    background: rgba(37, 150, 190, 0.05);
    border-color: var(--primary);
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(37, 150, 190, 0.2);
}

.member-image {
    margin-bottom: 1.5rem;
}

.team-member .image-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    font-size: 3rem;
}

.team-member .member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.1), rgba(253, 153, 9, 0.1));
    border: 2px solid rgba(37, 150, 190, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: all 0.3s ease;
}

.team-member:hover .member-avatar {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(37, 150, 190, 0.2);
}

.team-member h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.member-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.member-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray);
}

/* ================================================
   WHY US SECTION
   ================================================ */

.why-us-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.05), rgba(253, 153, 9, 0.05));
    border-radius: 20px;
    padding: 3rem;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-item {
    position: relative;
    padding-left: 4rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.why-us-item:nth-child(1) {
    animation-delay: 0.1s;
}

.why-us-item:nth-child(2) {
    animation-delay: 0.2s;
}

.why-us-item:nth-child(3) {
    animation-delay: 0.3s;
}

.why-us-item:nth-child(4) {
    animation-delay: 0.4s;
}

.why-us-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    opacity: 0.3;
}

.why-us-item h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.why-us-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: fit-content;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0d8fb8);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 150, 190, 0.3);
    background: linear-gradient(135deg, #0d8fb8, var(--primary));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #ff7f00);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(253, 153, 9, 0.3);
    background: linear-gradient(135deg, #ff7f00, var(--secondary));
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .hero-about {
        min-height: 350px;
    }

    .hero-about .hero-heading {
        font-size: 2.2rem;
    }

    .hero-about .hero-subtitle {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-about {
        min-height: 280px;
    }

    .hero-about .hero-heading {
        font-size: 1.6rem;
    }

    .hero-about .hero-subtitle {
        font-size: 0.9rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .team-member .image-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-title::after {
        width: 50px;
    }

    .why-us-item {
        padding-left: 3rem;
    }

    .why-us-number {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* About Image */
.about-image .image-placeholder {
    position: relative;
    /* To contain the absolutely positioned image */
    overflow: hidden;
    /* Hide any overflow from the image */
    width: 100%;
    height: 400px;
    /* Keep the fixed height */
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.1), rgba(253, 153, 9, 0.1));
    border: 2px solid rgba(37, 150, 190, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.about-image .image-placeholder img {
    position: absolute;
    /* Fill the container completely */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the area without distortion */
}