/* Theme: Remote Staff Solutions
   Version: 1.0
*/

:root {
  --primary-light: #67ced4;
  --primary-color: #3fc1c9;
  --primary-dark: #000000;
  --secondary-color: #111111;
  --dark-bg: #0f1a2a;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --accent-color: #f11f11;
  --light-bg: #f5f5f5;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2a3a 100%);
  color: var(--text-light);
  min-height: 100vh;
}

.wrapper {
  max-width: 1200px;
  margin: 20px auto;
  background: rgba(15, 26, 42, 0.8);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* -----------------------------------
   Top Header (Topbar) Styles
   ----------------------------------- */

/* Container for topbar */
.topbar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: 12px 30px;
  border-bottom: 3px solid var(--primary-color);
  width: 100%;
  box-sizing: border-box;
}

/* Topbar layout row */
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo area */
.topbar .logo img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.topbar .logo img:hover {
  transform: scale(1.03);
}

/* Call info (right side) */
.topbar .call-info {
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-top: 10px;
}

.topbar .call-info p {
  margin: 0;
  color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .topbar .container {
    flex-direction: column;
    text-align: center;
  }
  .topbar .call-info {
    margin-top: 8px;
  }
}

/* -----------------------------
   Hero Section
------------------------------ */

.hero-section {
  position: relative;
  padding: 60px 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 0%;
  width: 50%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(250, 250, 250, 0.09) 10px,
    rgba(250, 250, 250, 0.09) 20px
  );
  animation: curtainFloat 15s linear infinite;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.hero-section .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.hero-section .btn {
  background: var(--primary-color);
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-section .btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Animation */
@keyframes curtainFloat {
  0% {
    transform: translate(-30%, -30%) rotate(45deg);
  }
  50% {
    transform: translate(30%, 30%) rotate(45deg);
  }
  100% {
    transform: translate(-30%, -30%) rotate(45deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }
}

/* ===============================
   Section Styles
================================ */

.section-heading {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--text-light);
}

/* Mobile spacing */
@media (max-width: 768px) {
  .section {
    padding: 40px 20px;
  }
}

/* ===============================
   Shared Grid Layouts
================================ */

.benefit-grid,
.service-grid,
.process-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

@media (max-width: 768px) {
  .benefit-grid,
  .service-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   BASE CARD STYLES
================================ */

.card-custom {
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-custom h3,
.card-custom h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Make emoji icon smaller */
.card-custom h3 span,
.card-custom h3::first-letter,
.card-custom h4 span,
.card-custom h4::first-letter {
  font-size: 1.1rem;
}

/* Text */
.card-custom p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--secondary-color);
  flex-grow: 1;
}

/* ===============================
   ENHANCED CARD ANIMATIONS
================================ */

/* Animated top border gradient */
.card-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #10b981, #f59e0b);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: gradientMove 3s ease infinite;
  z-index: 2;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating particles effect */
.card-custom::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(63, 193, 201, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

/* Enhanced 3D hover effect */
.card-custom:hover {
  transform: perspective(1000px) rotateX(-5deg) translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(63, 193, 201, 0.15), 0 15px 35px rgba(0, 0, 0, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border-left-color: transparent;
}

.card-custom:hover::before {
  opacity: 1;
}

.card-custom:hover::after {
  opacity: 1;
}

/* Title hover effect */
.card-custom:hover h3,
.card-custom:hover h4 {
  color: var(--primary-color);
}

/* ===============================
   Services Section
================================ */

.service-grid .card-custom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  background: linear-gradient(135deg, #ffffff, #f7f7f7);
}

/* Service title */
.service-grid .card-custom h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Service text */
.service-grid .card-custom p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--secondary-color);
}

/* Footer button area */
.service-grid .card-footer {
  margin-top: 20px;
  text-align: right;
}

/* Button styling */
.service-grid .btn {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 4px;
}

/* ===============================
   Process Section
================================ */

.process-grid .card-custom {
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
}

/* Step number + title */
.process-grid .card-custom h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Step description */
.process-grid .card-custom p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--secondary-color);
}

/* ===============================
   CLIENT SECTION
================================ */

.client-section {
  position: relative;
  padding: 70px 30px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
}

.client-section .section-heading {
  color: var(--text-light);
  margin-bottom: 40px;
  text-align: center;
}

/* Client logos */
.client-section img {
  max-height: 70px;
  width: auto;
  margin: 0 auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.client-section img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Client name */
.client-section p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Carousel navigation */
.carousel-control-prev,
.carousel-control-next {
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  width: 1.4rem;
  height: 1.4rem;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .client-section {
    padding: 50px 20px;
  }

  .client-section img {
    max-height: 55px;
  }
}

/* ===============================
   TESTIMONIALS
================================ */

.testimonials-section {
  background: var(--light-bg);
  padding: 70px 30px;
}

.testimonials-section .section-heading {
  color: var(--secondary-color);
  margin-bottom: 40px;
  text-align: center;
}

.testimonials-section .card-custom {
  background: #ffffff;
}

.testimonials-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--secondary-color);
}

.testimonials-section strong {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--secondary-color);
}

/* ===============================
   CTA SECTION
================================ */

.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  padding: 70px 30px;
  text-align: center;
  color: var(--text-light);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-section .lead {
  font-size: 1.15rem;
  max-width: 850px;
  margin: 0 auto 35px;
}

.cta-section .card-custom {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.cta-section .card-custom h4,
.cta-section .card-custom p {
  color: var(--text-light);
}

.cta-section .footer-note {
  margin-top: 40px;
  font-style: italic;
  opacity: 0.9;
}

/* ================= FOOTER ================= */
.footer {
  background-color: #111;
  color: #ffffff;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
}

.footer .social-links a {
  transition: opacity 0.3s ease;
}

.footer .social-links a:hover {
  opacity: 0.7;
}

/* Footer menu */
.footer-menu li {
  display: inline-block;
  margin-left: 15px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #ffffff;
}

/* ===============================
   RESPONSIVE ADJUSTMENTS
================================ */

@media (max-width: 768px) {
  .card-custom {
    padding: 20px;
  }

  .card-custom:hover {
    transform: perspective(1000px) rotateX(-3deg) translateY(-8px) scale(1.01);
  }
}

/* Fix for Firefox perspective rendering */
@supports (-moz-appearance: none) {
  .card-custom:hover {
    transform: translateY(-12px) scale(1.02);
  }
}

.highlight-box {
  background: rgba(63, 193, 201, 0.15);
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 4px solid var(--primary-color);
}
