body {
  background-color: #0b0f17;
  color: #e2e8f0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 2px);
  opacity: .6;
}

.navbar-bqt {
  background-color: rgba(11, 15, 23, 0.85);
  border-bottom: 1px solid #1f2937;
  backdrop-filter: saturate(1.2) blur(8px);
}

.navbar-bqt .nav-link {
  color: #cbd5e1;
}

.navbar-bqt .nav-link:hover {
  color: #60a5fa;
}

.navbar-bqt {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px rgba(0, 0, 0, .35);
}

/* .navbar-bqt .container-fluid { max-width: 1200px; } */
.navbar-bqt .container-fluid {
  width: 100%;
  margin-left: 30px;
}

.navbar-bqt .nav-link {
  padding: .75rem 1rem;
  font-weight: 600;
  letter-spacing: .2px;
}

.navbar-bqt .nav-link.active {
  color: #60a5fa;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.navbar-brand {
  padding: 0;
  margin: 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.brand-badge:hover {
  transform: translateY(-1px);
}

.brand-badge img {
  height: 67px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
  margin: 10px;
}

.brand-badge:hover img {
  opacity: 0.85;
}

.brand-badge .brand-text {
  display: none;
}

.contact-info-nav .phone-number {
  color: #93c5fd;
  font-weight: 700;
  margin-right: .75rem;
}

.contact-info-nav .call-btn {
  color: #ffffff;
  background-color: #1d4ed8;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, .35);
}

.contact-info-nav .call-btn:hover {
  background-color: #1d4ed8;
  color: #ffffff;
}

.footer {
  background-color: rgba(11, 15, 23, 0.9);
  color: #cbd5e1;
  backdrop-filter: saturate(1.2) blur(6px);
}

.footer h5 {
  color: #e2e8f0;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
}

.footer a:hover {
  color: #60a5fa;
}

.footer .footer-bottom {
  border-top: 1px solid #1f2937;
}

.hero-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px circle at 10% 10%, rgba(96, 165, 250, 0.10), transparent 45%),
    radial-gradient(900px circle at 90% 20%, rgba(99, 102, 241, 0.10), transparent 40%);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .4;
}

.hero-pattern::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 25px 25px, rgba(99, 102, 241, .35) 2px, transparent 3px),
    radial-gradient(circle at 75px 75px, rgba(2, 132, 199, .35) 2px, transparent 3px),
    repeating-linear-gradient(0deg, transparent 0 98px, rgba(148, 163, 184, .08) 98px 100px),
    repeating-linear-gradient(90deg, transparent 0 98px, rgba(148, 163, 184, .08) 98px 100px);
  background-size: 100px 100px, 100px 100px, 100px 100px, 100px 100px;
  background-position: 0 0, 50px 50px, 0 0, 0 0;
  mix-blend-mode: screen;
  mask-image: linear-gradient(#000 40%, transparent 100%);
}

.hero-title {
  color: #e5e7eb;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.hero-subtitle {
  color: #94a3b8;
  max-width: 720px;
}

.btn-primary-custom {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, #3b82f6, #6366f1);
  border: none;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(59, 130, 246, .25);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 32px rgba(59, 130, 246, .35);
}

.btn-primary-custom:active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, .4) 0%, transparent 40%);
}

.section-padding {
  padding: 80px 0;
}

.section-title h2 {
  color: #e5e7eb;
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 2.4rem;
}

.section-title p {
  color: #94a3b8;
  font-size: 1rem;
}

.service-card {
  background-color: #0f1523;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -150%;
  background: conic-gradient(from 0deg, rgba(99, 102, 241, .25), rgba(3, 105, 161, .25), rgba(2, 132, 199, .25), rgba(99, 102, 241, .25));
  animation: rotate 4s linear infinite;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: #0f1523;
  border-radius: 15px;
}

.service-card>* {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-cta {
  margin-top: 14px;
}

.service-cta .btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 8px 16px;
}

.btn-view-projects {
  color: #93c5fd;
  border-color: #1d4ed8;
}

.btn-view-projects:hover {
  background-color: #1d4ed8;
  color: #ffffff;
}

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

.service-icon i {
  font-size: 32px;
  background: linear-gradient(180deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-title {
  color: #e5e7eb;
  font-weight: 700;
  margin-top: 12px;
}

.service-card p {
  color: #9ca3af;
}

#portfolio {
  background-color: #0b0f17;
}

#portfolio.section-padding {
  padding: 100px 0;
}

.project-row {
  position: relative;
  background-color: rgba(15, 21, 35, 0.85);
  backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid #1f2937;
  border-radius: 22px;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px rgba(0, 0, 0, .45);
}

.project-row::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: radial-gradient(600px circle at 20% 20%, rgba(59, 130, 246, .20), transparent 40%), radial-gradient(700px circle at 80% 10%, rgba(99, 102, 241, .18), transparent 45%);
  filter: blur(40px);
  opacity: .35;
  z-index: 0;
}

.project-row>* {
  position: relative;
  z-index: 1;
}

.project-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 36px 90px rgba(0, 0, 0, .55);
}

.project-thumb {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1f2937;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 132, 199, .12), transparent 60%);
  pointer-events: none;
}

.project-thumb img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 9/16 !important;
  object-fit: cover !important;
  display: block;
  transition: transform .4s ease;
}

.project-thumb:hover img {
  transform: scale(1.03);
}

.project-title {
  color: #e5e7eb;
  font-weight: 900;
  font-size: 1.9rem;
}

.project-desc {
  color: #9ca3af;
  font-size: 1.02rem;
}

.portfolio-tech,
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.case-study {
  margin-top: 12px;
}

.case-study h6 {
  color: #cbd5e1;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: .2px;
}

.btn-outline-primary {
  color: #93c5fd;
  border-color: #1d4ed8;
}

.btn-outline-primary:hover {
  background-color: #1d4ed8;
  color: #ffffff;
}

/* Projects Page Dark Theme */
.projects-showcase {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(1200px circle at 10% 0%, rgba(96, 165, 250, 0.06), transparent 45%), radial-gradient(900px circle at 90% 10%, rgba(99, 102, 241, 0.06), transparent 40%);
}

.projects-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 2px);
  opacity: .4;
}

.header-section {
  padding: 48px 0 24px;
  position: relative;
  z-index: 1;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: #e5e7eb;
  margin: 0;
  line-height: 1.2;
  letter-spacing: .3px;
}

.btn-back-dark {
  color: #93c5fd;
  border-color: #1d4ed8;
}

.btn-back-dark:hover {
  background-color: #1d4ed8;
  color: #ffffff;
}

.filter-section {
  padding-top: 0;
}

.search-card {
  background: rgba(15, 21, 35, 0.85);
  backdrop-filter: blur(10px) saturate(1.1);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  border: 1px solid #1f2937;
}

.form-label {
  color: #94a3b8;
}

.form-control,
.form-select {
  background-color: #0f1523;
  color: #e5e7eb;
  border-radius: 12px;
  border: 1px solid #1f2937;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control::placeholder {
  color: #64748b;
}

.form-control:focus,
.form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background-color: #0f1523;
  color: #e5e7eb;
}

.input-group-text {
  background-color: #0f1523;
  color: #94a3b8;
  border-radius: 12px 0 0 12px;
  border: 1px solid #1f2937;
}

.project-card {
  background: rgba(15, 21, 35, 0.88);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px rgba(0, 0, 0, .45);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 36px 90px rgba(0, 0, 0, .55);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 220px;
  border-bottom: 1px solid #1f2937;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.project-card:hover .card-image {
  transform: scale(1.03);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.project-card:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: #e5e7eb;
  transform: translateY(8px);
  transition: transform .25s ease;
}

.project-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content i {
  font-size: 1.6rem;
  margin-bottom: .4rem;
  display: block;
}

.premium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(245, 158, 11, .25);
  z-index: 2;
}

.card-content {
  padding: 1.2rem 1.2rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: .25rem;
}

.category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
}

.tech-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.project-desc {
  color: #9ca3af;
}

.btn-view-project {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.btn-view-project:hover {
  filter: brightness(1.1);
}

.btn-load-more {
  background: #0f1523;
  color: #93c5fd;
  border: 1px solid #1f2937;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
}

.btn-load-more:hover {
  background-color: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
  transform: translateY(-2px);
}

.btn-load-more:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.projects-grid {
  position: relative;
}

.grid-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 10;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-content button {
    align-self: flex-end;
  }

  .page-title {
    font-size: 2rem;
  }

  .card-image-wrapper {
    height: 180px;
  }
}

/* Projects full-width rows */
.project-row {
  position: relative;
  background-color: rgba(15, 21, 35, 0.85);
  backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid #1f2937;
  border-radius: 22px;
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px rgba(0, 0, 0, .45);
}

.project-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 36px 90px rgba(0, 0, 0, .55);
}

.project-thumb {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1f2937;
}

.project-thumb img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.project-thumb:hover img {
  transform: scale(1.03);
}

.project-title {
  color: #e5e7eb;
  font-weight: 900;
  font-size: 1.7rem;
}

.project-desc {
  color: #9ca3af;
}

@media (max-width: 768px) {
  .project-thumb img {
    height: 220px;
  }
}