/* FONT */
@font-face{
  font-family: "Aftika";
  src: url("FontsFreeNetAftikaRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root{
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.78);
  --card-bg: rgba(255,255,255,0.98);
  --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Aftika', sans-serif;
    background: white;
    color: #000000;
}


::-webkit-scrollbar {
  width: 0px;
}

::-webkit-scrollbar-thumb {
  
  background: rgba(71, 71, 71, 0);
  border-radius: 0px;
}



/* ==== HEADER & MENU BUTTON ==== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  mix-blend-mode: difference; /* Keeps logo and menu button readable over white/dark sections */
}

/* Header Mask Wrappers */
.header-item-wrapper {
  overflow: hidden;
  display: inline-block;
}

.header-btn-inner {
  display: flex;          /* Ensures children flow in a row */
  align-items: center;
  gap: 10px;              /* Space between the word "Menu" and the lines icon */
  overflow: visible;      /* Prevents clipping the text or icon */
}
.header-logo a,
.header-btn-inner {
  will-change: transform;
}



.header-logo a {
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.menu-toggle-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.btn-icon {
  width: 24px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.line {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: transform 0.4s ease;
}

/* Class added when menu opens to cross lines into an X */
.menu-open .line-1 {
  transform: translateY(5px) rotate(45deg);
}
.menu-open .line-2 {
  transform: translateY(-5px) rotate(-45deg);
}

/* ==== OVERLAY CONTAINER ==== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #080808;
  z-index: 990;
  display: flex;
  align-items: center;
  padding: 0 10%;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Keeps menu hidden initially via clip path mask */
  pointer-events: none;
}

.menu-overlay.active {
  pointer-events: all;
}

.menu-content {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Navigation Typography Clips */
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 33px;
  margin-top: 134px;
}

.nav-item-wrapper {
  overflow: hidden; /* Mask clip for smooth slide-up animation */
}

.menu-link {
  display: inline-block;
  font-size: 7vw;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  text-transform: capitalize;
  transform: translateY(120%);
  transition: color 0.3s ease;
}

.menu-link:hover {
  color: #707070;
}

/* Footer & Details Layout */
.menu-footer {
  display: flex;
  gap: 80px;
  opacity: 0;
  transform: translateY(30px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col span {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.social-links {
  display: flex;
  gap: 20px;
}







.page-transition-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #080808;
  z-index: 99999; /* Must sit completely above the fixed main-header */
  pointer-events: none;
  transform: translateY(0%); /* Keep natural positioning base; GSAP now controls offsets via yPercent */
}







/* Full-screen Loader Overlay */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #080808;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  display: flex;
  gap: 12px;
}

.bar {
  width: 16px;
  height: 60px;
  background-color: #b9ddff;
  border-radius: 8px;
}

/* Initially hide content */
.content {
  opacity: 0;
  text-align: center;
  padding-top: 20vh;
}









/* HORIZONTAL SCROLL CONTAINER */
.horizontal-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.horizontal-track {
  display: flex;
  align-items: center;
  gap: 4vw;
  height: 100%;
  width: max-content;
  padding: 0 10vw;
}
/* PLACEHOLDER COLORS/IMAGES FOR CARDS */



.jony{
  width: 902px;
}

.marinet{
  width: 451px;
}

.liftcard{
  width: 625px;
}

.sah{
  width: 510px;
}
.horizontal-track a {
  display: inline-block;
  line-height: 0; /* Prevents tiny invisible gaps under images */
}

.horizontal-track a img {
  display: block;
}


/* ==== PROJECT HOVER EFFECT ==== */
.project-item {
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-decoration: none;
}

.project-item img {
  display: block;
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Dark Overlay & Title Container */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* Darkens the image background */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  padding: 0 20px;
}

/* Hover States */
.project-item:hover img {
  filter: brightness(0.65); /* Extra dim on hover */
  transform: scale(1.03);    /* Subtle zoom effect */
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-item:hover .project-title {
  transform: translateY(0);
}





/* ========================================== */
/* MOBİL VE TABLET UYUMLULUK AYARLARI        */
/* ========================================== */

@media screen and (max-width: 1024px) {
  /* Tablet ve Mobil cihazlarda devasa menü yazılarını küçültelim */
  .menu-link {
    font-size: 10vw;
  }
  
  .menu-footer {
    gap: 30px;
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  /* MOBİLDE YATAY KAYDIRMAYI İPTAL EDİP DİKEY AKIŞA GEÇELİM */
  /* Bu, mobilde kullanıcıların parmaklarıyla rahatça aşağı kaydırmasını sağlar */
  .horizontal-section {
    height: auto !important;
    overflow: visible !important;
    padding: 100px 5% 50px 5% !important;
  }

  .horizontal-track {
    display: flex !important;
    flex-direction: column !important; /* Kartları alt alta diz */
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    gap: 30px !important;
    transform: none !important; /* GSAP yatay kaydırmasını mobilde devre dışı bırakır */
  }

  /* Kart görsellerini mobil ekrana tam oturtalım */
  .project-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Tüm görsellerin mobilde taşmasını önleyip esnek yapalım */
  .project-card img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Özel genişlik sınıflarını mobilde sıfırlıyoruz ki ekrandan taşmasınlar */
  .jony, .marinet, .liftcard, .sah {
    width: 100% !important;
  }
}