body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f8f8f8;
  color: #333;
}

header {
  max-width: 1200px;
  margin: 2em auto 0 auto;
  padding: 1em;
  background: white;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

header img {
  height: 80px;
  width: auto;
  max-width: 100%;
  margin-bottom: 1.5em;
}

header h1 {
  margin: 0.2em 0;
  font-size: 2em;
}

header label {
  font-size: 0.95em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5em;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
  header img {
    height: 60px;
  }
}

main {
  max-width: 1200px;
  margin: 0 auto 2em auto;
  padding: 1em;
  background: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
  margin-bottom: 0;
}

.image-slot {
  background-color: #eaeaea;
  width: 100%;
  padding-top: 75%;
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.image-slot img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

/* Upload Area */
.upload-area {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.breed-label {
  font-weight: bold;
  font-size: 1em;
  flex-shrink: 0;
}

.breed-help-text {
  flex-basis: 100%;
  margin: 0 0 0.5em 0;
  font-size: 0.9em;
  color: #555;
  font-style: italic;
  background: #f0f8ff;
  padding: 0.75em;
  border-radius: 5px;
  border-left: 3px solid #4a90e2;
}

#dog-breed, #region-select {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  min-width: 150px;
  flex-grow: 1;
  max-width: 300px;
}

input[type="file"] {
  display: none;
}

.custom-file-upload {
  display: inline-block;
  padding: 0.75em 1.5em;
  border: 2px solid #0078d4;
  background-color: #0078d4;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  white-space: nowrap;
}

.custom-file-upload.disabled {
  background-color: #cccccc;
  border-color: #aaaaaa;
  cursor: not-allowed;
}

#dog-breed:invalid {
  border-color: #e74c3c;
}

/* Dog List */
.dog-list {
  margin-bottom: 2em;
}

.dog-list h2 {
  color: #0078d4;
  margin-bottom: 1em;
}

/* NEW - Size category styling */
.breed-category {
  margin-bottom: 1.5em;
}

.breed-category h3 {
  color: #ff9800;
  font-size: 1.1em;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #ff9800;
}

.breed-category ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breed-category li::before {
  content: "• ";
  color: #666;
}

/* OLD - Keep for backwards compatibility if needed */
#dog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

#dog-list li::before {
  content: "• ";
  color: #666;
}

/* Uploaded Image Preview */
#uploaded-image-container {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 1.5em auto;
  border: 2px dashed #ccc;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-color: #eaeaea;
}

#uploaded-image-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

/* Results Section */
#results-section {
  margin-top: 2em;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 1.5em;
}

#results-message {
  font-size: 1.3em;
  margin-bottom: 1.5em;
  text-align: center;
  font-weight: bold;
  color: #0078d4;
}

/* Download Button - NEW */
.download-btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  margin: 1em auto;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
  transform: translateY(0);
}

/* Breed Composition Chart */
.results-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 220px;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  margin-bottom: 2em;
}

.results-chart .bar {
  flex: 1 1 0;
  background: #0078d4;
  position: relative;
  min-width: 40px;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s;
}

.results-chart .bar:hover {
  opacity: 0.8;
  transform: translateY(-5px);
}

.results-chart .bar:first-child {
  background: #ff9800;
}

.results-chart .bar .percent {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: bold;
}

.results-chart .bar .label {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%) rotate(-30deg);
  transform-origin: top left;
  white-space: nowrap;
  font-size: 0.75rem;
}

/* Characteristics Section */
.characteristics-section {
  margin-top: 2em;
}

.characteristics-section h2 {
  color: #0078d4;
  border-bottom: 2px solid #0078d4;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

.characteristics-section h3 {
  color: #ff9800;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 1.2em;
}

/* Radar Chart Container - NEW */
.radar-chart-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 3em;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.radar-chart-container h3 {
  text-align: center;
  color: #0078d4;
  margin-top: 0;
  margin-bottom: 1.5em;
  font-size: 1.4em;
}

#radarChartCanvas {
  max-width: 550px;
  max-height: 550px;
  margin: 0 auto;
  display: block;
  padding: 20px;
}

/* Overall Summary */
.overall-summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5em;
  border-radius: 10px;
  margin-bottom: 2em;
  font-size: 1.05em;
  line-height: 1.6;
}

/* Trait Cards Grid */
.trait-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1em;
  margin-bottom: 2em;
}

.trait-card {
  background: #f9f9f9;
  border-left: 4px solid #0078d4;
  padding: 1em;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.trait-card h4 {
  margin: 0 0 0.5em 0;
  color: #0078d4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trait-card h4 .icon {
  font-size: 1.3em;
  margin-right: 0.3em;
}

.trait-card .score {
  font-size: 1.2em;
  font-weight: bold;
  color: #ff9800;
}

.trait-card p {
  margin: 0.5em 0 0 0;
  font-size: 0.95em;
  line-height: 1.5;
  color: #555;
}

/* Progress Bar for Scores */
.score-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5em;
}

.score-bar-fill {
  height: 100%;
  transition: width 0.5s ease;
  border-radius: 4px;
}

/* Info Boxes */
.info-box {
  background: #fff8dc;
  border: 2px solid #ffd700;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 1em;
}

.info-box h4 {
  margin: 0 0 0.5em 0;
  color: #ff9800;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.info-box h4::before {
  content: "ℹ️";
  font-size: 1.2em;
}

/* Health Section - NEW */
.health-section {
  background: linear-gradient(135deg, #1a4d6d 0%, #2a7ba8 100%);
  color: white;
  padding: 2em;
  border-radius: 15px;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.health-section h3 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.5em;
  color: #a8daff;
}

.health-section .info-box {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #5dade2;
  margin: 1em 0;
}

.health-issues-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0.5em 0;
}

.health-issues-list li {
  padding: 0.5em 0;
  padding-left: 1.5em;
  position: relative;
  line-height: 1.6;
}

.health-issues-list li:before {
  content: "⚕️";
  position: absolute;
  left: 0;
}

.health-risk-badge {
  font-size: 1.1em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Intelligence Section - NEW */
.intelligence-section {
  background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%);
  color: white;
  padding: 2em;
  border-radius: 15px;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.intelligence-section h3 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.5em;
  color: #e1bee7;
}

.intelligence-ranking {
  display: flex;
  align-items: center;
  gap: 1.5em;
  margin-bottom: 1.5em;
  padding: 1em;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  flex-wrap: wrap;
}

.ranking-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 1em 1.5em;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.ranking-number {
  font-size: 2.5em;
  font-weight: bold;
  line-height: 1;
  color: #ffd54f;
}

.ranking-subtitle {
  font-size: 0.85em;
  opacity: 0.9;
  margin-top: 0.3em;
}

.ranking-category {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffd54f;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin: 1.5em 0;
}

.intel-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1em;
  border-radius: 8px;
  border-left: 4px solid #ba68c8;
}

.intel-card h4 {
  margin: 0 0 0.5em 0;
  font-size: 1em;
  color: #e1bee7;
}

.intel-card p {
  margin: 0;
  font-size: 0.95em;
}

.intelligence-note {
  margin-top: 1.5em;
  font-size: 0.9em;
  opacity: 0.85;
  font-style: italic;
}

/* Size & Dimensions Section - NEW */
.size-section {
  background: linear-gradient(135deg, #d84315 0%, #ff6f00 100%);
  color: white;
  padding: 2em;
  border-radius: 15px;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.size-section h3 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.5em;
  color: #ffccbc;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5em;
  margin: 1.5em 0;
}

.size-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5em;
  border-radius: 10px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.size-icon {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.size-card h4 {
  margin: 0.5em 0;
  font-size: 1.1em;
  color: #ffccbc;
}

.size-imperial {
  font-size: 1.8em;
  font-weight: bold;
  margin: 0.3em 0;
  color: #fff;
}

.size-metric {
  font-size: 1.1em;
  margin: 0.2em 0;
  opacity: 0.9;
}

.size-note {
  font-size: 0.85em;
  margin-top: 0.5em;
  opacity: 0.8;
  font-style: italic;
}

.size-category-badge {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  padding: 0.8em;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-top: 1.5em;
  color: #ffccbc;
}

/* Cost of Ownership Section - NEW */
.cost-section {
  background: linear-gradient(135deg, #2d5016 0%, #3d7028 100%);
  color: white;
  padding: 2em;
  border-radius: 15px;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.region-selector-inline {
  background: rgba(255, 255, 255, 0.1);
  padding: 1em;
  border-radius: 8px;
  margin-bottom: 1.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.region-selector-inline label {
  font-weight: bold;
  color: #ffd700;
}

#region-select-inline {
  padding: 0.5em;
  border: 2px solid #ffd700;
  border-radius: 4px;
  background: white;
  color: #2d5016;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
}

#region-select-inline:hover {
  background: #fffef0;
}

.cost-section h3 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.5em;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.cost-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin-bottom: 1.5em;
}

.cost-item {
  background: rgba(255,255,255,0.1);
  padding: 1em;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

.cost-item-label {
  font-size: 0.9em;
  opacity: 0.9;
  margin-bottom: 0.3em;
}

.cost-item-value {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffd700;
}

.cost-summary {
  background: rgba(255,255,255,0.15);
  padding: 1.5em;
  border-radius: 10px;
  margin-top: 1.5em;
  border: 2px solid #ffd700;
}

.cost-summary h4 {
  margin: 0 0 1em 0;
  color: #ffd700;
  font-size: 1.2em;
}

.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.cost-total:last-child {
  border-bottom: none;
}

.cost-total-label {
  font-weight: bold;
}

.cost-total-value {
  font-size: 1.3em;
  font-weight: bold;
  color: #ffd700;
}

.cost-note {
  background: rgba(255,215,0,0.2);
  padding: 1em;
  border-radius: 8px;
  margin-top: 1em;
  font-size: 0.95em;
  border-left: 4px solid #ffd700;
}

.cost-disclaimer {
  background: rgba(255, 255, 255, 0.15);
  padding: 1em;
  border-radius: 8px;
  margin-bottom: 1.5em;
  font-size: 0.95em;
  border-left: 4px solid #ffd700;
}

.cost-disclaimer p {
  margin: 0.5em 0;
}

.cost-disclaimer ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.cost-disclaimer li {
  margin: 0.3em 0;
}

/* Resources Section (Shelters & Breeders) - NEW */
.resources-section {
  background: linear-gradient(135deg, #6a2c70 0%, #8b3a9b 100%);
  color: white;
  padding: 2em;
  border-radius: 15px;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.resources-section h3 {
  margin-top: 0;
  margin-bottom: 1.5em;
  font-size: 1.5em;
  color: #e0b3ff;
}

.resource-category {
  margin-bottom: 2em;
}

.resource-category h4 {
  color: #e0b3ff;
  margin-bottom: 0.5em;
}

.resource-intro {
  margin-bottom: 1em;
  font-style: italic;
  opacity: 0.9;
}

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

.shelter-card,
.breeder-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5em;
  border-radius: 10px;
  border-left: 4px solid #e0b3ff;
}

.shelter-card h5,
.breeder-card h5 {
  margin-top: 0;
  color: #e0b3ff;
  font-size: 1.1em;
}

.shelter-address,
.shelter-contact {
  margin: 0.5em 0;
  font-size: 0.95em;
}

.shelter-website a,
.breeder-link a {
  color: #a8daff;
  text-decoration: none;
  font-weight: bold;
}

.shelter-website a:hover,
.breeder-link a:hover {
  color: white;
  text-decoration: underline;
}

.breeder-note {
  margin-top: 1em;
  font-size: 0.9em;
  opacity: 0.9;
}

.shelter-contact a {
  color: #a8daff;
  text-decoration: none;
}

.shelter-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .shelter-grid {
    grid-template-columns: 1fr;
  }
}

.info-box p {
  margin: 0.3em 0;
  font-size: 0.95em;
}

/* Activities and Traits Lists */
.list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 0.5em;
}

.list-item {
  background: #e3f2fd;
  color: #0078d4;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  main {
    margin: 1em;
    padding: 0.75em;
  }
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-chart {
    height: 150px;
    gap: 6px;
  }
  .results-chart .bar {
    min-width: 30px;
  }
  .upload-area {
    flex-direction: column;
    align-items: stretch;
  }
  #dog-breed {
    max-width: 100%;
    min-width: auto;
  }
  .custom-file-upload {
    width: 100%;
    text-align: center;
  }
  .trait-cards {
    grid-template-columns: 1fr;
  }
  /* Fix radar chart on mobile */
  .radar-chart-container {
    padding: 1.5em 1em;
    overflow: hidden;
  }
  #radarChartCanvas {
    max-width: 100%;
    max-height: 400px;
    padding: 10px;
  }
}

/* Footer Contact Link */
footer a:hover {
  background: rgba(0,120,212,0.2) !important;
  transform: translateY(-2px);
}

/* Compatibility Quiz Styles - NEW */
.compatibility-quiz {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2em;
  border-radius: 15px;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.compatibility-quiz h3 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.5em;
  text-align: center;
  color: white;
}

.quiz-question {
  margin-bottom: 1.5em;
}

.quiz-question label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5em;
  font-size: 1.05em;
}

.quiz-question select {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  background: white;
  color: #333;
  cursor: pointer;
}

.quiz-submit-btn {
  width: 100%;
  padding: 1em;
  font-size: 1.1em;
  font-weight: bold;
  background: #ff9800;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 1em;
}

.quiz-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.quiz-submit-btn:active {
  transform: translateY(0);
}

/* Compatibility Results Styles */
.compatibility-results {
  background: white;
  border-radius: 15px;
  padding: 2em;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.compatibility-results h3 {
  text-align: center;
  color: #0078d4;
  margin-top: 0;
  margin-bottom: 1em;
}

.compatibility-score {
  text-align: center;
  margin: 1.5em 0;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1em auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  font-weight: bold;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.score-excellent { background: linear-gradient(135deg, #44dd44, #22aa22); }
.score-good { background: linear-gradient(135deg, #88dd44, #66bb22); }
.score-moderate { background: linear-gradient(135deg, #ffdd44, #ddbb22); }
.score-challenging { background: linear-gradient(135deg, #ff9944, #dd7722); }
.score-difficult { background: linear-gradient(135deg, #ff4444, #dd2222); }

.compatibility-details {
  margin-top: 2em;
}

.compatibility-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1em;
  padding: 1em;
  border-radius: 8px;
  background: #f9f9f9;
}

.compatibility-item.positive {
  border-left: 4px solid #44dd44;
}

.compatibility-item.warning {
  border-left: 4px solid #ffdd44;
}

.compatibility-item.concern {
  border-left: 4px solid #ff4444;
}

.compatibility-icon {
  font-size: 1.5em;
  margin-right: 0.5em;
  flex-shrink: 0;
}

.compatibility-text {
  flex-grow: 1;
}

.compatibility-text strong {
  display: block;
  margin-bottom: 0.3em;
  color: #0078d4;
}

/* Navigation Menu Styles */

.main-nav {
    display: flex;
    justify-content: center;
    gap: 0.3em;
    padding: 1em 0.5em;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    flex-wrap: nowrap;
    overflow-x: auto; /* Allow horizontal scroll if needed */
}

.nav-link {
    padding: 0.75em 1em;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9em;
    flex-shrink: 0; /* Prevent items from shrinking */
}

    .nav-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .nav-link.active {
        background: linear-gradient(135deg, #0078d4 0%, #00a8e8 100%);
        box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
    }

/* Mobile Navigation Fix */
@media (max-width: 768px) {
    .main-nav {
        justify-content: flex-start; /* Allow scrolling to see all items */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin; /* Firefox */
    }
    
    /* Optional: Hide scrollbar but keep functionality */
    .main-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .main-nav::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    
    .main-nav::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.3);
        border-radius: 10px;
    }
    
    .nav-link {
        font-size: 0.85em;
        padding: 0.6em 0.9em;
    }
}




































