/* Consolidated Premium Styles for Ethio Fox Website */

.required:after {
  content: " *";
  color: red;
}

/* Premium Design Overrides */
:root {
  --primary-color: #01b1d7;
  --secondary-color: #00d0dd;
  --accent-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
}

.company-name-text {
  font-size: 20px;
  display: inline-block;
}

@media (max-width: 1200px) {
  .company-name-text {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .company-name-text {
    font-size: 13px;
    letter-spacing: 0;
  }
}

.navbar ul {
  flex-wrap: nowrap !important;
}

@media (max-width: 1200px) {
  .navbar a {
    padding: 10px 10px !important;
    font-size: 14px !important;
  }
}


body {
  font-family: 'Poppins', sans-serif !important;
  color: var(--text-dark);
  background-color: #f4f7f6;
}

/* Top bar */
#topbar {
  background: linear-gradient(90deg, #0d47a1 0%, #1976d2 100%) !important;
  border-bottom: 2px solid var(--secondary-color);
  padding: 10px 0;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#topbar a,
#topbar i,
#topbar span {
  color: var(--text-light) !important;
  transition: color 0.3s ease;
}

#topbar a:hover {
  color: var(--accent-color) !important;
}

/* Header Navbar */
#header {
  background: #ffffff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding: 10px 0;
  z-index: 1000 !important;
}

/* Header container-fluid: equal padding on both sides, full edge-to-edge width */
#header .container-fluid {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

#header .logo-wrapper {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

@media (max-width: 768px) {
  #header .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

.navbar a {
  color: var(--text-dark) !important;
  font-weight: 500 !important;
  font-size: 15px;
  position: relative;
  padding: 10px 15px;
  transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--primary-color) !important;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 15px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: calc(100% - 30px);
}

/* Buttons */
.btn-get-started,
.btn-primary,
button.btn-primary,
.header-btn {
  background: var(--primary-color) !important;
  border: none !important;
  border-radius: 5px !important;
  color: white !important;
  padding: 10px 25px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px !important;
  text-decoration: none !important;
}

/* Hide mobile-only elements on desktop */
.mobile-only-btn {
  display: none !important;
}

.btn-get-started:hover,
.btn-primary:hover,
button.btn-primary:hover,
.header-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 208, 221, 0.6) !important;
  color: #fff !important;
}

.logo img {
  max-height: 80px;
  width: auto;
  transition: all 0.3s ease;
}

#header.header-scrolled {
  padding: 5px 0;
}

#header.header-scrolled .logo img {
  max-height: 65px;
}

/* General elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: #1a1a1a;
}

.section-title span {
  color: #aaaaaa;
  top: 30px;
  position: absolute;
  width: 100%;
  left: 0;
  font-size: 50px;
  font-weight: 700;
  z-index: 0;
  opacity: 0.1;
}

.section-title h2 {
  color: var(--primary-color);
  position: relative;
  padding-bottom: 20px;
  font-size: 38px;
  text-transform: uppercase;
  font-weight: 800;
  z-index: 1;
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  bottom: 0;
  left: calc(50% - 40px);
  border-radius: 2px;
}

/* Cards / Services */
.icon-box,
.card,
.service-item,
.box {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.4s ease-in-out;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.icon-box::before,
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease-in-out;
}

.icon-box:hover::before,
.card:hover::before {
  transform: scaleX(1);
}

.icon-box:hover,
.card:hover,
.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.icon-box h4 a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  transition: 0.3s;
}

.icon-box h4 a:hover {
  color: var(--secondary-color);
}

/* Hero adjustments */
.carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.carousel-container {
  z-index: 2;
  position: relative;
}

.carousel-content h2 {
  color: #ffffff;
  font-size: 56px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.carousel-content p {
  color: #f8f9fa;
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

/* Hero Carousel Indicators (Slider Holes) */
#hero .carousel-indicators {
  z-index: 15;
}

#hero .carousel-indicators [data-bs-target] {
  width: 15px !important;
  height: 15px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  opacity: 0.6 !important;
  border: 5px solid transparent !important;
  /* Larger click area */
  background-clip: padding-box !important;
  margin: 0 8px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

#hero .carousel-indicators .active {
  opacity: 1 !important;
  width: 30px !important;
  border-radius: 6px !important;
  background-color: var(--secondary-color) !important;
  box-shadow: 0 2px 8px rgba(0, 208, 221, 0.8) !important;
}

/* Footer */
#footer {
  background: #0a0a0a;
  color: #f4f4f4;
  font-size: 15px;
  position: relative;
}

#footer .footer-top {
  background: #111111;
  padding: 80px 0 50px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#footer h4 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
}

#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-links ul i {
  padding-right: 10px;
  color: var(--secondary-color);
  font-size: 12px;
  line-height: 1;
}

#footer .footer-links ul a {
  color: #aaaaaa;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
  font-weight: 500;
}

#footer .footer-links ul a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

#footer .social-links a {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 10px;
  border-radius: 50%;
  text-align: center;
  width: 42px;
  height: 42px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .social-links a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

#footer .footer-bottom {
  background: #050505;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

#footer .copyright {
  margin: 0;
  color: #888;
}

#footer .credits {
  font-size: 13px;
  color: #888;
}

#footer .credits a {
  transition: 0.3s;
}

#footer .footer-info p {
  line-height: 28px;
  color: #999;
}

#footer .contact-details p {
  margin-bottom: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  color: #bbb;
}

#footer .contact-details i {
  font-size: 18px;
  color: var(--secondary-color) !important;
}

/* index.html Styles */
.words {
  position: relative;
  animation: move-words 15s linear infinite;
  margin: 0;
  font-size: 60px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

@keyframes move-words {
  0% {
    left: 100%;
  }

  100% {
    left: -100%;
  }
}

.bgimage {
  background-image: url(/static/new_design__logo.png);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  z-index: 0;
}

.bgimage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  z-index: -1;
}

.service-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(13, 71, 161, 0.12);
}

.service-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.08);
}

.service-content {
  padding: 25px;
  background: #fff;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.service-btn-small {
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.service-btn-small:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Service_detail.html Styles */
.detail-card {
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  margin-top: 100px;
}

.detail-img-container {
  height: 450px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.detail-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  padding: 60px;
}

.service-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(0, 208, 221, 0.1);
  color: var(--secondary-color);
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.detail-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.detail-text {
  font-size: 17px;
  line-height: 1.9;
  color: #555;
}

.quote-box {
  background: linear-gradient(135deg, var(--primary-color), #1976d2);
  color: #fff;
  padding: 40px;
  border-radius: 20px;
  margin-top: 50px;
  text-align: center;
  position: relative;
}

.quote-box i {
  font-size: 24px;
  opacity: 0.8;
}

/* ==========================================================================
   MOBILE RESPONSIVITY & PREMIUM MOBILE EXPERIENCE
   ========================================================================== */

/* Navbar Mobile Styles - Trigger only on mobile/small tablets */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block !important;
    font-size: 32px;
    color: var(--primary-color);
    cursor: pointer;
    transition: 0.3s;
    line-height: 0;
  }

  .navbar ul {
    display: none;
  }

  .navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100vh !important;
    width: 100vw !important;
    background: rgba(13, 71, 161, 0.98);
    transition: 0.3s;
    z-index: 2000 !important;
    backdrop-filter: blur(15px);
  }

  /* NUCLEAR RESET FOR MOBILE MENU - Force Vertical Stacking */
  #navbar.navbar-mobile {
    display: block !important;
  }

  #navbar.navbar-mobile ul {
    display: block !important;
    position: absolute !important;
    top: 60px !important;
    right: 20px !important;
    bottom: 20px !important;
    left: 20px !important;
    padding: 20px 0 !important;
    border-radius: 20px !important;
    background-color: #fff !important;
    overflow-y: auto !important;
    transition: 0.3s !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    list-style: none !important;
    margin: 0 !important;
    flex-direction: column !important;
    /* Kill horizontal flex */
    align-items: stretch !important;
  }

  #navbar.navbar-mobile li {
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }

  #navbar.navbar-mobile a,
  #navbar.navbar-mobile a:focus {
    padding: 15px 30px !important;
    font-size: 18px !important;
    color: var(--text-dark) !important;
    border-bottom: 1px solid #f8f9fa !important;
    display: block !important;
    width: 100% !important;
    font-weight: 600 !important;
    transition: 0.3s !important;
    white-space: normal !important;
    text-align: left !important;
    background: none !important;
    justify-content: flex-start !important;
    position: static !important;
  }

  /* Booking Button inside Mobile Menu */
  #navbar.navbar-mobile .mobile-only-btn {
    display: block !important;
    padding: 10px 20px !important;
    margin-top: 10px;
  }

  #navbar.navbar-mobile .mobile-booking-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 50px !important;
    padding: 15px !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3) !important;
    display: block !important;
    width: 100% !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none !important;
  }

  #navbar.navbar-mobile .mobile-booking-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
  }

  #navbar.navbar-mobile a i {
    float: right !important;
  }

  .navbar-mobile a::after {
    display: none;
  }

  .mobile-nav-toggle.bi-x {
    position: fixed;
    right: 30px;
    top: 25px;
    z-index: 9999;
    color: #fff;
  }
}

/* Hero Section Responsiveness */
@media (max-width: 768px) {
  .carousel-content {
    text-align: center !important;
    padding: 0 20px;
  }

  .carousel-content h2 {
    font-size: 28px !important;
    line-height: 1.2;
  }

  .carousel-content p {
    font-size: 15px !important;
    margin-bottom: 20px;
  }

  .section-title h2 {
    font-size: 24px !important;
  }

  .section-title span {
    font-size: 32px !important;
    top: 20px;
  }

  #topbar {
    display: none !important;
  }

  #header {
    top: 0 !important;
    padding: 10px 0 !important;
    height: 90px !important;
    margin-top: 0 !important;
  }

  /* Reset hero margin for mobile because topbar is hidden */
  #hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    height: 100vh !important;
  }

  /* Ensure carousel items fill the adjusted hero height */
  #hero .carousel-item {
    height: 100vh !important;
  }

  .logo img {
    max-height: 80px !important;
  }

  #main {
    padding-top: 0 !important;
  }

  section {
    padding: 50px 0 !important;
  }

  .box {
    padding: 30px 20px !important;
  }

  .detail-content {
    padding: 30px 20px !important;
  }

  .detail-img-container {
    height: 220px !important;
  }

  .detail-title {
    font-size: 26px !important;
  }

  .words {
    font-size: 30px !important;
  }
}

/* Buttons and Links on Mobile */
@media (max-width: 576px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .box {
    padding: 30px 20px !important;
  }

  .btn-get-started,
  .btn-primary,
  button.btn-primary {
    width: 100%;
    margin-bottom: 15px;
    padding: 15px !important;
  }

  #hero .carousel-indicators {
    bottom: 30px !important;
    z-index: 15 !important;
    display: flex !important;
    visibility: visible !important;
  }

  .words {
    font-size: 35px !important;
  }
}

/* Adjusting the "Booking Now" header button for small screens */
@media (max-width: 768px) {
  .header-btn {
    display: none !important;
    /* Hide it and it will be accessible via the menu */
  }
}

/* Specific Card Adjustments */
@media (max-width: 991px) {

  .icon-box,
  .service-card,
  .box {
    margin-bottom: 20px;
  }
}

/* Certifications Section */
.certifications {
  background: #fdfdfd;
}

.cert-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(13, 71, 161, 0.12);
  border-color: var(--secondary-color);
}

.cert-img-wrapper {
  margin-bottom: 20px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  border: 1px solid #eee;
}

.cert-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.cert-img-wrapper {
  position: relative;
  cursor: pointer;
}

.zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 71, 161, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: 0.3s;
  z-index: 2;
}

.zoom-overlay i {
  font-size: 40px;
  margin-bottom: 10px;
}

.zoom-overlay span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}

.cert-card:hover .zoom-overlay {
  opacity: 1;
}

.cert-card:hover .cert-img-wrapper img {
  transform: scale(1.05);
}

/* Custom Zoom Modal */
.cert-zoom-modal {
  display: none;
  position: fixed;
  z-index: 1000000;
  /* Extremely high to cover everything */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000 !important;
  /* Fully opaque black to cover header */
  backdrop-filter: blur(15px);
}

.modal-controls {
  position: absolute;
  top: 30px;
  right: 50px;
  display: flex;
  gap: 15px;
  z-index: 1000001;
}

.modal-controls button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-controls button i {
  color: #ffffff !important;
  display: block;
  line-height: 1;
}

.modal-controls button:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: scale(1.1);
}

.modal-controls .close-btn {
  width: auto !important;
  padding: 0 25px !important;
  border-radius: 50px !important;
  background: rgba(255, 77, 77, 0.2);
  border-color: rgba(255, 77, 77, 0.3);
}

.modal-controls .close-btn:hover {
  background: #ff4d4d;
  border-color: #ff4d4d;
}

.modal-content-wrapper {
  width: 100%;
  height: 100%;
  display: block;
  /* Prevents flex-centering issues that cut off the top */
  overflow: auto;
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.modal-img {
  width: 50%;
  /* Start even smaller to allow more zoom-out range */
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transition: transform 0.2s ease-out;
  cursor: grab;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  display: inline-block;
  /* Works with text-align: center */
  margin: 0 auto;
  transform-origin: top center;
  /* Ensures zoom starts from top-middle */
}

.modal-img:active {
  cursor: grabbing;
}

.modal-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  text-align: center;
  color: white;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 20px;
  font-weight: 600;
  z-index: 1000002;
}

.cert-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.cert-date {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.cert-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}