/* --- Global Enhancements & Professional Theme --- */
:root {
  --primary-color: #194569;
  --secondary-color: #2691d9;
  --accent-gold: #f6c343;
  --soft-bg: #f7f7fa;
  --text-dark: #20232a;
  --badge-bg: #eaf1fb;
  --white: #fff;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--soft-bg);
  color: var(--text-dark);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
/* Button Styles */
.btn-primary,
.btn-project {
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 7px;
  border: none;
  padding: 11px 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover,
.btn-project:hover {
  background: var(--accent-gold);
  color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(25,69,105,0.10);
}
.section-title {
  color: var(--primary-color);
}
/* Navbar improvements for clarity */
.professional-header nav ul li a {
  padding: 8px 18px;
  border-radius: 5px;
}
.professional-header nav ul li.current a,
.professional-header nav ul li a:hover {
  background: var(--accent-gold);
  color: var(--primary-color);
}
/* --- Project Card Overhaul --- */
.enhanced-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 38px 32px;
  margin-top: 3rem;
}
.project-card.enhanced, .medium-project-card.enhanced {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 30px rgba(25,69,105,0.10);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.22s cubic-bezier(.34,1.6,.64,1);
}
.project-card.enhanced:hover, .medium-project-card.enhanced:hover {
  box-shadow: 0 8px 32px 3px rgba(38,145,217,0.12);
  transform: translateY(-6px) scale(1.01);
}
.project-card.enhanced .project-image, .medium-project-card.enhanced .project-image {
  width: 140px;
  height: auto;
  min-height: 200px;
  background: var(--soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  flex-shrink: 0;
}
.project-card.enhanced .image-placeholder, .medium-project-card.enhanced .image-placeholder {
  width: 115px;
  height: 115px;
  border-radius: 17px;
  background: var(--badge-bg);
  margin: 15px 0;
}
.project-details {
  flex: 1;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.project-details h3 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.35rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: .4em;
}
.project-meta {
  display: flex;
  gap: 16px;
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 18px;
}
.project-description {
  color: #3b4766;
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 1em;
}
.project-features ul {
  margin: 0 0 0.7em 1.5em;
  padding: 0;
  color: #274064;
  font-size: 1rem;
}
.project-technologies, .tech-tags {
  margin: .7em 0 .6em 0;
}
.tech-badge {
  display: inline-block;
  margin-right: 7px;
  margin-bottom: 4px;
  padding: 3.5px 13px;
  font-size: .93rem;
  border-radius: 9px;
  background: var(--badge-bg);
  color: var(--secondary-color);
  font-weight: 700;
}
.project-links a {
  margin-right: 12px;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.17s, text-decoration 0.2s;
}
.project-links a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}
/* Section backgrounds */
.light-bg { background: var(--soft-bg); }
/* Footer is kept clean & simple */
.professional-footer {
  background: var(--primary-color);
  color: #e4edf6;
  margin-top: 3rem;
  padding-top: 3rem;
}
.footer-links a, .footer-contact a { color: #e4edf6; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-gold); }
/* --- Responsive Improvements (Mobile/Tablet) --- */
@media (max-width: 1024px) {
  .enhanced-projects {
    grid-template-columns: 1fr;
  }
  .project-card.enhanced, .medium-project-card.enhanced {
    flex-direction: column;
    align-items: stretch;
  }
  .project-card.enhanced .project-image, .medium-project-card.enhanced .project-image {
    width: 100%;
    min-height: 160px;
    justify-content: center;
  }
  .project-details {
    padding: 24px;
  }
}
@media (max-width: 650px) {
  .project-details {
    padding: 14px;
  }
  .section-title {
    font-size: 1.35rem;
  }
}
/* Add override for previous cards */
.projects-grid:not(.enhanced-projects) .project-card, .projects-grid:not(.enhanced-projects) .medium-project-card {
  box-shadow: 0 2px 10px rgba(25,69,105,0.05);
  border-radius: 11px;
}