/* Common CSS for all pages */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

.relative.min-h-screen {
  min-height: 100vh;
  position: relative;
}

/* Alice font for titles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Alice', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Antialiasing for all text */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Video Background */
.page-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Alternative video style for some pages */
.page-bg-video.inset-style {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Gradient overlays for mobile Safari */
.video-gradient-overlay-top,
.video-gradient-overlay-bottom {
  position: fixed;
  left: 0;
  width: 100%;
  height: 50vh;
  pointer-events: none;
  z-index: 1;
  display: none; /* Hidden by default, shown on mobile */
}

.video-gradient-overlay-top {
  top: 0;
  background: linear-gradient(180deg, #007DAD 0%, rgba(0, 125, 173, 0.99) 6.67%, rgba(0, 125, 173, 0.96) 13.33%, rgba(0, 125, 173, 0.92) 20%, rgba(0, 125, 173, 0.85) 26.67%, rgba(0, 125, 173, 0.77) 33.33%, rgba(0, 125, 173, 0.67) 40%, rgba(0, 125, 173, 0.56) 46.67%, rgba(0, 125, 173, 0.44) 53.33%, rgba(0, 125, 173, 0.33) 60%, rgba(0, 125, 173, 0.23) 66.67%, rgba(0, 125, 173, 0.15) 73.33%, rgba(0, 125, 173, 0.08) 80%, rgba(0, 125, 173, 0.04) 86.67%, rgba(0, 125, 173, 0.01) 93.33%, rgba(0, 125, 173, 0.00) 100%);
}

.video-gradient-overlay-bottom {
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 125, 173, 0.00) 0%, rgba(0, 125, 173, 0.01) 6.67%, rgba(0, 125, 173, 0.04) 13.33%, rgba(0, 125, 173, 0.08) 20%, rgba(0, 125, 173, 0.15) 26.67%, rgba(0, 125, 173, 0.23) 33.33%, rgba(0, 125, 173, 0.33) 40%, rgba(0, 125, 173, 0.44) 46.67%, rgba(0, 125, 173, 0.56) 53.33%, rgba(0, 125, 173, 0.67) 60%, rgba(0, 125, 173, 0.77) 66.67%, rgba(0, 125, 173, 0.85) 73.33%, rgba(0, 125, 173, 0.92) 80%, rgba(0, 125, 173, 0.96) 86.67%, rgba(0, 125, 173, 0.99) 93.33%, #007DAD 100%);
}

/* Mobile and Safari specific styles */
@media screen and (max-width: 768px), screen and (-webkit-min-device-pixel-ratio: 1) {
  body {
    background-color: #007DAD;
  }
  
  .video-gradient-overlay-top,
  .video-gradient-overlay-bottom {
    display: block;
  }
  
  .page-bg-video {
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
  }
  
  .page-bg-video.inset-style {
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
  }
}

/* Hide gradients on desktop */
@media screen and (min-width: 769px) {
  .video-gradient-overlay-top,
  .video-gradient-overlay-bottom {
    display: none;
  }
}

/* Phone frame styles (for index.html) */
.phone-frame {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.phone-scroll-container {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.phone-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Form styles (for contact.html) */
input, textarea {
  background: rgba(255, 255, 255, 0.1);
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

/* Paragraph opacity (for text pages) */
p {
  opacity: 0.64 !important;
}
