/* ═══════════════════════════════════════════════════════════
   FURKATECH — mobile.css v3 (TAM VERSİYON)
   Her HTML <head> içine ekle:
   <link rel="stylesheet" href="mobile.css">
═══════════════════════════════════════════════════════════ */

/* ── GENEL ── */
@media (max-width: 1024px) {
  html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100vw;
  }
  body {
    cursor: auto !important;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
  }
  #cursor,
  #cursor-ring {
    display: none !important;
  }
  body.cursor-hover #cursor,
  body.cursor-hover #cursor-ring {
    display: none !important;
  }
  a,
  button,
  .nav-cta,
  .filter-btn,
  .proj-row,
  .live-btn,
  .back-btn,
  .nav-logo,
  .nav-links a,
  .footer-logo,
  .footer-links a,
  .fc-col a {
    cursor: pointer !important;
  }
}

/* ════════════════════════════════════════════════════════
   HAMBURGER BUTONU
════════════════════════════════════════════════════════ */

.mob-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer !important;
  z-index: 9001;
  position: relative;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
}

.mob-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cyan, #00fefb);
  border-radius: 2px;
  transition:
    transform 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    opacity 0.35s,
    width 0.35s;
  transform-origin: center;
}

.mob-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mob-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mob-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mob-hamburger {
    display: flex;
  }
}

/* ════════════════════════════════════════════════════════
   MOBİL MENÜ OVERLAY
════════════════════════════════════════════════════════ */

.mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #172d4c;
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}

.mob-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mob-menu a {
  font-family: "Bebas Neue", "Syne", sans-serif;
  font-size: clamp(40px, 12vw, 72px);
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.15;
  cursor: pointer !important;
  display: block;
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.77, 0, 0.18, 1),
    opacity 0.5s cubic-bezier(0.77, 0, 0.18, 1),
    color 0.3s;
}

.mob-menu.open a {
  transform: translateY(0);
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}
.mob-menu.open a:nth-child(2) {
  transition-delay: 0.05s;
}
.mob-menu.open a:nth-child(4) {
  transition-delay: 0.1s;
}
.mob-menu.open a:nth-child(6) {
  transition-delay: 0.15s;
}
.mob-menu.open a:nth-child(8) {
  transition-delay: 0.2s;
}
.mob-menu a:hover {
  color: var(--cyan, #00fefb) !important;
}

.mob-menu-line {
  width: 1px;
  height: 32px;
  background: rgba(0, 254, 251, 0.15);
  margin: 6px 0;
  opacity: 0;
  transition: opacity 0.5s 0.3s;
}
.mob-menu.open .mob-menu-line {
  opacity: 1;
}

.mob-menu-contact {
  margin-top: 28px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(0, 254, 251, 0.45);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s 0.4s;
}
.mob-menu.open .mob-menu-contact {
  opacity: 1;
}

@media (max-width: 768px) {
  .mob-menu {
    display: flex;
  }
}

/* ════════════════════════════════════════════════════════
   KAPAT (X) BUTONU
════════════════════════════════════════════════════════ */

.mob-menu-close {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  background: none;
  border: 1px solid rgba(0, 254, 251, 0.25);
  border-radius: 50%;
  z-index: 9010;
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
  transition:
    opacity 0.4s 0.2s,
    transform 0.4s 0.2s,
    border-color 0.3s,
    background 0.3s;
}

.mob-menu.open .mob-menu-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.mob-menu-close:hover {
  background: rgba(0, 254, 251, 0.1);
  border-color: var(--cyan, #00fefb);
}

.mob-menu-close:active {
  transform: scale(0.9);
  background: rgba(0, 254, 251, 0.2);
}

.mob-menu-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--cyan, #00fefb);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* ════════════════════════════════════════════════════════
   INDEX NAV
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav {
    padding: 0 !important;
    background: #172d4c !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 254, 251, 0.08);
    /* index.html opacity:0 başlangıcını mobilde iptal et */
    opacity: 1 !important;
    pointer-events: all !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9000 !important;
    transform: none !important;
  }
  .nav-bar {
    height: 62px !important;
    width: 100%;
    padding: 0 !important;
  }
  .nav-left-wrap {
    height: 62px !important;
  }
  .nav-hamburger {
    display: flex !important;
    height: 62px !important;
    width: 56px !important;
    padding: 0 18px !important;
  }
  .nav-logo-box {
    display: flex !important;
    height: 62px !important;
    padding: 0 18px !important;
  }
  .nav-logo-box img {
    height: 36px !important;
  }
  .nav-links,
  .nav-center,
  .nav-cta {
    display: none !important;
  }
  .mega-panel,
  .mega-overlay {
    display: none !important;
  }

  nav.nav {
    padding: 0 !important;
  }
  nav .nav-links {
    display: none !important;
  }

  /* GSAP transform'lu parent'lar fixed nav'ı kırmasın */
  main,
  .smooth-wrapper,
  .smooth-content {
    transform: none !important;
  }
}

/* ════════════════════════════════════════════════════════
   LOGO HERO — FURKATECH / TECHNOLOGY KÜÇÜK + ALT ALTA
   UI/UX yazısı (typewriter) BÜYÜK
   Logo BÜYÜK
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .logo-hero-pin {
    padding: 0 24px;
    gap: 12px;
  }

  /* Logo büyüt */
  .logo-hero-img {
    width: clamp(90px, 22vw, 130px) !important;
    filter: drop-shadow(0 0 30px rgba(0, 254, 251, 0.5))
      drop-shadow(0 0 60px rgba(0, 254, 251, 0.2)) !important;
  }

  /* FURKATECH / TECHNOLOGY → alt alta + küçük */
  .logo-hero-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0px !important;
    flex-wrap: nowrap !important;
    white-space: normal !important;
    text-align: center;
  }

  .logo-hero-text {
    font-size: clamp(16px, 4.8vw, 28px) !important;
    letter-spacing: 0.1em !important;
    line-height: 1.1 !important;
  }

  .logo-hero-sub {
    font-size: clamp(16px, 4.8vw, 28px) !important;
    letter-spacing: 0.1em !important;
    line-height: 1.1 !important;
  }

  /* Typewriter / UI-UX yazısı → büyüt */
  .typewriter-wrap {
    margin-top: 20px;
  }

  .typewriter-line {
    font-size: 29px !important;
    letter-spacing: 0.05em !important;
    color: rgba(0, 254, 251, 0.75) !important;
    min-height: 1.5em;
    font-weight: 600;
  }

  .typewriter-cursor {
    width: 2px;
    height: 1em;
  }

  .logo-hero-scroll {
    bottom: 28px;
  }
  


}

@media (max-width: 480px) {
  .logo-hero-img {
    width: clamp(80px, 20vw, 110px) !important;
  }

  .logo-hero-text,
  .logo-hero-sub {
    font-size: clamp(16px, 6vw, 26px) !important;
  }

  .typewriter-line {
    font-size: 29px !important;
  }



}

/* ════════════════════════════════════════════════════════
   FLIP INTRO
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .container {
    gap: 0;
    padding: 0 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .container .letter {
    font-size: clamp(16px, 6vw, 32px) !important;
    padding: 1px 0.5px;
  }
  .container .technology {
    font-size: clamp(9px, 2.7vw, 15px) !important;
    letter-spacing: 0.1em !important;
    padding: 2px 5px;
  }
  .container .logo-flip img {
    width: clamp(60px, 10vw, 90px) !important;
  }
}
@media (max-width: 480px) {
  .container .letter {
    font-size: clamp(14px, 6.6vw, 26px) !important;
  }
  .container .technology {
    font-size: clamp(8px, 2.9vw, 13px) !important;
  }
  .container .logo-flip img {
    width: clamp(52px, 12vw, 76px) !important;
  }
}

/* ════════════════════════════════════════════════════════
   TEXT REVEAL
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .text-reveal-section {
    padding: 60px 20px;
    min-height: 60vh;
  }
  .reveal-text {
    font-size: clamp(20px, 5.5vw, 36px) !important;
    line-height: 1.4;
  }
}
@media (max-width: 480px) {
  .text-reveal-section {
    padding: 50px 16px;
  }
  .reveal-text {
    font-size: clamp(18px, 6vw, 28px) !important;
  }
}

/* ════════════════════════════════════════════════════════
   SERVİSLER → DİKEY STACK
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hscroll-wrap {
    overflow: visible;
  }
  .hscroll-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
  }
  .service-panel {
    width: 100% !important;
    min-height: 75vh;
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 254, 251, 0.08);
    padding: 60px 24px;
  }
  .service-title {
    font-size: clamp(28px, 8vw, 44px) !important;
  }
  .service-desc {
    font-size: 15px;
    max-width: 100%;
  }
  .service-num {
    font-size: 80px;
    top: 20px;
    left: 20px;
  }
  .service-bg img {
    opacity: 0.08 !important;
  }
}
@media (max-width: 480px) {
  .service-panel {
    padding: 50px 16px;
    min-height: 65vh;
  }
  .service-title {
    font-size: clamp(24px, 9vw, 38px) !important;
  }
}

/* ════════════════════════════════════════════════════════
   PROJELER (ANA SAYFA)
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .projects-section {
    padding: 70px 20px;
  }
  .section-heading {
    font-size: clamp(28px, 8vw, 44px) !important;
    margin-bottom: 36px;
  }
  .project-row {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-bottom: 20px;
  }
  .project-thumb {
    height: 180px;
  }
  .project-name {
    font-size: 18px;
  }
  .all-projects-btn {
    padding: 12px 28px;
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .projects-section {
    padding: 50px 16px;
  }
  .project-thumb {
    height: 160px;
  }
}

/* ════════════════════════════════════════════════════════
   STATS
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .stats-section {
    padding: 70px 20px;
    gap: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .stat-item {
    flex: 0 0 42%;
  }
  .stat-num {
    font-size: clamp(40px, 12vw, 72px) !important;
  }
  .stat-label {
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  .stats-section {
    padding: 50px 16px;
    gap: 24px;
  }
  .stat-num {
    font-size: clamp(36px, 14vw, 60px) !important;
  }
}

/* ════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .contact-section {
    padding: 70px 20px;
  }
  .contact-cta {
    font-size: clamp(28px, 8vw, 52px) !important;
    margin-bottom: 24px;
  }
  .contact-btn {
    padding: 14px 32px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .contact-section {
    padding: 50px 16px;
  }
  .contact-cta {
    font-size: clamp(24px, 9vw, 40px) !important;
  }
}

/* ════════════════════════════════════════════════════════
   3D CUBE
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .cube-section {
    height: 200vh;
  }
  .cube-scene {
    width: 420px !important;
    height: 220px !important;
  }
  .cube-face {
    width: 420px !important;
    height: 220px !important;
    font-size: 29px !important;
  }
  .cube-face.front {
    transform: translateZ(110px) !important;
  }
  .cube-face.back {
    transform: rotateY(180deg) translateZ(110px) !important;
  }
  .cube-face.right {
    transform: rotateY(90deg) translateZ(110px) !important;
  }
  .cube-face.left {
    transform: rotateY(-90deg) translateZ(110px) !important;
  }
  .cube-face.top {
    transform: rotateX(90deg) translateZ(110px) !important;
  }
  .cube-face.bottom {
    transform: rotateX(-90deg) translateZ(110px) !important;
  }
  .cube-face img {
    width: 80px !important;
  }
  .cube-label p {
    font-size: 9px;
  }
}
@media (max-width: 480px) {
  .cube-scene {
    width: 180px !important;
    height: 180px !important;
  }
  .cube-face {
    width: 180px !important;
    height: 180px !important;
    font-size: 16px !important;
  }
  .cube-face.front {
    transform: translateZ(90px) !important;
  }
  .cube-face.back {
    transform: rotateY(180deg) translateZ(90px) !important;
  }
  .cube-face.right {
    transform: rotateY(90deg) translateZ(90px) !important;
  }
  .cube-face.left {
    transform: rotateY(-90deg) translateZ(90px) !important;
  }
  .cube-face.top {
    transform: rotateX(90deg) translateZ(90px) !important;
  }
  .cube-face.bottom {
    transform: rotateX(-90deg) translateZ(90px) !important;
  }
  .cube-face img {
    width: 60px !important;
  }
}

/* ════════════════════════════════════════════════════════
   FOOTER SVG
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .footer-svg-section {
    padding: 80px 16px;
    min-height: 40vh;
  }
  .footer-svg-section svg {
    width: min(96vw, 500px) !important;
  }
}
@media (max-width: 480px) {
  .footer-svg-section {
    padding: 60px 8px;
  }
  .footer-svg-section svg {
    width: 99vw !important;
  }
}

/* ════════════════════════════════════════════════════════
   FOOTER CONTACT & BOTTOM
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .footer-contact {
    padding: 40px 20px;
  }
  .footer-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .footer-bottom {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-copy {
    font-size: 10px;
    order: 3;
  }
  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-links a {
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  .footer-contact {
    padding: 32px 16px;
  }
}

/* ════════════════════════════════════════════════════════
   PROJELER.HTML SAYFASI
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .page-hero {
    padding: 110px 20px 50px !important;
  }
  .page-title {
    font-size: clamp(52px, 14vw, 100px) !important;
    letter-spacing: -2px !important;
  }
  .page-subtitle {
    font-size: 14px !important;
    max-width: 100% !important;
    margin-top: 20px;
  }

  .filter-wrap {
    padding: 0 20px 40px !important;
    gap: 6px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-wrap::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 16px !important;
    font-size: 9px !important;
  }

  .proj-list {
    padding: 0 20px 60px !important;
  }
  .proj-row {
    grid-template-columns: 44px 1fr 44px !important;
    gap: 16px !important;
    padding: 24px 0 !important;
  }
  .proj-row:hover {
    padding-left: 0 !important;
  }
  .proj-row:hover::before {
    width: 0 !important;
  }
  .proj-meta {
    display: none !important;
  }
  .proj-name {
    font-size: clamp(24px, 7vw, 42px) !important;
  }
  .proj-tags {
    gap: 5px;
    margin-top: 6px;
  }
  .proj-tag {
    font-size: 8px !important;
    padding: 3px 8px !important;
  }
  .proj-arrow {
    width: 36px !important;
    height: 36px !important;
    margin-left: 0 !important;
  }
  .proj-arrow svg {
    width: 13px !important;
    height: 13px !important;
  }
  #hoverPrev {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 100px 16px 40px !important;
  }
  .page-title {
    font-size: clamp(44px, 16vw, 80px) !important;
    letter-spacing: -1.5px !important;
  }
  .proj-list {
    padding: 0 16px 50px !important;
  }
  .proj-row {
    grid-template-columns: 36px 1fr 36px !important;
    gap: 12px !important;
    padding: 20px 0 !important;
  }
  .proj-name {
    font-size: clamp(20px, 8vw, 34px) !important;
  }
  .filter-wrap {
    padding: 0 16px 32px !important;
  }
}

/* ════════════════════════════════════════════════════════
   PROJE-DETAY.HTML SAYFASI
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-back {
    font-size: 9px !important;
    letter-spacing: 2px !important;
    gap: 5px !important;
  }

  #detailHero {
    height: 80vh;
  }
  .dh-inner {
    padding: 0 20px 50px !important;
  }
  .dh-eyebrow {
    font-size: 9px !important;
    letter-spacing: 4px !important;
    margin-bottom: 14px;
  }
  .dh-title {
    font-size: clamp(52px, 14vw, 100px) !important;
    letter-spacing: -2px !important;
  }
  .dh-meta-row {
    gap: 16px !important;
    flex-wrap: wrap;
  }
  .dh-meta-sep {
    display: none;
  }
  .dh-meta-l {
    font-size: 7px !important;
    letter-spacing: 3px !important;
  }
  .dh-meta-v {
    font-size: 12px !important;
  }
  .dh-scroll {
    right: 20px;
    bottom: 20px;
  }

  .detail-body {
    grid-template-columns: 1fr !important;
    padding: 50px 20px !important;
    gap: 50px !important;
  }
  .detail-right {
    position: static !important;
    order: -1;
  }
  .detail-intro {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  .detail-p {
    font-size: 14px !important;
  }

  .detail-gallery {
    grid-template-columns: 1fr !important;
    gap: 3px;
    margin-top: 40px;
  }
  .gallery-item.wide {
    grid-column: span 1 !important;
    aspect-ratio: 16/9 !important;
  }

  .detail-section {
    margin-top: 50px;
  }
  .detail-section-title {
    font-size: 28px !important;
  }
  .detail-list li {
    font-size: 13px !important;
    padding: 14px 0;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2px;
    margin-top: 20px;
  }
  .result-item {
    padding: 24px 16px;
  }
  .result-num {
    font-size: 40px !important;
  }
  .result-l {
    font-size: 9px !important;
  }

  .meta-card {
    padding: 24px 20px;
  }
  .meta-card-label {
    font-size: 8px !important;
  }
  .meta-card-val {
    font-size: 14px !important;
  }
  .dur-num {
    font-size: 48px !important;
  }
  .dur-unit {
    font-size: 11px !important;
  }
  .tech-badge {
    font-size: 9px !important;
    padding: 6px 10px !important;
  }
  .live-btn {
    padding: 16px 20px !important;
    font-size: 10px !important;
  }
  .back-btn {
    padding: 14px 20px !important;
    font-size: 10px !important;
  }

  .proj-nav {
    grid-template-columns: 1fr !important;
  }
  .pn-item:first-child {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 254, 251, 0.08);
  }
  .pn-item {
    padding: 32px 20px !important;
  }
  .pn-name {
    font-size: 26px !important;
  }
  .pn-img-wrap {
    width: 64px !important;
    height: 44px !important;
  }
}

@media (max-width: 480px) {
  #detailHero {
    height: 70vh;
  }
  .dh-inner {
    padding: 0 16px 40px !important;
  }
  .dh-title {
    font-size: clamp(40px, 15vw, 72px) !important;
  }
  .detail-body {
    padding: 40px 16px !important;
  }
  .result-grid {
    grid-template-columns: 1fr !important;
  }
  .result-item {
    padding: 20px 16px;
  }
  .pn-item {
    padding: 24px 16px !important;
  }
  .meta-card {
    padding: 20px 16px;
  }
  .detail-intro {
    font-size: clamp(18px, 6vw, 24px) !important;
  }
}

/* ════════════════════════════════════════════════════════
   TABLET 769–1024
════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
  .nav {
    padding: 20px 32px;
  }
  .nav-links {
    gap: 20px !important;
  }
  .nav-links a {
    font-size: 10px !important;
  }
  .page-hero {
    padding: 140px 40px 60px !important;
  }
  .proj-list {
    padding: 0 40px 80px !important;
  }
  .filter-wrap {
    padding: 0 40px 48px !important;
  }
  .detail-body {
    grid-template-columns: 1fr 300px !important;
    padding: 80px 40px !important;
    gap: 50px !important;
  }
  .dh-inner {
    padding: 0 40px 60px !important;
  }
  .footer-contact-grid {
    gap: 36px !important;
  }
  .stats-section {
    padding: 80px 32px;
  }
}

/* ════════════════════════════════════════════════════════
   TOUCH
════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .project-card:active {
    transform: translateY(-4px);
  }
  .all-projects-btn:active,
  .contact-btn:active,
  .live-btn:active,
  .back-btn:active {
    opacity: 0.8;
    transform: scale(0.98);
  }
  .filter-btn:active {
    opacity: 0.8;
  }
  .proj-row:active {
    background: rgba(0, 254, 251, 0.04);
  }
  .service-panel:hover .service-bg img {
    opacity: 0.08 !important;
    filter: saturate(0.3) !important;
    transform: scale(1.05) !important;
  }
}

/* ════════════════════════════════════════════════════════
   360px ALTI
════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
  .container .letter {
    font-size: 13px !important;
  }
  .container .technology {
    font-size: 7px !important;
  }
  .logo-hero-text,
  .logo-hero-sub {
    font-size: 15px !important;
  }
  .typewriter-line {
    font-size: 24px !important;
  }
  .page-title {
    font-size: 40px !important;
  }
  .dh-title {
    font-size: 38px !important;
  }
  .proj-name {
    font-size: 29px !important;
  }
  .detail-body {
    padding: 32px 12px !important;
  }
  .dh-inner {
    padding: 0 12px 32px !important;
  }
  .proj-list {
    padding: 0 12px 40px !important;
  }
  .page-hero {
    padding: 90px 12px 32px !important;
  }
  .filter-wrap {
    padding: 0 12px 28px !important;
  }
}

/* ════════════════════════════════════════════════════════
   MOBİL SIDEBAR (hamburger menü)
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .mob-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    z-index: 9999 !important;
    border-right: none !important;
  }
  .sidebar-overlay {
    z-index: 9998 !important;
  }
  .sidebar-panels {
    width: 200% !important;
  }
  .sidebar-panel {
    width: 50% !important;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-head,
  .sidebar-sub-head {
    padding: 18px 20px !important;
    min-height: 62px !important;
    padding-top: max(18px, env(safe-area-inset-top)) !important;
  }
  .sidebar-close-text {
    font-size: 10px !important;
  }
  .sidebar-nav {
    padding: 8px 0 !important;
  }
  .sidebar-link,
  .sidebar-link-btn {
    padding: 18px 22px !important;
    font-size: clamp(22px, 6vw, 32px) !important;
    min-height: 60px;
  }
  .sidebar-link-arrow {
    width: 18px !important;
    height: 18px !important;
  }
  .sidebar-footer {
    padding: 20px !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
  }
  .sidebar-footer-links {
    gap: 12px !important;
    flex-wrap: wrap;
  }
  .sidebar-footer-links a {
    font-size: 11px !important;
  }
  .sidebar-cta-btn {
    padding: 16px 22px !important;
    font-size: 12px !important;
  }
  .sidebar-sub-link {
    padding: 16px 20px !important;
  }
  .sidebar-sub-title {
    font-size: 11px !important;
  }

  /* Sidebar açıkken body scroll lock */
  body.sidebar-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════════
   HİZMETLER v2 (index hscroll-wrap.v2) — MOBİLDE DİKEY
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hscroll-wrap.v2 {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  .hscroll-wrap.v2 .hscroll-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
    gap: 0 !important;
  }
  .service-panel.v2 {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding: 70px 24px 60px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 254, 251, 0.15) !important;
  }
  .service-panel.v2 .sp-title {
    font-size: clamp(36px, 9vw, 56px) !important;
    line-height: 1 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .service-panel.v2 .sp-num {
    margin-bottom: 20px !important;
    font-size: 11px !important;
  }
  .service-panel.v2 .sp-desc {
    font-size: 14px !important;
    max-width: 100% !important;
  }
  .service-panel.v2 .sp-bottom {
    margin-top: 40px;
    gap: 20px !important;
  }
  .service-panel.v2 .sp-arrow {
    width: 56px !important;
    height: 56px !important;
  }
  .service-panel.v2::after,
  .hs-progress {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════
   FOOTER CONTACT TOP (Birlikte Çalışalım) — MOBİLDE STACK
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .footer-c-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }
  .footer-c-heading {
    font-size: clamp(40px, 11vw, 72px) !important;
    line-height: 0.95 !important;
  }
  .footer-c-cta {
    width: auto;
    align-self: stretch;
    justify-content: center;
  }
}

/* ════════════════════════════════════════════════════════
   HAKKIMIZDA TIMELINE
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .tl-item {
    grid-template-columns: 60px 1px 1fr !important;
    gap: 0 14px !important;
  }
  .tl-content {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .tl-title {
    font-size: 17px !important;
    line-height: 1.25;
  }
  .tl-desc {
    font-size: 14px !important;
    max-width: 100% !important;
    line-height: 1.65 !important;
  }
  .tl-desc a,
  .tl-link {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .tl-link {
    font-size: 10px !important;
    padding: 9px 14px !important;
  }
  .tl-year {
    font-size: 10px !important;
    letter-spacing: 2px !important;
  }
}

/* ════════════════════════════════════════════════════════
   YATAY KAYMA ÖNLEME (about/hakkımızda + index)
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .about-hero,
  .hero-diagonal,
  .hero-diagonal-2,
  .cube-section,
  .cube-scene,
  .text-reveal-section,
  .stats-section,
  .projects-section,
  .contact-section,
  .footer-svg-section,
  .footer-contact,
  .logo-hero-pin,
  section {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .about-hero {
    padding: 110px 20px 60px !important;
    min-height: auto !important;
    height: auto !important;
    justify-content: flex-start !important;
  }
  .hero-diagonal,
  .hero-diagonal-2 {
    display: none !important;
  }
  /* Sayfa içeriğinin nav altında başlaması için padding */
  body {
    padding-top: 0;
  }
}

/* ════════════════════════════════════════════════════════
   SAFE AREA — iPhone notch
════════════════════════════════════════════════════════ */

@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .nav {
      padding-top: max(16px, env(safe-area-inset-top)) !important;
      padding-left: max(20px, env(safe-area-inset-left)) !important;
      padding-right: max(20px, env(safe-area-inset-right)) !important;
    }
    nav {
      padding-top: max(18px, env(safe-area-inset-top)) !important;
      padding-left: max(20px, env(safe-area-inset-left)) !important;
      padding-right: max(20px, env(safe-area-inset-right)) !important;
    }
    .footer-bottom,
    footer {
      padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }
  }
}

/* ════════════════════════════════════════════════════════
   GENEL MOBİL KORUMA (common issues)
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Hiçbir görsel/video/iframe ekranı taşmasın */
  img, video, iframe, svg {
    max-width: 100%;
    height: auto;
  }
  iframe {
    width: 100% !important;
  }

  /* Table'lar mobilde scroll edilebilir hale gelsin */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* Pre/code blokları taşmasın */
  pre, code {
    overflow-x: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
  }

  /* Uzun URL/email gibi metinler kırılsın */
  a, p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Genel section/container'lar viewport'u aşmasın */
  section, .container, .wrapper, main, article, header, footer, aside, div {
    max-width: 100vw;
  }

  /* Form elemanları full width */
  input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Google Maps embed */
  .map-embed,
  .map-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 280px !important;
  }

  /* Touch target minimum 44px (Apple/Google guideline) */
  button, .btn, a.button, .nav-cta, .contact-btn,
  .filter-btn, .all-projects-btn, .live-btn, .back-btn {
    min-height: 44px;
  }

  /* Yatay scroll kesin engelleme */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}

/* Çok dar ekranlar (320-360px) */
@media (max-width: 360px) {
  body {
    font-size: 14px;
  }
  h1, h2, h3 {
    word-break: break-word;
  }
}

/* ════════════════════════════════════════════════════════
   MANIFESTO (Teknolojiyi dönüştürüyoruz) — mobilde sığsın
════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .snake-section {
    padding: 60px 20px !important;
  }
  .snake-head {
    padding: 0 !important;
    margin-bottom: 40px !important;
    gap: 16px !important;
  }
  .snake-head h2 {
    font-size: clamp(28px, 8vw, 44px) !important;
    line-height: 1.05 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .snake-head small {
    font-size: 10px !important;
    letter-spacing: 0.2em !important;
    line-height: 1.6;
  }
}
@media (max-width: 480px) {
  .snake-head h2 {
    font-size: clamp(24px, 9vw, 36px) !important;
  }
}

/* Manifesto: sadece "dönüştürüyoruz" kelimesi (em) küçülsün */
@media (max-width: 768px) {
  .snake-head h2 em {
    font-size: 0.72em !important;
    display: inline-block;
    line-height: 1;
  }
}
