/* ============================================
   NEXSPHERE ABOUT PAGE - COMPLETE CSS
   Desktop & Mobile Responsive Design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --accent: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-light: #c3dae3;
  --border: #1e293b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ============================================
   HERO SECTION
   ============================================ */

.about-section {
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 10rem;
  z-index: 1;
  padding-bottom: 2em;
}

/* Custom Hero Section */
.custom-hero-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(0, 85, 255, 0.9)), 
              url('https://www.touchstoneinfotech.com/wp-content/uploads/2024/09/bg-12.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  overflow: hidden;
}

.custom-hero-section2 {
  padding: 120px 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.69), rgba(0, 85, 255, 0.46)), 
              url('http://localhost:50421/nexsphare/assets/images/services/header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  overflow: hidden;
}

.custom-hero-section .container2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.custom-hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  line-height: 1.2;
  max-width: 800px;
  color: white;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
  flex-wrap: wrap;
}

.btn-custom {
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-pink {
  background: #ff4d6d;
  color: white;
}

.btn-white {
  background: white;
  color: #333;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CORE VALUES SECTION
   ============================================ */

.core-values {
  padding: 0px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 60px;
}

.value-card {
  padding: 35px 30px;
  border-radius: 20px;
  text-align: center;
  transition: .4s;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.value-card h3 {
  font-size: 28px;
  margin-bottom: 18px;
  color: #1e3a8a;
}

.value-card p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

/* Card Colors */
.mission {
  background: #FFF7DF;
}

.vision {
  background: #E8FBFD;
}

.innovation {
  background: #FDE9E4;
}

.customer {
  background: #F4E9FF;
}

.integrity {
  background: #E8F0FF;
}

.excellence {
  background: #FFECEC;
}

.collaboration {
  background: #FFF4D8;
}

.growth {
  background: #EDF5FF;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */

.why-choose-us {
  padding: 100px 0;
}

.why-wrapper {
  display: grid;
  grid-template-columns: 37% 58%;
  gap: 60px;
  align-items: center;
}

.why-wrapper2 {
  display: grid;
  gap: 60px;
  align-items: center;
}

.subtitle {
  color: #2563eb;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
  letter-spacing: .5px;
}

.why-content h2 {
  font-size: 42px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.why-content2 p {
  color: #92a6c3;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
}

.why-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

.why-btn:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
}

.why-image {
  margin-top: 40px;
}

.why-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.choice-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid #e5e7eb;
  transition: .35s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.choice-card:hover {
  transform: translateY(-8px);
  border-color: #2563eb;
  box-shadow: 0 20px 40px rgba(37, 99, 235, .15);
}

.icon {
  min-width: 10px;
  height: 10px;
  border-radius: 50%;
  align-items: center;
  font-size: 28px;
}

.choice-card h3 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 22px;
}

.choice-card p {
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   FLOATING IMAGE
   ============================================ */

.floating-image-container {
  position: absolute;
  top: 150px;
  right: 50px;
  z-index: 100;
  pointer-events: none;
}

.float-img {
  width: 570px;
  height: 600px;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* --- Tablet & Mobile (max-width: 991px) --- */
@media (max-width: 991px) {
  
  /* Hero Section */
  .about-section {
    padding-top: 6rem !important;
    padding-bottom: 1.5rem !important;
  }

  .custom-hero-section {
    padding: 6rem 1.5rem 3rem !important;
    border-bottom-left-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
  }

  .custom-hero-section h1 {
    font-size: 2rem !important;
  }

  .custom-hero-section .container2 {
    padding: 0 15px !important;
  }

  .custom-hero-section2 {
    padding: 6rem 1.5rem 3rem !important;
    border-bottom-left-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
  }

  .hero-cta {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .btn-custom {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
    padding: 14px 20px !important;
  }

  /* Floating Image - Hide on Mobile */
  .floating-image-container {
    display: none !important;
  }

  /* Values Grid */
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin-top: 30px !important;
  }

  .value-card {
    padding: 25px 20px !important;
  }

  .value-card h3 {
    font-size: 22px !important;
  }

  .value-card p {
    font-size: 15px !important;
  }

  .value-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 24px !important;
  }

  /* Why Choose */
  .why-choose-us {
    padding: 50px 0 !important;
  }

  .why-wrapper {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .why-wrapper2 {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .why-content h2 {
    font-size: 28px !important;
  }

  .why-content2 p {
    font-size: 15px !important;
    text-align: center !important;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .choice-card {
    padding: 18px !important;
    gap: 14px !important;
    align-items: center !important;
  }

  .choice-card h3 {
    font-size: 18px !important;
    margin-bottom: 5px !important;
  }

  .choice-card p {
    font-size: 14px !important;
  }

  .icon {
    min-width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .why-image {
    margin-top: 20px !important;
  }

  .why-image img {
    border-radius: 12px !important;
  }
}

/* --- Small Mobile (max-width: 576px) --- */
@media (max-width: 576px) {
  
  .custom-hero-section h1 {
    font-size: 1.8rem !important;
  }

  .custom-hero-section {
    padding: 5rem 1rem 2.5rem !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
  }

  .custom-hero-section2 {
    padding: 5rem 1rem 2.5rem !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
  }

  .value-card h3 {
    font-size: 20px !important;
  }

  .value-card p {
    font-size: 14px !important;
  }

  .choice-card {
    padding: 14px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }

  .choice-card h3 {
    font-size: 16px !important;
  }

  .choice-card p {
    font-size: 13px !important;
  }

  .icon {
    font-size: 24px !important;
    min-width: 44px !important;
    height: 44px !important;
  }

  .why-content h2 {
    font-size: 24px !important;
  }

  .why-content2 p {
    font-size: 14px !important;
  }

  .btn-custom {
    max-width: 240px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  .value-card {
    padding: 20px 15px !important;
  }

  .value-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }
}

/* --- Extra Small Mobile (max-width: 360px) --- */
@media (max-width: 360px) {
  
  .custom-hero-section h1 {
    font-size: 1.5rem !important;
  }

  .custom-hero-section {
    padding: 4rem 0.75rem 2rem !important;
  }

  .custom-hero-section2 {
    padding: 4rem 0.75rem 2rem !important;
  }

  .value-card h3 {
    font-size: 18px !important;
  }

  .choice-card h3 {
    font-size: 15px !important;
  }

  .btn-custom {
    max-width: 200px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }