html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f8faff 0%, #f3f6fc 100%);
  color: #1f2937;
}

.site-footer-link:hover,
.site-footer-link:focus {
  text-decoration: underline !important;
}

.letter-spacing-1 {
  letter-spacing: 0.06em;
}

.navbar {
  backdrop-filter: saturate(140%) blur(8px);
}

.navbar .nav-link {
  color: #334155;
  transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background-color: #eef4ff;
  color: #1d4ed8;
}

.hero-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 78vh;
  max-height: 920px;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  isolation: isolate;
  background-color: #0f172a67;
}

.hero-video-layer,
.hero-fallback-image-layer,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-layer {
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-fallback-image-layer {
  background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1700&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0;
}

.hero-overlay {
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.65) 45%, rgba(30, 64, 175, 0.56) 100%),
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.14), transparent 40%);
  z-index: 1;
}

.hero-content {
  max-width: 980px;
  z-index: 2;
}

.hero-content-container {
  position: relative;
  z-index: 2;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.card {
  border-radius: 1rem;
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.1rem 2.2rem rgba(15, 23, 42, 0.12) !important;
}

.project-image {
  height: 220px;
  object-fit: cover;
}

.form-control,
.form-select {
  border-radius: 0.8rem;
  border-color: #dbe2ef;
}

.auth-page {
  min-height: calc(100vh - 16rem);
}

.auth-card {
  border-radius: 1.1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 1rem 0 1.25rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 0.75rem;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid #dbe2ef;
  border-radius: 0.8rem;
  background-color: #fff;
  color: #0f172a;
  font-weight: 500;
  padding: 0.7rem 1rem;
  transition: all 0.2s ease;
}

.btn-google:hover,
.btn-google:focus {
  border-color: #bfdbfe;
  background-color: #f8fbff;
  color: #1d4ed8;
}

.btn-google-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea4335, #fbbc05);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  color: #fff;
}

.admin-dashboard .card {
  border-radius: 1rem;
}

.site-footer {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%) !important;
}

@media (max-width: 767.98px) {
  .hero-banner {
    min-height: 420px;
    max-height: none;
  }

  .hero-video-layer {
    display: none;
  }

  .hero-fallback-image-layer {
    opacity: 1;
  }

  .hero-content-container {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .project-image {
    height: 200px;
  }
}