/* styles.css */
:root {
  /* Color Scheme */
  --primary-color: #c62828;
  --primary-hover-color: #b71c1c;
  --text-color: #1f2937;
  --secondary-text-color: #6b7280;
  --background-color: #ffffff;
  --card-background: #f9fafb;
  --border-color: #e5e7eb;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

  /* Navigation Colors - Light */
  --nav-background-light: rgba(255, 255, 255, 0.98);
  --nav-text-light: #1f2937;

  /* Navigation Colors - Dark */
  --nav-background-dark: rgba(17, 24, 39, 0.98);
  --nav-text-dark: #f9fafb;

  /* Dynamic Variables */
  --nav-background: var(--nav-background-light);
  --nav-text: var(--nav-text-light);
}

[data-theme="dark"] {
  --nav-background: var(--nav-background-dark);
  --nav-text: var(--nav-text-dark);
  --background-color: #111827;
  --text-color: #f9fafb;
  --card-background: #1f2937;
  --border-color: #374151;
  --secondary-text-color: #9ca3af;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --link-color: #bb86fc;
  --link-hover-color: #bda2fe;
}

[data-theme="dark"] .experience-title {
  color: #ffffff; /* Full white for job titles in dark mode */
}

[data-theme="dark"] .experience-company {
  color: var(--secondary-text-color); /* Subtle gray for company names */
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  padding-top: 80px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility Classes */
.section {
  padding: 100px 0;
  scroll-margin-top: 100px;
}

.section-alt {
  background-color: var(--card-background);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
  margin-top: 1rem;
}

.button-primary {
  background-color: var(--primary-color);
  color: white;
}

.button-primary:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-2px);
}

.button-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.button-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-background);
  color: var(--nav-text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--box-shadow);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-item {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(198, 40, 40, 0.1);
}

.nav-item.active {
  background: var(--primary-color);
  color: white;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  text-decoration: none;
  margin-right: auto;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  gap: 1rem;
  align-items: center;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--nav-background);
  box-shadow: var(--box-shadow);
}

.mobile-menu.active {
  max-height: 500px;
}

.mobile-nav-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--nav-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-nav-item:hover {
  background: rgba(198, 40, 40, 0.1);
  padding-left: 2rem;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--nav-text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(198, 40, 40, 0.1);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--nav-text);
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(198, 40, 40, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .primary-text {
  color: var(--primary-color);
}

.profile-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.profile-image img {
  width: 100%;
  height: auto;
  display: block;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary-color);
}

.hero-buttons {
  margin-top: 2rem; /* Add this line to increase the spacing above the hero buttons */
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 40px; /* Adjust this value as needed */
}

.badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 20px; /* Adjust this value as needed */
}

.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--card-background);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

/* Project Detail Pages */
.project-detail .container {
  max-width: 1000px;
}

.project-detail .section {
  padding: 2rem 0;
}

.project-detail .section:first-of-type {
  padding-top: 1rem;
}

.project-detail .card {
  margin-bottom: 1.5rem;
}

.project-detail .section-header {
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

.project-detail .section-header:first-of-type {
  margin-top: 0;
}

.project-detail h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.project-detail h3:first-child {
  margin-top: 0;
}

.project-detail ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.project-detail li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.project-detail p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.project-header {
  margin-bottom: 3rem;
  margin-top: 1.5rem;
  text-align: center;
}

.project-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
}

.project-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-text-color);
  margin-bottom: 2rem;
  font-weight: 400;
}

.project-hero {
  margin: 2rem 0;
}

.project-meta-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--card-background);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  text-align: center;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.meta-item i {
  color: var(--primary-color);
}

.project-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--background-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 0.5rem;
}

.project-summary p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-color);
}

.project-description {
  font-size: 1.1rem;
  color: var(--secondary-text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-background);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.projects-grid .project-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.projects-grid .project-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 400px;
  height: 200px;
  object-fit: cover; /* Ensures the image is cropped to fit */
}

/* Ensure iframe is responsive */
.project-image iframe {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Adjust iframe height for smaller screens */
@media (max-width: 768px) {
  .project-image iframe {
    height: 70vh; /* Use 70% of the viewport height on mobile */
  }
}
/* Responsive iframe container for Gradio app */
.responsive-iframe-container {
  position: relative;
  width: 100%;
  padding-top: 65%; /* Aspect ratio ~16:10 */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.responsive-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

.project-content {
  padding: 1.5rem;
}

/* HiveWell page helpers */
.hero-banner {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-top: 12px;
}

.project-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--background-color);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  margin: 0;
  font-weight: 500;
}

.architecture-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.arch-card {
  background: var(--card-background);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.arch-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow);
}

.arch-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-card h3 i {
  color: var(--primary-color);
}

.arch-card ul {
  margin-left: 1.25rem;
  list-style-type: disc;
}

.arch-card li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.roadmap-phase {
  background: var(--card-background);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.roadmap-phase:hover {
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow);
}

.roadmap-phase h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.roadmap-phase ul {
  margin-left: 1.25rem;
  list-style-type: disc;
}

.roadmap-phase li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.roadmap-phase strong {
  color: var(--primary-color);
  font-weight: 600;
}

.mt-1 { margin-top: 1rem; }

.tech-stack {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.tech-stack li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
}

.tech-stack li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.tech-stack strong {
  color: var(--primary-color);
  font-weight: 600;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tag {
  background-color: var(--primary-color); /* Matches your Experience badge */
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
  margin: 0 4px; /* Optional: Adds spacing between tags */
  animation: fadeIn 0.5s ease-in-out;
}

.project-tag.python {
  background-color: #3776ab; /* Python blue */
}

.project-tag.tableau {
  background-color: #e97627; /* Tableau orange */
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
}

.skill-bar {
  height: 8px;
  background-color: var(--background-color);
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.skill-info {
  text-align: center;
}

.skill-bubbles {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px; /* Reduced the margin-top to decrease the gap */
  margin-bottom: 8px; 
}

.bubble {
  width: 20px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd; /* Default color for unfilled bubbles */
}

.bubble.filled {
  background-color: var(--primary-color); /* Color for filled bubbles, uses your primary color */
}

.skill-list {
  list-style-type: none;
  padding-left: 0;
}

/* Experience Timeline */
.experience-timeline {
  display: grid;
  gap: 2rem;
}

.experience-card {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  box-shadow: var(--box-shadow);
  margin-bottom: .5rem;
}

.experience-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-background);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  transition: background-color 0.3s ease;
}

.experience-header:hover {
  background-color: rgba(198, 40, 40, 0.05);
}

.experience-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.experience-company {
  font-weight: 500;
  font-size: 1rem;
  color: var(--secondary-text-color);
  margin: 0;
}

.experience-period {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
}

.experience-toggle-icon {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.experience-toggle.open .experience-toggle-icon {
  transform: rotate(180deg);
}

.experience-card.open {
  background-color: rgba(198, 40, 40, 0.04);
}

/* Education Cards */
.education-list {
  display: grid;
  gap: 2rem;
}

.education-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  background: var(--card-background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
}

.education-image {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: contain;
}

/* Contact Section */
.contact-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.contact-card .card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-card .card-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.contact-item:hover {
  background-color: rgba(198, 40, 40, 0.1);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

.contact-label {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--secondary-text-color);
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-hover-color);
}

.contact-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--nav-text);
  margin-left: auto;
  margin-right: 2rem;
}

.contact-location i {
  color: var(--primary-color);
}

/* Footer */
.footer {
  color: var(--text-color);
  padding: 3rem 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: flex;
    justify-content: flex-end;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .education-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Centered Image */
.centered-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* Ensures the container is centered */
}

.centered-image img {
  max-width: 100%; /* Ensures the image scales responsively */
  height: auto; /* Maintains the aspect ratio */
  display: block; /* Ensures the image behaves like a block element */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds a shadow */
  border-radius: 8px; /* Optional: Adds rounded corners */
  margin-bottom: 10px; /* Adds a 10px gap below the image */
}

/* Image Shadow */
.image-shadow {
  max-height: 300px; /* Set the maximum height */
  width: auto; /* Maintain the aspect ratio */
  display: block; /* Ensure the image behaves like a block element */
  margin: 0 auto; /* Center the image horizontally */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Keep the shadow */
  border-radius: 8px; /* Optional: Add rounded corners */
}

/* Image Container */
.image-container {
  position: relative;
  overflow: hidden; /* Ensures the left side is cut off */
  width: 100%; /* Full width of the container */
  height: auto; /* Adjust height as needed */
  max-height: 300px; /* Optional: Limit the height */
}

.image-container img {
  width: 100%; /* Ensures the image fills the container */
  height: auto; /* Maintains aspect ratio */
  object-fit: cover; /* Ensures the image covers the container */
  object-position: right; /* Prioritizes the right side */
}