/* Corporate IT Styles */

/* Section Badge */
.section-badge {
  display: inline-block;
  background: var(--primary-color, #392C7D);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-title .section-badge {
  background: linear-gradient(135deg, #392C7D, #5B4CB0);
}

/* Portfolio Item */
.portfolio-grid {
  margin-top: 30px;
}

.portfolio-item {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(57, 44, 125, 0.15);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(57, 44, 125, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-link {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #392C7D;
  font-size: 20px;
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  background: #392C7D;
  color: #fff;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-category {
  font-size: 13px;
  color: #392C7D;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-info h4 {
  font-size: 18px;
  margin: 8px 0 0;
  color: var(--gray-900);
  font-weight: 700;
}

/* Feature Card (Why Choose Us) */
.feature-card {
  text-align: center;
  padding: 35px 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: 0 10px 40px rgba(57, 44, 125, 0.1);
  transform: translateY(-3px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(57, 44, 125, 0.1), rgba(91, 76, 176, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #392C7D;
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* Benefit Card Link */
.benefit-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #392C7D;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.benefit-card .card-link:hover {
  color: #5B4CB0;
  gap: 8px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #392C7D 0%, #5B4CB0 50%, #7B6CC0 100%);
  padding: 80px 0;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.cta-box .btn-primary {
  background: #fff;
  color: #392C7D;
  border: none;
  padding: 14px 40px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
}

.cta-box .btn-primary:hover {
  background: #f0f0f0;
  color: #392C7D;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Banner Buttons */
.banner-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.banner-buttons .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
}

.banner-buttons .btn-outline-light:hover {
  background: #fff;
  color: #392C7D;
  border-color: #fff;
}

/* Banner Image */
.banner-image img {
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .cta-box h2 { font-size: 26px; }
  .banner-buttons { flex-direction: column; }
  .banner-buttons .btn { width: 100%; }
  .portfolio-info h4 { font-size: 16px; }
}

/* ===================================================================
   Modern Header & Footer Refresh
   Brand primary #392C7D (dominant) / #5B4CB0 (secondary); coral accent kept minimal
   RTL- and dark-mode-aware. corporate.css loads last (safe overrides).
   =================================================================== */

/* ---------- Topbar ---------- */
.header-topbar {
  background: linear-gradient(90deg, #241B52 0%, #392C7D 48%, #5B4CB0 100%);
  padding: 9px 0;
  position: relative;
  z-index: 1055;
}
.header-topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 60px at 12% 120%, rgba(139, 127, 224, .22), transparent 70%),
    radial-gradient(160px 80px at 88% -20%, rgba(255, 255, 255, .10), transparent 70%);
  pointer-events: none;
}
.header-topbar > .container { position: relative; z-index: 1; }
.header-topbar p { color: rgba(255, 255, 255, .92); transition: color .25s ease; }
.header-topbar p:hover { color: #fff; }
.header-topbar p i {
  color: #C9C2EC;
  transition: transform .3s ease;
  display: inline-block;
}
.header-topbar p:hover i { transform: translateY(-2px); }
.header-topbar .dropdown > a { color: #fff; font-weight: 600; }
.header-topbar .social-icon a {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 50%;
  transition: all .3s ease;
}
.header-topbar .social-icon a:hover {
  background: #5B4CB0;
  transform: translateY(-2px);
}

/* ---------- Header nav (desktop) ---------- */
@media (min-width: 992px) {
  header.header-two .main-menu-wrapper .main-nav > li > a { position: relative; }
  header.header-two .main-menu-wrapper .main-nav > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #392C7D, #5B4CB0);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
  }
  header.header-two .main-menu-wrapper .main-nav > li > a:hover::after,
  header.header-two .main-menu-wrapper .main-nav > li.active > a::after { transform: scaleX(1); }
  header.header-two .main-menu-wrapper .main-nav > li > a:hover,
  header.header-two .main-menu-wrapper .main-nav > li.active > a { color: #392C7D !important; }
}
.dark-mode header.header-two .main-menu-wrapper .main-nav > li > a:hover,
.dark-mode header.header-two .main-menu-wrapper .main-nav > li.active > a { color: #C9C2EC !important; }
.dark-mode header.header-two .main-menu-wrapper .main-nav > li > a::after { background: linear-gradient(90deg, #5B4CB0, #8B7FE0); }

/* Icon buttons (theme toggle / cart) */
header.header-two .header-btn .icon-btn > a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 44, 125, .07);
  border-color: transparent;
  color: #392C7D;
  transition: all .3s ease;
}
header.header-two .header-btn .icon-btn > a:hover {
  background: linear-gradient(135deg, #392C7D, #5B4CB0);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(57, 44, 125, .28);
}
.dark-mode header.header-two .header-btn .icon-btn > a { color: #C7C9D6; }

/* Fix: only one theme toggle (sun/moon) should show at a time */
header.header-two .header-btn .icon-btn a.theme-toggle { display: none; }
header.header-two .header-btn .icon-btn a.theme-toggle.activate { display: flex; }

/* Header action buttons */
header.header-two .header-btn .btn {
  border: none;
  border-radius: 50px;
  padding: 9px 22px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
header.header-two .header-btn .btn-primary {
  background: linear-gradient(135deg, #392C7D, #5B4CB0);
  color: #fff;
  box-shadow: 0 6px 16px rgba(57, 44, 125, .25);
}
header.header-two .header-btn .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(57, 44, 125, .40);
}
header.header-two .header-btn .btn-secondary {
  background: rgba(57, 44, 125, .08);
  color: #392C7D;
}
header.header-two .header-btn .btn-secondary:hover {
  background: rgba(57, 44, 125, .16);
  transform: translateY(-2px);
}
.dark-mode header.header-two .header-btn .btn-secondary { background: rgba(255, 255, 255, .08); color: #E5E7EB; }

/* Profile dropdown */
header.header-two .profile-dropdown .dropdown-menu {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(20, 15, 50, .18);
  padding: 14px;
}
header.header-two .profile-dropdown .avatar img { border: 2px solid #fff; box-shadow: 0 0 0 2px #5B4CB0; }
header.header-two .profile-dropdown .dropdown-item:hover { background: rgba(91, 76, 176, .10); color: #392C7D; }
.dark-mode header.header-two .profile-dropdown .dropdown-item:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: none; position: relative; }
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #392C7D, #5B4CB0);
}
.footer .footer-top { padding: 64px 0 44px; }

.footer-widget .footer-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--gray-900);
}
.footer-widget .footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #392C7D, #5B4CB0);
}
.footer-widget ul li a {
  display: inline-block;
  transition: color .25s ease, transform .25s ease;
}
.footer-widget ul li a:hover {
  color: #392C7D !important;
  transform: translateX(4px);
}
[dir="rtl"] .footer-widget ul li a:hover { transform: translateX(-4px); }

/* Newsletter input */
.footer .subscribe-input input {
  border: 1px solid var(--gray-200);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.footer .subscribe-input input:focus {
  border-color: #5B4CB0;
  box-shadow: 0 0 0 4px rgba(91, 76, 176, .15);
  outline: none;
}
.footer .subscribe-input button {
  background: linear-gradient(135deg, #392C7D, #5B4CB0);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  justify-content: center;
  transition: transform .3s ease;
}
.footer .subscribe-input button:hover { transform: scale(1.10); }

/* App store buttons */
.footer .footer-about .d-flex a img { transition: transform .3s ease; }
.footer .footer-about .d-flex a:hover img { transform: translateY(-3px); }

/* Footer bottom */
.footer-bottom {
  background: linear-gradient(90deg, #241B52 0%, #392C7D 55%, #4A3AA0 100%);
  padding: 1.25rem 0;
}
.footer-bottom .footer-link li a { transition: color .25s ease; }
.footer-bottom .footer-link li a:hover { color: #C9C2EC !important; }
.footer-bottom .footer-link li + li::before { background: rgba(255, 255, 255, .35); }

/* ---------- Dark-mode footer tweaks ---------- */
.dark-mode .footer .footer-top { background: #101018; }
.dark-mode .footer-widget .footer-title { color: #E5E7EB; }
.dark-mode .footer-widget ul li a { color: #9CA3AF; }
.dark-mode .footer-widget ul li a:hover { color: #fff !important; }
.dark-mode .footer .subscribe-input input { background: #1F2228; border-color: #2F343C; color: #E5E7EB; }
.dark-mode .footer .footer-about p { color: #9CA3AF; }
