/* =========================================
   ITSS GROUP - Home Page Custom Styles
   ========================================= */

:root {
  --itss-primary: #4338ca;
  --itss-primary-hover: #3730a3;
  --itss-accent: #0891b2;
  --itss-dark: #0f172a;
  --itss-gray: #64748b;
  --itss-light: #f8fafc;
  --transition: all 0.35s ease;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.navbar {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.navbar-brand img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: var(--transition);
}
.navbar-brand img:hover {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}
.nav-link {
  font-weight: 500;
  letter-spacing: 0.2px;
}
.btn-outline-success {
  border-color: var(--itss-primary);
  color: var(--itss-primary);
  font-weight: 600;
}
.btn-outline-success:hover {
  background: var(--itss-primary);
  border-color: var(--itss-primary);
  color: #fff;
}

.home-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  color: #0f172a;
  padding: 70px 0 60px;
  border-bottom: 5px solid var(--itss-primary);
  border-radius: 0 0 120px 120px / 40px;
  overflow: hidden;
  position: relative;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.home-hero .container {
  position: relative;
  z-index: 1;
}
.home-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #0f172a;
}
.home-hero p.lead {
  font-size: 1.12rem;
  color: #475569;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 30px;
}

#myCarousel {
  margin-bottom: 0;
}
#myCarousel .carousel-item {
  height: 520px;
}
#myCarousel .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 520px;
}
#myCarousel .carousel-caption {
  bottom: 12%;
  left: 6%;
  right: 55%;
  text-align: left;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 32px 44px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
#myCarousel .carousel-caption h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
#myCarousel .carousel-caption p {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
#myCarousel .carousel-caption .btn {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.carousel-indicators {
  bottom: -10px;
}
.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  margin: 0 7px;
  border: none;
}
.carousel-indicators button.active {
  background: var(--itss-primary);
  width: 15px;
  height: 15px;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.section-title h2 {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--itss-dark);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.section-title h2 i {
  color: var(--itss-primary);
}
.section-title p {
  color: var(--itss-gray);
  font-size: 1.05rem;
  margin: 0;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
}
.product-grid .card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition);
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-grid .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}
.product-grid .card-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f1f5f9;
}
.product-grid .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.product-grid .card:hover .card-img-top {
  transform: scale(1.07);
}
.product-grid .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--itss-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.product-grid .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-grid .card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--itss-dark);
  margin-bottom: 8px;
  min-height: 48px;
  display: block;
  text-decoration: none;
}
.product-grid .card-title:hover {
  color: var(--itss-primary);
}
.product-grid .price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--itss-primary);
  margin-bottom: 14px;
  margin-top: auto;
}
.product-grid .card-footer {
  border-top: none;
  background: transparent;
  padding: 0 20px 20px;
  margin-top: auto;
}
.product-grid .btn-view {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  font-weight: 700;
  background: var(--itss-dark);
  border: none;
  color: #fff;
  transition: var(--transition);
}
.product-grid .btn-view:hover {
  background: var(--itss-accent);
  color: #fff;
}

.pricing-card {
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 36px 26px;
  text-align: center;
  background: #fff;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  border-color: var(--itss-primary);
  transform: translateY(-7px);
  box-shadow: 0 14px 45px rgba(67, 56, 202, 0.1);
}
.pricing-card.popular {
  border-color: var(--itss-primary);
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  color: #fff;
  transform: scale(1.04);
  z-index: 2;
  box-shadow: 0 14px 45px rgba(67, 56, 202, 0.25);
}
.pricing-card.popular h3,
.pricing-card.popular .price,
.pricing-card.popular .old-price,
.pricing-card.popular ul li {
  color: #fff;
}
.pricing-card.popular .old-price {
  opacity: 0.85;
}
.pricing-card.popular .btn {
  background: #fff;
  color: var(--itss-primary);
}
.pricing-card.popular .btn:hover {
  background: #f1f5f9;
}
.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--itss-dark);
  margin-bottom: 14px;
}
.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--itss-dark);
  margin: 10px 0 6px;
}
.pricing-card.popular .price {
  color: #fff;
}
.old-price {
  font-size: 1rem;
  color: var(--itss-gray);
  text-decoration: line-through;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pricing-card ul li {
  margin-bottom: 11px;
  font-size: 0.95rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card.popular ul li {
  color: #e2e8f0;
}
.pricing-card .check {
  color: var(--itss-accent);
  font-weight: 800;
  font-size: 1.05rem;
}
.pricing-card.popular .check {
  color: #22d3ee;
}
.pricing-card .btn {
  margin-top: auto;
  padding: 11px 28px;
  font-weight: 700;
  border-radius: 10px;
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--itss-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.cta-section {
  background: var(--itss-dark);
  color: #fff;
  padding: 60px 0;
  border-radius: 34px;
  margin: 80px 0 20px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -15%;
  right: -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.2), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-section p {
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 1.08rem;
}
.cta-section .input-group {
  max-width: 520px;
  margin: 0 auto;
}
.cta-section .form-control {
  padding: 14px 20px;
  border-radius: 10px 0 0 10px;
  border: none;
}
.cta-section .btn {
  border-radius: 0 10px 10px 0;
  padding: 14px 30px;
  font-weight: 700;
}

footer.container {
  border-top: 5px solid var(--itss-primary);
}
footer h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--itss-dark);
  margin-bottom: 20px;
}
footer .link-secondary {
  color: #64748b !important;
}
footer .link-secondary:hover {
  color: var(--itss-primary) !important;
}
footer ul.list-unstyled li {
  margin-bottom: 9px;
}

@media (max-width: 991.98px) {
  .pricing-card.popular {
    transform: scale(1);
  }
}
@media (max-width: 767.98px) {
  #myCarousel .carousel-item {
    height: 380px;
  }
  #myCarousel .carousel-item img {
    height: 380px;
  }
  #myCarousel .carousel-caption {
    bottom: 6%;
    left: 4%;
    right: 4%;
    padding: 22px 26px;
  }
  #myCarousel .carousel-caption h1 {
    font-size: 1.55rem;
  }
  #myCarousel .carousel-caption p {
    font-size: 1rem;
  }
  .home-hero h1 {
    font-size: 2rem;
  }
  .section-title h2 {
    font-size: 1.6rem;
    flex-direction: column;
  }
  .cta-section h2 {
    font-size: 1.65rem;
  }
}
