/**
 * Gurbani Explorer Brochureware Site - Custom Styles
 * 
 * This stylesheet complements Tailwind CSS with:
 * - CSS custom properties for the sikhi color palette
 * - Gurmukhi font styling
 * - Responsive breakpoints
 * - Accessibility enhancements (focus indicators, touch targets)
 * - Animations and transitions
 * - Print styles
 */

/* ============================================
   CSS Custom Properties - Sikhi Color Palette
   ============================================ */

:root {
  /* Saffron palette - primary accent color */
  --saffron-50: #fff8f1;
  --saffron-100: #feecdc;
  --saffron-200: #fcd6b8;
  --saffron-300: #f9b889;
  --saffron-400: #f59352;
  --saffron-500: #f27623;
  --saffron-600: #e35d0a;
  --saffron-700: #bc470a;
  --saffron-800: #963910;
  --saffron-900: #793110;

  /* Sikhi palette - primary brand color (deep blue) */
  --sikhi-50: #f0f5ff;
  --sikhi-100: #e0ebff;
  --sikhi-200: #c7d9ff;
  --sikhi-300: #a3c0ff;
  --sikhi-400: #7a9eff;
  --sikhi-500: #4a6fa5;
  --sikhi-600: #3d5a8a;
  --sikhi-700: #2d4570;
  --sikhi-800: #1e3050;
  --sikhi-900: #152238;

  /* Primary palette - warm orange */
  --primary-50: #fef7ee;
  --primary-100: #fdedd6;
  --primary-200: #fad7ac;
  --primary-300: #f6ba77;
  --primary-400: #f19340;
  --primary-500: #ed7419;
  --primary-600: #de5a0f;
  --primary-700: #b8440f;
  --primary-800: #933714;
  --primary-900: #762f13;

  /* Semantic colors */
  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;

  /* Focus ring color */
  --focus-ring-color: var(--saffron-500);
  --focus-ring-offset: 2px;
  --focus-ring-width: 2px;

  /* Touch target minimum size (WCAG 2.5.5) */
  --touch-target-min: 44px;

  /* Transition defaults */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ============================================
   Gurmukhi Font Styling
   ============================================ */

.gurmukhi {
  font-family: 'Noto Sans Gurmukhi', serif;
  line-height: 1.4;
}

/* Ensure Gurmukhi text renders well at various sizes */
.gurmukhi-sm {
  font-family: 'Noto Sans Gurmukhi', serif;
  font-size: 1rem;
  line-height: 1.5;
}

.gurmukhi-lg {
  font-family: 'Noto Sans Gurmukhi', serif;
  font-size: 1.5rem;
  line-height: 1.4;
}

.gurmukhi-xl {
  font-family: 'Noto Sans Gurmukhi', serif;
  font-size: 2rem;
  line-height: 1.3;
}

/* ============================================
   Base Styles & Resets
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Prevent font size inflation on mobile */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Smooth scrolling for anchor links */
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default margins */
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================
   Focus Indicators - Accessibility
   ============================================ */

/* Remove default focus outline and add custom focus ring */
*:focus {
  outline: none;
}

/* Visible focus states for keyboard navigation */
*:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Form inputs - saffron-500 focus ring */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
  border-color: var(--saffron-500);
}

/* Buttons - visible focus ring */
button:focus-visible,
a:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--sikhi-900);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   Touch Device Support
   ============================================ */

/* Ensure adequate touch targets (minimum 44x44px) */
button,
[role="button"],
input[type="submit"],
input[type="button"],
a {
  min-height: var(--touch-target-min);
}

/* Form inputs - full width on mobile, adequate height */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  textarea,
  select {
    width: 100%;
    min-height: var(--touch-target-min);
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 12px 16px;
  }

  /* Larger touch targets for buttons on mobile */
  button,
  [role="button"],
  input[type="submit"] {
    min-height: 48px;
    padding: 12px 24px;
  }
}

/* Prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Mobile (< 768px) - Base styles */
/* Single column layout, reduced padding, smaller text */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Medium padding and text sizes */
  .hero-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
  /* Full padding and text sizes */
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  /* Feature cards hover effect */
  .feature-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  }

  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
}

/* ============================================
   Animations & Transitions
   ============================================ */

/* Fade in animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

/* Smooth transitions for interactive elements */
a,
button,
input,
textarea {
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast);
}

/* Banner slide down animation */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.banner-animate {
  animation: slideDown var(--transition-normal) ease-out;
}

/* ============================================
   Form Styling Enhancements
   ============================================ */

/* Error state for form inputs */
.input-error {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 1px var(--color-error);
}

/* Success state for form inputs */
.input-success {
  border-color: var(--color-success) !important;
}

/* Form field focus within container */
.form-field:focus-within label {
  color: var(--saffron-600);
}

/* Disabled state */
button:disabled,
input:disabled,
textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading state for submit button */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Color Contrast - WCAG AA Compliance
   ============================================ */

/*
 * WCAG AA requires:
 * - 4.5:1 contrast ratio for normal text
 * - 3:1 contrast ratio for large text (18pt+ or 14pt+ bold)
 * - 3:1 contrast ratio for UI components and graphics
 *
 * Color contrast verification:
 * - sikhi-800 (#1e3050) on white: 10.5:1 ✓
 * - sikhi-900 (#152238) on white: 13.8:1 ✓
 * - saffron-500 (#f27623) on white: 3.1:1 (use for large text/UI only)
 * - saffron-600 (#e35d0a) on white: 3.8:1 (use for large text/UI only)
 * - saffron-700 (#bc470a) on white: 5.0:1 ✓
 * - gray-600 (#4b5563) on white: 5.9:1 ✓
 * - gray-700 (#374151) on white: 8.6:1 ✓
 * - white on sikhi-800: 10.5:1 ✓
 * - white on sikhi-900: 13.8:1 ✓
 * - white on saffron-500: 3.1:1 (acceptable for large text)
 * - sikhi-200 (#c7d9ff) on sikhi-900: 8.2:1 ✓
 */

/* Ensure text on saffron backgrounds meets contrast requirements */
.text-on-saffron {
  color: white;
  /* White on saffron-500 is 3.1:1 - acceptable for large text only */
  font-weight: 500;
  font-size: 1rem;
}

/* High contrast text utility */
.high-contrast-text {
  color: var(--sikhi-800);
}

/* Link colors with sufficient contrast */
a {
  color: var(--sikhi-700);
}

a:hover {
  color: var(--sikhi-800);
}

/* Error text - red-700 for better contrast */
.error-text {
  color: #b91c1c; /* red-700: 5.6:1 contrast on white */
}

/* Success text - green-700 for better contrast */
.success-text {
  color: #047857; /* green-700: 5.9:1 contrast on white */
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  /* Hide non-essential elements */
  #status-banner,
  .banner-dismiss,
  button[type="submit"],
  .skip-link {
    display: none !important;
  }

  /* Reset backgrounds for printing */
  body {
    background: white !important;
    color: black !important;
  }

  header,
  footer {
    background: white !important;
    color: black !important;
  }

  /* Ensure text is readable */
  * {
    color: black !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Show URLs for links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Don't show URL for internal links */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    page-break-inside: avoid;
  }

  /* Ensure form section is visible but not interactive */
  #interest-form {
    border: 1px solid #ccc;
    padding: 1rem;
  }
}

/* ============================================
   Reduced Motion Support
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   High Contrast Mode Support
   ============================================ */

@media (prefers-contrast: high) {
  :root {
    --focus-ring-width: 3px;
  }

  button,
  input,
  textarea {
    border-width: 2px;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================
   Dark Mode Support (Future Enhancement)
   ============================================ */

@media (prefers-color-scheme: dark) {
  /* 
   * Dark mode styles can be added here in the future.
   * For now, the site uses light mode only to match
   * the spiritual/sacred nature of the content.
   */
}


/* ============================================
   iPhone Bezel Component - 3D Mockup
   ============================================ */

/* Container for the phone mockup with 3D perspective */
.phone-mockup {
  position: relative;
  display: inline-block;
  perspective: 1000px;
}

/* iPhone bezel frame - Default (black) */
.iphone-bezel {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border-radius: 50px;
  padding: 14px;
  box-shadow: 
    /* Outer glow */
    0 0 0 1px rgba(255, 255, 255, 0.1),
    /* Main shadow - 3D depth */
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 12px 24px -8px rgba(0, 0, 0, 0.4),
    /* Subtle inner shadow for depth */
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3);
  transform: rotateY(-5deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
}

/* iPhone bezel - Orange/Saffron (like iPhone 16/17 orange) */
.iphone-bezel-orange,
.phone-mockup-orange .iphone-bezel {
  background: linear-gradient(145deg, 
    #e8652b 0%, 
    #f27623 25%, 
    #ff8534 50%, 
    #f27623 75%, 
    #d85a1f 100%
  );
  box-shadow: 
    /* Outer glow - warm orange */
    0 0 0 1px rgba(255, 180, 120, 0.3),
    0 0 20px rgba(242, 118, 35, 0.2),
    /* Main shadow - 3D depth */
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 12px 24px -8px rgba(0, 0, 0, 0.3),
    /* Subtle inner highlights for metallic effect */
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* Side buttons for orange variant */
.phone-mockup-orange .iphone-bezel::after {
  background: linear-gradient(180deg, #d85a1f 0%, #c44d15 50%, #d85a1f 100%);
}

.phone-mockup-orange .iphone-power-btn {
  background: linear-gradient(180deg, #d85a1f 0%, #c44d15 50%, #d85a1f 100%);
}

/* Other color variants */

/* Teal/Blue-Green */
.iphone-bezel-teal,
.phone-mockup-teal .iphone-bezel {
  background: linear-gradient(145deg, 
    #0d7377 0%, 
    #14919b 25%, 
    #1aa3ad 50%, 
    #14919b 75%, 
    #0d7377 100%
  );
  box-shadow: 
    0 0 0 1px rgba(100, 200, 210, 0.3),
    0 0 20px rgba(20, 145, 155, 0.2),
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 12px 24px -8px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* Pink */
.iphone-bezel-pink,
.phone-mockup-pink .iphone-bezel {
  background: linear-gradient(145deg, 
    #e84393 0%, 
    #fd79a8 25%, 
    #ff8fab 50%, 
    #fd79a8 75%, 
    #e84393 100%
  );
  box-shadow: 
    0 0 0 1px rgba(255, 150, 180, 0.3),
    0 0 20px rgba(253, 121, 168, 0.2),
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 12px 24px -8px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* White/Silver */
.iphone-bezel-white,
.phone-mockup-white .iphone-bezel {
  background: linear-gradient(145deg, 
    #e8e8e8 0%, 
    #f5f5f5 25%, 
    #ffffff 50%, 
    #f5f5f5 75%, 
    #e0e0e0 100%
  );
  box-shadow: 
    0 0 0 1px rgba(200, 200, 200, 0.5),
    0 25px 50px -12px rgba(0, 0, 0, 0.3),
    0 12px 24px -8px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.phone-mockup-white .iphone-bezel::before {
  /* Notch stays black on white phone */
  background: #000;
}

/* Hover effect - subtle rotation */
.phone-mockup:hover .iphone-bezel {
  transform: rotateY(0deg) rotateX(0deg);
}

/* iPhone notch (iPhone 14/14 Plus style - wider notch, not Dynamic Island) */
.iphone-bezel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 30px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

/* Screen container - iPhone 14 Plus aspect ratio */
.iphone-screen {
  position: relative;
  background: #fff;
  border-radius: 38px;
  overflow: hidden;
  /* iPhone 14 Plus: 1284 x 2778 pixels = ~19.5:9 */
  width: 280px;
  aspect-ratio: 9 / 19.5;
}

/* Screenshot image inside screen - no margin needed since screenshots include status bar */
.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Side buttons - volume */
.iphone-bezel::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 120px;
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 50%, #3a3a3a 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: 
    0 30px 0 0 linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 50%, #3a3a3a 100%),
    inset 1px 0 1px rgba(255, 255, 255, 0.1);
}

/* Power button on right side */
.iphone-power-btn {
  position: absolute;
  right: -3px;
  top: 140px;
  width: 3px;
  height: 80px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 50%, #3a3a3a 100%);
  border-radius: 0 2px 2px 0;
  box-shadow: inset -1px 0 1px rgba(255, 255, 255, 0.1);
}

/* Reflection overlay for glass effect */
.iphone-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 38px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* ============================================
   iPhone Status Bar Overlay - Realistic iOS 17
   ============================================ */

.iphone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 28px;
  z-index: 15;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

/* Light status bar (for dark backgrounds) */
.iphone-status-bar {
  color: #000;
}

/* Dark status bar variant (for light backgrounds) */
.iphone-status-bar.status-bar-light {
  color: #fff;
}

/* Left side - Time (positioned to left of notch) */
.status-bar-left {
  display: flex;
  align-items: center;
  width: 54px;
}

.status-bar-time {
  font-size: 15px;
  font-weight: 600;
  font-feature-settings: 'tnum';
  letter-spacing: -0.24px;
}

/* Center spacer for Dynamic Island */
.status-bar-center {
  width: 125px;
  flex-shrink: 0;
}

/* Right side - Icons (positioned to right of notch) */
.status-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

/* Cellular signal - iOS style with rounded bars */
.status-cellular {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 11px;
  margin-right: 1px;
}

.status-cellular span {
  width: 3px;
  background: currentColor;
  border-radius: 1px;
}

.status-cellular span:nth-child(1) { height: 3px; }
.status-cellular span:nth-child(2) { height: 5px; }
.status-cellular span:nth-child(3) { height: 7px; }
.status-cellular span:nth-child(4) { height: 9px; }

/* Inactive bars (no signal) */
.status-cellular.signal-3 span:nth-child(4) { opacity: 0.35; }
.status-cellular.signal-2 span:nth-child(3),
.status-cellular.signal-2 span:nth-child(4) { opacity: 0.35; }
.status-cellular.signal-1 span:nth-child(2),
.status-cellular.signal-1 span:nth-child(3),
.status-cellular.signal-1 span:nth-child(4) { opacity: 0.35; }

/* WiFi icon - realistic iOS style */
.status-wifi {
  width: 15px;
  height: 11px;
  position: relative;
  margin-right: 1px;
}

.status-wifi svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Battery container */
.status-battery {
  display: flex;
  align-items: center;
  margin-left: 2px;
}

/* Battery body - realistic iOS proportions */
.status-battery-body {
  width: 22px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 2.5px;
  position: relative;
  opacity: 0.4;
}

/* Battery level fill */
.status-battery-level {
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  bottom: 1.5px;
  width: calc(100% - 3px);
  background: currentColor;
  border-radius: 1px;
  opacity: 1;
}

/* Battery percentage variants */
.status-battery[data-level="100"] .status-battery-level { width: calc(100% - 3px); }
.status-battery[data-level="80"] .status-battery-level { width: calc(80% - 2px); }
.status-battery[data-level="60"] .status-battery-level { width: calc(60% - 2px); }
.status-battery[data-level="40"] .status-battery-level { width: calc(40% - 2px); }
.status-battery[data-level="20"] .status-battery-level { width: calc(20% - 2px); background: #ff3b30; }

/* Battery cap (nub on right) */
.status-battery-cap {
  width: 1.5px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
  margin-left: 0.5px;
  opacity: 0.4;
}

/* Battery percentage text */
.status-battery-percent {
  font-size: 14px;
  font-weight: 400;
  margin-right: 3px;
  font-feature-settings: 'tnum';
}

/* Charging indicator */
.status-battery.charging .status-battery-level {
  background: #30d158;
}

.status-battery.charging .status-battery-body {
  opacity: 0.5;
}

/* ============================================
   Status Bar Size Variants
   ============================================ */

/* Small mockup adjustments */
.phone-mockup-sm .iphone-status-bar {
  height: 34px;
  padding: 0 14px 0 20px;
  font-size: 12px;
}

.phone-mockup-sm .status-bar-time { font-size: 12px; }
.phone-mockup-sm .status-bar-center { width: 90px; }
.phone-mockup-sm .status-bar-right { gap: 3px; }

.phone-mockup-sm .status-cellular { height: 9px; }
.phone-mockup-sm .status-cellular span { width: 2.5px; }
.phone-mockup-sm .status-cellular span:nth-child(1) { height: 2.5px; }
.phone-mockup-sm .status-cellular span:nth-child(2) { height: 4px; }
.phone-mockup-sm .status-cellular span:nth-child(3) { height: 5.5px; }
.phone-mockup-sm .status-cellular span:nth-child(4) { height: 7px; }

.phone-mockup-sm .status-wifi { width: 12px; height: 9px; }

.phone-mockup-sm .status-battery-body { width: 18px; height: 9px; }
.phone-mockup-sm .status-battery-cap { width: 1px; height: 3px; }
.phone-mockup-sm .status-battery-percent { font-size: 11px; }

/* Large mockup adjustments */
.phone-mockup-lg .iphone-status-bar {
  height: 48px;
  padding: 0 24px 0 32px;
  font-size: 17px;
}

.phone-mockup-lg .status-bar-time { font-size: 17px; }
.phone-mockup-lg .status-bar-center { width: 140px; }
.phone-mockup-lg .status-bar-right { gap: 5px; }

.phone-mockup-lg .status-cellular { height: 12px; }
.phone-mockup-lg .status-cellular span { width: 3.5px; }
.phone-mockup-lg .status-cellular span:nth-child(1) { height: 3.5px; }
.phone-mockup-lg .status-cellular span:nth-child(2) { height: 5.5px; }
.phone-mockup-lg .status-cellular span:nth-child(3) { height: 8px; }
.phone-mockup-lg .status-cellular span:nth-child(4) { height: 10px; }

.phone-mockup-lg .status-wifi { width: 17px; height: 12px; }

.phone-mockup-lg .status-battery-body { width: 25px; height: 12px; }
.phone-mockup-lg .status-battery-cap { width: 2px; height: 5px; }
.phone-mockup-lg .status-battery-percent { font-size: 16px; }

/* Larger variant for hero sections */
.phone-mockup-lg .iphone-screen {
  width: 320px;
}

.phone-mockup-lg .iphone-bezel {
  border-radius: 55px;
  padding: 16px;
}

.phone-mockup-lg .iphone-screen img,
.phone-mockup-lg .iphone-reflection {
  border-radius: 42px;
}

.phone-mockup-lg .iphone-bezel::before {
  width: 160px;
  height: 34px;
  border-radius: 0 0 22px 22px;
}

/* Smaller variant for feature grids */
.phone-mockup-sm .iphone-screen {
  width: 200px;
}

.phone-mockup-sm .iphone-bezel {
  border-radius: 36px;
  padding: 10px;
}

.phone-mockup-sm .iphone-screen img,
.phone-mockup-sm .iphone-reflection {
  border-radius: 28px;
}

.phone-mockup-sm .iphone-bezel::before {
  width: 100px;
  height: 22px;
  border-radius: 0 0 14px 14px;
}

/* Floating animation for visual interest */
@keyframes float {
  0%, 100% {
    transform: rotateY(-5deg) rotateX(2deg) translateY(0);
  }
  50% {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
  }
}

.phone-mockup-float .iphone-bezel {
  animation: float 4s ease-in-out infinite;
}

/* No animation variant */
.phone-mockup-static .iphone-bezel {
  transform: none;
}

.phone-mockup-static:hover .iphone-bezel {
  transform: none;
}

/* Shadow-only variant (no 3D rotation) */
.phone-mockup-flat .iphone-bezel {
  transform: none;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 60px -15px rgba(0, 0, 0, 0.4),
    0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .iphone-screen {
    width: 220px;
  }
  
  .iphone-bezel {
    border-radius: 40px;
    padding: 12px;
  }
  
  .iphone-screen img,
  .iphone-reflection {
    border-radius: 32px;
  }
  
  .iphone-bezel::before {
    width: 110px;
    height: 24px;
    border-radius: 0 0 16px 16px;
  }
  
  .phone-mockup-lg .iphone-screen {
    width: 260px;
  }
}


/* ============================================
   Phone Carousel Styles
   ============================================ */

.phone-carousel {
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  min-height: 400px; /* Prevent layout shift */
}

/* Slides stack on top of each other for crossfade */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

.carousel-dot:focus {
  outline: 2px solid var(--saffron-500);
  outline-offset: 2px;
}


/* ============================================
   Desktop Browser Mockup Styles
   ============================================ */

.browser-mockup {
  background: #fff;
  border-radius: 12px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 12px 24px -8px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  max-width: 100%;
}

/* Browser header bar */
.browser-header {
  background: linear-gradient(180deg, #e8e8e8 0%, #d8d8d8 100%);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #ccc;
}

/* Traffic light buttons */
.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot.red {
  background: linear-gradient(180deg, #ff5f57 0%, #e0443e 100%);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

.browser-dot.yellow {
  background: linear-gradient(180deg, #febc2e 0%, #dea123 100%);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

.browser-dot.green {
  background: linear-gradient(180deg, #28c840 0%, #1aab29 100%);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

/* Address bar */
.browser-address-bar {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #666;
  text-align: center;
  border: 1px solid #ddd;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Browser content area */
.browser-content {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.browser-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop carousel */
.desktop-carousel {
  position: relative;
}

.desktop-carousel .carousel-container {
  position: relative;
  overflow: hidden;
}

.desktop-carousel .carousel-track {
  position: relative;
  width: 100%;
  min-height: 300px;
}

.desktop-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.desktop-carousel .carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Responsive browser mockup */
@media (max-width: 767px) {
  .browser-header {
    padding: 8px 12px;
    gap: 8px;
  }
  
  .browser-dot {
    width: 10px;
    height: 10px;
  }
  
  .browser-address-bar {
    font-size: 11px;
    padding: 4px 8px;
  }
}


/* ============================================
   View Toggle (Mobile/Desktop Switch)
   ============================================ */

.view-toggle,
#global-view-toggle {
  display: flex;
  justify-content: center;
}

.toggle-container {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #e5e7eb;
  border-radius: 9999px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.toggle-btn:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.5);
}

.toggle-btn.active {
  background: #fff;
  color: var(--saffron-600);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn:focus-visible {
  outline: 2px solid var(--saffron-500);
  outline-offset: 2px;
}

/* Mockup view containers */
.mockup-views {
  position: relative;
}

.mockup-view {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mockup-view.active {
  display: block;
  opacity: 1;
}


/* ============================================
   Lightbox - Mobile Full-Screen Preview
   ============================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-image-container {
  max-width: 100%;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 16px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  max-width: 90%;
}


/* ============================================
   Hover Preview - Desktop Enlarged View
   ============================================ */

.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hover-preview.active {
  opacity: 1;
  visibility: visible;
}

.hover-preview-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hover-preview-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.hover-preview.active .hover-preview-content {
  transform: scale(1);
}

/* Desktop screenshot preview */
.hover-preview-desktop .hover-preview-content {
  width: 70vw;
  max-width: 1200px;
  max-height: 85vh;
}

.hover-preview-desktop .hover-preview-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

/* Mobile screenshot preview */
.hover-preview-mobile .hover-preview-content {
  width: auto;
  max-width: 90vw;
  max-height: 85vh;
}

.hover-preview-mobile .hover-preview-image {
  width: auto;
  height: 75vh;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.hover-preview-caption {
  padding: 12px 16px;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  border-top: 1px solid #e5e7eb;
  color: var(--sikhi-800);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Cursor hint for clickable previews */
.screenshot-preview {
  transition: transform 0.2s ease;
}

@media (min-width: 769px) {
  .screenshot-preview:hover {
    transform: scale(1.02);
  }
}

/* Hide hover preview on mobile */
@media (max-width: 768px) {
  .hover-preview {
    display: none !important;
  }
}
