/* Importing main styles */
@import url('../styles.css');

/* About page specific styles */

main h1, main h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

main h1 {
    margin-bottom: 2.5rem; /* More space after main title */
}

.about-intro, .about-philosophy {
    max-width: 800px; /* Limit width for readability */
    margin: 0 auto 3rem auto; /* Center block and add bottom margin */
    padding: 0 1rem; /* Add some padding on smaller screens */
    text-align: center; /* Center text */
    line-height: 1.8;
}

.about-intro p, .about-philosophy p {
    margin-bottom: 1rem;
}

/* Team/Cards Section */
.about-team {
    margin-top: 3rem;
    padding: 0 5%; /* Consistent padding with portfolio */
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Keep image corners rounded */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
}

.about-card:hover {
    transform: translateY(-5px) scale(1.02); /* Lift and slightly scale on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.about-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, crop if needed */
    display: block;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allow content to take remaining space */
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: #444;
}

.card-content h4 {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9em;
    font-weight: normal;
}

.card-content p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
}


/* Responsive styles */
@media screen and (max-width: 768px) {
    main h1 {
        margin-bottom: 2rem;
    }

    .about-intro, .about-philosophy {
        margin-bottom: 2rem;
    }

    .about-cards {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
        gap: 1.5rem;
    }

     .about-card img {
        height: 200px; /* Adjust image height for smaller cards */
    }

    .card-content {
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
     .about-team {
        padding: 0 2%; /* Less padding on very small screens */
    }
}

/* Active Navigation Link Style (Optional) */
.nav-links a.active-nav {
    color: #666; /* Or a more distinct color/underline */
    font-weight: bold;
}
