/* ============================================
   HERO SLIDER - MOBILE RESPONSIVE FIX
   ============================================ */

.hero-slider {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-xl);
}

.slider-content {
  text-align: left;
  max-width: 800px;
}

.slide-heading {
  font-size: 64px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.slide-heading a {
  color: white;
  text-decoration: none;
  display: block;
}

.slide-heading span {
  display: block;
}

.slide-description {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  margin: 0;
}

/* Overlay Efektleri */
.overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.overlay-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.slide-container {
  position: relative;
  z-index: 2;
}

/* Swiper Navigation (opsiyonel) */
.swiper-button-next,
.swiper-button-prev {
  color: white;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
}

/* ============================================
   PROJELER SECTION - TAM RESPONSIVE (4 KART)
   ============================================ */

.projeler-section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  position: relative;
  z-index: 2;
}

.projeler-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */

.projeler-header {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.projeler-header h2 {
  font-size: 48px;
  color: #656565;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.projeler-header p {
  font-size: 14px;
  color: #656565;
  line-height: 1.7;
  margin: 0;
  font-weight: 300;
}

/* ============================================
   CONTAINER
   ============================================ */

.projeler-container {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ============================================
   DESKTOP - 4 KART YAN YANA (>991px)
   ============================================ */

.options {
  display: flex;
  flex-direction: row;
  gap: 0;
  max-width: 1200px;
  width: 100%;
  min-height: 70vh;
  height: auto;
}

.option {
  position: relative;
  overflow: hidden;
  /* ÖNEMLİ: flex yerine width animate ediyoruz - GPU composite layer */
  flex: 1;
  min-width: 80px;
  background-size: cover;
  background-position: center;
  cursor: pointer;

  /* SADECE gerekli property'leri animate et - "all" kullanma! */
  transition: flex 0.45s cubic-bezier(0.05, 0.61, 0.41, 0.95);

  /* GPU katmanına al - layout reflow engelle */
  will-change: flex;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  border-radius: 0;
}

/* Hover Effect - Desktop */
.option:hover {
  flex: 3;
}

/* Hover olan kartta shadow */
.option:hover .shadow {
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, transparent 70%);
}

.option:hover .number-center {
  opacity: 0;
  pointer-events: none;
}

.option:hover .location {
  opacity: 0;
}

.option:hover .info-panel {
  right: 50px;
  opacity: 1;
}

/* Normal State */
.option:not(:hover) .shadow {
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
}

.option:not(:hover) .number-center {
  opacity: 1;
}

.option:not(:hover) .location {
  opacity: 1;
}

.option:not(:hover) .info-panel {
  right: -500px;
  opacity: 0;
}

/* Shadow Overlay - sadece background animate et */
.shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: background 0.4s ease;
}

/* Number Center - sadece opacity animate et */
.number-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.number-center .number {
  display: block;
  font-size: 100px;
  font-weight: 700;
  color: white;
  line-height: 1;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 10px;
}

.number-center .title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  padding: 0 10px;
}

/* Location - sadece opacity animate et */
.location {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 2;
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.3s ease;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  pointer-events: none;
}

.location::before {
  content: "📍";
  font-size: 14px;
}

/* Info Panel - sadece right ve opacity animate et */
.info-panel {
  position: absolute;
  right: -500px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 450px;
  transition: right 0.45s cubic-bezier(0.05, 0.61, 0.41, 0.95),
              opacity 0.35s ease;
  padding: 0 30px;
}

.info-panel .main-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.info-panel .sub-location {
  font-size: 15px;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.info-panel .sub-location::before {
  content: "📍";
  font-size: 16px;
}

.info-panel .description {
  font-size: 14px;
  line-height: 1.7;
  color: white;
  margin-bottom: 25px;
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Buton - sadece transform ve box-shadow animate et */
.proje-detay-btn {
  display: inline-block;
  padding: 12px 30px;
  background: white;
  color: #31508c;
  font-size: 14px;
  font-weight: 700;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.proje-detay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: #f8f9fa;
}

/* ============================================
   TABLET - 768px - 991px
   ============================================ */

@media (max-width: 991px) {
  .projeler-section {
    padding: 60px 0;
  }
  
  .projeler-header {
    margin-bottom: 50px;
  }
  
  .projeler-header h2 {
    font-size: 40px;
  }
  
  .projeler-header p {
    font-size: 13px;
  }
  
  /* 4 KART - 2x2 GRID */
  .options {
    flex-direction: row;
    flex-wrap: wrap;
    min-height: auto;
    gap: 15px;
  }
  
  .option {
    flex: 0 0 calc(50% - 7.5px);
    min-height: 300px;
    border-radius: 15px;
    will-change: auto; /* Tablet/mobilde will-change kapat - gereksiz bellek */
    transition: opacity 0.3s ease;
  }
  
  .option:hover {
    flex: 0 0 calc(50% - 7.5px);
  }
  
  .option.active {
    flex: 0 0 100%;
    min-height: 400px;
  }
  
  .option.active .shadow {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  }
  
  .option.active .number-center {
    top: 25px;
    left: 25px;
    transform: none;
    text-align: left;
  }
  
  .option.active .number-center .number {
    font-size: 60px;
  }
  
  .option.active .number-center .title {
    font-size: 15px;
    padding: 0;
  }
  
  .option.active .location {
    opacity: 1;
    top: 25px;
    right: 25px;
    bottom: auto;
    font-size: 12px;
  }
  
  .option.active .info-panel {
    right: auto;
    left: 25px;
    top: auto;
    bottom: 25px;
    transform: none;
    max-width: calc(100% - 50px);
    opacity: 1;
  }
  
  .option:not(.active) .info-panel {
    display: none;
  }
  
  .info-panel .main-title {
    font-size: 26px;
  }
  
  .info-panel .sub-location {
    font-size: 13px;
  }
  
  .info-panel .description {
    font-size: 13px;
  }
  
  .proje-detay-btn {
    padding: 10px 25px;
    font-size: 13px;
  }
}

/* ============================================
   MOBILE - 576px - 767px
   ============================================ */

@media (max-width: 767px) {
  .projeler-section {
    padding: 50px 0;
  }
  
  .projeler-header {
    margin-bottom: 40px;
    padding: 0 15px;
  }
  
  .projeler-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
  }
  
  .projeler-header p {
    font-size: 12px;
  }
  
  .projeler-container {
    padding: 0 15px;
  }
  
  .options {
    gap: 12px;
  }
  
  .option {
    flex: 0 0 calc(50% - 6px);
    min-height: 220px;
    border-radius: 12px;
  }
  
  .option.active {
    flex: 0 0 100%;
    min-height: 380px;
  }
  
  .option.active .number-center {
    top: 20px;
    left: 20px;
  }
  
  .option.active .number-center .number {
    font-size: 50px;
  }
  
  .option.active .number-center .title {
    font-size: 13px;
  }
  
  .option.active .location {
    top: 20px;
    right: 20px;
    font-size: 11px;
  }
  
  .option.active .info-panel {
    left: 20px;
    bottom: 20px;
    max-width: calc(100% - 40px);
  }
  
  .info-panel .main-title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .info-panel .sub-location {
    font-size: 11px;
    margin-bottom: 15px;
  }
  
  .info-panel .description {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  .proje-detay-btn {
    padding: 8px 20px;
    font-size: 12px;
  }
  
  .number-center .number {
    font-size: 60px;
  }
  
  .number-center .title {
    font-size: 12px;
    padding: 0 5px;
  }
  
  .location {
    font-size: 10px;
    bottom: 12px;
    right: 12px;
  }
}

/* ============================================
   SMALL MOBILE - < 576px
   ============================================ */

@media (max-width: 575px) {
  .projeler-section {
    padding: 40px 0;
  }
  
  .projeler-header {
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  .projeler-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .projeler-header p {
    font-size: 11px;
  }
  
  .projeler-container {
    padding: 0 10px;
  }
  
  .options {
    gap: 10px;
  }
  
  .option {
    flex: 0 0 calc(50% - 5px);
    min-height: 180px;
    border-radius: 10px;
  }
  
  .option.active {
    flex: 0 0 100%;
    min-height: 350px;
  }
  
  .option.active .number-center {
    top: 15px;
    left: 15px;
  }
  
  .option.active .number-center .number {
    font-size: 40px;
  }
  
  .option.active .number-center .title {
    font-size: 11px;
  }
  
  .option.active .location {
    top: 15px;
    right: 15px;
    font-size: 10px;
  }
  
  .option.active .info-panel {
    left: 15px;
    bottom: 15px;
    max-width: calc(100% - 30px);
  }
  
  .info-panel .main-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .info-panel .sub-location {
    font-size: 10px;
    margin-bottom: 12px;
  }
  
  .info-panel .description {
    font-size: 10px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  .proje-detay-btn {
    padding: 7px 18px;
    font-size: 11px;
    border-radius: 20px;
  }
  
  .number-center .number {
    font-size: 50px;
  }
  
  .number-center .title {
    font-size: 10px;
    padding: 0 3px;
    line-height: 1.2;
  }
  
  .location {
    font-size: 9px;
    bottom: 10px;
    right: 10px;
  }
  
  .location::before {
    font-size: 11px;
  }
}

/* ============================================
   EXTRA SMALL - < 400px
   ============================================ */

@media (max-width: 400px) {
  .projeler-header h2 {
    font-size: 24px;
  }
  
  .projeler-header p {
    font-size: 10px;
  }
  
  .option {
    min-height: 160px;
  }
  
  .option.active {
    min-height: 320px;
  }
  
  .number-center .number {
    font-size: 40px;
  }
  
  .number-center .title {
    font-size: 9px;
  }
  
  .option.active .number-center .number {
    font-size: 35px;
  }
  
  .option.active .number-center .title {
    font-size: 10px;
  }
  
  .info-panel .main-title {
    font-size: 16px;
  }
  
  .info-panel .sub-location,
  .info-panel .description {
    font-size: 9px;
  }
  
  .proje-detay-btn {
    padding: 6px 15px;
    font-size: 10px;
  }
}

/* ============================================
   TOUCH GESTURES - Mobile Optimization
   ============================================ */

@media (hover: none) and (pointer: coarse) {
  .option {
    -webkit-tap-highlight-color: transparent;
  }
  
  .option:active {
    transform: scale(0.98);
  }
  
  .proje-detay-btn {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ============================================
   LANDSCAPE MODE - Mobile Yatay
   ============================================ */

@media (max-width: 991px) and (orientation: landscape) {
  .option {
    min-height: 250px;
  }
  
  .option.active {
    min-height: 350px;
  }
  
  .projeler-section {
    padding: 40px 0;
  }
}

/* ============================================
   TABLET RESPONSIVE - 768px - 991px
   ============================================ */

@media (max-width: 991px) {
  .hero-slider {
    height: 70vh;
    min-height: 500px;
  }
  
  .slide-heading {
    font-size: 48px;
  }
  
  .slide-description {
    font-size: 20px;
  }

  .contact-area {
    position: absolute;
    left: 0;
    top: 0;
    height: 72vh; 
  }
}

/* ============================================
   MOBILE RESPONSIVE - 576px - 767px
   ============================================ */

@media (max-width: 767px) {
  .slide-container {
    padding: 0 var(--spacing-md);
  }
  
  .slide-heading {
    font-size: 36px;
  }
  
  .slide-description {
    font-size: 16px;
  }
}

/* ============================================
   SMALL MOBILE - < 576px
   ============================================ */

@media (max-width: 575px) {
  .slide-container {
    padding: 0 var(--spacing-sm);
  }
  
  .slide-heading {
    font-size: 28px;
  }
  
  .slide-description {
    font-size: 14px;
  }
}