/* Additional custom styles for the static homepage */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 50px;
}

/* Mobile App Modal Styles */
.mobile-app-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-app-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.mobile-app-modal-content {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 444px;
  /* Matches XS Dialog maxWidth */
  box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2),
    0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.mobile-app-modal-logo {
  display: block;
  margin: 24px auto;
  width: 175px;
  max-height: 50px;
}

.mobile-app-modal-title {
  margin-bottom: 48px;
  color: #005f74;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}

.mobile-app-modal-subtitle {
  margin-bottom: 24px;
  color: #37474f;
  font-size: 0.875rem;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-weight: 400;
  line-height: 1.43;
}

.mobile-app-modal-actions {
  display: flex;
  gap: 16px;
}

.mobile-app-modal-btn {
  width: 100%;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.75;
  text-transform: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  color: white;
  background-color: #005f74;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
    0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-app-modal-btn:hover {
  background-color: #004f64;
}

.font-lato {
  font-family: "Lato", sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom gradient text */
.gradient-text {
  background: linear-gradient(to bottom, #e45e35, #7d2a10);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Video container for aspect ratio */
video {
  max-width: 100%;
  height: auto;
}

/* Button hover effects */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .xxs\:text-\[25px\] {
    font-size: 25px;
  }
}

/* Custom tailwind extensions that might not be in CDN */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.text-transparent {
  color: transparent;
}

/* Grid gap fixes for older browsers */
.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Ensure proper spacing */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.demo-img {
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.demo-button {
  display: none;
  transition: opacity 0.3s ease-in-out;
}

.demo-container:hover .demo-img {
  display: none;
}

.demo-container:hover .demo-button {
  display: block;
}

/* Hide hover effect on mobile */
@media (max-width: 768px) {
  .demo-img {
    display: block !important;
  }

  .demo-button {
    display: none !important;
  }

  .demo-container:hover .demo-img {
    display: block !important;
  }
}

.static-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1100;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("assets/home/DesktopBg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
    0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .static-header {
    background-image: url("assets/home/mobilebackground.webp");
  }
}

.static-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 50px;
}

.static-logo-and-menu-container {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
  gap: 16px;
  margin-left: 0;
}

@media (min-width: 1024px) {
  .static-logo-and-menu-container {
    margin-left: 24px;
    gap: 24px;
  }
}

.static-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
}

@media (min-width: 768px) {
  .static-container {
    flex-grow: 0;
  }
}

.static-logo-desktop {
  max-height: 25px;
  max-width: 175px;
  cursor: pointer;
  display: block;
}

@media (max-width: 767px) {
  .static-logo-desktop {
    max-height: 25px;
    max-width: 125px;
  }
}

.static-nav-box {
  display: none;
  justify-content: start;
  align-items: start;
  gap: 0;
}

@media (min-width: 768px) {
  .static-nav-box {
    display: flex;
  }
}

.static-nav-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: Inter, sans-serif;
  padding: 8px 8px;
}

@media (min-width: 1024px) {
  .static-nav-link {
    font-size: 1rem;
    padding: 8px 12px;
  }
}

@media (min-width: 1280px) {
  .static-nav-link {
    padding: 8px 32px;
  }
}

.static-nav-link.active {
  color: #e7714c;
}

.static-nav-link:not(.active) {
  color: #23c3b9;
}

.static-login-box {
  display: none;
  justify-content: space-evenly;
}

@media (min-width: 768px) {
  .static-login-box {
    display: flex;
  }
}

.static-login-btn {
  padding: 10px 0;
  width: 110px;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: #ffff;
  background-color: transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  width: auto !important;
  min-width: 80px;
  margin-right: 1rem !important;
  margin-right: 3rem !important;
  margin-left: 0px !important;
  padding: 10px 0px !important;
  border-radius: 4px !important;
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  line-height: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: capitalize !important;
  color: #ffff !important;
  border: 1px solid #0b345d;
}

.static-mobile-menu-btn {
  display: block;
  position: absolute;
  right: 15px;
  background-color: rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 4px;
  min-width: 32px;
  min-height: 32px;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .static-mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer Styles */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1300;
  background-color: white;
  display: none;
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-content {
  height: 100%;
  overflow-y: auto;
}

.mobile-drawer-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px;
}

.mobile-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
}

.mobile-drawer-link {
  padding: 16px 24px;
  text-decoration: none;
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  display: block;
  transition: background-color 0.2s ease;
}

.mobile-drawer-link:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.mobile-drawer-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.12);
  margin: 4px 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Show drawer only on mobile */
@media (max-width: 767px) {
  .mobile-drawer {
    display: block;
  }
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* Video Player Styles */
#videoContainer {
  position: relative;
  overflow: hidden;
}

#videoThumbnail {
  position: relative;
  transition: opacity 0.5s ease-in-out;
}

#videoThumbnail.hidden {
  opacity: 0;
  pointer-events: none;
}

#youtubePlayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
}

/* Hover effect for play button */
#videoThumbnail:hover .bg-black {
  background-color: rgba(0, 0, 0, 0.3);
}

#videoThumbnail:hover svg {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}
