:root {
  --primary-color: #005b96;
  --primary-dark: #003f6b;
  --primary-light: #e8f1f8;
  --accent-color: #f58a1f;
  --accent-dark: #d97610;
  --accent-light: #fef3e6;
  --grey-50: #f7f8fa;
  --grey-100: #eef0f4;
  --grey-200: #d5d9e0;
  --grey-500: #6b7280;
  --grey-700: #374151;
  --grey-900: #1f2933;
  --section-padding: 5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--grey-900);
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

.loading-content {
  text-align: center;
  background-color: transparent;
  padding: 3rem 4rem;
  border-radius: 1rem;
}

.loading-logo {
  max-width: 350px;
  height: auto;
  animation: logo-loading 2s ease-in-out;
}

@keyframes logo-loading {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
}

/* Navbar */
.navbar {
  font-size: 0.95rem;
  border-bottom: 2px solid var(--grey-100);
}

.navbar .nav-link {
  padding-inline: 0.9rem;
  color: var(--grey-700);
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--accent-color);
}

.navbar-logo {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.text-accent {
  color: var(--accent-color) !important;
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--grey-50);
  padding-top: 6rem;
}

.hero-slider-inner {
  position: relative;
  height: calc(100vh - 6rem);
  z-index: 2;
}

/* ── Heavy Background Animations ── */
.hero-bg-animations {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Shifting gradient mesh */
.hero-bg-gradient {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 91, 150, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 138, 31, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(0, 91, 150, 0.05) 0%, transparent 50%);
  animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-5%, 3%) scale(1.05); }
  66% { transform: translate(3%, -4%) scale(0.98); }
  100% { transform: translate(-2%, 2%) scale(1.03); }
}

/* Animated diagonal grid */
.hero-bg-grid {
  position: absolute;
  inset: -100px;
  background-image:
    linear-gradient(rgba(0, 91, 150, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 91, 150, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  transform: rotate(-3deg) scale(1.2);
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Shared shape base */
.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
}

/* Floating circles */
.shape-circle-1 {
  width: 320px;
  height: 320px;
  top: -60px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 91, 150, 0.07), transparent 70%);
  animation: floatA 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 5%;
  background: radial-gradient(circle, rgba(245, 138, 31, 0.06), transparent 70%);
  animation: floatB 10s ease-in-out infinite;
}

.shape-circle-3 {
  width: 140px;
  height: 140px;
  top: 35%;
  right: 15%;
  background: radial-gradient(circle, rgba(0, 91, 150, 0.05), transparent 70%);
  animation: floatC 7s ease-in-out infinite;
}

/* Pulsing rings */
.shape-ring-1 {
  width: 260px;
  height: 260px;
  top: 15%;
  right: 8%;
  border: 2px solid rgba(0, 91, 150, 0.08);
  background: transparent;
  animation: pulseSpin 14s linear infinite;
}

.shape-ring-2 {
  width: 180px;
  height: 180px;
  bottom: 20%;
  right: 25%;
  border: 2px solid rgba(245, 138, 31, 0.07);
  background: transparent;
  animation: pulseSpin 10s linear infinite reverse;
}

@keyframes pulseSpin {
  0% { transform: rotate(0deg) scale(1); opacity: 0.6; }
  50% { transform: rotate(180deg) scale(1.15); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.6; }
}

/* Rotating squares */
.shape-square-1 {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  top: 20%;
  left: 12%;
  border: 2px solid rgba(0, 91, 150, 0.08);
  background: rgba(0, 91, 150, 0.02);
  animation: rotateDrift 16s ease-in-out infinite;
}

.shape-square-2 {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  bottom: 30%;
  right: 10%;
  border: 2px solid rgba(245, 138, 31, 0.08);
  background: rgba(245, 138, 31, 0.02);
  animation: rotateDrift 12s ease-in-out infinite reverse;
}

@keyframes rotateDrift {
  0% { transform: rotate(0deg) translate(0, 0); }
  25% { transform: rotate(90deg) translate(15px, -10px); }
  50% { transform: rotate(180deg) translate(-10px, 15px); }
  75% { transform: rotate(270deg) translate(10px, 10px); }
  100% { transform: rotate(360deg) translate(0, 0); }
}

/* Sweeping lines */
.shape-line-1,
.shape-line-2,
.shape-line-3 {
  border-radius: 0;
  height: 1px;
  width: 300px;
}

.shape-line-1 {
  top: 25%;
  right: -100px;
  background: linear-gradient(90deg, transparent, rgba(0, 91, 150, 0.12), transparent);
  animation: sweepLine 6s ease-in-out infinite;
}

.shape-line-2 {
  top: 55%;
  left: -100px;
  background: linear-gradient(90deg, transparent, rgba(245, 138, 31, 0.1), transparent);
  animation: sweepLine 8s 2s ease-in-out infinite reverse;
}

.shape-line-3 {
  bottom: 30%;
  right: -100px;
  width: 400px;
  background: linear-gradient(90deg, transparent, rgba(0, 91, 150, 0.08), transparent);
  animation: sweepLine 7s 1s ease-in-out infinite;
}

@keyframes sweepLine {
  0% { transform: translateX(-200px) rotate(-2deg); opacity: 0; }
  50% { transform: translateX(40vw) rotate(0deg); opacity: 1; }
  100% { transform: translateX(100vw) rotate(2deg); opacity: 0; }
}

/* Dot cluster (small particles) */
.shape-dot-cluster {
  width: 250px;
  height: 250px;
  bottom: 5%;
  left: 30%;
  border-radius: 0;
  background-image:
    radial-gradient(circle 2px, rgba(0, 91, 150, 0.12) 100%, transparent 100%),
    radial-gradient(circle 1.5px, rgba(245, 138, 31, 0.1) 100%, transparent 100%),
    radial-gradient(circle 1px, rgba(107, 114, 128, 0.1) 100%, transparent 100%);
  background-size: 30px 30px, 22px 22px, 18px 18px;
  background-position: 0 0, 10px 10px, 5px 15px;
  animation: clusterFloat 9s ease-in-out infinite, clusterFade 9s ease-in-out infinite;
}

@keyframes clusterFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes clusterFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Float keyframes for circles */
@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, 15px) scale(1.05); }
  66% { transform: translate(15px, -10px) scale(0.95); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -20px) scale(1.1); }
}

@keyframes floatC {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-15px, 20px); }
  80% { transform: translate(10px, -15px); }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide .container {
  height: 100%;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-500);
  border: 1px solid var(--grey-200);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-slide.active .hero-tagline {
  animation: slideUp 0.6s 0.2s ease forwards;
}

.hero-heading {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--grey-900);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-slide.active .hero-heading {
  animation: slideUp 0.7s 0.35s ease forwards;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--grey-500);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-slide.active .hero-description {
  animation: slideUp 0.7s 0.5s ease forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  border-radius: 2rem;
  padding: 0.75rem 2rem;
}

.hero-slide.active .hero-cta {
  animation: slideUp 0.6s 0.65s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dot Pattern Decoration */
.hero-dots-pattern {
  width: 100%;
  height: 400px;
  position: relative;
  background-image:
    radial-gradient(circle, var(--primary-color) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, black 30%, transparent 70%);
  opacity: 0;
  animation: none;
}

.hero-slide.active .hero-dots-pattern {
  animation: dotsAppear 1.2s 0.3s ease forwards, dotsFloat 6s 1.5s ease-in-out infinite;
}

.hero-dots-pattern.variant-2 {
  background-image:
    radial-gradient(circle, var(--accent-color) 1.5px, transparent 1.5px);
  mask-image: radial-gradient(ellipse 65% 65% at 60% 50%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 60% 50%, black 25%, transparent 75%);
}

.hero-dots-pattern.variant-3 {
  background-image:
    radial-gradient(circle, var(--grey-500) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 65% 45%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 65% 45%, black 20%, transparent 80%);
}

@keyframes dotsAppear {
  from {
    opacity: 0;
    transform: scale(0.85) rotate(-5deg);
  }
  to {
    opacity: 0.35;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes dotsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Slider Indicators */
.hero-indicators {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.hero-indicator {
  width: 40px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: var(--grey-200);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
  padding: 0;
}

.hero-indicator.active {
  background: var(--accent-color);
  width: 56px;
}

/* Sections */
.section-spacing {
  padding-block: var(--section-padding);
}

.section-title {
  font-weight: 700;
  color: var(--primary-color);
}

.section-subtitle {
  max-width: 620px;
  margin-inline: auto;
  color: var(--grey-500);
}

.bg-light {
  background-color: var(--grey-50) !important;
}

/* Cards (global) */
.card {
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card .card-title {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Services Grid */
.services-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-500);
  border: 1px solid var(--grey-200);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  letter-spacing: 0.5px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--grey-100);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 91, 150, 0.1);
  border-color: var(--accent-color);
}

.service-card-icon {
  font-size: 2rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-card-icon {
  color: var(--accent-color);
}

.service-card-title {
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.service-card-text {
  color: var(--grey-500);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Portfolio */
.portfolio-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 91, 150, 0.15) !important;
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
}

.portfolio-img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 63, 107, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.75rem 0.75rem 0 0;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-text {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: 2px solid var(--accent-color);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  background: rgba(245, 138, 31, 0.2);
  transition: background 0.2s ease;
}

.portfolio-overlay-text:hover {
  background: var(--accent-color);
}

/* Technologies */
.tech-card {
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--grey-100);
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 91, 150, 0.12) !important;
  border-color: var(--primary-light);
}

.tech-logo {
  font-size: 3rem;
}

.tech-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tech-name {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}

/* Why Choose Us */
.why-card {
  border-left: 4px solid var(--accent-color);
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 91, 150, 0.12) !important;
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-color);
}

/* Contact Section */
.contact-info li {
  padding: 0.5rem 0;
  color: var(--grey-700);
}

.contact-info .bi {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.contact-info strong {
  color: var(--primary-color);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 91, 150, 0.15);
}

/* Footer */
footer {
  font-size: 0.85rem;
  background-color: var(--primary-dark) !important;
  border-top: 3px solid var(--accent-color) !important;
}

footer .text-muted {
  color: var(--grey-200) !important;
}
