/* ============================================================
   iOS App Development - Premium Apple-Inspired UI
   ============================================================ */

/* --- HERO SECTION --- */
.ios-hero {
  position: relative;
  min-height: 75svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fbfbfd;
  overflow: hidden;
  padding-top: 100px;
}

.ios-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(0,0,0,0.02) 0%, transparent 60%);
  z-index: 0;
}

.ios-hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181,36,106,0.04) 0%, transparent 60%);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(50px);
  z-index: 0;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite alternate;
}

.ios-hero-container {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.ios-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.7);
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.ios-title {
  font-family: var(--font-headings);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.ios-title span {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ios-desc {
  font-size: 1.15rem;
  color: #86868b;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  font-weight: 400;
}

/* --- IOS BENTO GRID --- */
.ios-bento-sec {
  padding: 8rem 0 4rem;
  background: var(--clr-surface);
}

.bento-header {
  text-align: center;
  margin-bottom: 4rem;
}

.bento-header h2 {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.bento-header p {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.bento-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 320px);
  gap: 1.5rem;
}

.bento-cell {
  background: var(--clr-surface-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s;
}

.bento-cell:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.02);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 1;
  flex-direction: row;
  align-items: center;
}

.bento-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
  grid-row: span 1;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-surface-2) 0%, var(--clr-surface-3) 100%);
}

.bento-content {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

.bento-large .bento-content {
  flex: 1;
}

.bento-large .bento-visual {
  flex: 1;
  height: 100%;
  padding: 2rem 2rem 0 0;
  display: flex;
  align-items: flex-end;
}

.bento-large img {
  width: 100%;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-cell:hover .bento-large img {
  transform: translateY(-10px);
}

.bento-tall .bento-visual {
  flex: 1;
  padding: 0 2rem 2rem;
  display: flex;
  align-items: flex-end;
}

.bento-tall img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-cell:hover .bento-tall img {
  transform: scale(1.03);
}

.bento-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.bento-cell h3 {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--clr-primary);
  line-height: 1.2;
}

.bento-wide .bento-flex {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.bento-wide p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 300px;
}

/* --- IOS STICKY SHOWCASE --- */
.ios-sticky-sec {
  padding: 6rem 0 8rem;
  background: var(--clr-surface);
  position: relative;
}

.ios-sticky-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: flex-start;
}

.ios-sticky-visual {
  position: sticky;
  top: 120px;
  height: calc(100vh - 240px);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  padding: 1rem;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.main-sticky-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.sticky-float-card {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.2rem 1.8rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--clr-primary);
  animation: float 5s ease-in-out infinite alternate;
}

.sticky-float-card i {
  color: var(--clr-accent);
  font-size: 1.6rem;
}

.ios-sticky-content {
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 8rem; /* large gaps for scrolling effect */
}

.sticky-text-block {
  background: var(--clr-surface-2);
  padding: 3.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.sticky-text-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--clr-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sticky-text-block:hover {
  transform: translateX(-10px);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.sticky-text-block:hover::before {
  transform: scaleY(1);
}

.st-icon {
  width: 60px;
  height: 60px;
  background: var(--clr-surface);
  color: var(--clr-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.02);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sticky-text-block:hover .st-icon {
  transform: scale(1.1) rotate(-5deg);
}

.sticky-text-block h3 {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

.sticky-text-block p {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .bento-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-large, .bento-tall, .bento-wide {
    grid-column: span 1;
    grid-row: auto;
  }
  .bento-large {
    flex-direction: column;
  }
  .bento-large .bento-visual {
    padding: 0 2rem 2rem;
  }
  .bento-tall .bento-visual {
    padding: 0 2rem 2rem;
    margin-top: 2rem;
  }
  .bento-wide .bento-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .ios-sticky-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .ios-sticky-visual {
    position: relative;
    top: 0;
    height: auto;
    min-height: auto;
  }
  .sticky-float-card {
    right: 10px;
  }
  .ios-sticky-content {
    gap: 3rem;
    padding: 0;
  }
  .sticky-text-block:hover {
    transform: none;
  }
}
