/* ==========================================
   WORK SECTION STYLES - Using Slick Carousel
   ========================================== */

/* Work Section Container */
.work_section {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 100px 0;
  overflow: hidden;
}

/* Section Header */
.work_section .section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.work_section .section-pretitle {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000000;
  margin-bottom: 15px;
}

.work_section .section-title {
  font-size: 48px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.work_section .section-description {
  font-size: 18px;
  color: #666666;
  line-height: 1.8;
  margin: 0 auto;
}

/* Slick Carousel Container */
.work-slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto 50px;
}

/* Full-width slider */
.work-slider {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Override default Slick styles */
.work-slider .slick-list {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.work-slider .slick-track {
  display: flex;
  align-items: stretch;
}

.work-slider .slick-slide {
  height: auto;
  float: none;
}

.work-slider .slick-slide > div {
  height: 100%;
}

/* Work Card */
.work-slide {
  padding: 0 15px;
  outline: none;
}

.work-slide-inner {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  transition: none;
  cursor: pointer;
  height: 100%;
  border: 1px solid #e0e0e0;
}

.work-slide-inner:hover {
  transform: none;
  box-shadow: none;
  border-color: #000000;
}

/* Image Container */
.work-slide-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #f0f0f0;
}

.work-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.work-slide-inner:hover .work-slide-image img {
  transform: none;
}

/* Image Overlay */
.work-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-slide-inner:hover .work-slide-overlay {
  opacity: 1;
}

.work-view-icon {
  width: 70px;
  height: 70px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.work-slide-inner:hover .work-view-icon {
  transform: scale(1);
  background: #000000;
  color: #ffffff;
}

/* Slick Navigation Arrows */
.work-slider .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 45px;
  height: 45px;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.work-slider .slick-arrow:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-50%);
}

.work-slider .slick-arrow:before {
  font-family: 'FontAwesome';
  font-size: 16px;
  color: inherit;
  opacity: 1;
  line-height: 1;
}

.work-slider .slick-prev {
  left: -60px;
}

.work-slider .slick-prev:before {
  content: '\f053';
}

.work-slider .slick-next {
  right: -60px;
}

.work-slider .slick-next:before {
  content: '\f054';
}

/* Slick Dots */
.work-slider .slick-dots {
  position: relative;
  bottom: 0;
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 50px 0 0 0;
  list-style: none;
  gap: 8px;
}

.work-slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
  line-height: 0;
}

.work-slider .slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #d0d0d0;
  border: 2px solid transparent;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  overflow: hidden;
}

.work-slider .slick-dots li button:hover {
  background: #888888;
  border-color: #888888;
}

.work-slider .slick-dots li.slick-active button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000000;
  border-color: #000000;
  transform: scale(1.4);
}

/* Hide button text content */
.work-slider .slick-dots li button:before,
.work-slider .slick-dots li button:after {
  display: none !important;
  content: none !important;
}

/* View All Button */
.work-cta-container {
  text-align: center;
  margin-top: 60px;
}

.work-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: #000000;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 8px;
  border: 2px solid #000000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.work-cta-btn:hover {
  background: transparent;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.work-cta-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.work-cta-btn:hover i {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .work_section .section-title {
    font-size: 42px;
  }
  
  .work-slide-image {
    height: 350px;
  }
}

@media (max-width: 992px) {
  .work_section .section-title {
    font-size: 38px;
  }
  
  .work-slide-image {
    height: 320px;
  }
  
  .work-slider .slick-prev {
    left: -40px;
  }
  
  .work-slider .slick-next {
    right: -40px;
  }
}

@media (max-width: 768px) {
  .work_section {
    padding: 80px 0;
  }
  
  .work_section .section-title {
    font-size: 32px;
  }
  
  .work_section .section-description {
    font-size: 16px;
  }
  
  .work-slide-image {
    height: 280px;
  }
  
  .work-slider .slick-prev {
    left: 10px;
  }
  
  .work-slider .slick-next {
    right: 10px;
  }
  
  .work-slider .slick-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
  }
  
  .work-slider .slick-arrow:before {
    font-size: 14px;
  }
  
  .work-view-icon {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .work_section {
    padding: 60px 0;
  }
  
  .work_section .section-header {
    margin-bottom: 40px;
  }
  
  .work_section .section-title {
    font-size: 28px;
  }
  
  .work_section .section-description {
    font-size: 15px;
  }
  
  .work-slide-image {
    height: 240px;
  }
  
  .work-slider .slick-arrow {
    display: none !important;
  }
  
  .work-slide {
    padding: 0 10px;
  }
  
  .work-slider .slick-dots {
    margin: 35px 0 0 0;
  }
  
  .work-cta-btn {
    padding: 14px 30px;
    font-size: 14px;
  }
}


/* Gallery Card */
.gallery-card {
  position: relative;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

/* Gallery Image */
.gallery-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  overflow: hidden;
}

.gallery-item-large .gallery-image {
  min-height: 500px;
}

.gallery-item-medium .gallery-image {
  min-height: 450px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 35px;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* Gallery Content */
.gallery-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.gallery-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-weight: 400;
}

/* Gallery Icon */
.gallery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
}

.gallery-card:hover .gallery-icon {
  background: #1a1a1a;
  color: #ffffff;
  transform: rotate(90deg);
}

/* View All Button */
.work-cta-container {
  text-align: center;
  margin-top: 70px;
}

.work-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 45px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  border: 2px solid #1a1a1a;
  transition: all 0.3s ease;
  text-decoration: none;
}

.work-cta-btn:hover {
  background: #ffffff;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.work-cta-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.work-cta-btn:hover i {
  transform: translateX(6px);
}

/* Responsive Design */
@media (max-width: 1400px) {
  .works-gallery-grid {
    max-width: 1200px;
  }
  
  .work_section .section-title {
    font-size: 46px;
  }
}

@media (max-width: 1200px) {
  .works-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .work_section .section-title {
    font-size: 42px;
  }
  
  .gallery-item-large .gallery-image {
    min-height: 450px;
  }
}

@media (max-width: 992px) {
  .work_section {
    padding: 100px 0;
  }
  
  .works-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .gallery-item-medium {
    grid-row: span 1;
  }
  
  .work_section .section-title {
    font-size: 38px;
  }
  
  .gallery-image {
    min-height: 300px;
  }
  
  .gallery-item-large .gallery-image,
  .gallery-item-medium .gallery-image {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .work_section {
    padding: 80px 0;
  }
  
  .work_section .section-header {
    margin-bottom: 50px;
  }
  
  .work_section .section-title {
    font-size: 34px;
  }
  
  .work_section .section-description {
    font-size: 16px;
  }
  
  .works-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .gallery-item-large {
    grid-column: span 1;
  }
  
  .gallery-image {
    min-height: 280px;
  }
  
  .gallery-item-large .gallery-image,
  .gallery-item-medium .gallery-image {
    min-height: 320px;
  }
  
  .gallery-content h3 {
    font-size: 22px;
  }
  
  .gallery-content p {
    font-size: 14px;
  }
  
  .gallery-overlay {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .work_section {
    padding: 60px 0;
  }
  
  .work_section .section-title {
    font-size: 30px;
  }
  
  .work_section .section-description {
    font-size: 15px;
  }
  
  .gallery-image {
    min-height: 250px;
  }
  
  .gallery-item-large .gallery-image,
  .gallery-item-medium .gallery-image {
    min-height: 280px;
  }
  
  .work-cta-btn {
    padding: 16px 35px;
    font-size: 14px;
  }
  
  .work-cta-container {
    margin-top: 50px;
  }
}

/* Smooth fade-in animation */
.gallery-item {
  animation: fadeInUp 0.6s ease-out backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

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

