@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
  min-height: 100vh;
  color: #f8f9fa;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(180, 0, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 40px rgba(180, 0, 0, 0.9);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Page Header */
h1 {
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.6s ease-out both;
  overflow: hidden;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(180, 0, 0, 0.4);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card-body {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.4s ease;
}

.btn-light:hover::before {
  left: 100%;
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Badge */
.badge-light {
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  animation: pulse 3s infinite;
}

/* Background Colors */
.bg-dark {
  background: linear-gradient(135deg, rgba(150, 0, 0, 1) 0%, rgba(80, 0, 0, 1) 100%) !important;
}

.bg-secondary {
  background: rgba(25, 25, 25, 0.95) !important;
  backdrop-filter: blur(20px);
}

/* Text */
.text-light-50 {
  color: rgba(248, 249, 250, 0.6) !important;
}

/* Table */
.table td, .table th {
  vertical-align: middle;
}

/* Map */
#map {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Button */
#kapcsolat {
  position: fixed;
  z-index: 1000;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(180, 0, 0, 0.5);
  animation: pulse 2s infinite;
}

#kapcsolat:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 12px 40px rgba(180, 0, 0, 0.7);
}

/* Modal */
.modal-content {
  background: rgba(25, 25, 25, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  animation: scaleIn 0.3s ease-out;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
}

.modal-title {
  font-weight: 700;
  font-size: 24px;
}

/* Form Controls */
.form-control {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(50, 50, 50, 0.9);
  border-color: rgba(180, 0, 0, 0.5);
  box-shadow: 0 0 20px rgba(180, 0, 0, 0.2);
  color: #fff;
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

select.form-control {
  cursor: pointer;
}

label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* Container styling */
.container {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Selection */
::selection {
  background: rgba(180, 0, 0, 0.5);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

/* Success/Info buttons in modals */
.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

/* Loading state for cards */
.card.loading {
  background: linear-gradient(90deg, rgba(30, 30, 30, 0.8) 25%, rgba(50, 50, 50, 0.8) 50%, rgba(30, 30, 30, 0.8) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Job list specific */
#job-list .col-md-6 {
  animation: fadeInUp 0.5s ease-out both;
}

#job-list .col-md-6:nth-child(1) { animation-delay: 0.1s; }
#job-list .col-md-6:nth-child(2) { animation-delay: 0.15s; }
#job-list .col-md-6:nth-child(3) { animation-delay: 0.2s; }
#job-list .col-md-6:nth-child(4) { animation-delay: 0.25s; }
#job-list .col-md-6:nth-child(5) { animation-delay: 0.3s; }
#job-list .col-md-6:nth-child(6) { animation-delay: 0.35s; }
