/* Portfolio Page Styles */
:root {
  --primary-color: #e67e22;
  --secondary-color: #2c3e50;
  --accent-color: #3498db;
  --light-bg: #f9f9f9;
  --dark-bg: #2c3e50;
  --text-dark: #333;
  --text-light: #777;
  --box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

#portfolio-page {
  overflow-x: hidden;
  color: var(--text-dark);
}

/* Page Header - More dramatic and impactful, matching approach.php */
.page-header {
  height: 85vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(230, 126, 34, 0.7));
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.header-content h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.header-content p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Portfolio Introduction */
.portfolio-intro {
  padding: 120px 0;
  background-color: white;
  position: relative;
}

.portfolio-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-light.jpeg');
  opacity: 0.03;
  z-index: 0;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.intro-content p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-light);
  text-align: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-header h1 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    height: 70vh;
  }
  
  .page-header h1 {
    font-size: 3.5rem;
  }
  
  .page-header p {
    font-size: 1.2rem;
  }
  
  .portfolio-intro {
    padding: 80px 0;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 2.8rem;
  }
  
  .page-header p {
    font-size: 1.1rem;
  }
  
  .intro-content p {
    font-size: 1.1rem;
  }
}

/* Portfolio Grid Section */
.portfolio-section {
  padding: 80px 0;
  background-color: var(--light-bg);
  position: relative;
}

/* Portfolio Filter */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 12px 25px;
  margin: 0 5px 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.portfolio-item {
  position: relative;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(80px);
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.portfolio-overlay p {
  font-size: 1rem;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.view-project-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
  transition-delay: 0.2s;
}

.portfolio-item:hover .view-project-btn {
  opacity: 1;
  transform: translateY(0);
}

.view-project-btn:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Project Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background-color: white;
  width: 90%;
  max-width: 1000px;
  margin: 50px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

#modal-content-container {
  padding: 40px;
}

.loading {
  text-align: center;
  padding: 50px 0;
  font-size: 1.2rem;
  color: var(--text-light);
}

/* Project Details */
.project-details h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.project-meta span {
  margin-right: 30px;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 1rem;
}

.project-meta span i {
  color: var(--primary-color);
  margin-right: 8px;
}

.project-gallery {
  margin-bottom: 30px;
}

.project-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-description h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.project-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 60px 0;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .portfolio-item {
    height: 350px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 30px auto;
  }
  
  #modal-content-container {
    padding: 30px;
  }
  
  .project-details h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .portfolio-item {
    height: 300px;
  }
  
  .portfolio-overlay {
    padding: 20px;
  }
  
  .portfolio-overlay h3 {
    font-size: 1.3rem;
  }
  
  .portfolio-overlay p {
    font-size: 0.9rem;
  }
  
  .view-project-btn {
    padding: 6px 15px;
    font-size: 0.8rem;
  }
  
  #modal-content-container {
    padding: 20px;
  }
  
  .project-details h2 {
    font-size: 1.8rem;
  }
}
