/* ═══════════════════════════════════════════════════════════════
   Dogukan Akkaya – Apps Gallery
   Same design language: black + white, Apple-style
═══════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  cursor: default; /* ← kills text I-beam sitewide */
}
::-webkit-scrollbar { width: 0; height: 0; }
a, button { cursor: pointer; }
img { display: block; }

/* ── Navigation ───────────────────────────────────────────── */
.nav-glass {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}
.nav-back:hover { color: #fff; }

.nav-current {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
  user-select: none;
}

/* ── Scroll Reveal ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform  0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.18s; }
[data-reveal][data-delay="3"] { transition-delay: 0.28s; }

/* ── Pill ─────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  user-select: none;
}
.pill-dot {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Header ───────────────────────────────────────────────── */
.apps-header {
  padding: 128px 0 56px;
}

.apps-title {
  font-size: clamp(64px, 10vw, 112px);
  font-weight: 800;
  letter-spacing: clamp(-3px, -0.5vw, -5px);
  line-height: 1;
  margin: 22px 0 0;
  user-select: none;
}

/* ── Apps Grid ────────────────────────────────────────────── */
.apps-grid-section {
  padding: 104px 0 140px; /* 52px nav + 52px breathing room */
}
.apps-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── App Card ─────────────────────────────────────────────── */
.app-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.app-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.app-card-inner {
  flex: 1;
  padding: 52px;
  display: flex;
  flex-direction: column;
}

/* App icon */
.app-icon-wrap { margin-bottom: 28px; }
.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: block;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* App meta */
.app-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 10px;
  user-select: none;
}

.app-name {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: clamp(-1.5px, -0.3vw, -2.5px);
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}

.app-tagline {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 22px;
  letter-spacing: -0.2px;
  user-select: none;
}

.app-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.44);
  line-height: 1.72;
  max-width: 480px;
  margin-bottom: 38px;
}

/* Action buttons */
.app-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background 0.2s ease;
}
.btn-learn:hover {
  background: #f0f0f0;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.1);
}
.btn-learn:active { transform: scale(0.97); }

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.65);
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-appstore:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ── App Preview – iPhone 17 Pro ──────────────────────────── */
.app-preview {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 52px 0 8px;
  flex-shrink: 0;
}

/* ─ iPhone 17 Pro CSS mockup ──────────────────────────────── */
/*
   iPhone 17 Pro design details:
   - Titanium finish (darker, more refined than SS)
   - Thinner display bezels (~1.9mm)
   - Dynamic Island (pill, 90×30px scaled)
   - Action Button (left top)
   - Camera Control (right, below power, new oblong shape)
   - ProMotion 120Hz, A19 Pro chip
*/
.iphone17 {
  width: 194px;
  height: 420px;
  position: relative;
  border-radius: 52px;
  /* Titanium gradient – cooler, darker than aluminum */
  background: linear-gradient(
    148deg,
    #4E4E50 0%,
    #1C1C1E 38%,
    #232325 65%,
    #3A3A3C 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.75),
    0 50px 110px rgba(0, 0, 0, 0.72),
    0 18px 40px rgba(0, 0, 0, 0.38);
  flex-shrink: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.55s ease;
}

/* Titanium sheen highlight */
.iphone17::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 52px;
  background: linear-gradient(
    128deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 2;
}

.app-card:hover .iphone17 {
  transform: translateY(-22px) rotate(-1.5deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.75),
    0 80px 160px rgba(0, 0, 0, 0.8),
    0 30px 60px rgba(0, 0, 0, 0.42);
}

/* Screen – ultra-thin bezels (≈6px) */
.iphone17-screen {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: #000;
  border-radius: 47px;
  overflow: hidden;
  z-index: 1;
}
.iphone17-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dynamic Island */
.iphone17-island {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 30px;
  background: #000;
  border-radius: 18px;
  z-index: 3;
}

/* ── Side buttons ─────────────────────────────────────────── */
/* Action button – left, top */
.iphone17 .btn-action {
  position: absolute;
  left: -2.5px;
  top: 104px;
  width: 2.5px;
  height: 28px;
  background: #2A2A2C;
  border-radius: 2px 0 0 2px;
  z-index: 3;
}
/* Volume up */
.iphone17 .btn-vup {
  position: absolute;
  left: -2.5px;
  top: 148px;
  width: 2.5px;
  height: 62px;
  background: #2A2A2C;
  border-radius: 2px 0 0 2px;
  z-index: 3;
}
/* Volume down */
.iphone17 .btn-vdn {
  position: absolute;
  left: -2.5px;
  top: 222px;
  width: 2.5px;
  height: 62px;
  background: #2A2A2C;
  border-radius: 2px 0 0 2px;
  z-index: 3;
}
/* Power / sleep */
.iphone17 .btn-power {
  position: absolute;
  right: -2.5px;
  top: 164px;
  width: 2.5px;
  height: 88px;
  background: #2A2A2C;
  border-radius: 0 2px 2px 0;
  z-index: 3;
}
/* Camera Control – new oblong button, right side below power */
.iphone17 .btn-camctrl {
  position: absolute;
  right: -2.5px;
  top: 270px;
  width: 2.5px;
  height: 44px;
  background: #323234;
  border-radius: 0 2px 2px 0;
  z-index: 3;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .app-card { flex-direction: column; }
  .app-preview {
    padding: 0 52px 44px;
    justify-content: flex-start;
  }
  .iphone17 { width: 158px; height: 342px; border-radius: 44px; }
  .iphone17::before { border-radius: 44px; }
  .iphone17-screen { border-radius: 39px; }
  .iphone17-island { width: 74px; height: 25px; top: 11px; border-radius: 14px; }
  .iphone17 .btn-action { top: 85px; height: 22px; }
  .iphone17 .btn-vup    { top: 120px; height: 50px; }
  .iphone17 .btn-vdn    { top: 180px; height: 50px; }
  .iphone17 .btn-power  { top: 134px; height: 72px; }
  .iphone17 .btn-camctrl { top: 220px; height: 36px; }
}

@media (max-width: 600px) {
  .app-card-inner { padding: 36px 28px; }
  .app-preview { padding: 0 28px 36px; }
  .app-icon { width: 64px; height: 64px; border-radius: 18px; }
  .apps-header { padding: 110px 0 44px; }
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
  background: #000;
}
footer a {
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover { color: rgba(255, 255, 255, 0.65); }
