/* ==========================================================================
   GigToDo - Elite Modern Design System (2026 Edition)
   Modernized Hero Slider, Category Cards, Proposal Cards & Core Aesthetics
   ========================================================================== */

:root {
  --primary-color: #0ec06e;
  --primary-hover: #0ca860;
  --primary-gradient: linear-gradient(135deg, #0ec06e 0%, #059669 100%);
  --accent-color: #3b82f6;
  --dark-surface: #0f172a;
  --card-bg: #ffffff;
  --card-border: rgba(226, 232, 240, 0.8);
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 20px 30px -4px rgba(15, 23, 42, 0.12), 0 8px 12px -2px rgba(15, 23, 42, 0.06);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   1. Typography & Global Polish
   -------------------------------------------------------------------------- */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--text-main);
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   2. Elite Hero Slider & Glassmorphic Search
   -------------------------------------------------------------------------- */
#demo1.main.carousel {
  position: relative;
  overflow: hidden;
  background: #090d16;
}

#demo1 .carousel-inner {
  position: relative;
}

#demo1 .carousel-item {
  position: relative;
  overflow: hidden;
}

#demo1 .carousel-item img:not(.srch2),
#demo1 .carousel-item video {
  height: 68vh !important;
  min-height: 520px;
  max-height: 720px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75) contrast(1.05);
  transform: scale(1.02);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

#demo1 .carousel-item.active img:not(.srch2),
#demo1 .carousel-item.active video {
  transform: scale(1);
}

/* Cinematic Gradient Overlay */
#demo1 .carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(15, 23, 42, 0.65) 60%,
    rgba(15, 23, 42, 0.85) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Hero Caption & Typography */
#demo1 .carousel-caption {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90%;
  max-width: 900px;
  padding: 0;
  z-index: 10;
  text-align: center;
}

#demo1 .carousel-caption h1 {
  font-size: 52px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  letter-spacing: -0.03em !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px !important;
  top: 0 !important;
  position: static !important;
}

#demo1 .carousel-caption h5 {
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 32px !important;
  top: 0 !important;
  position: static !important;
}

/* Glassmorphic Search Bar */
#demo1 .carousel-caption .space20 {
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: var(--radius-full) !important;
  padding: 6px 8px 6px 20px !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  display: flex !important;
  align-items: center !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  transition: var(--transition-smooth);
}

#demo1 .carousel-caption .space20:focus-within {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #0ec06e !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(14, 192, 110, 0.25) !important;
}

#demo1 .carousel-caption .space20:focus-within .form-control {
  color: #0f172a !important;
}

#demo1 .carousel-caption .space20:focus-within .form-control::placeholder {
  color: #64748b !important;
}

.main .form-control {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  height: 48px !important;
  padding: 0 !important;
  top: 0 !important;
  position: static !important;
  box-shadow: none !important;
}

.main .form-control::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
}

.input-group-append.move-icon-up {
  background: var(--primary-gradient) !important;
  border-radius: var(--radius-full) !important;
  width: 50px !important;
  height: 50px !important;
  margin-left: auto !important;
  top: 0 !important;
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--transition-smooth) !important;
  box-shadow: 0 4px 14px rgba(14, 192, 110, 0.4) !important;
}

.input-group-append.move-icon-up:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 6px 20px rgba(14, 192, 110, 0.55) !important;
}

.search_button {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.srch2 {
  width: 20px !important;
  height: 20px !important;
  filter: brightness(0) invert(1) !important;
}

/* Modern Slider Indicators */
#demo1 .carousel-indicators,
#demo3 .carousel-indicators {
  bottom: 25px !important;
  z-index: 15;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#demo1 .carousel-indicators li,
#demo3 .carousel-indicators li {
  width: 10px !important;
  height: 10px !important;
  border-radius: var(--radius-full) !important;
  background-color: rgba(255, 255, 255, 0.45) !important;
  border: none !important;
  margin: 0 !important;
  transition: all 0.35s ease !important;
  cursor: pointer !important;
}

#demo1 .carousel-indicators li.active,
#demo3 .carousel-indicators li.active {
  width: 28px !important;
  background-color: #0ec06e !important;
  box-shadow: 0 0 10px rgba(14, 192, 110, 0.6) !important;
}

/* Modern Frosted Navigation Arrows */
#demo1 .carousel-control-prev,
#demo1 .carousel-control-next {
  width: 52px !important;
  height: 52px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--radius-full) !important;
  opacity: 0.8 !important;
  transition: var(--transition-smooth) !important;
  z-index: 12;
}

#demo1 .carousel-control-prev {
  left: 30px !important;
}

#demo1 .carousel-control-next {
  right: 30px !important;
}

#demo1 .carousel-control-prev:hover,
#demo1 .carousel-control-next:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

#demo1 .carousel-control-prev i,
#demo1 .carousel-control-next i {
  font-size: 20px !important;
  color: #ffffff !important;
  transition: var(--transition-smooth);
}

#demo1 .carousel-control-prev:hover i,
#demo1 .carousel-control-next:hover i {
  color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   3. Elite Subcategory Carousel Cards
   -------------------------------------------------------------------------- */
.cards {
  padding-top: 30px;
}

.cards h1 {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}

.cards .subHeading {
  font-size: 17px !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

.home-cards-carousel .card-box {
  margin: 12px 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #0f172a;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  transform: translateY(0);
}

.home-cards-carousel .card-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.home-cards-carousel .card-box a.subcategory {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.home-cards-carousel .card-box a.subcategory picture img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
}

.home-cards-carousel .card-box:hover a.subcategory picture img {
  transform: scale(1.08);
}

/* Gradient overlay for subcategory cards */
.home-cards-carousel .card-box a.subcategory::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.1) 45%, rgba(15, 23, 42, 0.85) 100%);
  pointer-events: none;
}

.home-cards-carousel .card-box a.subcategory h4 {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.home-cards-carousel .card-box a.subcategory h4 small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   4. Elite Featured Category Cards
   -------------------------------------------------------------------------- */
.market {
  background: #f8fafc !important;
  padding: 80px 0 !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.market h2 {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: center;
  margin-bottom: 8px;
}

.market h4 {
  font-size: 17px !important;
  color: var(--text-muted) !important;
  text-align: center;
  font-weight: 400 !important;
  margin-bottom: 48px;
}

.market .grn_box {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 36px 20px 28px;
  text-align: center;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.market .grn_box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.market .grn_box:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 192, 110, 0.3);
  box-shadow: 0 20px 35px -5px rgba(14, 192, 110, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
}

.market .grn_box:hover::before {
  opacity: 1;
}

.market .grn_box img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
}

.market .grn_box:hover img {
  transform: scale(1.12);
}

.market .grn_box p {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin: 0 !important;
  transition: var(--transition-smooth);
}

.market .grn_box:hover p {
  color: #0ec06e !important;
}

.market a {
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   5. Elite Value Proposition / Timer Feature Section
   -------------------------------------------------------------------------- */
.timer {
  padding: 85px 0 !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  position: relative;
  overflow: hidden;
}

.timer::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 192, 110, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.timer .box {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-md) !important;
  padding: 40px !important;
  height: 100% !important;
  transition: var(--transition-smooth);
}

.timer .box:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(14, 192, 110, 0.3) !important;
  transform: translateY(-4px);
}

.timer .box h5 {
  color: #34d399 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer .box p {
  color: #94a3b8 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

.timer .blu_box,
.timer .blu_box1 {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.timer .blu_box img,
.timer .blu_box1 img {
  border-radius: var(--radius-sm);
  max-height: 240px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.timer .blu_box:hover img,
.timer .blu_box1:hover img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   6. Elite Proposal Cards (Gigs)
   -------------------------------------------------------------------------- */
.top {
  padding: 80px 0 90px !important;
  background: #ffffff !important;
}

.top h1 {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 8px;
}

.top h4 {
  font-size: 17px !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
  margin-bottom: 30px;
}

.proposal-card-base,
.mp-proposal-card {
  background: #ffffff !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  box-shadow: var(--card-shadow) !important;
  transition: var(--transition-smooth) !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.proposal-card-base:hover,
.mp-proposal-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(14, 192, 110, 0.3) !important;
  box-shadow: var(--card-shadow-hover) !important;
}

.proposal-card-base > a:first-child {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
}

.proposal-card-base > a:first-child img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.proposal-card-base:hover > a:first-child img {
  transform: scale(1.06) !important;
}

.proposal-card-caption {
  padding: 16px 18px 12px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proposal-seller-info {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 12px !important;
  position: relative;
}

.proposal-seller-info .fit-avatar img {
  border-radius: var(--radius-full) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  object-fit: cover;
}

.seller-info-wrapper {
  margin-left: 10px;
}

.seller-info-wrapper a.seller-name {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #0f172a !important;
  text-decoration: none !important;
  transition: var(--transition-smooth);
}

.seller-info-wrapper a.seller-name:hover {
  color: #0ec06e !important;
}

.gig-seller-tooltip {
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.favoriteIcon {
  margin-left: auto;
}

.favoriteIcon i.fa-heart {
  font-size: 17px !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
}

.favoriteIcon i.fa-heart:hover,
.favoriteIcon i.fa-heart.dil {
  color: #ef4444 !important;
  transform: scale(1.2) !important;
}

a.proposal-link-main {
  text-decoration: none !important;
  flex: 1;
}

a.proposal-link-main h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: #1e293b !important;
  margin-bottom: 10px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition-smooth);
}

a.proposal-link-main:hover h3 {
  color: #0ec06e !important;
}

.rating-badges-container {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.proposal-rating svg.full_star {
  fill: #f59e0b !important;
  width: 14px;
  height: 14px;
  vertical-align: -1px;
}

.proposal-rating span strong {
  font-size: 13px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.proposal-rating span {
  font-size: 13px !important;
  color: #64748b !important;
  margin-left: 3px;
}

.is-online {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #10b981 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px;
}

.is-online i.fa-circle {
  font-size: 8px !important;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 4px #10b981); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.proposal-card-footer {
  padding: 12px 18px !important;
  border-top: 1px solid #f1f5f9 !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.proposal-card-footer .proposal-fav {
  display: flex;
  gap: 8px;
}

.proposal-card-footer .proposal-fav .icn-list svg {
  width: 16px;
  height: 16px;
  fill: #94a3b8;
  transition: var(--transition-smooth);
}

.proposal-card-footer .proposal-fav .icn-list:hover svg {
  fill: #0ec06e;
  transform: scale(1.15);
}

.proposal-price small {
  display: block;
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

.proposal-price a {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   7. Buttons & Component Modernization
   -------------------------------------------------------------------------- */
.btn-success {
  background: var(--primary-gradient) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 14px rgba(14, 192, 110, 0.3) !important;
  transition: var(--transition-smooth) !important;
}

.btn-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(14, 192, 110, 0.45) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3) !important;
  transition: var(--transition-smooth) !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45) !important;
}

/* View More Links */
.top span.pull-right.text-success a {
  font-weight: 700;
  font-size: 15px;
  color: #0ec06e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.top span.pull-right.text-success a:hover {
  color: #0ca860;
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  #demo1 .carousel-caption h1 {
    font-size: 38px !important;
  }
  #demo1 .carousel-caption h5 {
    font-size: 17px !important;
    margin-bottom: 24px !important;
  }
  #demo1 .carousel-item img:not(.srch2),
  #demo1 .carousel-item video {
    height: 55vh !important;
    min-height: 440px;
  }
  #demo1 .carousel-control-prev,
  #demo1 .carousel-control-next {
    display: none !important;
  }
}

@media (max-width: 600px) {
  #demo1 .carousel-caption h1 {
    font-size: 28px !important;
  }
  #demo1 .carousel-caption h5 {
    font-size: 15px !important;
    margin-bottom: 20px !important;
  }
  #demo1 .carousel-caption .space20 {
    padding: 4px 6px 4px 16px !important;
  }
  .market {
    padding: 50px 0 !important;
  }
  .market h2, .top h1 {
    font-size: 26px !important;
  }
}
