/* ===============================
   BASE STYLES
=============================== */
body {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  background-image: linear-gradient(to bottom right, #3a3a3a, #1e88e5);
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-family: "Abril Fatface", cursive;
}

h2, h4 {
  margin: 0.5rem;
}

p {
  margin: 0.5rem;
}

.lead {
  color: white;
  font-size: 2.2rem;
}

.drop-shadow {
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.158);
}

/* ===============================
   NAVBAR TOGGLER
=============================== */
/* ===============================
   NAVBAR TOGGLER
=============================== */
.navbar-toggler {
  width: 20px;
  height: 20px;
  position: relative;
  transition: .5s ease-in-out;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
  outline: none;
  box-shadow: none;
  border: 0;
}

.navbar-toggler span {
  margin: 0;
  padding: 0;
}

/* --- Animated Gradient Bars --- */
.toggler-icon {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: linear-gradient(263deg, #00ffcc, #00ccff, #ff00cc, #ffcc00);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite, glowPulse 3s ease-in-out infinite;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
  box-shadow: 0 0 10px rgba(0,255,255,0.6);
}

/* Add soft glow pulse animation */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,255,255,0.4), 0 0 16px rgba(255,0,255,0.2); }
  50% { box-shadow: 0 0 14px rgba(255,255,255,0.8), 0 0 24px rgba(0,255,255,0.4); }
}

/* Smooth color movement */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- BAR POSITIONS --- */
.middle-bar { margin-top: 0px; }

/* When toggler is OPEN */
.navbar-toggler .top-bar {
  margin-top: 0px;
  transform: rotate(135deg);
}

.navbar-toggler .middle-bar { opacity: 0; }

.navbar-toggler .bottom-bar {
  margin-top: 0px;
  transform: rotate(-135deg);
}

/* When toggler is COLLAPSED (Hamburger Visible) */
.navbar-toggler.collapsed .top-bar {
  margin-top: -20px;
  transform: rotate(0deg);
}

.navbar-toggler.collapsed .middle-bar {
  opacity: 1;
}

.navbar-toggler.collapsed .bottom-bar {
  margin-top: 20px;
  transform: rotate(0deg);
}

/* --- Hover Glow Boost --- */
.navbar-toggler:hover .toggler-icon {
  filter: brightness(1.4);
  box-shadow: 0 0 18px rgba(0,255,255,0.8), 0 0 25px rgba(255,255,255,0.3);
}

/* --- Light Mode (auto detect) --- */
@media (prefers-color-scheme: light) {
  .toggler-icon {
    background: linear-gradient(263deg, #ff7e5f, #feb47b, #fbd786, #f7797d);
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite, glowPulse 3s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255,150,80,0.6);
  }

  .navbar-toggler:hover .toggler-icon {
    box-shadow: 0 0 18px rgba(255,170,80,0.8), 0 0 25px rgba(255,255,255,0.4);
  }
}

/* ===============================
   BUTTON STYLES
=============================== */
.btn-outline-primary {
  border-color: white;
  color: white;
  background-color: #35506a;
  width: 100%;
}

.btn-outline-primary:hover {
  background-color: #35506a;
  border-color: white;
  text-transform: uppercase;
}

.btn-primary {
  background-color: #286ba4;
}

.btn-primary:hover, .btn-primary:active {
  background-color: #286ba4;
}

.nav-link:hover {
  background-color: #286ba4;
  color: black;
}

.c-hero-btn {
  background-color: #35506a;
  color: #fff;
  width: 250px;
}

.c-hero-btn:hover {
   background-color: #286ba4;
   color: #fff;
}

/* ===============================
   IMAGE STYLING (Preserved Original Style)
=============================== */
#hero1_img {
  height: 100%;
}

#headshot_img {
  width: 100%;
  height: 100%;
  padding-left: 0;
}

.c-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0%;
}

.c-testm {
  width: 150px;
  height: 150px;
}

/* ===============================
   BREADCRUMBS
=============================== */

.breadcrumbs-section {
  background-color: #1979b8;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: white !important; /* Divider color */
  content: "|";
}

.breadcrumb a {
  color: white !important;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .active a {
  color: #f8f9fa !important;
}

/* ✅ Restore Original Breadcrumb Height */
.breadcrumbs-section {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.breadcrumb {
  margin-bottom: 0 !important;
  padding: 0.25rem 0 !important;
}

.breadcrumb-item {
  line-height: 1.2 !important;
}


/* animsitions */
.animsition-overlay-slide {
  background-image: linear-gradient(
    to bottom right,
    rgba(58, 58, 58, 0.85),
    rgba(30, 136, 229, 0.85)
  );
  transition: background 0.4s ease-in-out;
}/* End of animsimtions */

/* Services page */
/* ===============================
   Web Development Section (Final)
   =============================== */
.c-webDev {
  position: relative;
  background-image: url("img/webDev.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #fff; /* ensure all text is white for contrast */
}

/* Dark overlay for background */
.c-webDev::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55); /* rich dark overlay */
  pointer-events: none;
  z-index: 1;
}

/* Ensure text and content appear above overlay */
.c-webDev .container,
.c-webDev .content,
.c-webDev .row,
.c-webDev .card {
  position: relative;
  z-index: 2;
}

/* Optional: smooth fade for elegance */
.c-webDev .card,
.c-webDev .content {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.c-webDev .card:hover {
  transform: translateY(-5px);
  opacity: 0.95;
}


/* Services page - Services Packages/Pricing */
#pricing .card:hover {
  transform: translateY(-8px);
  transition: 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

#pricing .btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
  transition: 0.2s ease;
}

#cta {
  background: linear-gradient(to bottom right, #1e88e5, #3a3a3a);
}

/* ===============================
   SERVICES SECTION
   =============================== */
.services-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #eaf3ff 60%, #d8e4ff 100%);
  color: #1e2a38;
  position: relative;
  z-index: 1;
}

.services-section h2 {
  color: #1e2a38;
}

.services-section h3 {
  color: #1e88e5;
  font-weight: 600;
}

.services-section p {
  color: #555;
}

.services-section .card {
  background: #ffffff;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(30, 136, 229, 0.15);
}

/* ===============================
   TRANSITION EFFECT BETWEEN SECTIONS
   =============================== */
.services-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(232,243,255,0), #141414 100%);
  z-index: -1;
}

/* ===============================================
   FIX 1: Dark Theme for Services Section
   =============================================== */
.services-section {
  background: linear-gradient(135deg, #121212 0%, #1e1e1e 50%, #0d47a1 100%);
  color: #f5f5f5;
  position: relative;
  z-index: 1;
}

.services-section h2,
.services-section h3 {
  color: #ffce47;
}

.services-section p {
  color: #dcdcdc;
}

.services-section .card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.services-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

/* Smooth fade to next section */
.services-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(18,18,18,0), #0d0d0d 100%);
  z-index: -1;
}


/* ===============================================
   FINAL NAVBAR FIXES – RESTORE ORIGINAL LOOK
   =============================================== */

/* Ensure consistent button spacing across nav items */
.navbar-nav .nav-item.btn {
  margin-right: 0.5rem !important;
}

.navbar-nav .nav-item:last-child {
  margin-right: 0 !important;
}

/* Restore button styles for ALL nav items */
.navbar-nav .btn-outline-primary {
  border: 1px solid #fff !important;
  background-color: #35506a !important;
  color: #fff !important;
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
}

/* Hover effect for all buttons (not just dropdown) */
.navbar-nav .btn-outline-primary:hover,
.navbar-nav .show > .btn-outline-primary,
.navbar-nav .nav-link:hover {
  background-color: #286ba4 !important;
  color: #fff !important;
  text-transform: uppercase;
}

/* Fix dropdown button and its menu consistency */
.navbar-nav .dropdown-menu {
  background-color: #1e1e1e !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.navbar-nav .dropdown-item {
  color: #fff !important;
  background: transparent;
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
  background-color: #286ba4 !important;
  color: #fff !important;
}


/* ===============================================
   SERVICES SECTION – MAKE TEXT PURE WHITE
   =============================================== */
.services-section {
  background: linear-gradient(135deg, #121212 0%, #1e1e1e 50%, #0d47a1 100%);
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.services-section h2,
.services-section h3 {
  color: #ffce47;
}

.services-section p {
  color: #ffffff;
}

.services-section .card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.services-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.services-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(18,18,18,0), #0d0d0d 100%);
  z-index: -1;
}

/* ===============================
   NAV BUTTON RESTORE
=============================== */

/* Restore equal spacing between all nav buttons */
.nav-item {
  margin-right: 8px;
}

/* Default button style */
.btn-outline-primary {
  border: 1px solid white;
  color: white;
  background-color: transparent;
  width: 100%;
  transition: all 0.3s ease;
}


/* ===============================
   PRICING SECTION
   =============================== */
.pricing-section {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  padding: 90px 0;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #dcdcdc;
  max-width: 650px;
  margin: 0 auto 40px;
}

/* Glassy Cards */
.glassy-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 35px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.4s ease;
}

.glassy-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Card Content */
.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
}

.pricing-card p {
  font-size: 0.95rem;
  color: #eaeaea;
  margin-bottom: 20px;
}

.price-tag {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffce47;
}

/* Buttons */
.btn-card {
  display: inline-block;
  background: linear-gradient(135deg, #ffce47, #ff8c00);
  color: #111;
  font-weight: 600;
  border-radius: 25px;
  padding: 10px 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-card:hover {
  background: linear-gradient(135deg, #ffd96a, #ffa733);
  transform: translateY(-3px);
}

/* Shimmer Effect */
.btn-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.btn-card:hover::after {
  left: 125%;
}

/* CTA Banner */
.cta-banner {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 25px;
  padding: 50px 30px;
  color: #fff;
  margin-top: 60px;
  text-align: center;
}

.btn-glass {
  display: inline-block;
  background: linear-gradient(135deg, #ffce47, #ff8c00);
  color: #111;
  font-weight: 600;
  border-radius: 30px;
  padding: 12px 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: linear-gradient(135deg, #ffd96a, #ffa733);
  transform: translateY(-3px);
}

/* Smooth Fade-In on Scroll */
.glassy-card,
.cta-banner {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-section {
    padding: 60px 0;
  }
  .cta-banner {
    padding: 40px 20px;
  }
}

/* === FAQ SECTION === */
.faq-section {
  background: linear-gradient(to bottom right, #2f2f2f, #1e88e5);
  color: #fff;
  padding: 70px 20px;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

/* Section heading */
.faq-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* FAQ items */
.faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* Question button */
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Plus/Minus Icons */
.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: #fff;
  transition: all 0.3s ease;
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Active state (minus icon) */
.faq-item.active .faq-icon::after {
  opacity: 0;
}

.faq-question:hover {
  color: #90caf9;
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  line-height: 1.7;
  font-size: 1rem;
  color: #e0e0e0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Slide open */
.faq-item.active .faq-answer {
  max-height: 500px; /* enough for most content */
  padding: 18px 22px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .faq-section {
    padding: 50px 15px;
  }

  .faq-section h2 {
    font-size: 1.8rem;
  }

  .faq-question {
    font-size: 1rem;
  }
}

.faq-item.active {
  box-shadow: 0 0 12px rgba(30, 136, 229, 0.5);
}

/* ===== CONTACT PAGE STYLING ===== */

.contact-section {
  background: linear-gradient(to bottom right, #1b1b1b, #2d2d2d);
  color: #e0e0e0;
  border-top: 2px solid #0d6efd;
  border-bottom: 2px solid #0d6efd;
}

.contact-section h2,
.contact-section h4 {
  color: #fff;
  font-family: "Abril Fatface", serif;
  letter-spacing: 0.5px;
}

.contact-section p,
.contact-section address {
  color: #bcbcbc;
}

.contact-section .text-primary {
  color: #0d6efd !important;
}

.contact-section .form-control {
  background-color: #292929;
  border: 1px solid #444;
  color: #fff;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.contact-section .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
  background-color: #1f1f1f;
}

.contact-section .input-group-text {
  background-color: #0d6efd;
  border: none;
  color: #fff;
}

.contact-section .btn-primary {
  background: linear-gradient(90deg, #0d6efd, #1e88e5);
  border: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.7);
}

.contact-section .bg-white {
  background-color: #222 !important;
  border: 1px solid #333;
}

.contact-section .shadow-sm {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Breadcrumbs consistency */
.breadcrumbs-section {
  background: linear-gradient(to right, #0d6efd, #1e88e5);
  padding: 40px 0;
  text-align: center;
}

.breadcrumbs-section h2 {
  color: #fff;
  font-family: "Abril Fatface", serif;
}

.breadcrumb .bc-item {
  color: #f5f5f5;
  text-decoration: none;
}

.breadcrumb .bc-item:hover {
  color: #fff;
  text-decoration: underline;
}

/* SVG icons styling */
.contact-section svg {
  transition: transform 0.3s ease;
}

.contact-section svg:hover {
  transform: scale(1.2);
}

/* Form overlay spinner (optional aesthetic enhancement) */
.form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.contact-section {
  background: linear-gradient(to bottom right, #23272b, #1e88e5);
  color: #f0f0f0;
}


/* ===============================
   NAVBAR + DROPDOWN + HERO BUTTON
   Unified Inner Hover Effect
=============================== */

/* --- Dropdown centering under 'Services' --- */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  min-width: 180px;
  background-color: #222;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

/* --- Dropdown menu items --- */
.dropdown-menu .dropdown-item {
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
  background-color: rgba(30, 136, 229, 0.15);
  box-shadow: inset 0 0 0 3px #1e88e5;
  margin: 3px;
  color: #1e88e5;
}

/* --- Navbar links --- */
.navbar .nav-link {
  position: relative;
  padding: 8px 18px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover {
  background-color: rgba(30, 136, 229, 0.15);
  box-shadow: inset 0 0 0 3px #1e88e5;
  margin: 3px;
  color: #1e88e5;
}

/* --- Hero Button (c-hero-btn) --- */
.c-hero-btn {
  display: inline-block;
  width: 250px;
  background-color: #35506a;
  color: #fff;
  border-radius: 6px;
  padding: 10px 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.c-hero-btn:hover {
  background-color: rgba(30, 136, 229, 0.15);
  box-shadow: inset 0 0 0 3px #1e88e5;
  margin: 3px;
  color:#fff;
}



/* ==========================================
   Mobile Dropdown (Slide Animation)
   ========================================== */
@media (max-width: 991px) {
  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    margin: 0;
    transition: all 0.4s ease;
  }

  .dropdown.show .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

  .dropdown-item {
    transform: translateY(-5px);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .dropdown.show .dropdown-item {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================================
   Newsletter Form Responsive Styles (Final)
   ========================================= */

/* Remove any unwanted background */
.home-newsletter form {
  background: none;
}

/* Add subtle vertical padding for all screens */
.home-newsletter {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ===== MOBILE & TABLET (Default up to 991px) ===== */
.home-newsletter .input-group {
  display: block !important;  /* stack elements */
  width: 100%;
}

.home-newsletter .input-group input,
.home-newsletter .input-group button {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
  border-radius: 0.5rem;
}

/* Prevent overflow of button text */
.home-newsletter .input-group button {
  white-space: normal;
  word-wrap: break-word;
}

/* Remove bottom margin on last element */
.home-newsletter .input-group button:last-child {
  margin-bottom: 0;
}

/* ===== DESKTOP AND LARGER (≥992px) ===== */
@media (min-width: 992px) {
  .home-newsletter .input-group {
    display: flex !important;
    align-items: center;
    justify-content: center;
    /* gap: 0.5rem; */
  }

  .home-newsletter .input-group input {
    width: auto;
    flex: 1;
    margin-bottom: 0;
  }

  .home-newsletter .input-group button {
    width: 100;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 0;
  }
}

.home-newsletter input,
  .home-newsletter button {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  @media (max-width: 767.98px) {
    .home-newsletter form {
      flex-direction: column !important;
      align-items: stretch;
    }
    .home-newsletter input,
    .home-newsletter button {
      width: 100%;
      border-radius: 5px !important;
    }
  }

   .home-newsletter input,
  .home-newsletter button {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  @media (max-width: 767.98px) {
    .home-newsletter form {
      flex-direction: column !important;
      align-items: stretch;
    }
    .home-newsletter input,
    .home-newsletter button {
      width: 100%;
      border-radius: 5px !important;
    }
  }


/* =======================================
   FORMS, SPINNERS, ALERTS CSS
   ======================================= */

/* ---------- Spinner Styling ---------- */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top: 3px solid #ffcc00;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite, scaleIn 0.14s ease forwards;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  transform-origin: center center;
}

.btn-text {
  vertical-align: middle;
  font-weight: 500;
  letter-spacing: 0.3px;
}

button[disabled] {
  opacity: 0.85;
  cursor: not-allowed;
  transition: background 0.3s ease, opacity 0.3s ease;
}

/* Spinner Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scaleIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- Alert Boxes ---------- */
.alert {
  position: relative;
  display: none;
  padding: 14px 16px;
  margin-top: 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.5s ease;
  z-index: 999;
}

.alert.success {
  background: rgba(30, 130, 76, 0.85);
  border: 1px solid #28a745;
  box-shadow: 0 2px 12px rgba(40, 167, 69, 0.3);
}

.alert.error {
  background: rgba(172, 40, 40, 0.85);
  border: 1px solid #dc3545;
  box-shadow: 0 2px 12px rgba(220, 53, 69, 0.3);
}

.alert.slide-in {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeOut 4.5s ease-in-out forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-15px); }
}

.alert.slide-out {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}

/* =======================================
   FORM CONTAINER
   ======================================= */
form {
  position: relative;
}

/* =======================================
   Universal Form Overlay Spinner
   ======================================= */
.form-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.form-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Spinner inside overlay */
.form-overlay .spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #ffcc00;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.9s linear infinite, fadeIn 0.2s ease-in-out forwards;
  transform-origin: center center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeOutOverlay {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ===============================
   FOOTER
=============================== */
.page-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: 1rem;
  padding: 5px;
  background: rgba(255, 255, 255, 0.65);
  width: 100%;
  justify-content: center;
}

.page-footer a {
  display: flex;
  margin-left: 9px;
}

footer {
  background-color: #263238;
  color: white;
  padding: 15px;
  text-align: center;
}

/* ===============================
   RESPONSIVE FIXES
=============================== */
@media (min-width: 992px) { 
  .nav-item.btn-outline-primary {
    width: 120px;
  }
}

/* Additional styles for my nav */

