/* Projects Redesign - Modern Portfolio Showcase
-------------------------------------------------- */

:root {
  --primary-color: #3a86ff;
  --secondary-color: #212121;
  --accent-color: #ff006e;
  --light-bg: #f8f9fa;
  --dark-bg: #121212;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --hover-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  --border-radius: 16px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease;
  --max-width: 1400px;
  --text-light: #212121;
  --text-muted: #6c757d;
  --tech-tag-bg: #f0f7ff;
  --tech-tag-color: #0265d2;
}

body.dark-mode {
  --light-bg: #1a1a1a;
  --text-light: #e9ecef;
  --text-muted: #adb5bd;
  --tech-tag-bg: #2d3748;
  --tech-tag-color: #90cdf4;
}

/* Main container for projects showcase */
.projects-showcase {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.projects-showcase h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  display: inline-block;
  color: var(--text-light);
}

.showcase-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Advanced filter system */
.filter-system {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  position: relative;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-dropdown {
  padding: 0.5rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 180px;
}

.sort-dropdown:hover {
  border-color: var(--primary-color);
}

.sort-dropdown:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

body.dark-mode .sort-dropdown {
  background: var(--dark-bg);
  border-color: #495057;
  color: var(--text-light);
}

body.dark-mode .sort-dropdown:hover {
  border-color: var(--primary-color);
}

/* Projects grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 1rem;
}

/* Project card styling */
.project-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateY(0);
}

body.dark-mode .project-card {
  background: var(--dark-bg);
}

.project-card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-8px);
}

/* Card image container */
.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .card-image img {
  transform: scale(1.05);
}

/* Project type badge */
.project-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Card content styling */
.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  line-height: 1.3;
}

.card-description {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Technologies tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--tech-tag-bg);
  color: var(--tech-tag-color);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  transform: translateY(-2px);
}

/* Card footer with actions */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.view-project {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.view-project:hover {
  color: var(--accent-color);
}

.view-project i {
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.view-project:hover i {
  transform: translateX(3px);
}

/* Live demo link */
.live-demo {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.live-demo:hover {
  background: var(--primary-color);
  color: white;
}

.live-demo i {
  margin-left: 0.5rem;
}

/* Featured project styling */
.project-card.featured {
  grid-column: span 2;
}

.project-card.featured .card-image {
  aspect-ratio: 21/9;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-color);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Hover effects and interactions */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 2rem;
}

.project-card:hover .card-hover-overlay {
  opacity: 1;
}

.overlay-actions {
  display: flex;
  gap: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-slow) 0.1s;
}

.project-card:hover .overlay-actions {
  transform: translateY(0);
  opacity: 1;
}

.overlay-btn {
  background: #ce1f1f;
  color: var(--secondary-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.stat-number {
  color: gold;
}

.overlay-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Loading animation for dynamic content */
.loading-animation {
  text-align: center;
  padding: 2rem;
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .project-card.featured {
    grid-column: span 1;
  }
  
  .project-card.featured .card-image {
    aspect-ratio: 16/10;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .projects-showcase h2 {
    font-size: 2rem;
  }
  
  .filter-system {
    margin-bottom: 2rem;
  }
  
  .filter-controls {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .filter-buttons {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .filter-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .sort-controls {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  
  .sort-dropdown {
    min-width: 160px;
    width: 100%;
    max-width: 250px;
  }

  .advanced-filters {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .search-controls {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .search-input {
    min-width: 160px;
    width: 100%;
    max-width: 250px;
  }

  .tech-filter-controls {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .tech-dropdown {
    min-width: 160px;
    width: 100%;
    max-width: 250px;
  }

  .project-stats {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .stat-divider {
    display: none;
  }
  
}

@media (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .overlay-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.filter-button {
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  z-index: 1;
}

.filter-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50px;
  transform: translateY(100%);
  transition: transform var(--transition-fast);
  z-index: -1;
}

.filter-button:hover {
  color: white;
}

.filter-button:hover::before {
  transform: translateY(0);
}

.filter-button.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
}

.advanced-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.tech-filter-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-dropdown {
  padding: 0.5rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 160px;
}

.tech-dropdown:hover {
  border-color: var(--primary-color);
}

.tech-dropdown:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

body.dark-mode .tech-dropdown {
  background: var(--dark-bg);
  border-color: #495057;
  color: var(--text-light);
}

body.dark-mode .tech-dropdown:hover {
  border-color: var(--primary-color);
}

/* Project stats styling */
.project-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(58, 134, 255, 0.05);
  border-radius: 12px;
  margin-top: 1.5rem;
}

body.dark-mode .project-stats {
  background: rgba(58, 134, 255, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.stat-item i {
  font-size: 0.8rem;
  opacity: 0.8;
}

.stat-divider {
  color: var(--text-muted);
  opacity: 0.6;
}

.search-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input {
  padding: 0.5rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  color: var(--text-light);
  font-weight: 500;
  transition: all var(--transition-fast);
  min-width: 180px;
}

.search-input:hover {
  border-color: var(--primary-color);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

body.dark-mode .search-input {
  background: var(--dark-bg);
  border-color: #495057;
  color: var(--text-light);
}

body.dark-mode .search-input:hover {
  border-color: var(--primary-color);
}

/* Analytics Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 90vw;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

body.dark-mode .modal-container {
  background: var(--dark-bg);
  border: 1px solid #333;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
}

body.dark-mode .modal-header {
  border-bottom-color: #333;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  opacity: 1;
}

.modal-content {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.analytics-section {
  margin-bottom: 2.5rem;
}

.analytics-section h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analytics-section h3 i {
  color: var(--primary-color);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

body.dark-mode .stat-card {
  background: #1a1a1a;
}

.stat-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.stat-card.featured {
  background: linear-gradient(135deg, #ffd700, #f4c430);
  color: #2c2c2c;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
  border: 2px solid #ffd700;
}

body.dark-mode .stat-card.featured {
  background: linear-gradient(135deg, #daa520, #ffd700);
  color: #1a1a1a;
  box-shadow: 0 8px 32px rgba(218, 165, 32, 0.4);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.stat-card.featured .stat-number {
  color: #ffd700 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-card.featured .stat-label {
  color: #2c2c2c !important;
  font-weight: 600;
}

/* Category Breakdown */
.category-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-item {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 8px;
}

body.dark-mode .category-item {
  background: #1a1a1a;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.category-header i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.category-count {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-bar {
  background: #e9ecef;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

body.dark-mode .category-bar {
  background: #333;
}

.category-fill {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* Technology Chart */
.tech-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-item {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--light-bg);
  border-radius: 8px;
}

body.dark-mode .tech-item {
  background: #1a1a1a;
}

.tech-name {
  font-weight: 500;
  color: var(--text-light);
}

.tech-bar {
  background: #e9ecef;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

body.dark-mode .tech-bar {
  background: #333;
}

.tech-fill {
  background: var(--primary-color);
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.tech-count {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Featured Showcase */
.featured-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.featured-item {
  background: var(--light-bg);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

body.dark-mode .featured-item {
  background: #1a1a1a;
}

.featured-item:hover {
  transform: translateY(-4px);
}

.featured-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.featured-info {
  padding: 1rem;
}

.featured-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.featured-info p {
  margin: 0 0 0.75rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.featured-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tech-tag-mini {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.featured-link {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.featured-link:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}



/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid #eee;
  background: var(--light-bg);
}

body.dark-mode .modal-footer {
  border-top-color: #333;
  background: #1a1a1a;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Simplified Analytics Modal Styles */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stats-overview .stat-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.stats-overview .stat-card:hover {
  transform: translateY(-2px);
}

.stats-overview .stat-card.featured {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.stat-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
  opacity: 0.8;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.chart-container {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

.chart-container h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-container h3 i {
  color: var(--primary-color);
}

.chart-container canvas {
  max-height: 250px;
}



/* Featured Projects Mini Gallery */
.featured-mini {
  grid-column: 1 / -1;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.featured-mini-item {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.featured-mini-item:hover {
  transform: scale(1.05);
}

.featured-mini-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-mini-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.featured-mini-item:hover .featured-mini-overlay {
  transform: translateY(0);
}

.featured-mini-overlay span {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Modal Improvements */
.modal-container {
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content {
  padding: 2rem;
}

/* Dark mode adjustments */
body.dark-mode .stats-overview .stat-card {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: #e2e8f0;
}

body.dark-mode .chart-container {
  background: #2d3748;
  border-color: #4a5568;
}

body.dark-mode .chart-container h3 {
  color: #e2e8f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .modal-container {
    max-height: 90vh;
    margin: 1rem;
  }
  
  .modal-content {
    padding: 1rem;
  }
}

.modal-btn.primary {
  background: var(--primary-color);
  color: white;
}

.modal-btn.primary:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
}

.modal-btn.secondary {
  background: #6c757d;
  color: white;
}

.modal-btn.secondary:hover {
  background: #545b62;
}

.analytics-button:hover {
  background: var(--primary-color) !important;
  transform: translateY(-1px);
}

/* Analytics Modal Mobile Styles */
.modal-container {
  width: 95vw;
  max-height: 90vh;
}

.modal-header {
  padding: 1rem 1.5rem;
}

.modal-header h2 {
  font-size: 1.3rem;
}

.modal-content {
  padding: 1.5rem;
  max-height: 65vh;
}

.stats-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-size: 2rem;
}

.analytics-section h3 {
  font-size: 1.1rem;
}

.tech-item {
  grid-template-columns: 1fr 1.5fr auto;
  gap: 0.5rem;
  padding: 0.5rem;
}

.featured-showcase {
  grid-template-columns: 1fr;
}



.modal-footer {
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.modal-btn {
  width: 100%;
  justify-content: center;
}

 