/* ===== Base Styles ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

body.loading *:not(#intro-overlay):not(#reveal-mask) {
  visibility: hidden;
}

/* ===== Intro Overlay & Animation ===== */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

#reveal-mask {
  width: 0;
  height: 0;
  background: url('../img/Untitled-1.svg') no-repeat center center fixed;
  background-size: contain;
  border-radius: 50%;
  animation: revealAnimation 2.5s ease-out forwards;
}

@keyframes revealAnimation {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  50% {
    width: 20vw;
    height: 20vw;
  }
  100% {
    width: 400vw;
    height: 400vw;
    opacity: 1;
  }
}

/* ===== Background Image Wrapper ===== */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default for desktop */
}

@media (max-width: 767.98px) {
  .bg-img {
    object-fit: contain !important; /* Mobile override */
  }
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
}

.navbar-brand {
  color: #0d6efd !important;
}

.navbar-nav .nav-link {
  color: #212529;
}

.navbar-nav .nav-link.active {
  font-weight: 600;
  color: #6d8dbd;
}

/* ===== Buttons ===== */
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
  font-weight: 600;
  border-radius: 25px;
  padding: 0.4rem 1.5rem;
  font-size: 0.95rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}

.btn-outline-secondary {
  color: #343a40;
  border-color: #343a40;
}

.btn-outline-secondary:hover {
  background-color: #343a40;
  color: white;
}

#contact {
  margin-top: 0 !important;
}

/* ===== Animations ===== */
@keyframes popOut {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

#about.pop-out,
#contact.pop-out,
#services.pop-out {
  animation: popOut 1s ease;
}

/* ===== Hero and Features ===== */
.hero-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.feature-box {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #dee2e6;
}

/* ===== Hover and Transition Utilities ===== */
.hover-shadow {
  transition: all 0.3s ease-in-out;
}

.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ===== Fade In Sections ===== */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 2rem;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Logo ===== */
#logo {
  width: 6rem;
}

/* ===== Utility Classes ===== */
.text-dark {
  color: #212529 !important;
}

.text-primary {
  color: #0d6efd !important;
}

.text-muted {
  color: #6c757d !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.border {
  border-color: #dee2e6 !important;
}

/* ===== Modal ===== */
.custom-modal {
  border-radius: 10px;
  background: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 700px;
}

.modal-header .modal-title {
  color: #222;
}

.modal-body p {
  color: #6c757d;
  font-style: italic;
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 0.5rem 0 1rem 0;
}

.modal-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #444;
  transition: background-color 0.2s ease;
  cursor: default;
  margin-bottom: 0.75rem;
}

.modal-list li:last-child {
  border-bottom: none;
}

.modal-list li:hover {
  background-color: #f8f9fa;
}

/* ===== #about Section ===== */
#about .bg-white {
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

#about > .container .d-flex.flex-column > div {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
  border: 1px solid #dee2e6;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background-color: #fff;
}

#about > .container .d-flex.flex-column > div:hover {
  box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
  transform: translateY(-5px);
  cursor: pointer;
}

#about .fs-3.text-primary {
  color: #0d6efd;
  flex-shrink: 0;
}

#about h6.fw-bold {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #212529;
}

#about p.mb-0.text-muted.small {
  font-size: 0.875rem;
  color: #6c757d;
}

#about .text-muted.fs-6.lh-base p {
  margin-bottom: 1rem;
  color: #495057;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  #highlights .d-flex.flex-column.gap-4 {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  #highlights .d-flex.flex-column.gap-4 > div {
    flex: 0 0 auto !important;
    width: 100% !important;
  }
}
