/* ============================================
   BITBYTE CREATIONS — Page-Specific Styles
   Mobile-First
   ============================================ */

/* ===== HOMEPAGE ===== */
.home-products { position: relative; }

.home-video {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

/* ===== PRODUCT LANDING PAGES ===== */

/* Landing hero */
.landing-hero {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-8);
  align-items: center;
  text-align: center;
  background: var(--gradient-hero);
  padding: calc(var(--header-height) + var(--space-4)) 0 var(--space-4);
  position: relative;
  overflow: hidden;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
}

.landing-hero__text {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.landing-hero__text h1 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.landing-hero__text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero__image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.landing-hero__image .phone-mockup {
  --phone-width: 200px;
  --phone-height: 410px;
}

.landing-hero__image img {
  max-width: 280px;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .landing-hero__text h1 { font-size: var(--text-3xl); }
  .landing-hero__text p { font-size: var(--text-base); }

  .landing-hero__image .phone-mockup {
    --phone-width: 250px;
    --phone-height: 510px;
  }
}

@media (min-width: 1024px) {
  .landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    min-height: 400px;
    text-align: left;
    padding: var(--space-8) 0 var(--space-8);
  }

  .landing-hero__text h1 { font-size: var(--text-5xl); }
  .landing-hero__text p { font-size: var(--text-lg); margin-left: 0; margin-right: 0; }

  .landing-hero__image .phone-mockup {
    --phone-width: 290px;
    --phone-height: 590px;
  }
}

/* Product features (split view) */
.product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
}

.product-features--reverse {
  flex-direction: column;
}

.product-features__image {
  text-align: center;
}

.product-features__image img {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  margin: 0 auto;
}

.product-features__image .phone-mockup {
  --phone-width: 200px;
  --phone-height: 410px;
  margin: 0 auto;
}

.product-features__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-features__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.product-features__check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(82, 196, 26, 0.1);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: var(--text-xs);
}

.product-features__item h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.product-features__item p {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .product-features--reverse { direction: rtl; }
  .product-features--reverse > * { direction: ltr; }

  .product-features__image img { max-width: 480px; }

  .product-features__image .phone-mockup {
    --phone-width: 260px;
    --phone-height: 530px;
  }

  .product-features__item h4 { font-size: var(--text-base); }
  .product-features__item p { font-size: var(--text-sm); }
}

/* Related products */
.related-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.related-product-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  transition: all var(--transition-base);
}

.related-product-link:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  background: var(--primary-bg);
}

.related-product-link svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .related-products {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .related-products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.portfolio-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

.portfolio-item__overlay h3 {
  color: var(--white);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.portfolio-item__overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  margin: 0;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .portfolio-item__overlay h3 { font-size: var(--text-lg); }
  .portfolio-item__overlay p { font-size: var(--text-sm); }
  .portfolio-item__overlay { padding: var(--space-6); }
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
}

.contact-info__label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-800);
}

.contact-info__value a {
  color: var(--primary);
  transition: color var(--transition-fast);
}

.contact-info__value a:hover { color: var(--primary-dark); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 1024px) {
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
  }

  .contact-form-card { padding: var(--space-10); }
}

/* ===== THANK YOU PAGE ===== */
.thankyou {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  color: var(--white);
  padding: var(--space-8);
}

.thankyou__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(82, 196, 26, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--success);
}

.thankyou__icon svg {
  width: 32px;
  height: 32px;
}

.thankyou h1 {
  color: var(--white);
  margin-bottom: var(--space-3);
}

.thankyou p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  max-width: 500px;
  margin: 0 auto var(--space-6);
}

@media (min-width: 768px) {
  .thankyou__icon { width: 80px; height: 80px; }
  .thankyou__icon svg { width: 40px; height: 40px; }
  .thankyou p { font-size: var(--text-lg); }
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding-top: calc(var(--header-height) + var(--space-10));
  padding-bottom: var(--space-10);
}

.legal-page h1 { margin-bottom: var(--space-6); }

.legal-page h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-page p {
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

.legal-page ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-page ul li {
  list-style: disc;
  margin-bottom: var(--space-2);
  color: var(--gray-600);
}

@media (min-width: 768px) {
  .legal-page {
    padding-top: calc(var(--header-height) + var(--space-16));
    padding-bottom: var(--space-16);
  }

  .legal-page h2 { font-size: var(--text-xl); }
}
