@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,600,700');
@import url('https://fonts.googleapis.com/css?family=Arimo:300,400,400italic,700,700italic');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap');

/* ===============================
   GLOBAL
   =============================== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Arimo', sans-serif;
}

/* ===============================
   CAROUSEL
   =============================== */
.carousel-item {
  position: relative;
  height: 400px;
}
.carousel-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* === FORCE CENTER ALIGNMENT FOR SLIDER TEXT === */
.carousel-caption {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: 100%;
  max-width: 90%;

  text-align: center !important;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.55);
  padding: 20px 30px;

  right: auto !important;
  bottom: auto !important;
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption h4,
.carousel-caption h5,
.carousel-caption p {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}


.carousel-caption h5 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.carousel-caption p {
  margin-bottom: 0;
  font-size: 1.05rem;
}


/* ===============================
   NAVBAR (DESKTOP)
   =============================== */
.navbar {
  background-color: #2e003e;
  font-family: 'Orbitron', sans-serif;
}

.navbar-brand,
.navbar .nav-link {
  color: #fff !important;
}

.navbar-brand img {
  max-height: 60px;
}

.navbar-nav .btn {
  font-size: 14px;
}

.navbar .dropdown-menu {
  background-color: #002855;
  border: none;
  z-index: 1050;
}

.navbar .dropdown-item {
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.navbar .dropdown-item:hover {
  background-color: #004080;
}

/* ===============================
   SUBMENUS (DESKTOP)
   =============================== */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  display: none;
  position: absolute;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* ===============================
   MOBILE NAVBAR (FIXED & CLEAN)
   =============================== */
@media (max-width: 991px) {

  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    background-color: #2e003e;
    padding: 10px;
  }

  .navbar-brand img {
    max-height: 45px;
  }

  .navbar-nav .nav-item {
    width: 100%;
    margin-bottom: 6px;
  }

  .navbar-nav .btn {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
  }

  /* Disable hover behavior on mobile */
  .dropdown-submenu:hover > .dropdown-menu {
    display: none;
  }

  /* Enable click-based dropdown */
  .dropdown-submenu > .dropdown-menu {
    position: static;
    width: 100%;
    margin-left: 20px;
    background-color: #002855;
  }

  .dropdown-submenu.show > .dropdown-menu {
    display: block;
  }

  .dropdown-submenu > a::after {
    content: " ▸";
    float: right;
    font-size: 12px;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    width: 100%;
    margin-left: 15px;
    box-shadow: none;
  }
}

/* ===============================
   SERVICES / FEATURES
   =============================== */
.features i {
  font-size: 2rem;
  color: #007bff;
}

.service-box {
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: 0.3s;
  background: #fff;
}
.service-box:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ===============================
   HERO SECTION
   =============================== */
.hero-section {
  background: #2c003e;
  min-height: 60vh;
  padding: 40px 20px;
}
.hero-section h1 { font-size: 2.5rem; }
.hero-section p { color: #e0e0e0; }

@media (max-width: 768px) {
  .hero-section h1 { font-size: 1.8rem; }
}

/* ===============================
   PORTFOLIO
   =============================== */
.portfolio-section .card {
  transition: transform .3s;
}
.portfolio-section .card:hover {
  transform: scale(1.03);
}

/* ===============================
   BLOG
   =============================== */
.blog-single h1,
.blog-single h2,
.blog-single h3,
.blog-single h4,
.blog-single h5,
.blog-single h6 {
  color: #0000FF;
  font-size: 1.25rem;
}
.blog-single p {
  color: #0000FF;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  padding: 20px 0 30px;
}

/* ===============================
   BRAND TEXT
   =============================== */
.sji-brand {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}
/* ===============================
   NAVBAR MOBILE FIX (FINAL)
   =============================== */

.navbar-brand {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.2;
}

/* Desktop – keep single line */
.brand-text {
  white-space: nowrap;
}

/* MOBILE FIX */
@media (max-width: 768px) {

  /* Reduce logo size */
  .navbar-brand img {
    max-height: 42px;
    width: auto;
  }

  /* Allow text to wrap */
  .brand-text {
    white-space: normal;
    font-size: 14px;
    text-align: left;
  }

  /* Force PRIVATE LIMITED to next line */
  .brand-sub {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.9;
  }

  /* Reduce navbar height */
  .navbar {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  /* Improve hamburger spacing */
  .navbar-toggler {
    padding: 6px 8px;
  }
}

/* ===== FIX: Service Icon Circle ===== */
.icon-circle {
  width: 80px;
  height: 80px;
  background-color: #FFA500; /* Orange */
  border-radius: 50%;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle i {
  font-size: 32px;
  color: #ffffff;
}

/* FIX: Remove anchor effects from service boxes */
.service-box,
.service-box:hover,
.service-box:focus,
.service-box:active {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* FIX: Prevent anchor focus from bleeding into icon */
.service-box * {
  outline: none !important;
}

/* Ensure icon circle stays perfectly round */
.icon-circle {
  width: 80px;
  height: 80px;
  background-color: orange;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* IMPORTANT */
}

.icon-circle {
  width: 80px;
  height: 80px;
  background-color: orange;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 🔑 FIX */
  overflow: hidden;
  position: relative;
}

.service-box:focus,
.service-box:focus-visible {
  outline: none;
  box-shadow: none;
}
.service-box:focus,
.service-box:focus-visible {
  outline: none;
  box-shadow: none;
}
