/* ========= Root Design System ========= */
:root {
  --primary-glow: #00f0ff;
  --cta-glow: #ff6600;
  --primary-bg: #f4f4f4;
  --frosted-glass: rgba(18, 52, 86, 0.8);
  --gradient-header: linear-gradient(270deg, #1e90ff, #00a1ff, #1e90ff);
  --font-primary: 'Open Sans', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --transition-default: 0.3s ease;
}

/* ========= Reset & Base Typography ========= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--primary-bg);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-secondary);
  font-weight: 700;
}

p, a, li {
  font-family: var(--font-primary);
  font-weight: 400;
}

/* ========= Responsive Containers ========= */
.container,
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ========= Header (Animated) ========= */
@keyframes animatedBackground {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: var(--gradient-header);
  background-size: 400% 400%;
  animation: animatedBackground 12s ease infinite;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ========= Logo ========= */
.custom-logo {
  text-align: center;
  padding: 10px 0;
}

.custom-logo img {
  max-width: 90%;
  height: auto;
  display: inline-block;
  margin: 0 auto;
}

.custom-logo h1 {
  background: linear-gradient(to right, #ff6a00, #ee0979);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  margin: 0;
}

@media (min-width: 769px) {
  .custom-logo img {
    max-width: 300px;
  }
}

/* ========= Navigation ========= */
.custom-nav {
  flex: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-nav ul,
.custom-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-nav ul {
  display: flex;
  gap: 15px;
}

.custom-nav li a,
.custom-mobile-nav li a {
  text-decoration: none;
  color: inherit;
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: var(--transition-default);
}

.custom-nav li a:hover,
.custom-mobile-nav li a:hover {
  color: #fff;
  text-shadow: 0 0 5px var(--primary-glow), 0 0 10px var(--primary-glow);
}

.custom-nav li a i,
.custom-mobile-nav li a i {
  margin-right: 5px;
}

/* ========= Explore CTA Button ========= */
.explore-btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(90deg, #ff6600, #ff9900);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.explore-btn:hover {
  background: linear-gradient(90deg, #ff9900, #ff6600);
  transform: scale(1.05);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

/* ========= Section Base Layouts ========= */
.section,
.related-services,
.pricing-section {
  padding: 40px 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.section:nth-child(odd) {
  background-color: #f9f9f9;
}

.section h2,
.related-services h2,
.pricing-section h2 {
  font-size: 32px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* ========= Service & Category Grids ========= */
.category-grid,
.service-grid,
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.category-item,
.service-item,
.pricing-card {
  background-color: #007bff;
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  max-width: 300px;
  flex: 1 1 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover,
.service-item:hover,
.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.category-item .icon,
.service-item .icon {
  font-size: 60px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.category-item .icon:hover,
.service-item .icon:hover {
  transform: scale(1.2);
}

/* ========= Pricing Cards Specific ========= */
.pricing-card {
  background-color: #f9f9f9;
  color: #333;
}

.pricing-card .card-footer a {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.pricing-card .card-footer a:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* ========= CTA Buttons ========= */
.cta-button,
.cta-section a {
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-default);
}

.cta-button {
  background-color: #fff;
  color: #007bff;
}

.cta-button:hover {
  background-color: #0056b3;
  color: #fff;
}

.btn-book {
  background-color: #007bff;
}

.btn-book:hover {
  background-color: #0056b3;
}

.btn-call {
  background-color: #28a745;
}

.btn-call:hover {
  background-color: #218838;
}

.btn-success {
  background-color: #25D366;
}

.btn-share {
  background-color: #3b5998;
}

.btn-share:hover {
  background-color: #2d4373;
}

/* ========= Pulse Animation (for icons + services) ========= */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Apply to icons across sections */
.service-header .service-icon,
.section .icon {
  animation: pulse 2s infinite;
}

/* CTA & Glow Hover Enhancements (already defined in parts 1–2) */
.custom-icon:hover,
.custom-nav-btn:hover,
.explore-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

/* ========= Responsive Magic Starts Here ========= */

/* Desktop Breakpoint */
@media only screen and (min-width: 769px) {
  .custom-nav-btn,
  .custom-mobile-nav {
    display: none !important;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .custom-header {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .custom-logo {
    order: 1;
    margin-bottom: 15px;
  }

  .custom-nav-btn {
    order: 2;
    align-self: flex-start;
  }

  .custom-icon-container {
    order: 3;
    align-self: flex-end;
    margin-top: 10px;
  }

  /* Hero Section Tweaks */
  .hero-section {
    flex-direction: column;
    align-items: center;
  }

  .hero-text {
    text-align: center;
    margin-top: 20px;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .cta-section a {
    font-size: 1rem;
    padding: 12px 20px;
  }

  /* Pricing Cards Stack */
  .pricing-grid {
    flex-direction: column;
  }

  .pricing-card {
    flex: 1 1 100%;
  }

  /* Services Stack on Small Screens */
  .service-grid {
    flex-direction: column;
  }

  .service-item {
    flex: 1 1 100%;
  }

  .container-custom {
    padding: 10px;
  }
}