/* ============================================================
   INFERCON AUTOMATION — main.css  (Blue & White Theme)
   Aesthetic: Industrial Authority · Engineering Precision
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  --blue:          #0A66C2;      /* primary blue */
  --blue-dark:     #05428A;      /* darker for gradients/hover */
  --blue-glow:     rgba(10, 102, 194, 0.18);
  --navy:          #080E1D;
  --navy-2:        #0D1526;
  --navy-3:        #13203A;
  --navy-4:        #1A2D4F;
  --slate:         #8899B4;
  --slate-light:   #B8C6DC;
  --off-white:     #EEF2FA;
  --white:         #FFFFFF;
  --border-dark:   rgba(255, 255, 255, 0.07);
  --border-light:  rgba(13, 21, 38, 0.1);
  --primary:       #0A66C2;      /* updated to blue */
  --light:         #EEF2FA;
  --dark:          #080E1D;
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.25);
  --shadow-blue:   0 8px 28px rgba(10, 102, 194, 0.35); /* blue glow */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --font-display:  'Poppins', sans-serif;
  --font-body:     'Poppins', sans-serif;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #2C3A52;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--navy);
}

a { text-decoration: none; transition: color 0.3s var(--ease); }
img { max-width: 100%; }

/* ── Utility ── */
.ff-secondary  { font-family: var(--font-display); }
.fw-medium     { font-weight: 600 !important; }
.fw-semi-bold  { font-weight: 700 !important; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  display: none;
  width: 44px;
  height: 44px;
  right: 28px;
  bottom: 28px;
  z-index: 99;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-blue);
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(10, 102, 194, 0.5); }

/* ── Spinner ── */
#spinner {
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s;
  z-index: 99999;
}
#spinner.show {
  transition: opacity .5s ease-out, visibility 0s linear 0s;
  visibility: visible; opacity: 1;
}

/* ── TOP NAV ── */
.top-nav {
  background: var(--navy);
  border-bottom: 1px solid var(--border-dark);
  padding: 9px 0;
  text-align: center;
}
.top-nav .row { margin: 0; }
.top-nav a {
  color: var(--slate-light);
  padding-right: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.top-nav a:hover { color: var(--blue); }
.top-nav a i { color: var(--blue); margin-right: 5px; font-size: 12px; }

@media only screen and (max-width: 1024px) {
  .top-nav { display: none; }
}

/* ── BUTTONS ── */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 102, 194, 0.5);
  background: linear-gradient(135deg, #3A82D6 0%, var(--blue) 100%);
  color: #fff;
}
.btn.btn-secondary { color: #ffffff; border-radius: var(--radius-sm); }

.btn-square, .btn-sm-square, .btn-lg-square {
  padding: 0; display: flex;
  align-items: center; justify-content: center;
  font-weight: normal; border-radius: var(--radius-sm);
}
.btn-square    { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 44px; height: 44px; }

/* ── NAVBAR ── */
.navbar-dark .navbar-nav .nav-link {
  position: relative;
  margin-left: 28px;
  padding: 34px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(238, 242, 250, 0.7) !important;
  text-transform: uppercase;
  outline: none;
  transition: color 0.3s var(--ease);
}
.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 26px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.35s var(--ease);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff !important;
}
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after { width: 100%; }

.sticky-top.navbar-dark .navbar-nav .nav-link { padding: 20px 0; }
.sticky-top.navbar-dark .navbar-nav .nav-link::after { bottom: 14px; }

.navbar-dark .navbar-brand img { max-height: 56px; transition: max-height 0.3s; }
.sticky-top.navbar-dark .navbar-brand img { max-height: 42px; }

@media (max-width: 991.98px) {
  .sticky-top.navbar-dark { position: relative; }
  .navbar-dark .navbar-collapse {
    margin-top: 12px;
    border-top: 1px solid var(--border-dark);
    padding-top: 6px;
  }
  .navbar-dark .navbar-nav .nav-link,
  .sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 10px 0; margin-left: 0;
  }
  .navbar-dark .navbar-nav .nav-link::after { display: none; }
  .navbar-dark .navbar-brand img { max-height: 42px; }
}

@media (min-width: 992px) {
  .navbar-dark {
    position: absolute; width: 100%; top: 0; left: 0;
    z-index: 999; background: transparent !important;
  }
  .sticky-top.navbar-dark {
    position: fixed;
    background: rgba(8, 14, 29, 0.97) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-dark);
  }
}

/* ── HERO HEADER ── */
.hero-header {
  background:
    linear-gradient(120deg, rgba(8,14,29,0.97) 0%, rgba(8,14,29,0.82) 55%, rgba(13,21,38,0.75) 100%),
    url(../img/fbg.jpeg) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* Circuit-board grid overlay */
.hero-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 102, 194, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 102, 194, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none; z-index: 0;
}

.hero-header > * { position: relative; z-index: 1; }

.hero-header .display-3 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* Blue accent line before hero heading */
.hero-header h1.display-3::before {
  content: '';
  display: block;
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--blue), transparent);
  margin-bottom: 18px;
  border-radius: 2px;
}

.hero-header img { animation: imgRotate 50s linear infinite; }
@keyframes imgRotate { 100% { transform: rotate(360deg); } }

.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── HERO ENROLL FORM CARD ── */
.hero-form-card {
  background: rgba(13, 21, 38, 0.82);
  border: 1px solid rgba(10, 102, 194, 0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(10, 102, 194, 0.08);
}

.hero-form-card .form-control,
.hero-form-card .form-select,
.hero-header .form-control,
.hero-header .form-select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.3s, background 0.3s;
  height: 48px;
}
.hero-form-card .form-control:focus,
.hero-form-card .form-select:focus,
.hero-header .form-control:focus,
.hero-header .form-select:focus {
  background: rgba(255,255,255,0.11);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.2);
  color: #fff;
}
.hero-header .form-control::placeholder { color: rgba(255,255,255,0.38); }
.hero-header .form-floating label,
.hero-header label { color: rgba(255,255,255,0.5); font-size: 13px; }
.hero-header .form-select option { background: var(--navy-2); color: #fff; }

/* ── SECTION TITLE ── */
.section-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue) !important;
}
.section-title::before {
  position: absolute; content: "";
  width: 40px; height: 2px;
  top: 50%; left: -52px; margin-top: -1px;
  background: var(--blue);
}
.section-title::after {
  position: absolute; content: "";
  width: 40px; height: 2px;
  top: 50%; right: -52px; margin-top: -1px;
  background: var(--blue);
}
.section-title.text-start::before,
.section-title.text-end::after { display: none; }

/* ── SERVICE / STATS CARDS ── */
.service-item {
  background: #fff;
  border: 1px solid #DDE5F2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.35s var(--ease);
  height: 250px;
  width: auto;
  overflow: hidden;
  position: relative;
}

/* Animated top-border on hover */
.service-item::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), #6CB2FF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-item:hover::before { transform: scaleX(1); }

.service-item:hover {
  background: var(--navy-2);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-7px);
}
.service-item * { transition: color 0.3s var(--ease); }
.service-item:hover h5 { color: #fff !important; }
.service-item:hover p  { color: var(--slate) !important; }
.service-item:hover i  { color: var(--blue) !important; }

/* ── ABOUT SECTION ── */
.l2_design_image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.border-start.border-primary {
  border-color: var(--blue) !important;
}

/* ── COURSES SECTION ── */
#Courses { background: #F4F7FD; }

.nav-pills .nav-item .active {
  border-bottom: 2px solid var(--blue);
  color: var(--blue) !important;
}

/* Course row cards */
#tab-1 .col-lg-6 .d-flex {
  background: #fff;
  border: 1px solid #DDE5F2;
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  align-items: flex-start;
}
#tab-1 .col-lg-6 .d-flex:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 28px rgba(10, 102, 194, 0.15);
  transform: translateY(-3px);
}
#tab-1 .col-lg-6 img {
  border-radius: var(--radius-sm);
  background: #EEF2FA;
  padding: 6px;
  object-fit: contain;
}
#tab-1 h5 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
#tab-1 .text-primary {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--blue) !important;
  white-space: nowrap;
}

/* ── VIDEO SECTION ── */
.video {
  position: relative; height: 100%; min-height: 500px;
  background:
    linear-gradient(rgba(8,14,29,.55), rgba(8,14,29,.55)),
    url(../img/video.jpg) center/cover no-repeat;
}
.video .btn-play {
  position: absolute; z-index: 3;
  top: 50%; left: 50%;
  transform: translateX(-50%) translateY(-50%);
  box-sizing: content-box; display: block;
  width: 32px; height: 44px;
  border-radius: 50%; border: none; outline: none;
  padding: 18px 20px 18px 28px;
}
.video .btn-play:before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%);
  display: block; width: 100px; height: 100px;
  background: var(--blue); border-radius: 50%;
  animation: pulse-border 1500ms ease-out infinite;
}
.video .btn-play:after {
  content: ""; position: absolute; z-index: 1;
  left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%);
  display: block; width: 100px; height: 100px;
  background: var(--blue); border-radius: 50%;
  transition: all 200ms;
}
.video .btn-play img { position: relative; z-index: 3; max-width: 100%; }
.video .btn-play span {
  display: block; position: relative; z-index: 3;
  width: 0; height: 0;
  border-left: 32px solid #fff;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
}
@keyframes pulse-border {
  0%   { transform: translateX(-50%) translateY(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-50%) scale(1.6); opacity: 0; }
}
#videoModal { z-index: 99999; }
#videoModal .modal-dialog { position: relative; max-width: 800px; margin: 60px auto 0; }
#videoModal .modal-body   { position: relative; padding: 0; }
#videoModal .close {
  position: absolute; width: 30px; height: 30px;
  right: 0; top: -30px; z-index: 999;
  font-size: 30px; font-weight: normal;
  color: #fff; background: #000; opacity: 1;
}

/* ── TEAM ── */
.team-item {
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  height: calc(100% - 38px);
  transition: all 0.35s var(--ease);
  overflow: hidden;
}
.team-item img { transition: transform 0.4s var(--ease); }
.team-item:hover img { transform: scale(1.07); }
.team-item:hover { height: 100%; box-shadow: var(--shadow-lg); }
.team-item .btn { border-radius: 38px 38px 0 0; }

/* ── TESTIMONIALS ── */
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * { transition: all 0.4s var(--ease); }

.testimonial-item {
  height: auto !important;
  min-height: 200px;
  border-radius: var(--radius-lg) !important;
  border-color: #DDE5F2 !important;
  box-shadow: var(--shadow);
}
.testimonial-item p {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.8;
  font-style: italic;
}
.testimonial-carousel .owl-item.center .testimonial-item {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 14px 44px rgba(10, 102, 194, 0.38) !important;
  transform: scale(1.03);
}
.testimonial-carousel .owl-item.center .testimonial-item * { color: #fff !important; }
.testimonial-carousel .owl-item.center .testimonial-item p { color: rgba(255,255,255,0.9) !important; }

.testimonial-carousel .owl-dots {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: center;
  height: 32px; gap: 6px;
}
.testimonial-carousel .owl-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #CBD5E0; border-radius: 99px;
  transition: all 0.35s var(--ease);
  border: none;
}
.testimonial-carousel .owl-dot.active {
  background: var(--blue); width: 24px;
}

/* ── CTA SECTION ── */
.cta-area {
  padding-top: 88px; padding-bottom: 88px;
  position: relative; overflow: hidden; z-index: 1;
  background:
    linear-gradient(135deg, rgba(8,14,29,0.97) 0%, rgba(8,14,29,0.88) 100%),
    url(../img/sbg.jpg) center/cover no-repeat;
}
/* Accent stripe */
.cta-area::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 4px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  border-radius: 0 0 4px 4px;
}
/* Corner circuit decoration */
.cta-area::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 280px; height: 280px;
  background-image:
    linear-gradient(var(--blue-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-glow) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 1px solid rgba(10, 102, 194, 0.12);
  border-left: 1px solid rgba(10, 102, 194, 0.12);
  pointer-events: none;
}

.cta-content { text-align: center; }
.cta-content h5 {
  color: var(--blue);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.24em; margin-bottom: 14px;
}
.cta-content h2 {
  color: #fff; margin-bottom: 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.cta-content p {
  color: var(--slate-light);
  font-size: 16px;
  max-width: 520px; margin: 0 auto 28px;
}

/* ── QUICK LINKS ── */
.quick_links {
  padding: 48px 0;
  background: #F4F7FD;
  border-top: 1px solid #DDE5F2;
  border-bottom: 1px solid #DDE5F2;
}
.quick_links li {
  list-style-type: none; font-size: 13px; padding: 4px 0;
}
.quick_links li a {
  color: #5A6B84; font-weight: 500;
  transition: all 0.25s;
}
.quick_links li a:hover {
  color: var(--blue); padding-left: 5px;
}

/* ── FOOTER ── */
.footer { background: var(--navy) !important; border-top: 1px solid var(--border-dark); }

.footer .btn.btn-social {
  margin-right: 8px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; background: rgba(255,255,255,0.04);
  transition: all 0.3s var(--ease);
}
.footer .btn.btn-social:hover {
  color: var(--blue); border-color: var(--blue);
  background: rgba(10, 102, 194, 0.1);
  transform: translateY(-2px);
}

.footer .btn.btn-link {
  display: block; margin-bottom: 8px; padding: 0;
  text-align: left; color: var(--slate);
  font-size: 14px; font-weight: 400;
  text-transform: capitalize;
  transition: all 0.25s;
}
.footer .btn.btn-link::before {
  position: relative; content: "\f105";
  font-family: "Font Awesome 5 Free"; font-weight: 900;
  margin-right: 8px; color: var(--blue); font-size: 12px;
}
.footer .btn.btn-link:hover {
  color: #fff; padding-left: 4px; letter-spacing: 0.2px; box-shadow: none;
}

.footer .copyright {
  padding: 20px 0; font-size: 13px; color: var(--slate);
  border-top: 1px solid var(--border-dark);
}
.footer .copyright a { color: var(--blue); font-weight: 500; }
.footer .copyright a:hover { color: #6CB2FF; }

.footer .footer-menu a {
  margin-right: 15px; padding-right: 15px;
  border-right: 1px solid var(--border-dark);
  color: var(--slate); font-size: 13px;
  transition: color 0.25s;
}
.footer .footer-menu a:hover { color: var(--blue); }
.footer .footer-menu a:last-child { margin-right:0; padding-right:0; border-right:none; }

/* ── MODAL ── */
.modal-content {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-3);
}
.modal-header {
  background: var(--navy-2);
  border-bottom: 1px solid var(--border-dark);
  padding: 16px 20px;
}
.modal-body { padding: 24px; background: var(--navy-3); }
.modal-body .form-control,
.modal-body .form-select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; border-radius: var(--radius-sm); font-size: 14px;
  transition: border-color 0.3s, background 0.3s;
}
.modal-body .form-control:focus,
.modal-body .form-select:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.2);
  color: #fff;
}
.modal-body .form-control::placeholder { color: rgba(255,255,255,0.35); }
.modal-body .form-select option { background: var(--navy-2); }
.modal-body label { color: rgba(255,255,255,0.5); font-size: 13px; }
.modal-body .form-control.mt-3,
.modal-body .form-select.mt-3 { margin-top: 12px !important; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .hero-header .display-3 { font-size: 1.85rem; }
  .cta-content h2 { font-size: 1.5rem; }
  .quick_links { padding: 28px 0; }
  .quick_links ul { margin-bottom: 16px; }
  .service-item { height: auto; }
}