/* Simple CSS for Pitso Manyike Portfolio */
@import url('https://fonts.bunny.net/css?family=instrument-sans:400,500,600,700');

:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --muted-color: #666666;
  --accent-color: #2d2d2d;
  --border-color: #e5e5e5;
  --card-bg: #f8f8f8;
  --hover-bg: #f0f0f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --muted-color: #a0a0a0;
    --accent-color: #ffffff;
    --border-color: #333333;
    --card-bg: #2d2d2d;
    --hover-bg: #404040;
  }
}

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

body {
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #1a1a1a;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #333333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav .max-w-5xl {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}

nav a:hover {
  color: #fab300;
}

/* Hero Section */
.hero {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero .gradient-text {
  background: linear-gradient(135deg, var(--muted-color), var(--text-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted-color);
  margin-bottom: 1rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero .text-lg {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.hero .flex {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  transform: scale(1);
}

.hero a:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero .primary-btn {
  background-color: var(--text-color);
  color: white;
}

.hero .secondary-btn {
  border: 2px solid var(--text-color);
  color: var(--text-color);
}

.hero .secondary-btn:hover {
  background-color: var(--text-color);
  color: white;
}

/* About Section Enhancements */
.about {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-color), var(--muted-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.about h4 {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.about blockquote {
  border-left: 4px solid var(--text-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted-color);
  position: relative;
}

.about blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--text-color);
  opacity: 0.1;
  position: absolute;
  top: -1rem;
  left: -1rem;
  font-family: serif;
}

/* Enhanced Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-color), var(--muted-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-item div:last-child {
  font-size: 0.75rem;
  color: var(--muted-color);
  margin-top: 0.5rem;
}

/* Skills Tags */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
  .skill-tag {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
  }
}

/* Service Cards */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Process Timeline */
.about .about:last-child {
  margin-top: 4rem;
}

.about .about:last-child > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.about .about:last-child > div > div {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about .about:last-child > div > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .about .about:last-child > div > div {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  }
}

/* Enhanced Project Cards */
.project-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.project-card.featured {
  grid-column: span 2;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.3;
}

.project-card p {
  color: var(--muted-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-card .tech-tag {
  padding: 0.25rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
  font-size: 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.project-card .tech-tag:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

@media (prefers-color-scheme: dark) {
  .project-card .tech-tag {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .project-card .tech-tag:hover {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
  }
}

/* Projects Section */
.projects {
  background-color: var(--bg-color);
  padding: 3rem 1.5rem;
  text-align: center;
}

/* Projects Tiles Layout */
.projects-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.project-tile {
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  min-height: 320px;
}

.project-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-tile .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tile .tech-tag {
  padding: 0.25rem 0.5rem;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--muted-color);
  font-size: 0.7rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-tile:hover .tech-tag {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Featured Project */
.project-tile.featured {
  grid-column: 1 / -1;
  max-width: 100%;
}

@media (max-width: 768px) {
  .project-tile.featured {
    grid-column: 1;
  }
}

/* Project CTA */
.projects > div > div:last-child {
  text-align: center;
  margin-top: 3rem;
}

.projects > div > div:last-child p {
  color: var(--muted-color);
  margin-bottom: 2rem;
}

.projects > div > div:last-child a {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--text-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.projects > div > div:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--text-color), var(--muted-color));
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.contact h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact a {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.contact a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

footer p {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .about .stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  nav .flex {
    gap: 1rem;
  }

  nav a {
    font-size: 0.75rem;
  }
}

/* Service Cards Enhancements */
.service-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  border-color: var(--accent-color) !important;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-color) !important;
  color: var(--bg-color) !important;
}

/* Smooth scrolling for service cards container */
.service-cards-container {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.service-cards-container::-webkit-scrollbar {
  height: 6px;
}

.service-cards-container::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 3px;
}

.service-cards-container::-webkit-scrollbar-thumb {
  background: var(--muted-color);
  border-radius: 3px;
}

.service-cards-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

@media (max-width: 768px) {
  .service-card {
    min-width: 280px !important;
  }
  
  .service-cards-container {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .service-card {
    scroll-snap-align: start;
  }
}