* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #f4f9f9; color: #041126; }
a { text-decoration: none; color: inherit; }

/* --- Layout helpers --- */
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* --- Top navigation --- */
.navbar {
  position: sticky; /* Make navbar sticky */
  top: 0; /* Stick to the top of the viewport */
  z-index: 1000; /* Ensure navbar appears above other content */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 24px;
  margin-top: 24px;
  width: 100%; /* Full width initially */
  background: rgba(244, 249, 249, 0.85); /* Semi-transparent background */
  backdrop-filter: blur(8px); /* Apply blur effect for modern browsers */
  -webkit-backdrop-filter: blur(8px); /* For Safari support */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth animation with easing */
}

/* Class to be added when scrolling for enhanced visibility */
.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: rgba(244, 249, 249, 0.75); /* More transparent background when scrolled */
  backdrop-filter: blur(12px); /* Increased blur effect when scrolled */
  -webkit-backdrop-filter: blur(12px); /* For Safari support */
  border-radius: 20px; /* Fully rounded corners on all sides */
  padding: 16px 24px; /* Slightly adjusted padding when scrolled */
  width: 85%; /* Narrower width when scrolled */
  margin: 20px auto 0; /* Increased top spacing from 12px to 20px */
  max-width: 1200px; /* Maximum width to maintain consistency with layout */
  transform: translateY(5px); /* Slight downward animation */
}

/* Updated logo styles */
.logo-link {
  justify-self: start;
  text-decoration: none;
}

.logo-container {
  display: flex; /* Arrange items horizontally */
  align-items: center; /* Vertically center items */
  gap: 1px; /* Further reduced gap */
}

.logo-image {
  height: 36px; /* Adjust height as needed */
  width: auto;
}

.logo-text {
  font-size: 28px; /* Increased font size */
  font-weight: 400; /* Use Poppins Regular weight */
  color: #041126; /* Use existing dark color */
  font-family: 'Poppins', sans-serif; /* Use Poppins font */
}

/* Removed old .logo class */

.contact-btn { justify-self: end; }

/* Hamburger menu */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px 0;
  background-color: #041126;
  transition: transform 0.3s ease;
}

/* nav‑menu with glassmorphism */
.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
  justify-self: center;
  padding: 12px 36px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #041126;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* shared button tweaks */
.btn-pill,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 28px;
}

.btn-pill {
  background: #006dff;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 109, 255, 0.25);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Added transitions */
}

/* Added hover effect for .btn-pill */
.btn-pill:hover {
  background-color: #2c2f90; /* Darker blue on hover */
  transform: translateY(-3px); /* Slight upward movement */
  box-shadow: 0 10px 25px rgba(0, 109, 255, 0.35); /* Enhanced shadow on hover */
}

.btn-outline {
  border: 2px solid #d3d9e3;
  color: #041126;
  transition: all 0.3s;
}
.btn-outline:hover { background: #041126; color: #fff; }

/* --- Hero section --- */
.hero { position: relative; padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: 56px; line-height: 1.12; font-weight: 800; }

.hero h1 .accent { position: relative; }
.hero h1 .accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  bottom: 10px;
  width: 110%;
  height: 22px;
  background: #d4f700;
  border-radius: 6px;
  opacity: 0.65;
}
.hero h1 .icon-placeholder {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: #daf0ff;
  border-radius: 6px;
  margin: 0 8px;
  vertical-align: middle;
}

/* Style for highlighted text in hero */
.highlighted-text {
  background-color: #d4f700; /* Changed to a vibrant yellow */
  padding: 4px 12px; /* Adjusted padding */
  border-radius: 6px; /* Slightly adjusted radius */
  display: inline-block; /* Ensures background wraps text */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
  /* Removed border and backdrop-filter for simplicity */
  transform: skewX(-10deg); /* Added slant effect */
  margin: 0 4px; /* Add slight horizontal margin to prevent overlap */
}

/* Blinking cursor effect */
.cursor {
  display: inline-block;
  width: 3px;
  height: 1em; /* Match line height */
  background-color: #041126; /* Cursor color */
  margin-left: 5px;
  animation: blink 1s step-end infinite;
  vertical-align: bottom; /* Align with text baseline */
}

@keyframes blink {
  from, to { background-color: transparent; }
  50% { background-color: #041126; } /* Cursor color */
}

/* Media Query for Mobile */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px; /* Smaller font size for mobile */
    line-height: 1.2; /* Adjust line height if needed */
  }
}

.hero p {
  max-width: 680px;
  margin: 24px auto 40px;
  font-size: 18px;
  color: #5c6a7d;
  line-height: 1.6;
}

/* Styles for links within dual column section */
.dual-column-section a {
  text-decoration: underline;
  color: #006dff; /* Standard link blue */
  transition: color 0.2s ease; /* Add transition for smooth color change */
}

.dual-column-section a:hover {
  color: #041126; /* Change color to black on hover */
}

/* Styles for dual column section text */
.dual-column-section p {
  font-size: 1.1em; /* Increased font size */
  line-height: 1.7; /* Increased line height */
  letter-spacing: 0.5px; /* Added letter spacing */
  margin-bottom: 1em; /* Add space between paragraphs */
}

.dual-column-section p:last-child {
  margin-bottom: 0; /* Remove margin from last paragraph in each column */
}

.cta-group { display: flex; gap: 18px; justify-content: center; margin-bottom: 64px; }

.card-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 80px;
}
.card {
  width: 160px;
  height: 96px;
  background: linear-gradient(135deg, #f4f9f9 0%, #eaf1f7 100%);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.partner-strip {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.8;
}
.partner-strip img { height: 32px; filter: grayscale(100%); }

/* --- Soft radial background --- */
.bg-curve {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at top, #ffffff 0%, #eaf1f7 100%);
  border-radius: 50%;
  z-index: -2;
  opacity: 0.8; /* Increased opacity */
}

/* ▸▸  Service‑Explainer Styles  ◂◂ */
#se-services {
    padding: 4rem 1rem;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    text-align: center;
  }
  
  #se-services .se-heading {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: .4rem;
  }
  
  #se-services .se-subheading {
    color: #6c6d70;
    font-size: 1rem;
    margin-bottom: 3rem;
    line-height: 1.6;
  }
  
  /* ===== Grid Layout ===== */
  #se-services .se-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1120px;
    margin: 0 auto;
  }
  
  /* Double‑width card (SEO) on desktop */
  @media (min-width: 992px) {
    #se-services .se-span-2 { grid-column: span 2; }
  }
  
  /* ===== Card Base ===== */
  #se-services .se-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 2.4rem 1.8rem 2.1rem;
    text-align: left;
    box-shadow: 0 8px 22px rgba(0,0,0,.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition for hover effect */
  }
  
  /* Added hover effect for cards */
  #se-services .se-card:hover {
    transform: translateY(-5px); /* Lift the card slightly */
    box-shadow: 0 12px 28px rgba(0,0,0,.08); /* Enhance shadow */
  }
  
  /* Ensure the link covers the whole card area */
  #se-services .se-card-link {
      display: block;
      color: inherit;
      text-decoration: none;
      /* Ensure the link fills the card padding area */
      margin: -2.4rem -1.8rem -2.1rem;
      padding: 2.4rem 1.8rem 2.1rem;
      border-radius: 16px; /* Match card border-radius */
  }
  
  #se-services .se-title  { font-size: 1.5rem; font-weight: 600; margin: 0 0 .8rem; }
  #se-services .se-desc   { color:#6b7280; font-size:.9rem; margin-bottom:1.6rem; }
  
  /* Icon bubble */
  #se-services .se-icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    /* Removed border-radius: 50%; */
    border-radius: 12px; /* Added rounded corners */
    margin-bottom: 1.6rem;
    background: rgba(255,255,255,.9);   /* will be overridden per card */
  }
  
  .se-icon img {
      width: 64px;
      height: 64px;
      /* Removed border-radius: 50%; */
      border-radius: 12px; /* Added rounded corners */
      object-fit: cover;
      border: 1px solid rgba(0, 0, 0, 0.05); /* Adjusted outline slightly */
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Added drop shadow */
  }
  
  /* Tag pills */
  #se-services .se-tags { display:flex; flex-wrap:wrap; gap:.5rem; }
  #se-services .se-tags span {
    font-size: .75rem;      /* 12px */
    padding: .38rem .85rem;
    background: rgba(0,0,0,.06);
    border-radius: 9999px;
    white-space: nowrap;
  }
  
  /* ===== Individual Card Themes ===== */
  #se-services .se-web   { background: linear-gradient(180deg,#EAF9FF 0%,#F6FDFF 100%); }
  #se-services .se-web .se-icon            { background:#D6F3FF; }
  
  #se-services .se-branding{ background: linear-gradient(180deg,#FFF9E9 0%,#FFFEF4 100%); }
  #se-services .se-branding .se-icon       { background:#FFF3C5; }
  
  #se-services .se-animations{ background:linear-gradient(180deg,#F4FFF7 0%,#FAFFFB 100%); }
  #se-services .se-animations .se-icon     { background:#E2FDE7; }
  
  #se-services .se-maintenance{ background:linear-gradient(180deg,#F7F3FF 0%,#FCFBFF 100%); }
  #se-services .se-maintenance .se-icon    { background:#E7DEFF; }
  
  /* Dark gradient card */
  #se-services .se-seo {
    color:#fff;
    background: radial-gradient(at 30% 25%,rgba(255,255,255,.05) 0%,rgba(255,255,255,0) 70%),
                linear-gradient(135deg,#000 0%,#1B1C1F 100%);
    border-color: rgba(255,255,255,.08);
  }
  #se-services .se-seo .se-tags span       { background:rgba(255,255,255,.14); color:#fff; }
  #se-services .se-seo .se-icon            { background:rgba(255,255,255,.12); }

  /* Override shadow for dark card icon */
  #se-services .se-seo .se-icon img {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35); /* White shadow for dark background */
  }

/* --- Testimonial Rating Graphic (Copied from wordpress.css) --- */
.testimonial-rating {
    display: flex;
    align-items: center;
    justify-content: center; /* Center align the whole component */
    gap: 2px; /* Reduced gap between avatars and rating */
    margin-bottom: 24px; /* Space below the graphic */
    flex-wrap: wrap; /* Allow wrapping on smaller screens if needed */
}

.avatars {
    display: flex;
    padding-left: 10px; /* Offset the negative margin of the first avatar */
}

.avatars .avatar {
    width: 36px; /* Slightly smaller */
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff; /* White border to separate */
    margin-left: -15px; /* Overlap effect */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: #eee; /* Placeholder bg */
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px; /* Space within the rating section */
}

.stars {
    color: #ffc107; /* Gold color for stars */
    font-size: 18px; /* Adjust star size */
    line-height: 1; /* Prevent extra space */
    letter-spacing: 1px; /* Add slight space between stars */
}

.rating-value {
    font-weight: 600;
    color: #041126; /* Dark text color */
    font-size: 15px;
    margin-left: 4px; /* Space after stars */
}

.review-count {
    font-size: 14px;
    color: #5c6a7d; /* Grey text color */
}

/* --- Footer --- */
footer {
  padding: 40px 0;
  border-top: 1px solid #e0e0e0; /* Add a subtle top border */
  margin-top: 80px; /* Add space above the footer */
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo {
  height: 40px; /* Match header logo height */
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links img {
  height: 24px;
  width: 24px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.social-links a:hover img {
  opacity: 1;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #5c6a7d; /* Use existing gray color */
  border-top: 1px solid #e0e0e0; /* Separator line */
  padding-top: 20px;
}

.legal-links {
  display: inline;
  gap: 0;
}

.legal-links a {
  color: #5c6a7d; /* Gray color for links */
  text-decoration: none;
  margin: 0;
  padding: 0;
}

.legal-links a:hover {
  text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 17, 38, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 48px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    /* min-height: 750px; */ /* Removed fixed min-height */
    padding: 40px;
    justify-content: space-between; /* Push button to bottom */
    min-height: 600px; /* Adjusted min-height for content */
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #041126;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    z-index: 2;
}

.modal h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #041126;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Increased gap for more vertical space */
    margin: 24px 0 32px;
    position: relative;
    padding: 0;
}

.step {
    position: relative;
    display: flex;
    /* Use flexbox for icon and content alignment */
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Add gap between icon and content */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    /* Removed padding-bottom */
}

/* Removed .step-arrow-container styles */

/* Ensure last step doesn't have padding/arrow (No longer needed) */
/* Removed empty .step:last-child rule */

.step-icon {
    width: 56px;
    height: 56px;
    /* Removed margin-bottom */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text to the left */
    gap: 4px;
    /* Removed margin-bottom */
    position: relative; /* Needed for absolute positioning of number */
    padding-left: 40px; /* Add padding to make space for the number */
}

.step-number {
    position: absolute;
    left: 0;
    top: 0; /* Align with the top of the content */
    width: 32px;
    height: 32px;
    /* background-color: #006dff; */ /* Changed background color */
    background-color: #e0e0e0; /* Use a subtle gray */
    /* color: #fff; */ /* Changed text color */
    color: #5c6a7d; /* Use a darker gray for text */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #041126;
    margin: 0;
}

.step-content p {
    font-size: 15px;
    color: #5c6a7d;
    line-height: 1.6;
    max-width: 300px;
    margin: 0;
    text-align: left; /* Ensure text is left-aligned */
}

.modal .btn-pill {
    display: block;
    width: fit-content;
    margin: 40px auto 0; /* Added top margin, ensure auto horizontal centering */
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
  .navbar {
    grid-template-columns: auto auto;
    padding: 16px 20px;
    margin-top: 0;
    background: rgba(244, 249, 249, 0.95);
  }

  .hamburger-menu {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    padding: 24px;
    gap: 20px;
    border-radius: 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .contact-btn {
    display: none;
  }

  .hamburger-menu.active .bar:first-child {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger-menu.active .bar:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .contact-btn.hide-on-mobile {
    display: none; /* Hide the original contact button on mobile */
  }

  .nav-links.active .contact-btn.show-on-mobile {
    display: inline-flex; /* Show the mobile contact button inside the active nav */
    margin-top: 16px; /* Add some space above the button in the mobile menu */
    justify-content: center; /* Center the button text */
  }

  /* ADDED FOR MOBILE SPACING ADJUSTMENT */
  .card-row {
    margin-bottom: 30px; /* Reduced margin for mobile */
  }
  /* END ADDED FOR MOBILE SPACING ADJUSTMENT */
}

/* Default state for the mobile-only button (hidden on desktop) */
.contact-btn.show-on-mobile {
    display: none;
}

/* Responsive styles for dual-column sections */
@media (max-width: 768px) {
    .responsive-columns {
        flex-direction: column;
        gap: 0; /* Remove space between stacked columns */
    }

    .responsive-columns .column-left,
    .responsive-columns .column-right {
        text-align: center; /* Optional: Center text on mobile */
    }
}
