/* =============================================================
   home.css — Homepage only styles
   Breakpoints: xs <576, sm 576, md 768, lg 992, xl 1200, xxl 1400
   ============================================================= */

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
.hero-section {
  background: linear-gradient(135deg, #143a6b 0%, #2d2442 25%, #3a2f5a 50%, #2d2442 75%, #143a6b 100%);
  position: relative;
  padding-top: 100px; /* clear fixed navbar */
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(26, 79, 144, 0.4), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(125, 161, 76, 0.35), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(26, 79, 144, 0.25), transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(125, 161, 76, 0.3), transparent 55%);
  z-index: 0;
  pointer-events: none;
  animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.08); }
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Animated Particles */
.animated-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26, 79, 144, 0.6), rgba(125, 161, 76, 0.5));
  filter: blur(2px);
  animation: particleFloat 20s ease-in-out infinite;
}

.particle-1 { width: 4px;  height: 4px;  top: 20%; left: 10%; animation-duration: 15s; }
.particle-2 { width: 6px;  height: 6px;  top: 60%; left: 80%; animation-duration: 18s; animation-delay: 2s; }
.particle-3 { width: 3px;  height: 3px;  top: 80%; left: 20%; animation-duration: 22s; animation-delay: 4s; }
.particle-4 { width: 5px;  height: 5px;  top: 30%; left: 70%; animation-duration: 16s; animation-delay: 1s; }
.particle-5 { width: 4px;  height: 4px;  top: 50%; left: 5%;  animation-duration: 20s; animation-delay: 3s; }
.particle-6 { width: 6px;  height: 6px;  top: 10%; left: 50%; animation-duration: 17s; animation-delay: 5s; }
.particle-7 { width: 3px;  height: 3px;  top: 70%; left: 90%; animation-duration: 19s; animation-delay: 2.5s; }
.particle-8 { width: 5px;  height: 5px;  top: 40%; left: 30%; animation-duration: 21s; animation-delay: 3.5s; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1);        opacity: 0.3; }
  25%       { transform: translate(30px, -50px) scale(1.2); opacity: 0.6; }
  50%       { transform: translate(-20px, -80px) scale(0.8); opacity: 0.4; }
  75%       { transform: translate(40px, -30px) scale(1.1); opacity: 0.5; }
}

/* Gradient Orbs — always inside hero overflow:hidden, so safe */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orbFloat 15s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26, 79, 144, 0.8), rgba(26, 79, 144, 0.4), transparent 70%);
  top: -200px; left: -200px;
  animation-duration: 20s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(125, 161, 76, 0.75), rgba(125, 161, 76, 0.4), transparent 70%);
  bottom: -250px; right: -250px;
  animation-duration: 25s; animation-delay: 2s;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(26, 79, 144, 0.7), rgba(26, 79, 144, 0.3), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 18s; animation-delay: 1s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(50px, -30px) scale(1.1); }
  66%       { transform: translate(-30px, 40px) scale(0.9); }
}

/* Interactive Glow (desktop/mouse only) */
.interactive-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26, 79, 144, 0.35), rgba(125, 161, 76, 0.3), rgba(26, 79, 144, 0.2), transparent 70%);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.1s ease-out;
  transform: translate(-50%, -50%);
  left: 50%; top: 50%;
}

/* Hero image layers */
.parallax-container {
  position: relative;
  overflow: hidden; /* contain floating elements */
}

.hero-scene {
  position: relative;
  width: 100%;
  max-width: 526px;
  margin: 0 auto;
}

.parallax-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}

/* First layer sets the height of the container */
.parallax-layer:first-child {
  position: relative;
}

.hero-layer {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(125, 161, 76, 0.3));
  animation: layerFloat 8s ease-in-out infinite;
}

.parallax-layer:nth-child(1) .hero-layer { animation-delay: 0s; }
.parallax-layer:nth-child(2) .hero-layer { animation-delay: 0.5s; }
.parallax-layer:nth-child(3) .hero-layer { animation-delay: 1s; }
.parallax-layer:nth-child(4) .hero-layer { animation-delay: 1.5s; }
.parallax-layer:nth-child(5) .hero-layer { animation-delay: 2s; }
.parallax-layer:nth-child(6) .hero-layer { animation-delay: 2.5s; }
.parallax-layer:nth-child(7) .hero-layer { animation-delay: 3s; }
.parallax-layer:nth-child(8) .hero-layer { animation-delay: 3.5s; }

@keyframes layerFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 4px 20px rgba(125, 161, 76, 0.3)); }
  50%       { transform: translateY(-10px) rotate(1deg); filter: drop-shadow(0 8px 30px rgba(26, 79, 144, 0.4)); }
}

/* Floating blur elements — desktop only */
.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
  animation: floatAdvanced 12s ease-in-out infinite;
  pointer-events: none;
}

.floating-element-1 {
  width: 180px; height: 180px;
  top: 10%; left: -10%;
  background: radial-gradient(circle, rgba(26, 79, 144, 0.7), rgba(26, 79, 144, 0.3), transparent);
}

.floating-element-2 {
  width: 150px; height: 150px;
  bottom: 20%; right: -5%;
  background: radial-gradient(circle, rgba(125, 161, 76, 0.7), rgba(125, 161, 76, 0.3), transparent);
  animation-delay: 2s;
}

.floating-element-3 {
  width: 130px; height: 130px;
  top: 50%; right: 10%;
  background: radial-gradient(circle, rgba(26, 79, 144, 0.7), rgba(26, 79, 144, 0.3), transparent);
  animation-delay: 4s;
}

@keyframes floatAdvanced {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25%       { transform: translate(30px, -40px) scale(1.1); opacity: 0.7; }
  50%       { transform: translate(-20px, -60px) scale(0.9); opacity: 0.5; }
  75%       { transform: translate(40px, -20px) scale(1.05); opacity: 0.6; }
}

/* Stat Cards */
.stat-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 79, 144, 0.2), rgba(125, 161, 76, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.stat-card:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-5px) scale(1.05); box-shadow: 0 10px 30px rgba(26, 79, 144, 0.3); }
.stat-card:hover::before { opacity: 1; }
.stat-card > * { position: relative; z-index: 1; }

/* Registration Info Box */
.registration-quick-info {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.registration-quick-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(26, 79, 144, 0.2), 0 10px 30px rgba(125, 161, 76, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.registration-text  { color: #ffffff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.registration-icon  { color: #ffffff !important; }
.registration-badge { background: rgba(255,255,255,0.2) !important; color: #ffffff !important; border: 1px solid rgba(255,255,255,0.3) !important; }
.registration-link  { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); transition: color 0.3s ease; }
.registration-link:hover { color: #f0f0f0 !important; }

/* ----------------------------------------------------------
   Gradient text animation
   ---------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero-specific gradient text glow */
.hero-section .gradient-text::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(10px);
  opacity: 0.5;
  z-index: -1;
  animation: gradientShift 5s ease infinite reverse;
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */
.animate-fade-in         { animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-slide-up        { animation: slideUpSmooth 1.2s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-fade-in-delay   { animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; }
.animate-fade-in-delay-2 { animation: fadeInUp 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideUpSmooth {
  from { opacity: 0; transform: translateY(50px); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Hover lift — shared */
.hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(26, 79, 144, 0.25) !important;
}

/* ----------------------------------------------------------
   Intro Section
   ---------------------------------------------------------- */
.intro-section {
  background: linear-gradient(135deg, #f8f4ed 0%, #f5f4f8 100%);
}

.icon-box {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 79, 144, 0.1), rgba(125, 161, 76, 0.1));
  border-radius: 12px;
}

/* Experience card */
.experience-card {
  position: relative;
}

/* Badge shown above the card on lg+ */
.experience-badge {
  display: none; /* hidden by default; shown on lg via media query */
  position: absolute;
  top: -15px;
  right: 20px;
  background: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26, 79, 144, 0.3);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

/* Inline badge shown inside card on mobile/tablet */
.experience-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge-text  { font-size: 1.5rem; font-weight: bold; line-height: 1; }
.badge-label { font-size: 0.75rem; opacity: 0.9; text-align: center; }

/* ----------------------------------------------------------
   How It Works
   ---------------------------------------------------------- */
.step-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-icon-circle {
  transition: transform 0.3s ease;
}

.step-card:hover .step-icon-circle {
  transform: scale(1.1);
}

.step-requirements ul {
  list-style: none;
  padding-left: 0;
}

.step-requirements ul li::before {
  content: "✓ ";
  color: #7DA14C;
  font-weight: bold;
  margin-right: 0.5rem;
}

.registration-summary-card {
  border-left: 4px solid #1A4F90;
}

/* ----------------------------------------------------------
   Jobs Section
   ---------------------------------------------------------- */
.jobs-section {
  background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
}

.job-search-input .form-control {
  border-radius: 0 0.5rem 0.5rem 0;
  border-color: #e2e5ec;
  box-shadow: none;
}

.job-search-input .form-control:focus {
  border-color: #1A4F90;
  box-shadow: 0 0 0 0.15rem rgba(26, 79, 144, 0.15);
}

.job-search-input .input-group-text {
  border-radius: 0.5rem 0 0 0.5rem;
  border-color: #e2e5ec;
}

.job-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.company-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background-color: #fff;
  padding: 8px;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.job-card:hover .company-logo {
  border-color: #7DA14C;
  transform: scale(1.05);
}

/* ----------------------------------------------------------
   Cities Section
   ---------------------------------------------------------- */
.cities-section {
  background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
}

.city-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 180px;
  background: #1a3a5c; /* dark fallback so no white shows through rounded corners */
  transition: box-shadow 0.3s ease;
}

/* Image fills the fixed-height wrapper completely */
.city-carousel img,
.city-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}

/* Hover: inset ring highlight — stays inside the element so carousel overflow: hidden never clips it */
.city-card:hover .city-image-wrapper {
  box-shadow: inset 0 0 0 3px rgba(26, 79, 144, 0.55) !important;
}

.city-card:hover .city-image {
  transform: scale(1.08);
  filter: brightness(1.06);
}

.city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.city-card:hover .city-overlay {
  opacity: 1;
}

/* ----------------------------------------------------------
   Brand overrides
   ---------------------------------------------------------- */
.intro-section .text-primary { color: #1A4F90 !important; }
.intro-section a.text-primary:hover { color: #7DA14C !important; }

.jobs-section .btn-outline-primary {
  color: #1A4F90 !important;
  border-color: #1A4F90 !important;
  background: transparent !important;
}

.jobs-section .btn-outline-primary:hover,
.jobs-section .btn-outline-primary:focus {
  color: #fff !important;
  background: linear-gradient(135deg, #1A4F90 0%, #7DA14C 100%) !important;
  border-color: transparent !important;
}

.cities-section .fi-map-pin,
.cities-section .text-primary { color: #1A4F90 !important; }
.cities-section .btn-link.text-primary { color: #1A4F90 !important; }
.cities-section .btn-link.text-primary:hover { color: #7DA14C !important; }

/* ----------------------------------------------------------
   Responsive — Mobile first
   ---------------------------------------------------------- */

/* Hide floating blur elements on anything smaller than desktop */
@media (max-width: 991px) {
  .floating-element {
    display: none;
  }

  .interactive-glow {
    display: none;
  }
}

/* Mobile (< 576px) */
@media (max-width: 575px) {
  .hero-section {
    padding-top: 80px;
  }

  .stat-card .h3 {
    font-size: 1.25rem;
  }

  .registration-quick-info {
    font-size: 0.875rem;
  }

  .registration-quick-info .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  /* Hero buttons: full width on mobile */
  .hero-cta-wrap .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet (576–991px) */
@media (min-width: 576px) and (max-width: 991px) {
  .hero-section {
    padding-top: 90px;
  }
}

/* Desktop (≥992px): show absolute experience badge */
@media (min-width: 992px) {
  .experience-badge {
    display: flex;
  }

  .experience-badge-inline {
    display: none;
  }

  .hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
  }
}

/* Large desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}
