/* Root Variables */
:root {
  --primary-dark: #1a1a2e;
  --primary-gold: #ffd700;
  --primary-blue: #4169e1;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #4169e1 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  --gradient-blue: linear-gradient(135deg, #4169e1 0%, #6c5ce7 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --section-padding: 80px 0;
}

/* Compact Hero Section - Remote Working Visa Style */
.retirement-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;
}

.retirement-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="remote-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(%23remote-pattern)"/></svg>');
  animation: patternFloat 20s ease-in-out infinite;
}

.retirement-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);
  }
}
.retirement-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.retirement-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;
}

.retirement-hero-content .hero-badge i {
  color: var(--primary-dark) !important;
}

.retirement-hero-compact 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;
}

.retirement-hero-compact 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;
  }
}

.retirement-hero-compact 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 Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-gold);
  color: var(--primary-dark) !important;
  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;
}

@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);
  }
}

/* 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);
  }
}

/* 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 Sections */
.section-light {
  background: var(--gradient-light);
  color: var(--text-dark);
}

/* Dark Sections */
.section-dark {
  background: var(--gradient-dark);
  color: var(--text-light);
}

.section-transition {
  position: relative;
}

.section-transition::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-gold),
    var(--primary-blue),
    var(--primary-gold)
  );
}

/* Typography */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
  position: relative;
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Enhanced Cards */
.enhanced-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.enhanced-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.enhanced-card-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.enhanced-card-dark:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.enhanced-card h4,
.enhanced-card-dark h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.enhanced-card-dark h4 {
  color: white;
}

.enhanced-card-dark p {
  color: rgba(255, 255, 255, 0.9);
}

/* Enhanced Icons */
.enhanced-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-size: 2rem;
  transition: var(--transition);
}

.enhanced-card:hover .enhanced-icon,
.enhanced-card-dark:hover .enhanced-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-content h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.feature-content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Requirements List */
.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: var(--transition);
}

.requirement-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.requirement-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-gold), #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.requirement-content h6 {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.requirement-content p {
  margin: 0;
  font-size: 0.9rem;
}

/* Process Timeline */
.process-timeline {
  position: relative;
  padding: 20px 0;
}

.process-step {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-gold);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.step-content {
  flex: 1;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 20px;
}

.step-content h5 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 15px;
}

.step-content p {
  color: #666;
  margin: 0;
}

/* Visa Duration Simple */
.visa-duration-simple {
  text-align: center;
  padding: 2rem;
}

.duration-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.duration-number {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary-gold);
  font-family: "Playfair Display", serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.duration-text {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 1rem;
}

.duration-desc {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.renewal-simple {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.2);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.renewal-simple i {
  color: var(--primary-gold);
}

/* Image Container */
.image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  background: #f8f9fa;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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: var(--transition);
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition);
}

.image-container:hover .overlay-content {
  transform: translateY(0);
}

/* Comparison Lists */
.comparison-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.comparison-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 2rem;
}

.comparison-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-gold);
  font-weight: bold;
  font-size: 1.2rem;
}

.comparison-list li:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .retirement-hero-compact {
    padding: 120px 0 60px;
    min-height: 60vh;
  }

  .retirement-hero-content h1 {
    font-size: 2.5rem;
  }

  .retirement-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;
  }

  .section-title {
    font-size: 2rem;
  }

  .enhanced-card,
  .enhanced-card-dark {
    padding: 1.5rem;
  }

  .process-timeline::before {
    left: 30px;
  }

  .process-step {
    flex-direction: row !important;
    padding-left: 80px;
  }

  .process-step:nth-child(even) {
    flex-direction: row !important;
  }

  .step-number {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .step-content {
    margin: 0;
    padding: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .requirement-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .duration-number {
    font-size: 4rem;
  }

  .duration-text {
    font-size: 1.5rem;
  }

  .floating-icon {
    font-size: 1.5rem;
  }

  .image-container {
    height: 300px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .retirement-hero-compact {
    padding: 100px 0 50px;
    min-height: 50vh;
  }

  .retirement-hero-content h1 {
    font-size: 2rem;
  }

  .retirement-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;
  }

  .enhanced-card,
  .enhanced-card-dark {
    padding: 1rem;
  }

  .enhanced-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .duration-number {
    font-size: 3rem;
  }
}

/* Print Styles */
@media print {
  .floating-elements,
  .hero-actions,
  .image-overlay {
    display: none;
  }

  .retirement-hero-compact {
    height: auto;
    min-height: auto;
    padding: 2rem 0;
    background: none;
  }

  .section-dark {
    background: none;
    color: black;
  }

  .enhanced-card,
  .enhanced-card-dark {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
.btn:focus,
.enhanced-card:focus,
.process-step:focus {
  outline: 3px solid var(--primary-gold);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .enhanced-card,
  .enhanced-card-dark {
    border: 2px solid;
  }

  .floating-icon {
    display: none;
  }
}

/* CTA Section Styles */
.cta-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-dark);
}

.cta-feature-item i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-actions .btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.cta-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;
}

.cta-actions .btn:hover:before {
  left: 100%;
}

.cta-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), #e6c200);
  border-color: var(--primary-gold);
  color: var(--primary-dark);
}

.cta-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.cta-actions .btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  background: transparent;
}

.cta-actions .btn-outline-primary:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.3);
}

.cta-trust-indicators {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(26, 26, 46, 0.1);
}

.trust-item {
  text-align: center;
  flex: 1;
}

.trust-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-gold);
  font-family: "Playfair Display", serif;
  margin-bottom: 0.25rem;
}

.trust-label {
  font-size: 0.875rem;
  color: var(--primary-dark);
  font-weight: 500;
  opacity: 0.8;
}

/* CTA Responsive Design */
@media (max-width: 768px) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }

  .cta-trust-indicators {
    flex-direction: column;
    gap: 1rem;
  }

  .trust-item {
    flex: none;
    margin-bottom: 1rem;
  }

  .trust-number {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .cta-features {
    gap: 0.75rem;
  }

  .cta-feature-item {
    font-size: 0.9rem;
  }

  .trust-number {
    font-size: 1.5rem;
  }

  .trust-label {
    font-size: 0.8rem;
  }
}
