/* Custom Styles for Fatma Lejmi Portfolio */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0f766e;
}

/* Timeline styles */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: #0d9488;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #0d9488;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: linear-gradient(to bottom, #0d9488, #d4a843);
}

/* Skill tag hover effect */
.skill-tag {
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

/* Service card hover effect */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(30, 41, 59, 0.1);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: white;
}

/* Navbar transition */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

/* CTA Button pulse animation */
@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(212, 168, 67, 0);
  }
}

.cta-button {
  animation: pulse-gold 2s infinite;
}

/* Fade in animation for scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero image circular frame */
.hero-image-frame {
  position: relative;
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #d4a843);
  z-index: -1;
}

/* Stats highlight */
.stat-number {
  background: linear-gradient(135deg, #0d9488, #d4a843);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Language badge */
.lang-badge {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(212, 168, 67, 0.1));
  border: 1px solid rgba(13, 148, 136, 0.2);
}

/* Contact form focus styles */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Link underline animation */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a843;
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
