:root {
  --brand-orange: #f37021;
  --brand-blue: #07aff6;
  --brand-navy: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --bg-soft: #f8fafc;
}

/* Base Styles */
.about-section {
  padding: 140px 0 80px; /* Increased top padding for desktop to ensure clearance */
  background: linear-gradient(to bottom, #fafafa 0%, #ffffff 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

/* Add subtle background pattern */
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
}

.about-title span {
  background: linear-gradient(135deg, var(--brand-orange), #ff9f43);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}

.about-section p strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (min-width: 769px) {
  .about-section p {
    text-align: left;
  }
}

/* About Image - Enhanced Design */
.about-image-wrapper {
  position: relative;
  padding: 20px; /* Extra space around image */
}

.about-image-box {
  border-radius: 2rem;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: 
    0 50px 100px -20px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 0 0 4px rgba(243, 112, 33, 0.05);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* Gradient border effect */
.about-image-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  padding: 2px;
  background: linear-gradient(135deg, rgba(243, 112, 33, 0.2), rgba(7, 175, 246, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.about-image-box:hover::before {
  opacity: 1;
}

.about-image-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 60px 120px -20px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(243, 112, 33, 0.1),
    0 0 0 8px rgba(243, 112, 33, 0.08);
}

.about-image-box img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 1.5rem;
}

/* Mobile Responsiveness for About Hero Section */
@media (max-width: 992px) {
  .about-section {
    padding: 140px 0 60px; /* Increased to clear fixed navbar */
  }

  .about-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-align: center;
  }

  .about-section .container h2 {
    text-align: center;
  }

  .about-image-wrapper {
    margin-top: 2rem;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 140px 0 50px; /* Increased to clear fixed navbar */
  }

  .about-section::before {
    background-size: 40px 40px;
    opacity: 0.3;
  }

  .about-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .about-section p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
  }

  .about-image-box {
    padding: 1rem;
  }

  .about-image-box img {
    max-height: 350px;
  }

  .about-image-box:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

@media (max-width: 576px) {
  .about-section {
    padding: 140px 0 40px; /* Increased to clear fixed navbar */
  }

  .about-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .about-section p {
    font-size: 0.95rem;
  }

  .about-image-wrapper {
    padding: 5px;
  }

  .about-image-box {
    padding: 0.75rem;
    box-shadow: 
      0 30px 60px -15px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(0, 0, 0, 0.05);
  }

  .about-image-box img {
    max-height: 280px;
    border-radius: 1rem;
  }
}

/* ================= SECTION SPACING & LAYOUT ================= */
.story-section, 
.vm-section, 
.values-section, 
.about-expertise-section, 
.join-section {
  padding: 80px 0;
  background: #ffffff;
}

@media (max-width: 768px) {
  .story-section, 
  .vm-section, 
  .values-section, 
  .about-expertise-section, 
  .join-section {
    padding: 60px 0;
  }
}

.story-section { padding-bottom: 20px; }
.vm-section { padding-top: 20px; padding-bottom: 80px; }

@media (max-width: 768px) {
  .vm-section { padding-bottom: 60px; }
}

.about-expertise-section {
  background: radial-gradient(circle at 50% 50%, #f8fafc 0%, #ffffff 100%);
}

/* ================= VISION & MISSION (Modified) ================= */
.vm-card-compact {
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.vm-card-blue {
  background: #f1f5f9;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.vm-card-orange {
  background: #fff7ed;
  border: 1px solid rgba(243, 112, 33, 0.1);
}

.vm-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.vm-icon-compact {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50% !important; /* Circle as per HTML */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

@media (max-width: 576px) {
  .vm-icon-compact {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }
  
  .vm-icon-compact .lucide {
    width: 24px !important;
    height: 24px !important;
  }
}

.text-brand-blue { color: var(--brand-blue); }
.text-brand-orange { color: var(--brand-orange); }


/* ================= SERVICES (Compact Row) ================= */
.service-card-compact {
  transition: all 0.3s ease;
}

.service-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(0,0,0,0.08) !important;
  border-color: rgba(243, 112, 33, 0.2) !important;
}

.service-icon-compact {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-icon-compact.blue {
  background: rgba(7, 175, 246, 0.1);
  color: var(--brand-blue);
}

.service-icon-compact.orange {
  background: rgba(243, 112, 33, 0.1);
  color: var(--brand-orange);
}

.service-card-compact:hover .service-icon-compact.blue {
    background: var(--brand-blue);
    color: white;
}

.service-card-compact:hover .service-icon-compact.orange {
    background: var(--brand-orange);
    color: white;
}

.service-icon-compact .lucide {
    width: 20px;
    height: 20px;
}


/* ================= JOIN US (Vibrant) ================= */
.join-cta-vibrant {
  background: #0f172a;
  box-shadow: 0 50px 100px -20px rgba(15, 23, 42, 0.5);
}

.cta-gradient-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 0% 0%, rgba(243, 112, 33, 0.4), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(7, 175, 246, 0.4), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
  z-index: 1;
}

.btn-white-pill {
    background: white;
    color: var(--brand-navy);
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-white-pill:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(255, 255, 255, 0.3);
}


.services-section {
  padding: 120px 0;
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}
.services-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-mini {
  height: 180px;
  border-radius: 28px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  transition: all 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

.service-mini:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.18),
    0 0 0 2px rgba(230,119,11,0.25);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon.blue {
  background: rgba(7,175,246,0.18);
}

.service-icon.orange {
  background: rgba(230,119,11,0.18);
}

.service-mini h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-navy);
  text-align: center;
}
.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}
.service-icon .lucide {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
  color: var(--brand-navy);
}

.service-mini:hover .service-icon .lucide {
  color: var(--brand-orange);
}


/* ================= JOIN US CTA (Premium) ================= */
.join-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.join-cta-box {
  position: relative;
  background: var(--brand-navy);
  overflow: hidden;
  box-shadow: 
    0 50px 100px -20px rgba(15, 23, 42, 0.4),
    0 30px 60px -30px rgba(243, 112, 33, 0.3);
  transform-style: preserve-3d;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 100% 0%, rgba(243, 112, 33, 0.3), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(7, 175, 246, 0.2), transparent 50%);
  opacity: 0.8;
  z-index: 1;
}

.btn-glow-white {
  background: #ffffff;
  color: var(--brand-navy);
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-glow-white:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 4px rgba(255, 255, 255, 0.2);
  color: var(--brand-orange);
}
/* Cleaned up redundant media queries - styles moved to consolidated blocks below */


/* ========== MOBILE ABOUT: ONE COLUMN, CENTER HEADING, READABLE TEXT ========== */
@media (max-width: 768px) {

  /* One-column layout */
  .about-section .row {
    flex-direction: column !important;
  }

  .about-section .col-lg-6:first-child {
    order: 1;
  }

  .about-section .col-lg-6:last-child {
    order: 2;
    margin-top: 2rem;
  }

  /* Center ONLY the heading */
  .about-title {
    text-align: center;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  /* Left-align body text for better readability */
  .about-section p:not(.justified-text),
  .story-section p:not(.justified-text),
  .vm-card-compact p:not(.justified-text) {
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.4rem;
  }
  
  /* Justify specific sections if needed */
  .justified-text {
    text-align: justify !important;
  }

  .about-section .container,
  .story-section .container,
  .vm-section .container {
    max-width: 540px;
  }
}
/* Redundant navbar styles removed - linked to navbar.css instead */
