/* Halaman project Fiqram */
:root {
  --primary-color: #3a5bbd;
  --secondary-color: #1a2c56;
  --accent-color: #6084eb;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-gray: #777777;
  --bg-light: #f8f9fa;
  --bg-dark: #1a2c56;
  --bg-gray: rgba(240, 240, 240, 0.8);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
main {
  padding-top: 74px; 
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text-light);
}

.btn-view, .btn-details {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--primary-color);
  transition: var(--transition);
}

.btn-view i, .btn-details i {
  margin-left: 8px;
  transition: var(--transition);
}

.btn-view:hover, .btn-details:hover {
  color: var(--accent-color);
}

.btn-view:hover i, .btn-details:hover i {
  transform: translateX(5px);
}

.btn-details {
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 4px;
  font-size: 0.9rem;
}

.btn-details:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
}

/* Hero Section */
.popular-articles,
.all-articles {
  background: linear-gradient(rgba(26, 44, 86, 0.95), rgba(26, 44, 86, 0.95)), url('img/image.png');
  background-size: cover;
  padding: 80px 0;
  color: var(--text-light);
}

.popular-articles {
  padding-bottom: 40px;
}

.all-articles {
  padding-top: 40px;
  background: var(--bg-light);
  color: var(--text-dark);
}

.all-articles .section-header h2 {
  color: var(--text-dark);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* Featured Projects Section */
.featured-projects {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.project-card.featured {
  display: flex;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  transition: var(--transition);
}

.project-card.featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-card.featured .project-image {
  flex: 1;
  overflow: hidden;
}

.project-card.featured .project-info {
  flex: 1;
  padding: 30px;
}

.project-card.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag.ui-ux {
  background-color: rgba(106, 90, 205, 0.1);
  color: #6a5acd;
}

.tag.web {
  background-color: rgba(65, 105, 225, 0.1);
  color: #4169e1;
}

.tag.app {
  background-color: rgba(50, 205, 50, 0.1);
  color: #32cd32;
}

.tag.ecommerce {
  background-color: rgba(255, 69, 0, 0.1);
  color: #ff4500;
}

/* All Projects Section */
.all-projects {
  padding: 80px 0;
  background-color: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 5px;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--primary-color);
  background-color: rgba(106, 90, 205, 0.1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.project-item {
  transition: var(--transition);
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(0);
  transition: var(--transition);
}

.project-overlay h4 {
  margin-bottom: 15px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: white;
  color: var(--text-dark);
  transition: var(--transition);
}

.pagination a.next {
  width: auto;
  padding: 0 20px;
}

.pagination a.active, .pagination a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Call to Action Section */
.cta-section {
  padding: 100px 0;
  background-image: linear-gradient(rgba(26, 44, 86, 0.9), rgba(26, 44, 86, 0.9)), url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .project-card.featured {
      flex-direction: column;
  }
  
  .projects-grid {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  h1 {
      font-size: 2.2rem;
  }
  
  h2 {
      font-size: 1.8rem;
  }
  
  .hero-project {
      padding: 80px 0 50px;
  }
  
  .featured-projects,
  .all-projects {
      padding: 50px 0;
  }
  
  .projects-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 20px;
  }
}

@media (max-width: 576px) {
  .projects-grid {
      grid-template-columns: 1fr;
  }
  
  .filter-buttons {
      flex-direction: column;
      align-items: center;
  }
  
  .pagination {
      flex-wrap: wrap;
  }
}