:root {
  --primary-blue: #0066b3;
  --secondary-red: #fa1713;
  --dark-blue: #004d8c;
  --light-bg: #f8f9fa;
}

/* Hero Section */
.projects-hero {
  background: linear-gradient(135deg, rgb(0 0 0), rgb(15 87 173)), url(../images/Construction.jpg) center / cover;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.projects-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/Merge\ 3\ images.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.hero-content-box {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 12px 28px;
  border-radius: 50px;
  color: white;
  font-weight: 700;
  margin-bottom: 24px;
  border: 2px solid rgba(255,255,255,0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #3b82f6, #10b981, #3b82f6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease-in-out infinite;
}

.hero-description {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 700px;
}

.hero-stats-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 5em;
}

.hero-stat {
  text-align: left;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 750;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Filter Section */
.filter-section {
  background: white;
  padding: 30px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 60px;
  z-index: 100;
}

.filter-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,102,179,0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: white;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0,102,179,0.4);
}

/* Projects Grid */
.projects-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(0,102,179,0.15);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.project-category {
  background: var(--primary-blue);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-info {
  padding: 28px;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 16px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--secondary-red);
}

.project-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--primary-blue);
}

.project-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Project Divided Section */
.project-divided-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.divided-left,
.divided-right {
  flex: 1;
}

.divided-line {
  width: 2px;
  background: linear-gradient(180deg, #0e54a8 0%, #fa1713 100%);
}

.divided-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0e54a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.divided-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.products-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.products-list li {
  font-size: 0.9rem;
  color: #555;
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.products-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #fa1713;
  font-weight: bold;
  font-size: 1.2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Load More Button */
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(0,102,179,0.3);
}

.btn-load-more:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,102,179,0.4);
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
}

.btn-load-more i {
  transition: transform 0.3s ease;
}

.btn-load-more:hover i {
  animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* CTA Section - Split Style */
.cta-section-split {
  background: #2a2a2a;
  overflow: hidden;
}

.cta-image-side {
  position: relative;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-image-side::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 25px;
  right: 25px;
  bottom: 60px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  z-index: 2;
  pointer-events: none;
}

.cta-image-side img {
  width: calc(100% - 50px);
  height: calc(100% - 50px);
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  position: relative;
  z-index: 1;
}

.cta-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg, rgb(42 42 42 / 46%), rgb(0 83 160 / 21%));
  z-index: 0;
}

.cta-content-side {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px;
}

.cta-split-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.2;
}

.cta-split-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 90%;
}

.cta-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.cta-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.cta-feature-item:hover .feature-icon {
  background: rgba(0,83,160,0.3);
  border-color: rgba(0,83,160,0.5);
  transform: translateY(-3px);
}

.feature-icon i {
  font-size: 1.2rem;
  color: #fff;
}

.cta-feature-item span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.cta-split-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 50px;
  background: #fff;
  color: #2a2a2a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.cta-split-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,83,160,0.2), transparent);
  transition: left 0.6s ease;
}

.cta-split-button:hover::before {
  left: 100%;
}

.cta-split-button:hover {
  background: linear-gradient(135deg, #0053a0, #009688);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,83,160,0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
  .cta-image-side {
    min-height: 400px;
    padding: 20px;
  }
  
  .cta-image-side::before {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  
  .cta-image-side img {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
  }
  
  .cta-content-side {
    padding: 60px 40px;
    min-height: auto;
  }
  
  .cta-split-title {
    font-size: 2.2rem;
  }
  
  .cta-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cta-image-side {
    min-height: 300px;
    padding: 15px;
  }
  
  .cta-image-side::before {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-width: 1.5px;
  }
  
  .cta-image-side img {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
  }
  
  .cta-content-side {
    padding: 50px 30px;
  }
  
  .cta-split-title {
    font-size: 1.9rem;
  }
  
  .cta-split-description {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .cta-features-grid {
    gap: 16px;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
  }
  
  .feature-icon i {
    font-size: 1.1rem;
  }
  
  .cta-feature-item span {
    font-size: 0.9rem;
  }
  
  .cta-split-button {
    width: 100%;
    padding: 16px 40px;
  }
}

@media (max-width: 576px) {
  .cta-image-side {
    padding: 12px;
  }
  
  .cta-image-side::before {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-width: 1px;
  }
  
  .cta-image-side img {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
  }
  
  .cta-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .cta-split-title {
    font-size: 1.7rem;
  }
  
  .cta-content-side {
    padding: 40px 25px;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .projects-hero {
    min-height: 60vh;
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-stats-row {
    flex-direction: column;
    gap: 20px;
  }

  .filter-wrapper {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cta-box-modern h2 {
    font-size: 2rem;
  }

  .btn-cta-large {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .cta-section {
    padding: 80px 0;
  }
  
  .cta-title {
    font-size: 2.5rem;
  }
  
  .cta-action-box {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
  
  .cta-action-box {
    padding: 30px 25px;
  }
  
  .cta-highlight {
    padding: 15px;
  }
  
  .cta-highlight i {
    font-size: 2rem;
  }
  
  .highlight-text strong {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-features {
    gap: 12px;
  }
  
  .cta-feature {
    font-size: 0.95rem;
  }
  
  .cta-btn {
    padding: 14px 25px;
    font-size: 0.95rem;
  }
  
  .cta-shape.shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .cta-shape.shape-2 {
    width: 200px;
    height: 200px;
  }
}
