/* Freelancer Visa Page Styles */

:root {
  --primary-dark: #1a1a2e;
  --primary-gold: #ffd700;
  --primary-blue: #4169e1;
  --text-light: #ffffff;
  --text-dark: var(--primary-dark);
  --gradient-gold: linear-gradient(135deg, #ffd700, #ffed4e);
  --gradient-blue: linear-gradient(135deg, #4169e1, #1e90ff);
  --section-padding: 80px 0;
}
/* Compact Hero Section - Golden Visa Style */
.freelancer-hero-compact {
  background: linear-gradient(
      135deg,
      rgba(26, 26, 46, 0.9) 0%,
      rgba(65, 105, 225, 0.8) 100%
    ),
    url("../img/pexels-pham-huynh-tuan-vy-2152329497-32341632[1].jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.freelancer-hero-compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="freelancer-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23ffd700" opacity="0.15"/></pattern></defs><rect width="100%" height="100%" fill="url(%23freelancer-pattern)"/></svg>');
  animation: patternFloat 20s ease-in-out infinite;
}

.freelancer-hero-compact::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(255, 215, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(65, 105, 225, 0.1) 0%,
      transparent 50%
    );
  animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes patternFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(2deg);
  }
}

@keyframes gradientShift {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  color: rgba(255, 215, 0, 0.3);
  font-size: 2rem;
  animation: floatRandom 8s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-icon:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.floating-icon:nth-child(4) {
  top: 40%;
  right: 30%;
  animation-delay: 6s;
}

@keyframes floatRandom {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(5deg);
  }
  50% {
    transform: translateY(10px) translateX(-15px) rotate(-3deg);
  }
  75% {
    transform: translateY(-15px) translateX(20px) rotate(8deg);
  }
}

.freelancer-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.freelancer-hero-content .hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-gold);
  color: var(--primary-dark);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  animation: badgePulse 3s ease-in-out infinite;
}

.freelancer-hero-content .hero-badge i {
  color: var(--primary-dark) !important;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
  }
}

.freelancer-hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  margin-top: 10px;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  animation: heroTitleSlide 1.2s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.freelancer-hero-content h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary-gold);
  animation: titleUnderline 1.5s ease-out 0.8s forwards;
}

@keyframes heroTitleSlide {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes titleUnderline {
  0% {
    width: 0;
  }
  100% {
    width: 100px;
  }
}

.freelancer-hero-content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  animation: heroTextFade 1s ease-out 0.5s both;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.7;
}

@keyframes heroTextFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Quick Stats */
.hero-quick-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-gold);
  font-family: "Playfair Display", serif;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.hero-actions .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.hero-actions .btn:hover::before {
  left: 100%;
}

.hero-actions .btn-primary {
  background: var(--gradient-gold);
  color: var(--primary-dark);
  border-color: var(--primary-gold);
}

.hero-actions .btn-primary:hover {
  background: var(--gradient-blue);
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.hero-actions .btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}
/* Light Section Theme */
.section-light {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.95) 30%,
    rgba(241, 245, 249, 0.95) 70%,
    rgba(236, 242, 248, 0.95) 100%
  );
  position: relative;
  overflow: hidden;
}

/* Dark Section Theme */
.section-dark {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    #1e1e3a 25%,
    #2a2a4a 50%,
    #1e1e3a 75%,
    var(--primary-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

/* Content Section */
.content-section {
  padding: 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 40px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(65, 105, 225, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.feature-content h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* Enhanced Cards for Dark Sections */
.enhanced-card-dark {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 35px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2);
}

.enhanced-card-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
}

.enhanced-card-dark:hover::before {
  transform: scaleX(1);
}

.enhanced-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  margin: 0 auto 25px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.enhanced-card-dark:hover .enhanced-icon {
  transform: scale(1.15) rotate(-10deg);
  background: var(--gradient-gold);
}

.enhanced-card-dark h4 {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.enhanced-card-dark p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Requirements List */
.requirements-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.requirement-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.requirement-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.requirement-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.requirement-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* Image Container with Overlay */
.image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.8) 0%,
    rgba(65, 105, 225, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.overlay-content {
  text-align: center;
  padding: 20px;
}

.overlay-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 15px;
}

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Section Transitions */
.section-transition {
  position: relative;
  z-index: 1;
}

.section-transition::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-gold),
    var(--primary-blue),
    var(--primary-gold),
    transparent
  );
  opacity: 0.6;
}

/* Loading Overlay Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-left: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .freelancer-hero-compact {
    padding: 120px 0 60px;
    min-height: 60vh;
  }

  .freelancer-hero-content h1 {
    font-size: 2.5rem;
  }

  .freelancer-hero-content p {
    font-size: 1.1rem;
  }

  .hero-quick-stats {
    gap: 1rem;
  }

  .hero-quick-stats .stat-item {
    padding: 12px 20px;
  }

  .hero-quick-stats .stat-number {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .floating-icon {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .requirements-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .enhanced-card-dark {
    padding: 25px 20px;
  }

  .enhanced-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .enhanced-card-dark h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .freelancer-hero-compact {
    padding: 100px 0 50px;
    min-height: 50vh;
  }

  .freelancer-hero-content h1 {
    font-size: 2rem;
  }

  .freelancer-hero-content p {
    font-size: 1rem;
  }

  .hero-quick-stats {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-quick-stats .stat-item {
    padding: 10px 15px;
    margin: 0 1rem;
  }

  .hero-quick-stats .stat-number {
    font-size: 1.5rem;
  }

  .floating-icon {
    font-size: 1.2rem;
  }

  .feature-item,
  .requirement-item {
    padding: 15px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .feature-icon,
  .requirement-icon {
    margin: 0 auto;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .feature-item,
  .requirement-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .feature-content h6,
  .requirement-content h6 {
    color: white;
  }

  .feature-content p,
  .requirement-content p {
    color: rgba(255, 255, 255, 0.7);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .loading-spinner {
    animation: none;
  }
}

/* Print styles */
@media print {
  .freelancer-hero {
    background: none;
    color: black;
    min-height: auto;
    padding: 20px 0;
  }

  .enhanced-card-dark {
    background: white;
    border: 1px solid #ddd;
    color: black;
  }

  .loading-overlay {
    display: none;
  }
}
