/* styles/projelerimiz.css - Projelerimiz Sayfa Stilleri */

/* Page Header */
.page-header {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../Foto/slidesondaj.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.9) 0%,
    rgba(45, 95, 135, 0.8) 100%
  );
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: slideInUp 1s ease-out;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-color);
}

.breadcrumb i {
  font-size: 0.7rem;
  opacity: 0.6;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: #f3f4f6;
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
  background: white;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.gallery-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-accent);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.filter-btn i {
  font-size: 1rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-item.hidden {
  display: none;
}

.gallery-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  cursor: pointer;
  background: white;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.gallery-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(26, 54, 93, 0.9) 0%,
    rgba(45, 95, 135, 0.8) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  text-align: center;
  color: white;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.view-btn {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.view-btn:hover {
  background: white;
  color: var(--accent-color);
  transform: scale(1.1);
}

.category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gradient-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 1rem;
}

.load-more-btn:hover {
  background: var(--gradient-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.load-more-btn i {
  transition: transform 0.3s ease;
}

.load-more-btn:hover i {
  transform: translateY(3px);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: white;
  font-size: 1.2rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
}

/* Call to Action Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
  transform: rotate(45deg);
}

.cta-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.cta-buttons .btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #f97316 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
  border: 2px solid transparent;
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.cta-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Gallery items animation */
.gallery-item {
  animation: fadeInScale 0.6s ease-out;
}

.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;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
  .page-title {
    font-size: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .gallery-card img {
    height: 250px;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-header {
    min-height: 30vh;
    padding: 2rem 0;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .gallery-section {
    padding: 3rem 0;
  }

  .gallery-header h2 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-card img {
    height: 200px;
  }

  .filter-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    min-width: auto;
    flex: none;
  }

  .filter-btn span {
    display: none;
  }

  .filter-btn i {
    font-size: 1.1rem;
  }

  .gallery-content {
    padding: 1.5rem;
  }

  .gallery-content h4 {
    font-size: 1.2rem;
  }

  .view-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .lightbox-nav {
    padding: 0 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    min-height: 25vh;
  }

  .page-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .gallery-header h2 {
    font-size: 1.8rem;
  }

  .gallery-card img {
    height: 180px;
  }

  .filter-buttons {
    gap: 0.3rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
    border-radius: 25px;
  }

  .filter-btn i {
    font-size: 1rem;
  }

  .gallery-content {
    padding: 1rem;
  }

  .gallery-content h4 {
    font-size: 1.1rem;
  }

  .gallery-content p {
    font-size: 0.9rem;
  }

  .view-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .lightbox-close {
    font-size: 2rem;
    top: -40px;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .page-header-content,
  .gallery-item,
  .gallery-card,
  .filter-btn,
  .view-btn {
    animation: none;
    transition: none;
  }

  .gallery-card:hover,
  .view-btn:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .page-header {
    min-height: auto;
    padding: 2rem 0;
    background: white;
    color: black;
  }

  .page-header-bg,
  .page-header-overlay {
    display: none;
  }

  .cta-section {
    background: white;
    color: black;
  }

  .filter-buttons,
  .load-more-container,
  .lightbox {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-overlay {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gallery-card,
  .filter-btn {
    border: 2px solid var(--primary-color);
  }

  .gallery-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* Focus styles for accessibility */
.filter-btn:focus,
.view-btn:focus,
.load-more-btn:focus,
.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus,
.btn-primary:focus,
.btn-secondary:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Loading state */
.gallery-item.loading {
  opacity: 0.5;
  pointer-events: none;
}

.gallery-item.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}
