html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: 'Inter', 'Poppins', sans-serif;
}

:root {
  --brand-navy: #0a3d7a;
  --brand-blue: #0d6efd;
  --brand-green: #16a34a;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.text-brand {
  color: var(--brand-navy);
}

/* --- Startup Flash Screen --- */
#startup-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOutScreen 0.7s ease 1.3s forwards;
  pointer-events: none;
}

.startup-logo {
  max-width: min(320px, 75vw);
  height: auto;
  animation: popIn 0.8s ease-out;
}

.startup-title {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.25rem;
}

.startup-title span {
  color: var(--brand-navy);
}

.startup-tagline {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes popIn {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOutScreen {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* --- Navbar --- */
.navbar {
  background: #ffffff;
  padding: 0.5rem 0;
}

.navbar-logo {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.navbar-logo:hover {
  transform: scale(1.03);
}

.navbar-nav .nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: #1b2d41;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.25rem;
  height: 2px;
  width: 0;
  background-color: var(--brand-navy);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: calc(100% - 2rem);
}

.navbar-nav .nav-link:hover {
  color: var(--brand-navy);
}

/* --- Hero Section --- */
.hero {
  padding: 110px 0 70px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4fc 100%);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--brand-navy);
  line-height: 1.2;
}

.hero p {
  margin: 15px 0 30px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #4a5568;
  line-height: 1.6;
}

.hero .btn {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
}

.hero .animated {
  max-height: 420px;
  width: auto;
  animation: up-down 2.5s ease-in-out infinite alternate-reverse both;
}

@keyframes up-down {
  0% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(-8px);
  }
}

/* --- Sections & Headings --- */
.section-padding {
  padding: 5rem 0;
  scroll-margin-top: 70px;
}

.section-title-wrapper {
  position: relative;
  display: inline-block;
}

.section-shadow-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  color: rgba(10, 61, 122, 0.06);
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.section-heading {
  position: relative;
  z-index: 2;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #111827;
}

/* --- About --- */
.aboutimg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.story-paragraph {
  font-size: 1.02rem;
  line-height: 1.75;
}

.value-box {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
}

/* --- Portfolio --- */
.portfolio-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(10, 61, 122, 0.12) !important;
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.software-portfolio-banner {
  background: linear-gradient(135deg, #0a3d7a 0%, #0d6efd 55%, #0ea5e9 100%);
}

.portfolio-content {
  background-color: #fff;
  padding: 20px;
  text-align: center;
}

/* --- Services Grid & Cards --- */
.service-item {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(10, 61, 122, 0.14);
  border-color: var(--brand-navy);
}

.service-img-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-img-wrap img.contain-img {
  object-fit: contain;
  padding: 14px;
}

.service-item:hover .service-img-wrap img {
  transform: scale(1.05);
}

.software-service-banner {
  background: linear-gradient(135deg, #0f172a 0%, #0a3d7a 55%, #0d6efd 100%);
}

.it-consult-banner {
  background: linear-gradient(135deg, #0a3d7a 0%, #1665c1 60%, #16a34a 100%);
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

.service-box-caption {
  padding: 16px;
  text-align: center;
  flex-grow: 1;
}

/* Slide-up Overlay (Works on Desktop Hover AND Mobile Tap) */
.service-info {
  position: absolute;
  inset: 0;
  background: rgba(10, 61, 122, 0.95);
  color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 3;
}

.service-info h5 {
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.service-info p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0;
  color: #e2e8f0;
}

.service-item:hover .service-info,
.service-item.is-active .service-info {
  opacity: 1;
  transform: translateY(0);
}

/* --- Modern Contact Cards (Unified Effect Across All Cards) --- */
.contact-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0a3d7a, #0d6efd);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(10, 61, 122, 0.12);
  border-color: #93c5fd;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-icon-modern {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon-modern {
  transform: scale(1.08);
}

.icon-blue {
  background: #eff6ff;
  color: #0d6efd;
}

.icon-navy {
  background: #eef2ff;
  color: #0a3d7a;
}

.icon-green {
  background: #ecfdf5;
  color: #16a34a;
}

/* Unified Modern Buttons */
.btn-modern-primary {
  background-color: #0a3d7a;
  color: #ffffff;
  border: 1px solid #0a3d7a;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 22px;
  transition: all 0.25s ease;
}

.btn-modern-primary:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}

.btn-modern-green {
  background-color: #16a34a;
  color: #ffffff;
  border: 1px solid #16a34a;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 22px;
  transition: all 0.25s ease;
}

.btn-modern-green:hover {
  background-color: #15803d;
  border-color: #15803d;
  color: #ffffff;
}

/* Dual Office Location Inner Panels */
.location-showcase-card {
  padding: 32px;
}

.office-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.office-box:hover {
  background: #f1f7ff;
  border-color: #bfdbfe;
}

.office-pin {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  color: #0a3d7a;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* --- Mobile & Tablet Breakpoints --- */
@media (max-width: 991px) {
  .hero {
    min-height: auto;
    padding: 95px 0 50px;
  }

  .hero .animated {
    max-height: 300px;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 38px;
    max-width: 195px;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .service-img-wrap {
    height: 190px;
  }

  .location-showcase-card {
    padding: 24px 16px;
  }

  .office-box {
    padding: 16px;
  }
}