/* 
 * Modern About Page Styling for Othala Solutions
 * Sophisticated styling for the About Us page
 */

/* Hero Section */
.about-hero-modern {
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, #e6f7ff 0%, #b3e0ff 100%);
  text-align: center;
  overflow: hidden;
}

.about-hero-modern::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/shapes/circuit-pattern.svg') repeat;
  opacity: 0.05;
  animation: moveBackground 40s linear infinite;
}

.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 71, 171, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: var(--color-primary-dark);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.about-hero-badge i {
  margin-right: 0.75rem;
}

.about-hero-modern h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
}

.about-hero-modern .highlight {
  color: var(--color-primary);
}

.about-hero-modern p {
  font-size: 1.15rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Company Overview Section */
.company-overview-modern {
  padding: 6rem 0;
}

.grid-2-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.overview-image-modern img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.overview-content-modern .section-header-modern {
  text-align: left;
  margin-bottom: 2rem;
}

.overview-content-modern p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1rem;
}

/* Vision & Mission Section */
.vision-mission-modern {
  padding: 6rem 0;
  background-color: #f8fafc;
}

.vision-mission-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vision-card-modern, .mission-card-modern {
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  border: 1px solid #eef2f6;
  transition: all 0.3s ease;
}

.vision-card-modern:hover, .mission-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 71, 171, 0.1);
}

.card-icon-modern {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.vision-card-modern h3, .mission-card-modern h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.vision-card-modern p, .mission-card-modern p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
}

/* Founder's Words Section */
.founder-words-modern {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.founder-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.founder-image img {
    width: 100%;
    aspect-ratio: 5/6;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.founder-text {
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
}

.founder-text p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 2rem;
}

.founder-signature h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.founder-bio {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.founder-bio p {
    font-size: 1rem;
    font-style: normal;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 0;
}

.founder-signature {
    margin-top: 2rem;
}

.founder-signature p {
    font-size: 1rem;
    font-style: normal;
    color: #64748b;
    margin: 0;
}

/* Join Team CTA */
.join-team-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #e6f7ff 0%, #b3e0ff 100%);
  text-align: center;
}

.join-team-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.join-team-content p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-join {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-join:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 71, 171, 0.2);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .grid-2-about,
    .vision-mission-grid-modern,
    .founder-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .overview-image-modern {
        order: 2;
        margin-top: 2rem;
    }

    .overview-content-modern {
        order: 1;
        text-align: center;
    }

    .overview-content-modern .section-header-modern {
        text-align: center;
    }

    .founder-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .founder-text {
        text-align: center;
    }

    .quote-icon {
        position: static;
        display: block;
        margin: 0 auto 1rem auto;
    }
    
    .section-header-modern {
        text-align: center;
    }
    
    .about-hero-modern h1 {
        font-size: 2.8rem;
    }
    
    .join-team-cta .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .vision-card-modern, .mission-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .founder-bio p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .about-hero-modern {
        padding: 6rem 0 4rem;
    }
    
    .about-hero-modern h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .about-hero-modern p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .company-overview-modern,
    .vision-mission-modern,
    .founder-words-modern,
    .join-team-cta {
        padding: 4rem 0;
    }
    
    .founder-content-grid {
        gap: 2rem;
    }
    
    .founder-image img {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .founder-text p {
        font-size: 1.1rem;
    }
    
    .founder-signature h3 {
        font-size: 1.3rem;
    }
    
    .join-team-content h2 {
        font-size: 2rem;
    }
    
    .join-team-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .btn-join {
        padding: 0.9rem 2rem;
    }
}

@media (max-width: 576px) {
    .about-hero-modern {
        padding: 5rem 0 3rem;
    }
    
    .about-hero-modern h1 {
        font-size: 1.9rem;
    }
    
    .about-hero-badge {
        padding: 0.4rem 1rem;
        margin-bottom: 1.2rem;
    }
    
    .vision-mission-grid-modern {
        gap: 1.5rem;
    }
    
    .vision-card-modern, .mission-card-modern {
        padding: 1.8rem 1.2rem;
    }
    
    .founder-bio p {
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
}

/* RTL Support for Arabic */
html[dir="rtl"] .about-hero-badge i {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .overview-content-modern .section-header-modern.text-left {
    text-align: right;
}

html[dir="rtl"] .quote-icon {
    left: auto;
    right: -1.5rem;
}

html[dir="rtl"] .btn-join i {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
    html[dir="rtl"] .overview-content-modern .section-header-modern.text-left {
        text-align: center;
    }
    
    html[dir="rtl"] .quote-icon {
        right: auto;
    }
}

/* Fix for any overflow issues */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Extra small devices */
@media (max-width: 400px) {
    .about-hero-modern h1 {
        font-size: 1.6rem;
    }
    
    .vision-card-modern, .mission-card-modern {
        padding: 1.5rem 1rem;
    }
    
    .card-icon-modern {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .vision-card-modern h3, .mission-card-modern h3 {
        font-size: 1.3rem;
    }
    
    .founder-image img {
        max-width: 200px;
    }
    
    .founder-text p {
        font-size: 1rem;
    }
    
    .founder-signature h3 {
        font-size: 1.2rem;
    }
    
    .join-team-content h2 {
        font-size: 1.7rem;
    }
    
    .btn-join {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
}
