/* Modern CSS Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
  color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Overlay for better text readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  padding-top: 70px; /* Account for fixed navbar */
  position: relative;
}

/* Modern Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  transition: all 0.3s ease;
  font-weight: 500;
  margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  color: #f093fb !important;
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
  padding-bottom: 150px; /* Space for fixed footer - increased to prevent overlap */
  min-height: calc(100vh - 70px); /* Account for navbar height */
}

/* Modern Card Styles */
.bio-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.bio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.bio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #f093fb 100%);
}

.travel-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.travel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #667eea 0%, #f093fb 100%);
  border-radius: 15px 0 0 15px;
}

.travel-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.travel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.travel-card:hover::after {
  opacity: 1;
}

.flag-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.travel-card:hover .flag-emoji {
  transform: scale(1.1) rotate(5deg);
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.profile-image-large {
  width: 100%;
  max-width: 350px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.profile-image-large:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

.profile-image-wrapper {
  position: relative;
}

.profile-links-compact {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-link-compact {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.profile-link-compact:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Profile Links Card */
.card.bg-dark {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-link .profile-logo {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.profile-link:hover .profile-logo {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.footer a,
.footer button {
  transition: all 0.3s ease;
}

.footer a:hover,
.footer button:hover {
  color: #f093fb !important;
  text-decoration: underline !important;
}

.footer button {
  font-size: inherit;
  font-family: inherit;
}

/* Cookie Banner - Fixed at bottom */
.cookie-banner {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(20px);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1.25rem 0;
  width: 100%;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Language Switcher */
.btn.active {
  background: linear-gradient(135deg, #667eea 0%, #f093fb 100%) !important;
  border-color: transparent !important;
  color: white !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.display-4 {
  background: linear-gradient(135deg, #ffffff 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.95;
}

/* Accessibility: Focus styles */
*:focus-visible {
  outline: 3px solid #f093fb;
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link:focus {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1060;
}

/* Text Muted */
.text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Email obfuscation styling */
#email-display code {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#reveal-email-btn {
  transition: all 0.3s ease;
}

#reveal-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Alert Styles */
.alert-info {
  background: rgba(102, 126, 234, 0.2) !important;
  border: 1px solid rgba(102, 126, 234, 0.3) !important;
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-wrapper {
    padding-top: 60px;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  .profile-image-large {
    max-width: 280px;
  }
  
  .profile-links-compact {
    margin-top: 2rem;
  }
  
  .cookie-banner .container {
    text-align: center;
  }
  
  .cookie-banner .text-end {
    text-align: center !important;
    margin-top: 1rem;
  }
  
  #email-display {
    display: block !important;
    margin-top: 0.5rem;
  }
  
  #email-display .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .travel-card {
    padding: 1rem;
  }
  
  .travel-card:hover {
    transform: translateY(-5px);
  }
  
  .main-content {
    padding: 1rem 0;
    padding-bottom: 150px; /* Ensure footer doesn't overlap on mobile */
  }
  
  .bio-card {
    text-align: center;
  }
  
  .bio-card h1 {
    text-align: center !important;
  }
}

/* Smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bio-card,
.travel-card,
.card.bg-dark {
  animation: fadeIn 0.6s ease-out;
}

/* Container improvements */
.container {
  max-width: 1200px;
}

/* Card improvements */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

/* Navbar improvements */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Travel Map Styles */
.travel-map {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
}

/* Leaflet map container adjustments */
.travel-map .leaflet-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
}

/* Custom popup styling */
.travel-popup .leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.travel-popup .leaflet-popup-content {
  margin: 0;
  padding: 10px;
}

.travel-popup .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Leaflet controls styling */
.leaflet-control-zoom a {
  background-color: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.leaflet-control-zoom a:hover {
  background-color: rgba(102, 126, 234, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.leaflet-control-attribution {
  background-color: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 5px;
  font-size: 11px;
}

.leaflet-control-attribution a {
  color: #f093fb !important;
}

/* Custom marker styling */
.custom-marker {
  background: transparent !important;
  border: none !important;
}

.custom-marker div {
  transition: all 0.3s ease;
}

.custom-marker:hover div {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Home marker pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
  }
}

.home-marker div {
  animation: pulse 2s infinite;
}

.home-marker:hover div {
  animation: none;
  transform: scale(1.2);
}

/* Responsive map */
@media (max-width: 768px) {
  .travel-map {
    height: 400px;
    border-radius: 15px;
  }
}
