/* General Styling */
:root {
  --primary-color: #1e293b; /* Professional slate */
  --primary-light: #3b82f6; /* Modern blue */
  --primary-dark: #0f172a; /* Darker slate for gradients */
  --secondary-color: #f59e0b; /* Warm amber */
  --accent-color: #10b981; /* Emerald green */
  --text-color: #1f2937; /* Dark gray */
  --light-bg: #f8fafc; /* Very light gray */
  --card-bg: #ffffff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --gradient: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
  --match-high: #10b981; /* Emerald */
  --match-medium: #f59e0b; /* Amber */
  --match-low: #ef4444; /* Red */
}

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

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-bg);
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(102, 126, 234, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(124, 58, 237, 0.05) 0%,
      transparent 50%
    );
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 80px 0;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  font-size: 1.3em;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* Section Headings */
h2 {
  text-align: center;
  color: var(--primary-color);
  margin: 50px 0 25px;
  font-weight: 700;
  font-size: 2em;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Profile Input Form */
.profile-input {
  background: var(--card-bg);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-input:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.form-header h2 {
  color: var(--primary-color);
  font-size: 2.2em;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-subtitle {
  color: var(--text-color);
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Form Sections */
.form-section {
  margin-bottom: 50px;
  padding: 30px;
  background: #fafbfc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  animation: sectionSlideIn 0.6s ease-out both;
}

.form-section:nth-child(1) {
  animation-delay: 0.1s;
}
.form-section:nth-child(2) {
  animation-delay: 0.2s;
}
.form-section:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes sectionSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.section-title {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-description {
  color: #6b7280;
  font-size: 1em;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 1em;
}

.required {
  color: #ef4444;
  font-weight: 700;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.1em;
  pointer-events: none;
}

/* Enhanced Input Styling */
input[type="text"],
select {
  width: 100%;
  padding: 16px 50px 16px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: #ffffff;
  font-family: inherit;
  color: var(--text-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1),
    0 4px 12px rgba(102, 126, 234, 0.15);
  background: white;
  transform: translateY(-1px);
}

input[type="text"]:hover,
select:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Select Dropdown Enhancement */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  cursor: pointer;
}

select:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

input[type="text"]:focus,
select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
  transform: translateY(-1px);
}

input[type="text"]:invalid,
select:invalid {
  border-color: #ef4444;
}

input[type="text"]:invalid:focus,
select:invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1),
    0 4px 12px rgba(239, 68, 68, 0.15);
}

input[type="text"]:valid:not(:placeholder-shown),
select:valid {
  border-color: #10b981;
}

input[type="text"]:valid:not(:placeholder-shown):focus,
select:valid:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1),
    0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Field Help Text */
.field-help {
  color: #6b7280;
  font-size: 0.85em;
  margin-top: 5px;
  display: block;
  font-style: italic;
}

/* Skills Container */
.skills-container {
  margin-bottom: 30px;
}

.skills-category {
  margin-bottom: 35px;
}

.skills-category:last-child {
  margin-bottom: 0;
}

.skills-category h4 {
  color: var(--primary-color);
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

/* Custom Checkboxes */
.skill-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  background: white;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.skill-checkbox:hover {
  border-color: var(--primary-light);
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skill-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.skill-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--gradient);
  border-color: var(--primary-color);
}

.skill-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.skill-checkbox input[type="checkbox"]:checked ~ span {
  color: var(--primary-color);
  font-weight: 600;
}

/* Form Actions */
.form-actions {
  text-align: center;
  padding-top: 40px;
  border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.form-note {
  color: #6b7280;
  font-size: 0.9em;
  margin-top: 15px;
  font-style: italic;
}

/* Button */
#run-engine-btn {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 35px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#run-engine-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

#run-engine-btn:hover::before {
  left: 100%;
}

#run-engine-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#run-engine-btn:active {
  transform: translateY(-1px);
}

.ai-spark {
  margin-right: 8px;
  animation: sparkle 2s infinite ease-in-out;
  display: inline-block;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.view-details-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: 100%;
}

.view-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Visualization */
.visualization-section {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 50px 0;
  display: none;
  border: 1px solid rgba(102, 126, 234, 0.1);
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chart-container {
  max-width: 700px;
  margin: 25px auto;
}

.chart-caption {
  text-align: center;
  color: #6b7280;
  font-size: 1em;
  margin-top: 20px;
  font-style: italic;
}

/* Results Section */
.results-section {
  padding-bottom: 60px;
}

#result-count {
  color: var(--secondary-color);
  font-size: 0.9em;
  vertical-align: middle;
  font-weight: 600;
}

#initial-message {
  text-align: center;
  padding: 50px 40px;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #6b7280;
  font-style: italic;
  border: 1px solid rgba(102, 126, 234, 0.1);
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.internship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

/* Internship Card */
.internship-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: cardSlideIn 0.6s ease-out both;
}

.internship-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
}

.internship-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(102, 126, 234, 0.2);
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.5em;
  color: var(--primary-color);
  font-weight: 700;
}

.card-header p {
  font-size: 0.95em;
  color: #6b7280;
  margin-top: 4px;
}

.match-score-badge {
  padding: 8px 14px;
  border-radius: 20px;
  color: white;
  font-weight: 700;
  font-size: 0.9em;
  white-space: nowrap;
  position: absolute;
  top: 20px;
  right: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.match-high {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.match-medium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.match-low {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.card-details p {
  margin-bottom: 8px;
  font-size: 1em;
  color: var(--text-color);
}

.stipend {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1.1em;
}

.view-details-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: 100%;
}

.view-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* PMIS Overview Section */
.pmis-overview {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 60px 0;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.pmis-header {
  text-align: center;
  margin-bottom: 50px;
}

.pmis-header h2 {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.pmis-intro {
  font-size: 1.2em;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.pmis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.pmis-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pmis-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.pmis-card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5em;
  font-weight: 700;
  text-align: center;
}

.sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.sector-column {
  flex: 1;
  min-width: 200px;
}

.sector-column ul {
  list-style: none;
  padding: 0;
}

.sector-column li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  color: var(--text-color);
}

.sector-column li:last-child {
  border-bottom: none;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skill-category h4 {
  color: var(--primary-light);
  margin-bottom: 15px;
  font-size: 1.1em;
  font-weight: 600;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category li {
  padding: 5px 0;
  color: var(--text-color);
  font-size: 0.95em;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-item {
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.detail-item.full-width {
  grid-column: 1 / -1;
  text-align: center;
}

.detail-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
}

.detail-item a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

.detail-item a:hover {
  text-decoration: underline;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.step-number {
  background: var(--gradient);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
  flex-shrink: 0;
}

.step-content {
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-light);
  flex: 1;
}

.step-content strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5em;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-light);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Hero Section Updates */
.hero {
  padding: 100px 0 80px;
  margin-top: 70px; /* Account for fixed navbar */
}

.cta-button {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin-top: 20px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Footer Styles */
.footer {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 60px 0 20px 0;
  margin-top: 80px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-logo h3 {
  color: white;
  margin: 0 0 8px 0;
  font-size: 1.8em;
  font-weight: 700;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9em;
  font-weight: 500;
}

.footer-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 20px 0;
  font-size: 0.95em;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2em;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-section h4 {
  color: white;
  margin: 0 0 20px 0;
  font-size: 1.2em;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95em;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px 0;
    margin-top: 60px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .footer-section {
    margin-bottom: 20px;
    text-align: center;
  }

  .footer-logo h3 {
    font-size: 1.5em;
  }

  .footer-description {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-section h4 {
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }

  .footer-links a:hover {
    transform: none;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 0 15px;
  }

  .footer-bottom p {
    font-size: 0.85em;
  }
}

/* Responsive Design (Mobile-Friendly) */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 1.8em;
  }
  .hero .subtitle {
    font-size: 1em;
  }

  .pmis-overview {
    padding: 40px 0;
  }

  .pmis-header h2 {
    font-size: 2em;
  }

  .pmis-intro {
    font-size: 1em;
  }

  .pmis-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pmis-card {
    padding: 20px;
  }

  .sector-list {
    flex-direction: column;
    gap: 10px;
  }

  .sector-column {
    min-width: auto;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

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

  .process-steps .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-number {
    margin-bottom: 10px;
  }

  .step-content {
    border-left: none;
    border-top: 4px solid var(--primary-light);
    text-align: center;
  }

  .profile-input {
    padding: 25px;
  }

  .form-header h2 {
    font-size: 1.8em;
  }

  .form-subtitle {
    font-size: 1em;
  }

  .form-section {
    padding: 20px;
  }

  .section-title {
    font-size: 1.4em;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .skill-checkbox {
    padding: 10px 14px;
    font-size: 0.95em;
  }

  .input-wrapper .input-icon {
    right: 12px;
    font-size: 1em;
  }

  input[type="text"],
  select {
    padding: 14px 45px 14px 16px;
    font-size: 0.95em;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Contact Page Styles */

/* Quick Actions Section */
.quick-actions {
  margin: 60px 0;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.action-card {
  background: var(--card-bg);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.action-card:hover::before {
  transform: scaleX(1);
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.2);
}

.action-card.primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: white;
  border-color: var(--primary-light);
}

.action-card.primary:hover {
  border-color: var(--primary-light);
}

.action-icon {
  font-size: 3em;
  margin-bottom: 16px;
  display: block;
}

.action-card.primary .action-icon {
  filter: brightness(1.2);
}

.action-card h3 {
  font-size: 1.4em;
  margin-bottom: 8px;
  font-weight: 600;
}

.action-card p {
  font-size: 1.1em;
  margin-bottom: 16px;
  opacity: 0.9;
}

.action-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.action-card:not(.primary) .action-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  font-size: 1.2em;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(59, 130, 246, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.2);
}

.contact-card.featured {
  border: 2px solid var(--primary-light);
  position: relative;
}

.contact-card.featured::before {
  content: "🏛️ Official";
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 0 24px;
  margin-bottom: 20px;
}

.card-icon {
  font-size: 2.5em;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  border-radius: 16px;
  color: white;
}

.card-header h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
}

.contact-details {
  padding: 0 24px 24px 24px;
}

.detail-item {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--primary-light);
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item strong {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9em;
}

.detail-item span,
.detail-item a {
  color: var(--text-color);
  font-size: 0.95em;
  line-height: 1.4;
}

.detail-item a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
}

.detail-item a:hover {
  text-decoration: underline;
}

/* Institution Contacts */
.institution-group {
  margin-bottom: 24px;
}

.institution-group:last-child {
  margin-bottom: 0;
}

.institution-group h4 {
  color: var(--primary-color);
  font-size: 1.1em;
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.institution-contacts {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row span:first-child {
  font-weight: 500;
  color: var(--text-color);
}

.contact-row span:last-child {
  color: var(--primary-light);
  font-weight: 600;
}

/* Company Links */
.partner-intro {
  color: #6b7280;
  font-size: 0.95em;
  margin-bottom: 16px;
  font-style: italic;
}

.company-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.company-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.company-link:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.company-name {
  font-weight: 600;
}

.company-arrow {
  color: var(--primary-light);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.company-link:hover .company-arrow {
  transform: translateX(4px);
}

/* Social Links */
.social-intro {
  color: #6b7280;
  font-size: 0.95em;
  margin-bottom: 16px;
  font-style: italic;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.social-link:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.social-icon {
  font-size: 1.8em;
}

.social-name {
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
}

/* State Coordinators */
.state-section {
  margin: 80px 0;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.state-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.state-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.2);
}

.state-card h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.state-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.state-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--primary-light);
}

.state-name {
  font-weight: 600;
  color: var(--primary-color);
}

.state-contact {
  font-size: 0.9em;
  color: #6b7280;
  text-align: right;
}

/* Career Guidance */
.guidance-section {
  margin: 80px 0;
}

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

.guidance-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.guidance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.2);
}

.guidance-icon {
  font-size: 3em;
  margin-bottom: 16px;
  display: block;
}

.guidance-card h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 8px;
  font-weight: 700;
}

.guidance-card p {
  color: #6b7280;
  font-size: 0.95em;
  margin-bottom: 16px;
  line-height: 1.4;
}

.guidance-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.guidance-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Emergency Section */
.emergency-section {
  margin: 80px 0;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  padding: 60px 0;
  border-radius: var(--radius);
}

.emergency-header {
  text-align: center;
  margin-bottom: 50px;
}

.emergency-header h2 {
  font-size: 2.5em;
  color: #dc2626;
  margin-bottom: 15px;
  font-weight: 700;
}

.emergency-header p {
  font-size: 1.2em;
  color: #991b1b;
  max-width: 600px;
  margin: 0 auto;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.emergency-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid #fecaca;
  transition: all 0.3s ease;
}

.emergency-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #dc2626;
}

.emergency-card.urgent {
  border-color: #dc2626;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.emergency-icon {
  font-size: 2.5em;
  margin-bottom: 16px;
  display: block;
  text-align: center;
}

.emergency-card h3 {
  color: #dc2626;
  font-size: 1.4em;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.emergency-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emergency-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
  gap: 12px;
}

.emergency-label {
  font-weight: 600;
  color: #991b1b;
  font-size: 0.9em;
  flex-shrink: 0;
  min-width: 120px;
}

.emergency-value {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.95em;
  word-break: break-all;
  overflow-wrap: break-word;
  text-align: right;
  flex: 1;
}

/* FAQ Section */
.faq-section {
  margin: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.faq-item {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.2);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.faq-icon {
  font-size: 1.5em;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-question h4 {
  color: var(--primary-color);
  font-size: 1.2em;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.faq-item p {
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

/* Contact Page Mobile Styles */
@media (max-width: 768px) {
  .quick-actions {
    margin: 40px 0;
  }

  .actions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .action-card {
    padding: 24px 16px;
  }

  .action-icon {
    font-size: 2.5em;
  }

  .action-card h3 {
    font-size: 1.2em;
  }

  .section-header h2 {
    font-size: 2em;
  }

  .section-header p {
    font-size: 1em;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-card {
    max-width: 100%;
  }

  .card-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 2em;
  }

  .card-header h3 {
    font-size: 1.3em;
  }

  .contact-details {
    padding: 0 16px 16px 16px;
  }

  .detail-item {
    padding: 10px 12px;
  }

  .institution-contacts {
    padding: 12px;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-row span:last-child {
    font-size: 0.9em;
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .state-card h3 {
    font-size: 1.1em;
  }

  .state-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .state-contact {
    text-align: left;
    font-size: 0.85em;
  }

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

  .guidance-card {
    padding: 20px;
  }

  .guidance-icon {
    font-size: 2.5em;
  }

  .emergency-section {
    padding: 40px 0;
  }

  .emergency-header h2 {
    font-size: 2em;
  }

  .emergency-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .emergency-card {
    padding: 20px;
  }

  .emergency-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
  }

  .emergency-value {
    font-size: 0.9em;
    word-break: break-all;
    overflow-wrap: break-word;
    text-align: left;
  }

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

  .faq-item {
    padding: 20px;
  }

  .faq-question {
    flex-direction: column;
    gap: 8px;
  }

  .faq-icon {
    align-self: flex-start;
  }

  .faq-question h4 {
    font-size: 1.1em;
  }
}
