:root {
  --primary-green: #2d5a3d;
  --accent-green: #4a7c59;
  --bright-green: #6ab04c;
  --earth-brown: #8b4513;
  --sky-blue: #74b9ff;
  --cream: #f5f5dc;
  --dark-bg: #1a1a1a;
  --light-text: #ffffff;
  --dark-text: #333333;
  --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--cream) 0%, #e8f5e8 100%);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

body.dark {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #2d4a2d 100%);
  color: var(--light-text);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

body.dark .header {
  background: rgba(26, 26, 26, 0.95);
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: var(--bright-green);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bright-green);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.theme-toggle:hover {
  background: var(--accent-green);
  color: white;
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.globe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--bright-green)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bright-green), var(--accent-green));
  color: white;
  box-shadow: 0 4px 15px rgba(106, 176, 76, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(106, 176, 76, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

/* Job Cards Carousel */
.job-carousel {
  position: relative;
  height: 300px;
  margin: 4rem 0;
  perspective: 1000px;
}

.job-card {
  position: absolute;
  width: 300px;
  height: 200px;
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.5s ease;
  cursor: pointer;
  transform-style: preserve-3d;
}

body.dark .job-card {
  background: rgba(45, 90, 61, 0.9);
  color: white;
}

.job-card:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
  box-shadow: 0 20px 40px var(--shadow);
}

.job-card h3 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

body.dark .job-card h3 {
  color: var(--bright-green);
}

.job-company {
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 1rem;
}

.job-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  background: var(--bright-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Filters Section */
.filters-section {
  background: white;
  padding: 4rem 2rem;
  margin: 4rem 0;
  border-radius: 30px;
  box-shadow: 0 20px 60px var(--shadow);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.6s ease;
}

body.dark .filters-section {
  background: rgba(45, 90, 61, 0.9);
}

.filters-section.visible {
  transform: translateY(0);
  opacity: 1;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.filter-group {
  position: relative;
}

.filter-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-green);
}

body.dark .filter-label {
  color: var(--bright-green);
}

.filter-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

body.dark .filter-input {
  background: rgba(26, 26, 26, 0.8);
  border-color: var(--accent-green);
  color: white;
}

.filter-input:focus {
  outline: none;
  border-color: var(--bright-green);
  box-shadow: 0 0 10px rgba(106, 176, 76, 0.3);
}

/* Map Container */
.map-container {
  height: 400px;
  background: linear-gradient(45deg, var(--sky-blue), var(--bright-green));
  border-radius: 20px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Job Listings */
.job-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.job-listing {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.dark .job-listing {
  background: rgba(45, 90, 61, 0.9);
}

.job-listing:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow);
}

.job-listing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--bright-green), var(--sky-blue));
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

body.dark .modal-content {
  background: var(--dark-bg);
  color: white;
}

.modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

body.dark .modal-close:hover {
  background: #333;
  color: white;
}

/* Employer Dashboard */
.dashboard {
  display: none;
  padding: 2rem;
}

.dashboard.active {
  display: block;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.kanban-column {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px var(--shadow);
  min-height: 400px;
}

body.dark .kanban-column {
  background: rgba(45, 90, 61, 0.9);
}

.kanban-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

body.dark .kanban-header {
  color: var(--bright-green);
  border-color: var(--accent-green);
}

.kanban-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: move;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

body.dark .kanban-card {
  background: rgba(26, 26, 26, 0.8);
}

.kanban-card:hover {
  transform: rotateY(10deg) translateZ(10px);
  box-shadow: 0 5px 15px var(--shadow);
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--bright-green), var(--accent-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(106, 176, 76, 0.3);
  transition: all 0.3s ease;
  z-index: 1500;
  animation: pulse 2s infinite;
}

.chatbot:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(106, 176, 76, 0.4);
}

.chatbot-window {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 350px;
  height: 400px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow);
  display: none;
  flex-direction: column;
  z-index: 1500;
  overflow: hidden;
}

body.dark .chatbot-window {
  background: var(--dark-bg);
  color: white;
}

.chatbot-window.active {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--bright-green), var(--accent-green));
  color: white;
  padding: 1rem;
  font-weight: 600;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.chatbot-input {
  padding: 1rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 0.5rem;
}

body.dark .chatbot-input {
  border-color: var(--accent-green);
}

.chatbot-input input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
}

body.dark .chatbot-input input {
  background: rgba(26, 26, 26, 0.8);
  border-color: var(--accent-green);
  color: white;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow: rgba(0, 0, 0, 0.5);
  }

  .btn {
    border: 2px solid currentColor;
  }
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotateX(0deg);
  }
  33% {
    transform: translateY(-10px) rotateX(5deg);
  }
  66% {
    transform: translateY(-5px) rotateX(-3deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .nav {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .job-listings {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-window {
    width: calc(100vw - 2rem);
    right: 1rem;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--bright-green);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--bright-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}
