/* --- START OF FILE about.css --- */
/* Styles specific to the about.html page */

/* --- Our Story Section --- */
.about-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; position: relative; z-index: 1; }
.about-grid::before { content: ''; position: relative; width: 300px; height: 300px; background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%); border-radius: 50%; top: -100px; left: -150px; z-index: -1; opacity: 0.5; pointer-events: none; }
@media (min-width: 992px) {
    .about-grid { grid-template-columns: 1.2fr 1fr; }
    .about-image { grid-column: 2 / 3; }
    .about-content { grid-column: 1 / 2; grid-row: 1 / 2; }
}
.about-image { position: relative; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.about-image::before { content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; border: 2px solid var(--primary-color); border-radius: var(--border-radius); opacity: 0.3; z-index: -1; transform: translate(10px, 10px); transition: transform 0.5s ease; }
.about-image:hover::before { transform: translate(0, 0); }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--box-shadow); width: 100%; height: auto; max-height: 480px; object-fit: cover; border: 1px solid var(--border-color); transition: transform 0.5s ease; }
.about-image:hover img { transform: scale(1.05); }
:root.dark-mode .about-image img { box-shadow: var(--box-shadow-dark); border-color: var(--border-color-dark); }
:root.dark-mode .about-image::before { border-color: var(--primary-color-dark); }
.about-content { position: relative; }
.about-content h2 { text-align: start; margin-bottom: 1.5rem; font-size: clamp(1.6rem, 4vw, 2.2rem); position: relative; }
.about-content h2::after { content: ''; display: block; width: 80px; height: 4px; background: var(--primary-gradient); margin-top: 0.8rem; margin-left: 0; margin-right: auto; border-radius: 2px; transition: width 0.3s ease; }
html[lang="ar"] .about-content h2::after { margin-left: auto; margin-right: 0; }
.about-content:hover h2::after { width: 120px; }
.about-content p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.2rem; position: relative; z-index: 1; }
.about-content .highlight { color: var(--primary-color); font-weight: 600; position: relative; display: inline-block; }
.about-content .highlight::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 30%; background-color: rgba(var(--primary-rgb), 0.1); z-index: -1; transform: skewX(-10deg); }
:root.dark-mode .about-content .highlight { color: var(--primary-color-dark); }
:root.dark-mode .about-content .highlight::after { background-color: rgba(var(--primary-rgb-dark), 0.2); } /* Corrected dark mode highlight */

/* --- Vision, Mission, Values Section --- */
#vision-mission-values { position: relative; overflow: hidden; padding: 4rem 0; background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.03), transparent); }
#vision-mission-values::before { content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%); border-radius: 50%; z-index: 0; pointer-events: none; animation: float 15s infinite ease-in-out; }
@keyframes float { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } 100% { transform: translateY(0) rotate(0deg); } }
html[lang="ar"] #vision-mission-values::before { right: auto; left: -50px; }
.vmv-grid { display: grid; gap: calc(var(--grid-gap) * 1.2); grid-template-columns: repeat(3, 1fr); margin-top: 3rem; position: relative; z-index: 1; }
.vmv-item { text-align: center; padding: calc(var(--card-padding) * 1.1); background-color: var(--card-bg); border-radius: var(--border-radius); box-shadow: var(--box-shadow); border: 1px solid var(--border-color); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.vmv-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--primary-gradient); transform: scaleX(0.8); transform-origin: center; transition: transform 0.5s ease; }
.vmv-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(var(--primary-rgb), 0.05), transparent 50%); opacity: 0; transition: opacity 0.4s ease; z-index: -1; }
.vmv-item:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.vmv-item:hover::before { transform: scaleX(1); }
.vmv-item:hover::after { opacity: 1; }
:root.dark-mode .vmv-item { background-color: var(--card-bg-dark); border-color: var(--border-color-dark); box-shadow: var(--box-shadow-dark); }
:root.dark-mode .vmv-item:hover { box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25); }
.vmv-icon { width: 80px; height: 80px; line-height: 80px; border-radius: 20px; background: var(--primary-gradient); color: #fff; display: inline-flex; justify-content: center; align-items: center; margin-bottom: 1.5rem; font-size: 1.8rem; box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.25); position: relative; z-index: 1; transform: rotate(-5deg); transition: all 0.4s ease; }
.vmv-item:hover .vmv-icon { transform: rotate(0deg) scale(1.05); border-radius: 50%; }
.vmv-icon::after { content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px; background: var(--primary-gradient); border-radius: inherit; z-index: -1; opacity: 0.25; animation: pulse 2.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.25; } 50% { transform: scale(1.1); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.25; } }
:root.dark-mode .vmv-icon { background: var(--primary-gradient-dark); color: #111; box-shadow: 0 10px 20px rgba(var(--primary-rgb-dark), 0.3); } /* Corrected dark mode icon */
:root.dark-mode .vmv-icon::after { background: var(--primary-gradient-dark); }
.vmv-item h4 { margin-bottom: 1rem; color: var(--primary-color); font-size: 1.4rem; position: relative; display: inline-block; font-weight: 700; }
.vmv-item h4::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--primary-gradient); transition: width 0.4s ease; border-radius: 3px; }
.vmv-item:hover h4::after { width: 80%; }
:root.dark-mode .vmv-item h4 { color: var(--primary-color-dark); }
.vmv-item p { font-size: 1rem; color: var(--text-muted-color); line-height: 1.75; margin-bottom: 1.5rem; }
:root.dark-mode .vmv-item p { color: var(--text-muted-color-dark); }
.values-list { list-style: none; padding: 0; margin: 0; text-align: start; display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
html[lang="ar"] .values-list { text-align: right; }
.values-list li { display: flex; align-items: center; font-size: 0.95rem; color: var(--text-muted-color); padding: 0.8rem 0; border-bottom: 1px dashed rgba(var(--primary-rgb), 0.15); transition: all 0.3s ease; }
.values-list li:last-child { border-bottom: none; }
.values-list li:hover { transform: translateX(8px); color: var(--text-color); }
html[lang="ar"] .values-list li:hover { transform: translateX(-8px); }
:root.dark-mode .values-list li { color: var(--text-muted-color-dark); border-bottom-color: rgba(var(--primary-rgb-dark), 0.2); } /* Corrected dark mode list item */
:root.dark-mode .values-list li:hover { color: var(--text-color-dark); }
.values-list i { color: var(--secondary-color); margin-inline-end: 12px; font-size: 1em; width: 1.2em; text-align: center; flex-shrink: 0; transition: transform 0.3s ease; background: rgba(var(--secondary-rgb), 0.1); height: 1.2em; line-height: 1.2em; border-radius: 4px; }
.values-list li:hover i { transform: scale(1.2); background: rgba(var(--secondary-rgb), 0.2); }
:root.dark-mode .values-list i { color: var(--secondary-color-dark); background: rgba(var(--secondary-rgb-dark), 0.15); } /* Corrected dark mode list icon */
:root.dark-mode .values-list li:hover i { background: rgba(var(--secondary-rgb-dark), 0.25); }

/* --- Team Section --- */
#our-team { position: relative; overflow: hidden; }
#our-team::before { content: ''; position: absolute; bottom: -100px; left: -100px; width: 250px; height: 250px; background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 60%); border-radius: 50%; z-index: 0; pointer-events: none; }
html[lang="ar"] #our-team::before { left: auto; right: -100px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); margin-top: 3rem; position: relative; z-index: 1; }
.team-member { background: var(--card-bg); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; padding: 1.5rem; border: 1px solid var(--border-color); position: relative; display: flex; flex-direction: column; }
:root.dark-mode .team-member { background-color: var(--card-bg-dark); border-color: var(--border-color-dark); box-shadow: var(--box-shadow-dark); }
.team-member:hover { transform: translateY(-8px); box-shadow: var(--box-shadow-hover); }
:root.dark-mode .team-member:hover { box-shadow: var(--box-shadow-hover-dark); }
.team-photo { width: 100%; height: 280px; object-fit: cover; object-position: center top; transition: transform 0.5s ease, filter 0.3s ease; margin-bottom: 1.5rem; border-radius: var(--border-radius); }
:root.dark-mode .team-photo { /* Removed border-bottom-color as border-bottom was removed */ }
.team-member:hover .team-photo { transform: scale(1.05); filter: brightness(1.1); }
.team-member h4 { margin-top: 0; margin-bottom: 0.3rem; font-weight: 700; font-size: 1.2rem; color: var(--text-color); transition: color 0.3s ease; }
.team-member:hover h4 { color: var(--primary-color); }
:root.dark-mode .team-member h4 { color: var(--text-color-dark); }
:root.dark-mode .team-member:hover h4 { color: var(--primary-color-dark); }
.team-title { color: var(--text-muted-color); margin: 0 0 1rem; font-size: 0.95rem; font-weight: 500; position: relative; display: inline-block; padding-bottom: 0.3rem; }
.team-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--primary-gradient); transition: width 0.4s ease; }
.team-member:hover .team-title::after { width: 60%; }
:root.dark-mode .team-title { color: var(--text-muted-color-dark); }
:root.dark-mode .team-title::after { background: var(--primary-gradient-dark); }
.team-social { display: flex; justify-content: center; gap: 0.8rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border-color); }
:root.dark-mode .team-social { border-top-color: var(--border-color-dark); }
.team-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background-color: rgba(var(--primary-rgb), 0.1); color: var(--primary-color); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; position: relative; overflow: hidden; }
:root.dark-mode .team-social a { background-color: rgba(var(--primary-rgb-dark), 0.15); color: var(--primary-color-dark); } /* Corrected dark mode social icon */
.team-social a:hover { background-color: var(--primary-color); color: white; transform: scale(1.1); }
:root.dark-mode .team-social a:hover { background: var(--primary-color-dark); color: #111; }

/* --- Responsive Adjustments specific to VMV & Team --- */
@media (max-width: 992px) {
    .vmv-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .vmv-grid { grid-template-columns: 1fr; }
    .vmv-item { padding: calc(var(--card-padding) * 0.9); }
    .vmv-icon { width: 70px; height: 70px; line-height: 70px; font-size: 1.6rem; margin-bottom: 1.2rem; }
    .vmv-item h4 { font-size: 1.3rem; }
    .values-list li, .vmv-item p { font-size: 0.92rem; }
    .values-list i { margin-inline-end: 10px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: calc(var(--grid-gap) * 0.8); }
    .team-photo { height: 250px; }
    .team-member { padding: 1rem; }
}
@media (max-width: 576px) {
    .about-grid::before, #vision-mission-values::before, #our-team::before { opacity: 0.2; width: 150px; height: 150px; }
    .team-grid { grid-template-columns: 1fr; }
    .team-photo { height: 220px; }
}
/* --- END OF FILE about.css --- */
