/* ============================================================
   YASMIN INFOTECH — Premium Brand Theme
   Professional UI Styling | Poppins Typeface
============================================================ */

/* Root Palette */
:root {
  --primary: #004aad;
  --accent: #60b347;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --text-dark: #1f1f1f;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
  --radius-lg: 1rem;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

/* Global */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: opacity 0.5s ease-in-out, background 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

/* ----------------------------------------------
   Buttons
------------------------------------------------*/
.btn-primary {
  background: var(--gradient);
  border: none;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,74,173,0.3);
  transition: var(--transition);
}
.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,74,173,0.4);
}
.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 500;
  transition: var(--transition);
}
.btn-outline-primary:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* -----------------------------------------------
   Section Headings
------------------------------------------------*/
.section-heading {
  font-weight: 700;
  color: #0f172a;
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
}
.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}


/* -----------------------------------------------
   Navbar
------------------------------------------------*/
/* ============================================================
   Navbar Styling — Premium Polished Look
============================================================ */
.main-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1030;
}

/* Logo Animation */
.navbar-brand img {
  height: 70px;
  transition: transform 0.3s ease;
  margin-right: 50px;
}
.navbar-brand img:hover {
  transform: scale(1.05);
}

/* Navbar Links */
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  position: relative;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

/* Underline gradient effect */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 50%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

.contact-header h5 {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  font-weight: 400 !important;
}

.contact-header h2 {
  font-size: 1rem;
}

.contact-header a:hover {
  color: #004aad;
  text-decoration: underline;
}

/* Responsive: stack phone/email on smaller screens */
@media (max-width: 991px) {
  .contact-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  .contact-header .d-none.d-lg-block {
    display: none;
  }
}

.offcanvas {
  width: 250px;
  max-width: 80%;
  height: 100vh !important;
  transition: transform 0.4s ease;
  z-index: 1060;
}


/* Offcanvas Menu */
.offcanvas {
  background: #ffffff;
  border-left: 3px solid var(--primary);
}
.offcanvas .nav-link {
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s ease;
}
.offcanvas .nav-link:hover {
  color: var(--primary);
}

/* Responsive Tweaks */
@media (max-width: 992px) {
  .navbar-brand img {
    height: 60px;
  }
  .btn.btn-primary.btn-sm {
    padding: 0.5rem 1rem;
  }
}


/* ============================================================
   MOBILE FIX – Prevent horizontal shift + top-bar
============================================================ */
@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }

  body {
    padding-top: calc(32px + 70px) !important;
  }

  .hero-slider {
    margin-top: 0 !important;
    position: relative !important;
  }

}
/* -----------------------------------------------
   Hero Section
------------------------------------------------*/
.hero-section {
  background: var(--gradient);
  color: #fff;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-left .hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  animation: fadeInLeft 1s ease forwards;
}

.hero-left .hero-img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 1rem;
}

.hero-left .hero-image-wrapper:hover .hero-img {
  transform: scale(1.05);
}

/* Overlay Content */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  transition: all 0.4s ease;
  padding: 2rem;
}

.hero-overlay h3 {
  font-size: 2rem;
  line-height: 1.2;
}

.hero-overlay p {
  font-size: 1rem;
  opacity: 0.85;
}

.hero-overlay .btn {
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.hero-overlay .btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Stats & Partners */
.hero-left .stat-card {
  background: #fff;
  color: var(--text-dark);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.hero-left .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-left .hero-partner-logo {
  height: 50px;
  margin: 0.25rem 1rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-left .hero-partner-logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Hero Right Form */
.hero-right .hero-form-card {
  background: #fff;
  color: var(--text-dark);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  animation: fadeInRight 1s ease forwards;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.hero-right .hero-logo {
  height: 70px;
}

.hero-input {
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.hero-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.25);
}

.hero-btn {
  transition: all 0.3s ease;
  font-weight: 600;
}

.hero-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Animations */
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 991px) {
  .hero-left, .hero-right {
    text-align: center;
  }
  
  /* Overlay moves below the image */
  .hero-left .hero-overlay {
    position: relative;
    top: auto;
    bottom: auto;
    transform: none;
    margin-top: 1rem;
    border-radius: 1rem;
  }
  
  /* Partner logos in a row */
  .hero-left .d-flex.justify-content-center {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  /* Stat cards centered */
  .hero-left .stat-card {
    margin: 1rem auto;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-overlay h3 {
    font-size: 1.5rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
  }
  .hero-right .hero-logo {
    height: 60px;
  }
  .hero-left .hero-partner-logo {
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* -----------------------------------------------
   About Section
------------------------------------------------*/
#about {
  position: relative;
}

#about .section-heading {
  font-size: 2rem;
}

#about .about-features li i {
  font-size: 1.1rem;
  line-height: 1.5;
}

#about .card img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#about .card img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-card {
  background: #fff;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Partner Logos */
.about-partners .partner-logo {
  height: 30px;
  transition: all 0.3s ease;
}

.about-partners .partner-logo:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* Stars Above Logos */
.about-stars i {
  margin-right: 2px;
  transition: all 0.3s ease;
}

.about-stars i:hover {
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 991px) {
  .about-card {
    margin-top: 2rem;
    text-align: center;
  }
  .about-partners {
    justify-content: center;
  }
  .about-stars {
    justify-content: center;
  }
}

/* -----------------------------------------------
   Services Section
------------------------------------------------*/
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}

.service-img-wrapper {
  width: 100%;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 250px; /* default for desktop */
  max-height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover zoom effect */
.service-card:hover .service-img {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .service-card {
    text-align: center;
  }

  .service-img {
    height: auto; /* allow image to scale naturally */
    max-height: 200px; /* optional max height */
  }
}

@media (max-width: 576px) {
  .service-img {
    height: auto;
    max-height: 180px; /* smaller devices */
  }
}


/* Contact Section */
#contact .contact-info i {
  font-size: 1.2rem;
}

#contact .btn-primary.shadow-hover {
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,74,173,0.2);
}

#contact .btn-primary.shadow-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,74,173,0.25);
}

#contact .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Form Inputs */
#contact .form-control-lg {
  padding: 0.9rem 1.2rem;
  transition: all 0.3s ease;
}

#contact .form-control-lg:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0,74,173,0.25);
}

/* Responsive */
@media (max-width: 767px) {
  #contact .btn-primary {
    width: 100%;
    text-align: center;
  }
}


/* =========================
   Footer CSS
========================= */

/* --- Footer Base --- */
.footer-section {
  background: linear-gradient(180deg, var(--primary) 0%, #001c53 100%) !important;
  color: #f8fafc !important;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- Top Curve --- */
.footer-curve {
  height: 90px;
  top: -1px;
  line-height: 0;
  z-index: 1;
}
.footer-curve svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-curve svg path {
  fill: var(--bg-light) !important; /* fixes curve color */
}

/* Accent line */
.footer-accent-line {
  width: 60px;
  height: 3px;
  background: var(--gradient) !important;
  border-radius: 2px;
}

/* Links */
.footer-link {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--accent) !important;
  transform: translateX(3px);
}

/* Social Icons */
.social-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 1.25rem;
  transition: var(--transition);
}
.social-link:hover {
  color: var(--accent) !important;
  transform: scale(1.15);
}

/* Accent text utility */
.text-accent {
  color: var(--accent) !important;
}


/* Responsive tweaks */
@media (max-width: 767.98px) {
  .footer-section {
    text-align: center !important;
  }
  .footer-section .d-flex {
    justify-content: center !important;
  }
  .footer-accent-line {
    margin: 0 auto !important;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem; /* 8 in Tailwind */
  right: 2rem;  /* adjust as needed */
  background: linear-gradient(to right, #22c55e, #16a34a); /* green gradient */
  padding: 0.5rem 1rem; /* px-4 py-2 equivalent */
  transition: transform 0.3s ease;
  z-index: 1050; /* above other content */
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

/* Optional: Shadow */
.whatsapp-float {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.25);
}

@media (max-width: 640px) {

  a.group > div { padding: 10px; height: 45px; width: 45px; }

  a.group div .hidden.sm\:flex { display: none !important; }

}

/* -----------------------------------------------
   Scroll Animations (optional)
------------------------------------------------*/
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
