/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fcfcfc;
  color: #111111;
  line-height: 1.6;
}

/* Main container */
main#main-content {
  max-width: 1400px;
  width: 100vw;
  margin: 0 auto;
  padding: 3rem 4vw;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3.5rem;
  font-weight: 900;
  color: #000000;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #000000 0%, #555555 100%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.3rem;
  color: #666666;
  font-weight: 400;
  font-style: italic;
  margin-top: 1.5rem;
}

/* Projects showcase container */
.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Featured project */
.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.featured-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
}

.featured-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Featured project image */
.project-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-content i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.overlay-content span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.featured-project:hover .image-overlay {
  opacity: 1;
}

.featured-project:hover .project-image-container img {
  transform: scale(1.05);
}

/* Featured project content */
.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-header h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000000;
  margin: 0;
}

.project-badge {
  background: #000000;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-description {
  font-size: 1.1rem;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Tech stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.tech-tag {
  background: #f0f0f0;
  color: #333333;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: #000000;
  color: white;
  transform: translateY(-2px);
}

/* Project actions */
.project-actions {
  display: flex;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #000000;
  color: white;
}

.btn-primary:hover {
  background: #333333;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #000000;
  border-color: #000000;
}

.btn-secondary:hover {
  background: #000000;
  color: white;
}

/* Regular projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Project cards */
.project-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Card header */
.card-header {
  position: relative;
}

.project-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.1);
}

.image-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.project-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Card content */
.card-content {
  padding: 2rem;
  padding-bottom: 1rem;
}

.card-content h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.8rem;
}

.card-content p {
  color: #555555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Mini tech stack */
.mini-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mini-tech {
  background: #f8f8f8;
  color: #666666;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mini-tech:hover {
  background: #000000;
  color: white;
}

/* Card footer */
.card-footer {
  padding: 0 2rem 2rem;
  display: flex;
  gap: 1rem;
}

.card-footer a {
  flex: 1;
  text-align: center;
  padding: 0.7rem;
  background: #f8f8f8;
  color: #333333;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.card-footer a:hover {
  background: #000000;
  color: white;
  transform: translateY(-1px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  border: 1px solid #e8e8e8;
}

.cta-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: #242323;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #000000;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.github-btn:hover {
  background: #333333;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 1024px) {
  .featured-project {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .project-header {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  main#main-content {
    padding: 2rem 6vw;
  }

  .section-header h2 {
    font-size: 2.8rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .featured-project {
    padding: 2rem;
  }

  .project-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  main#main-content {
    padding: 1.5rem 8vw;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .cta-section {
    padding: 2rem 1rem;
  }
}

/* Focus accessibility */
.project-card:focus-visible,
.featured-project:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 4px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}
