/* Modern UI Styles for Job Hunter Diary */

/* Animated Gradient Background */
.hero-banner {
  height: 75vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #172dd2, #4a90e2, #172dd2);
  background-size: 200% 200%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Animation for Cards */
.feature-card,
.article-card,
.testimonial-card {
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Glowing Effect for Buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.btn:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

/* Animated Underline for Links */
a {
  position: relative;
  text-decoration: none;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Parallax Scrolling Effect */
.parallax-section {
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Animated Stats Counter */
.stat-counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: #172dd2;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.stat-counter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated Progress Bars */
.progress-bar {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #172dd2;
  width: 0;
  transition: width 1s ease;
}

/* Hover Effects for Images */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 8px;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
}

/* Animated Icons */
.animated-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.animated-icon:hover {
  transform: rotate(360deg);
}

/* Shimmer Effect */
.btn.shimmer {
  position: relative;
  overflow: hidden;
}

.btn.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
  z-index: 1;
  pointer-events: none;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Ensure shimmer works with Bootstrap button states */
.btn.shimmer:hover::after,
.btn.shimmer:focus::after,
.btn.shimmer:active::after {
  animation: shimmer 2s infinite;
}

/* Dark Mode Styles */
.dark-mode {
  background-color: #1a1a1a;
  color: #ffffff;
}

.dark-mode .card,
.dark-mode .testimonial-card {
  background-color: #2d2d2d;
  border-color: #404040;
}

.dark-mode .text-dark {
  color: #ffffff !important;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.dark-mode .dark-mode-toggle {
  background: #2d2d2d;
  color: #ffffff;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 70px;
  z-index: 1000;
  background: #172dd2;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Testimonial Carousel */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonial-card {
  transition: all 0.5s ease;
  opacity: 0.5;
  transform: scale(0.9);
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-controls button {
  background: #172dd2;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-controls button:hover {
  background: #0f1f8f;
}

/* Newsletter Form */
.newsletter-form {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.newsletter-form h3 {
  color: #ffffff;
  margin-bottom: 15px;
}

.newsletter-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.newsletter-form button {
  width: 100%;
  padding: 10px;
  background: #172dd2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #0f1f8f;
  transform: translateY(-2px);
}

.newsletter-message {
  margin-top: 10px;
  padding: 10px;
  background: #4CAF50;
  color: white;
  border-radius: 4px;
  text-align: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  .carousel-controls {
    bottom: 10px;
  }
  
  .newsletter-form {
    margin: 20px;
  }
  
  .dark-mode-toggle,
  .back-to-top {
    bottom: 10px;
  }
  
  .back-to-top {
    right: 60px;
  }
} 
