/* Brand color overrides for homepage */
:root {
  --primary: #14acf6; /* SOPHSA Primary */
  --secondary: #308764; /* SOPHSA Secondary */
}

/* Generic accents */
.theme-bg { background-color: var(--primary) !important; }

.theme-btn {
  background-color: var(--primary) !important;
  color: #fff !important; /* ensure white text on buttons */
  box-shadow: 0 10px 25px rgba(20, 172, 246, 0.3) !important;
}
.theme-btn:hover {
  background-color: rgba(20, 172, 246, 0.8) !important;
  color: #fff !important;
}

.scroll-top { background: var(--primary) !important; }
.scroll-top:hover { background: rgba(20, 172, 246, 0.7) !important; }

.section-title span { color: var(--primary) !important; }
.read-more { color: var(--primary) !important; }

/* Navbar active/hover accents */
.navbar-nav .nav-item a.active,
.navbar-nav .nav-item a:hover { color: var(--primary) !important; }
.navbar-nav .nav-item .sub-menu li a.active,
.navbar-nav .nav-item .sub-menu li a:hover { color: var(--primary) !important; }
.header-top ul li a i:hover { color: var(--primary) !important; }

/* Tiny slider dots */
.tns-nav button { background: rgba(20, 172, 246, 0.31) !important; }
.tns-nav button.tns-nav-active { background: var(--primary) !important; }

/* Slider (Hero) gradient overlay and button styling */
.slider-section .single-slider::after {
  background-image: linear-gradient(
    to right,
    var(--primary) 0%,
    rgba(20, 172, 246, 0.11) 70.76%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
}

/* Force hero buttons to use brand primary with white text */
.slider-section .single-slider .slider-content .theme-btn {
  background: var(--primary) !important;
  color: #fff !important; /* requested: white font color */
}
.slider-section .single-slider .slider-content .theme-btn:hover {
  box-shadow: 0 10px 25px rgba(20, 172, 246, 0.4) !important;
}

/* Service and FAQ subtle tints updated to primary */
.service-section .service-item .service-overlay::after {
  background: rgba(20, 172, 246, 0.91) !important;
}
.we-do-section .we-do-item .we-do-icon {
  box-shadow: 0 0 25px rgba(20, 172, 246, 0.15) !important;
}
.faq-section .faq-video-wrapper .faq-video .video-btn a {
  background: var(--primary) !important;
}
.faq-section .faq-video-wrapper .faq-video .video-btn a::before {
  background: rgba(20, 172, 246, 0.16) !important;
}
.faq-section .faq-video-wrapper .faq-video .video-btn a::after {
  background: rgba(20, 172, 246, 0.13) !important;
}

/* Optional: utilities to use secondary color where desired */
.text-secondary { color: var(--secondary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.btn-secondary { background-color: var(--secondary) !important; color: #fff !important; }

/* Form polish */
input.form-control, textarea.form-control, select.form-select {
  border-color: #e4e7ec;
  border-radius: 10px;
}
input.form-control:focus, textarea.form-control:focus, select.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(20, 172, 246, 0.15) !important;
}
label .text-danger { color: #dc3545 !important; }

/* About: enhanced media frame and animations */
.about-section .about-two-col { gap: 20px 0; }
.about-section .about-media { position: relative; }
.about-section .about-media .media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(20, 172, 246, 0.18);
}
.about-section .about-media .media-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.about-section .about-media .media-frame .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient( circle at 20% 20%, rgba(20,172,246,.12), transparent 40% ),
              radial-gradient( circle at 80% 80%, rgba(48,135,100,.10), transparent 35% );
  pointer-events: none;
}
.about-section .about-media .shape-dot,
.about-section .about-media .shape-ring {
  position: absolute;
  display: block;
  pointer-events: none;
}
.about-section .about-media .dot-1 {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
  right: 18px; top: 18px;
  animation: floatY 5s ease-in-out infinite;
}
.about-section .about-media .dot-2 {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--secondary);
  left: 16px; bottom: 18px;
  animation: floatX 6s ease-in-out infinite;
}
.about-section .about-media .ring-1 {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid rgba(20,172,246,.35);
  left: -20px; top: -20px;
  animation: spinSlow 18s linear infinite;
}

@keyframes floatY { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes floatX { 0%,100% { transform: translateX(0) } 50% { transform: translateX(10px) } }
@keyframes spinSlow { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }

/* Service cards polish: hover lift, subtle glow, and nicer overlay */
.service-section .service-item.animated-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform, box-shadow;
  box-shadow: 0 8px 24px rgba(20,172,246,0.08);
}
.service-section .service-item.animated-card .service-overlay::after {
  background: linear-gradient(135deg, rgba(20,172,246,0.15), rgba(48,135,100,0.12)) !important;
}
.service-section .service-item.animated-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(20,172,246,0.18);
}
.service-section .service-item.animated-card:hover .service-content h4 {
  color: var(--primary);
}
.service-section .service-item.animated-card .service-icon img {
  transition: transform .35s ease;
}
.service-section .service-item.animated-card:hover .service-icon img {
  transform: scale(1.06) translateZ(0);
}
.service-section .service-item .read-more {
  transition: color .25s ease, transform .25s ease;
}
.service-section .service-item:hover .read-more {
  color: var(--primary);
  transform: translateX(2px);
}
@media (min-width: 992px) {
  .service-section .service-item.animated-card:hover { transform: translateY(-10px) rotateX(0.5deg) rotateY(-0.5deg); }
}

/* Team section styles */
.team-section .team-card{
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.team-section .team-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(20,172,246,.15);
}
.team-section .avatar-wrap{ position: relative; display: inline-block; }
.team-section .avatar{
  width: 140px; height: 140px; object-fit: cover;
  border-radius: 50%; display: block;
  border: 6px solid #fff;
  box-shadow: 0 12px 35px rgba(20,172,246,.18);
}
.team-section .avatar-wrap .glow{
  position:absolute; inset:-8px; border-radius:50%; pointer-events:none;
  background: radial-gradient(circle at 50% 30%, rgba(20,172,246,.18), transparent 55%);
  filter: blur(14px);
}
.team-section .info{ margin-top:16px; }
.team-section .name{ margin: 8px 0 6px; font-weight:700; }
.team-section .role{ color:#6b7280; margin:0; }
