* {
  box-sizing: border-box;
}

@keyframes bg-pan-left {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.bg-pan-left {
  animation: bg-pan-left 10s linear infinite;
  background: linear-gradient(to right, #9bcee2, #9d9bff, #9bcee2);
  background-size: 100% 200%;
}

body {
  font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
  margin: 0;
}

/* Animated background added to body */
body.bg-pan-left {
  animation: bg-pan-left 8s linear infinite both;
  background: linear-gradient(to right, #bbecff, #dddfff, #bbecff);
  background-size: 200% 200%;
}


header {
    position: sticky;
    top: 0;
    z-index: 1000;
    

    /* Keep your original brand color, but add alpha */
    background: rgba(37, 56, 88, 0.9); /* #253858 with transparency */

    -webkit-backdrop-filter: blur(1px) saturate(100%);
    backdrop-filter: blur(1px) saturate(100%);

    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

main {
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

footer {
    background: #222;
    color: #eee;
    text-align: center;
    padding: 0.5rem;
    position: fixed;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    bottom: 0;
    overflow-x: auto;
}

.header-content {
    flex: 1;
    text-align: center;
}

.logo-top-left {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    width: 70px;
    height: auto;
}
.info-list-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 25px 0 16px 0;
    padding: 18px 24px;

    /* Glass background */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.25) 100%
    );
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    backdrop-filter: blur(0px) saturate(100%);

    /* Edges */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;

    /* Shadow */
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);

    /* Smooth transitions */
    transition: all 0.35s ease;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* 💎 Hover effect */
.info-list-enhanced:hover {
    /* Slightly brighter glass */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );

    /* Subtle lift */
    transform: translateY(-4px) scale(1.02);

    /* Stronger glow */
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3),
                0 0 20px rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1.08rem;
    color: #1c3762;
}

.info-icon {
    font-size: 1.3em;
    vertical-align: middle;
}
.info-item strong {
    color: #1670d6;
}


.search-container {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 4px 16px rgba(58,117,213,0.15);
  max-width: 500px;
  width: 100%;
  padding: 0.4rem;
  position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem; /* slightly tighter than 2rem so doesn't look off on mobile */
    z-index: 2;
    pointer-events: none;
    display: flex;  
    align-items: center;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.2rem;
    padding: 0.5rem 0 0.5rem 2.5rem; /* reserves space for icon */
}

.search-btn {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 2rem;
  background: #1E3A8A;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.search-btn:hover {
  background: #3350c2;
}

.suggestions-list {
  position: absolute; 
  top: 3.2rem; 
  left: 50%;
  width: 100%;
  max-width: 500px;
  transform: translateX(-50%);
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: none;
  z-index: 10;
}

.search-hint {
  margin-top: 0.75rem;
  color: #777;
  font-size: 0.97rem;
}

.suggestion-chip {
  background: #eaf1fb;
  color: #3a75d5;
  border-radius: 1rem;
  padding: 0.15rem 0.7rem;
  font-weight: 500;
  cursor: pointer;
  margin-right: 0.2em;
  transition: background 0.15s;
}
.suggestion-chip:hover {
  background: #d2e3fc;
}

.suggestion-item {
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s;
}

.suggestion-item:hover, .suggestion-item.active {
    background: #eaf1fb; 
}

.company-search-form {
  display: flex; 
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  width: 100%;
}

.company-search-form input:focus {
    box-shadow: 0 0 0 2px #3a75d5;
    transition: box-shadow .2s;
    background: #f7feff; 
    border-radius: 14px;
}

.suggestion-chip {
    background: #eaf1fb;
    color: #3a75d5;
    border-radius: 1rem;
    padding: 0.15rem 0.7rem;
    font-weight: 500;
    cursor: pointer;
    margin-right: 0.2em;
    transition: background 0.15s;
}
.suggestion-chip:hover, .suggestion-chip:focus {
    background: #d2e3fc;
}


.main-nav {
    top: 0px;      /* adjust to the height of your header */
    z-index: 99;
    background: #e0f0f6;     /* a subtle shade lighter than your header */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;             /* space between links */
    padding: 0.2px 0 0.2px 0;
}

.main-nav a {
    color: #39556e;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 0 5px 0;
    transition: color 0.18s, border-color 0.18s;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.main-nav a:hover, .main-nav a:focus {
    color: #60adcc;
    border-bottom: 2.5px solid #60adcc;
    background: none;
}

/* Hamburger menu button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    margin-left: auto; /* Push to the right */
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Media query for mobile */
@media (max-width: 768px) {
    /* Position header for hamburger placement */
    header {
        position: relative;
    }
    
    /* Show hamburger button on mobile */
    .nav-toggle {
        display: block !important;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        background: none !important;
        border: none !important;
        padding: 10px;
    }

    /* When menu is open, style the close button with high contrast */
    .nav-toggle.active {
        position: fixed !important;
        right: 20px !important;
        top: 20px !important;
        transform: none !important;
        z-index: 10002 !important;
        background: white !important; /* White background for contrast */
        border-radius: 10px !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    }
    
    /* Hamburger lines */
    .hamburger {
        background-color: white;
        width: 24px;
        height: 3px;
        margin: 4px auto;
        display: block;
        transition: all 0.3s ease;
        position: relative;
    }
    
    /* Make X lines dark when button is active */
    .nav-toggle.active .hamburger {
        background-color: #253858 !important; /* Dark color for X */
    }
    
    /* Hide navigation by default on mobile */
    .main-nav {
        display: none !important;
    }
    
    /* Show nav when active - enhanced design */
    .main-nav.active {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #253858;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        z-index: 10000;
        overflow-y: auto;
        flex-direction: column;
        padding: 80px 0 30px 0;
        gap: 0;
    }
    
    /* Add a subtle pattern or gradient */
    .main-nav.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(58,117,213,0.1) 0%, transparent 50%);
        pointer-events: none;
    }
    
    /* Style nav links for mobile menu */
    .main-nav.active a {
        display: block;
        color: white;
        padding: 20px 35px;
        border: none;
        font-weight: 500;
        font-size: 16px;
        position: relative;
        transition: all 0.3s ease;
        margin: 0;
        z-index: 1;
    }
    
    /* Hover effect for nav links */
    .main-nav.active a:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(-5px);
    }
    
    /* Add icon or arrow before each link */
    .main-nav.active a::before {
        content: '→';
        position: absolute;
        left: 15px;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .main-nav.active a:hover::before {
        opacity: 1;
    }
    
    /* Animate hamburger to X when active */
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px) !important;
    }
    
    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0 !important;
    }
    
    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px) !important;
    }
}

/* Enhanced overlay styling */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.nav-overlay.active {
    display: block;
}

.calculator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.calculator-card span,
.calculator-card h3,
.calculator-card p {
  width: 100%;
}

.contact-section-full {
  background: #ededed; 
  padding: 3.5em 1em 3em 1em;
  min-height: 100vh;
}

.contact-card {
  max-width: 500px;
  background: #fff;
  margin: 2em auto 1.5em auto;
  padding: 2.6em 2em 2em 2em;
  border-radius: 1.2em;
  box-shadow: 0 6px 44px rgba(68, 109, 224, 0.11), 0 1px 2px #cccccc22;
}

.contact-header {
  text-align: center;
  margin-bottom: 2em;
}
.contact-header svg {
  margin-bottom: .35em;
}
.contact-header h2 {
  color: #294a76;
  font-size: 2em;
  font-weight: 700;
  margin: 0.1em 0 0.35em 0;
  letter-spacing: 0.01em;
}
.contact-lead {
  color: #425066;
  font-size: 1.07em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

.contact-form label {
  font-weight: 600;
  color: #244c75;
  margin-bottom: 0.26em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: .87em .96em;
  font-size: 1.07em;
  border: 1.5px solid #c6d3e8;
  border-radius: 7px;
  background: #f7f9fc;
  font-family: inherit;
  transition: border-color .14s, box-shadow .14s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3a75d5;
  box-shadow: 0 2px 18px #3a75d522;
}

.contact-form button {
  font-size: 1.15em;
  font-weight: 700;
  padding: .92em 0;
  background: linear-gradient(90deg,#3a75d5 0%, #9f9f9e 100%);
  color: #fff;
  border: none;
  border-radius: 5em;
  cursor: pointer;
  margin-top: 1em;
  box-shadow: 0 3px 18px #3a75d533;
  transition: background .14s, transform .14s;
  letter-spacing: 0.03em;
}
.contact-form button:hover, .contact-form button:focus {
  background: linear-gradient(90deg, #446de0 0%, #9f9f9e 100%);
  transform: scale(1.03);
}

.form-success {
  background: #e7f8e9;
  color: #217846;
  border-radius: 8px;
  margin-top: 1.2em;
  padding: .8em 1em;
  text-align: center;
  font-weight: 600;
  font-size: 1.08em;
  display: none; /* will be set to block via JS on success */
}

.hero-search-area {
  display: flex; justify-content: center; align-items: center; 
  background: linear-gradient(130deg, #eaf1fb 70%, #c2e0ff 100%);
  min-height: 60vh; padding: 3vw 0;
}
.hero-content { display: flex; flex-direction: column; align-items: center; }
.main-title { font-size: 2.5rem; margin: 0.5rem; font-weight: 800; text-align: center;}
.subtitle { font-size: 1.3rem; color: #555; margin-bottom: 1.25rem; text-align: center;}
.hero-illustration {
  margin-bottom: 1.4rem;
}
.hero-tagline { margin-top: 1.35rem; font-size: 1.05rem; color: #4785c7; text-align: center;}

.socials-section {
  margin: 32px auto 0 auto;
  text-align: center;
  margin-bottom: 50px; /* or more if your footer is tall */
}

.socials-section h3 {
  font-size: 1.3rem;
  color: #2d3a4a;
  margin-bottom: 12px;
}

.socials {
  margin: 8px 0;
}

.socials a {
  display: inline-block;
  margin: 0 15px;
  transition: transform 0.2s;
}

.socials a:focus,
.socials a:hover {
  transform: scale(1.1);
}

.socials svg {
  width: 32px;
  height: 32px;
  filter: grayscale(60%);
  transition: filter 0.2s;
}

.socials a:hover svg {
  filter: none;
}

html {
  scroll-behavior: smooth;
}

.about-formal {
  max-width: 950px;
  margin: 4em auto 0 auto;
  padding: 2em 1.2em 3em 1.2em;
  background: #fff;
  border-radius: 1.1em;
  box-shadow: 0 2px 32px rgba(80,90,150,0.10);
  position: relative;
}

.about-header {
  text-align: left;
  border-left: 4px solid #3a75d5;
  padding-left: 1.3em;
  margin-bottom: 2em;
}
.about-lead {
  font-size: 1em;
  color: #9cb2d3;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: block;
  font-weight: 700;
  margin-bottom: .4em;
}
.about-formal h2 {
  font-size: 2.1em;
  font-weight: 700;
  color: #294a76;
  letter-spacing: .02em;
  margin: 0;
}

.about-card {
  display: flex;
  align-items: stretch;
  gap: 2.8em;
}
.about-body {
  flex: 2 1 350px;
  padding-right: 0.5em;
}
.about-brand {
  font-size: 1.15em;
  margin-bottom: .4em;
  color: #294a76;
  font-weight: 700;
}
.about-formal p {
  font-size: 1.08em;
  color: #37465e;
  margin: 1.15em 0 .8em 0;
  line-height: 1.6;
}
.about-highlight {
  background: linear-gradient(90deg,#eaf1fd,#f0f5fd);
  border-left: 4px solid #3a75d5;
  border-radius: .6em;
  margin: 1.5em 0 2em 0;
  padding: 1.1em 1.3em;
  font-style: italic;
  color: #294a76;
  font-size: 1.12em;
}
.about-quote {
  font-family: 'Georgia', serif;
  letter-spacing: 0.01em;
  display: block;
}
.about-contact {
  margin-top: 2em;
}
.about-contact a {
  color: #2366c9;
  background: #f6faff;
  padding: 0.45em 1.3em;
  border-radius: 1.3em;
  text-decoration: none;
  font-weight: 600;
  transition: background .16s;
}
.about-contact a:hover {
  background: #eaf1fd;
}

.about-image {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
}
.about-image img {
  width: 100%;
  border-radius: 1em;
  box-shadow: 0 3px 20px #29345b18;
  object-fit: cover;
  min-width: 140px;
  max-width: 240px;
  min-height: 180px;
  filter: grayscale(7%) brightness(0.98);
}


.services-section {
  background: #f8fafd; /* Need to change together with path fill="#f7faff" in index.html and <section id="calculators" style="padding: 48px 0; background: in html */
  padding: 3em 1em;
  text-align: center;
}
.services-section h2 {
  font-size: 2em;
  margin-bottom: 2em;
}
.services-grid {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(68,109,224,0.07);
  width: 240px;
  padding: 2em 1.2em 1.5em 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .18s, box-shadow .18s;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px rgba(68,109,224,0.16);
}
.service-icon {
  font-size: 2.5em;
  margin-bottom: 1em;
}
.service-card h3 {
  margin-bottom: .7em;
  color: #0056b3;
}
.service-card p {
  font-size: 1em;
  color: #45556f;
}

.scroll-down {
  display: block;
  margin: 2.5em auto 0 auto;
  width: 32px;
  color: #514f4b;
  opacity: 0.85;
  animation: bounce 2s infinite;
  transition: opacity .18s;
}
.scroll-down:hover { opacity: 1;}

@keyframes bounce {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(10px);}
}

@media (max-width: 600px) {
  .main, main {
    padding: 1rem;
  }
  header {
    padding: 0.5rem;
  }
  footer {
    padding: 0.5rem;
  }
  
  .search-container {
    margin: 1rem auto;
    max-width: 99vw;
  }
  .logo-top-right {
    width: 44px;
    top: 0.5rem;
    right: 0.5rem;
  }
  .contact-section-inner {
    max-width: 98vw;
    padding: 1.5rem 0.5rem 0 0.5rem;
  }
  .services-grid {
    flex-direction: column;
    align-items: center;
  }
  .service-card {
    width: 90%;
    margin-bottom: 2em;
  }
  .about-card {
    flex-direction: column;
    gap: 1.3em;
  }
  .about-image {
    order: -1;
    justify-content: center;
    margin-bottom: 1.5em;
  }
  .contact-card {
    padding: 1.3em 0.5em;
  }
  .contact-header h2 {
    font-size: 1.45em;
  }
  .search-hero-content {
    margin-left: 0;
    padding: 0;
  }
  .search-hero {
    padding: 2.5em 2% 1.3em 2%;
    min-height: 0;
  }
  .search-hero h1 {
    font-size: 1.4em;
  }
  .company-search-form {
    max-width: 100%;
  }
  .search-container, #suggestions {
      width: 100%;
      max-width: 100%;
  }
  /* Mobile fix for search bar */
  .search-container {
    flex-direction: row;
    padding: 0.4rem;
    border-radius: 2rem; /* keeps pill shape */
  }
  
  .search-icon {
    top: 50%;
    transform: translateY(-50%);
    left: 1rem; /* keep input and icon balanced */
  }
  #searchInput {
    font-size: 1rem;  /* slightly smaller on mobile */
    padding-left: 2.3rem; /* adjusted padding so icon and text don't overlap */
  }
  
  .search-btn {
    flex-shrink: 0;          /* don't let it shrink too small */
    padding: 0.6rem 1rem;    /* smaller button padding for mobile */
    border-radius: 1.5rem;   /* fully rounded on both sides */
    margin-left: 0.4rem;     /* spacing from input */
    font-size: 0.9rem;
  }
}

.custom-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -3rem; /* prevents any little white line */

}

.custom-divider svg {
  display: block;
  width: 100%;
  height: relative; /* adjust wave height */
}


































