/* About Us Page Styles */

/* Font Variables */
:root {
  --font-serif: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  --font-sans: 'Calibri', 'Candara', 'Segoe', 'Segoe UI', Optima, Arial, sans-serif;
}

/* Override body padding for about page to eliminate gap */
body {
  padding-top: 0 !important;
}

/* About page content z-index control */
.about-hero,
.mission-section,
.team-section,
.timeline-section,
.cta-section {
  z-index: 1 !important;
  position: relative !important;
}

/* Hero Section */
.about-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%,
      rgba(199, 33, 33, 0.1) 0%,
      transparent 50%),
    radial-gradient(circle at 70% 30%,
      rgba(7, 49, 107, 0.1) 0%,
      transparent 50%);
  z-index: 1;
}

/* Hero Content Styling */
.hero-content {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;

}

.hero-text {
  font-size: clamp(3rem, 7vw, 5rem) !important;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  margin-top: 0 !important;
  display: block;
  font-family: var(--font-serif) !important;
  color: white;
}

.hero-accent {
  position: relative;
  display: inline-block;
}

.hero-accent::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c72121 0%, #d63031 100%);
  border-radius: 2px;
}

/* Mission Section */
.mission-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.mission-left {
  background: linear-gradient(135deg, #c72121 0%, #d63031 100%);
  position: relative;
  overflow: hidden;
}

.mission-left::before {
  content: "";
  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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.mission-right {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.mission-right img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.mission-right .float-animation-delayed {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Ensure mission section grid maintains proper aspect ratio */
.mission-section .grid {
  min-height: 400px;
}

@media (max-width: 768px) {
  .mission-section .grid {
    min-height: 300px;
  }
}

/* Team Section */
.team-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
}

/* Service Cards */
.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c72121 0%, #d63031 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(199, 33, 33, 0.3);
}

/* Offer Cards - Enhanced Design with Better Elevation */
.offer-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* All cards consistent with blue theme */
.offer-card:nth-child(1) .offer-icon {
  background: linear-gradient(135deg, #07316b 0%, #1e40af 100%);
  box-shadow: 0 15px 35px rgba(7, 49, 107, 0.4);
}

.offer-card:nth-child(1):hover .offer-icon {
  box-shadow: 0 20px 50px rgba(7, 49, 107, 0.5);
}

.offer-card:nth-child(1) .offer-title::after {
  background: linear-gradient(90deg, #07316b, #1e40af);
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(7, 49, 107, 0.15) 0%, rgba(30, 64, 175, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.offer-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.offer-card:hover {
  transform: translateY(-16px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.offer-card:hover::before {
  opacity: 1;
}

.offer-card:hover::after {
  transform: translateX(100%);
}

.offer-content {
  position: relative;
  z-index: 2;
}

.offer-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #07316b 0%, #1e40af 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
  font-size: 2.5rem;
  color: white;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(7, 49, 107, 0.4);
  position: relative;
}

.offer-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #07316b, #1e40af, #3b82f6);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.offer-card:hover .offer-icon {
  transform: scale(1.2) rotate(8deg);
  box-shadow: 0 20px 50px rgba(7, 49, 107, 0.5);
}

.offer-card:hover .offer-icon::before {
  opacity: 1;
}

.offer-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  text-align: center;
  letter-spacing: -0.02em;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.offer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #07316b, #1e40af);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.offer-card:hover .offer-title::after {
  width: 60px;
}

.offer-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.offer-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.feature-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-tag:hover {
  background: rgba(7, 49, 107, 0.25);
  border-color: rgba(7, 49, 107, 0.5);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(7, 49, 107, 0.3);
}

.feature-tag:hover::before {
  left: 100%;
}

.team-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(199, 33, 33, 0.3);
  box-shadow: 0 20px 40px rgba(199, 33, 33, 0.2);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #c72121 0%, #d63031 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  transition: all 0.3s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(199, 33, 33, 0.3);
}

/* Timeline Section */
.timeline-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  position: relative;
}

.timeline-container {
  position: relative;
  padding: 4rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, #c72121, #07316b);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: #c72121;
  border-radius: 50%;
  border: 4px solid #0a0a0a;
  box-shadow: 0 0 0 4px #c72121;
  z-index: 10;
  flex-shrink: 0;
  position: relative;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 0 2rem;
  flex: 1;
  max-width: 400px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 33, 33, 0.3);
  box-shadow: 0 10px 30px rgba(199, 33, 33, 0.2);
}

.timeline-year {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: #c72121;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #c72121 0%, #d63031 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  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 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

.cta-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Fixed Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Floating Animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

.float-animation-delayed {
  animation: float 4s ease-in-out infinite;
  animation-delay: 2s;
}

/* Mission section specific floating */
.mission-right .float-animation-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-text {
    font-size: clamp(1.5rem, 5vw, 3rem);
    /* Even smaller on mobile */
  }

  .timeline-item {
    flex-direction: column !important;
    text-align: center;
  }

  .timeline-line {
    left: 2rem;
  }

  .timeline-content {
    margin: 1rem 0 0 4rem;
    max-width: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .timeline-content {
    margin: 1rem 0 0 3rem;
  }
}

/* Ensure proper spacing for navbar */
.about-hero {
  margin-top: 0 !important;
}

/* Container fixes */
.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem !important;
  }
}

/* Ensure sections are properly spaced */
.mission-section,
.team-section,
.timeline-section,
.cta-section {
  padding: 5rem 0 !important;
}

@media (max-width: 768px) {

  .mission-section,
  .team-section,
  .timeline-section,
  .cta-section {
    padding: 3rem 0 !important;
  }
}