body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
    overflow-x: hidden;

    background: linear-gradient(135deg, #f8fbff, #eaf1fc);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;

}

.main-header {
    width: 100%;
    padding: 30px 5%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1e3a8a;
    padding: 0.5em 0;
}


.nav-links {
    display: flex !important;
    flex-direction: row !important;
    list-style: none;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.25s, background 0.2s;
}

.navbar li {
    display: flex;
    /* flex: 1 1 auto;
    text-align: center;
    align-items: center; */
}

.navbar a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 8px 12px;
    transition: color 0.3s ease;
}


/* hover effect */
.nav-links a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #4f46e5;
    transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #4f46e5;
    background: #e0e7ff;
    outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.navbar a:hover {
    color: #4f46e5;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar .nav-links li a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 900px) {
    .nav-links {
        gap: 14px;
    }

    .logo {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 4%;
        min-height: 60px;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        width: 100vw;
        padding: 0 6px;
        scrollbar-width: none;
        /* Firefox */
        justify-content: flex-start;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, etc */
    }

    .nav-links li {
        flex: 0 0 auto;
        width: auto;
        text-align: center;
        margin: 12px 0;
    }

    .nav-links a {
        white-space: nowrap;
        font-size: 1.15rem;
        padding: 12px 16px;
        border-radius: 6px;
        text-align: center;
        color: #1a1a1a;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        color: #4f46e5;
        background: #e0e7ff;
    }
}


@media (max-width: 500px) {
    .logo {
        font-size: 1.1rem;
        padding-right: 8px;
    }

    .navbar {
        padding: 6px 1.5em;
    }
}


.navbar .nav-links li a:hover {
    background-color: #e0e7ff;
    color: #4f46e5;
}

nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.hero,
.main-content {
    margin-top: 64px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 5vw;
    z-index: 100;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

section {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ddd;
    border: transparent;
    margin: 0;
    padding: clamp(60px, 8vw, 120px) 5%;
    box-shadow: none;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    background-color: transparent;
}

.section-light {
    background: linear-gradient(to bottom, #f6f8fa 0%, #ffffff 100%);
}

.section-dark {
    background: linear-gradient(to bottom, #dfe3e6 0%, #f6f8fa 100%);
}

.section-container {
    box-shadow: none;
    border: none;
}

section.next {
    margin-top: -60px;
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

sectuon::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.04));
    pointer-events: none;
    z-index: -1;
}

.navbar a {
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
}

.hero {
    display: flex;
    margin-top: 140px;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 5%;
    background: linear-gradient(to right, #eef2ff, #f3f4f6);
    font-family: 'Poppins', sans-serif;
    text-align: left;
    min-height: auto;
    border-radius: 60px;
    box-sizing: border-box;
    position: relative;
    border-bottom-right-radius: 60px;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    animation: fadeUp 1s ease forwards;
}

/* welcome section  */
.welcome-section {
    padding: clamp(80px, 10vw, 140px) 5%;
    width: 100%;
    background: transparent;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: flex-start;
}

.welcome-content {
    max-width: none;
    text-align: left;
}

.welcome-section,
.welcome-content {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}


.content-wrap {
    max-width: 820px;
    text-align: left;
}

.welcome-heading {
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-family: 'DM Serif Display', serif;
    font-weight: 600;
    margin-bottom: 0.6em;
    letter-spacing: -0.02em;
    color: #0f2d52;
}

.welcome-intro {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 1.2em;
    color: #444;
}

.welcome-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin-top: 3em;
    justify-content: space-between;
}

.highlight-item {
    flex: 1 1 300px;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.highlight-item i {
    font-size: 1.6em;
    color: #0057ff;
    margin-bottom: 0.5em;
}

.highlight-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5em;
    color: #0f2d52;
}

.highlight-item p {
    font-size: 1rem;
    color: #555;
}

.welcome-body {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 1.2em;
    color: #444;
}

.tagline {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 20px;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DM Serif Display', serif;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: #1e3a8a;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

.subhead {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta {
    display: flex;
    gap: 20px;
}

.cta button {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 8px;
    background: linear-gradient(45deg, #4f46e5, #6d28d9);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta .ghost-btn {
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
}

.cta button:hover {
    transform: scale(1.05);
}

button {
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    transform: scale(1.05);
}


/* services  */
#services {
    padding: 6em 2em;
    background: linear-gradient(to right, #fafafa, #f0f0f0);
    /* Soft premium tone */
    text-align: center;
}

#services h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 3em;
    font-family: 'Poppins', sans-serif;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 5em;
    justify-items: center;
}

.service-card {
    background: #ffffff;
    position: relative;
    text-align: center;
    border-radius: 12px;
    padding: 1.5em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 1.5em;
    margin-bottom: 1em;
    display: block;
    font-weight: 600;
    color: #0056b3;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.service-card i {
    font-size: 1.6em;
    color: #0056b3;
    margin-bottom: 0.5em;
}

.service-card .title {
    font-weight: 600;
    display: block;
    margin-bottom: 0.3em;
}

.service-card .hover-info {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    font-size: 0.98em;
    margin-top: 0.5em;
    color: #444;
}

.service-card.active .hover-info,
.service-card:hover .hover-info {
    opacity: 1;
    max-height: 800px;
    /* Big enough for any text block (adjust as needed) */
    transform: translateY(0);
    overflow: visible;
}

.service-card.active .hover-info {
    opacity: 1;
    max-height: 120px;
    /* Adjust as needed */
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f5faff;
    color: #003366;
}

/* Footer Styles */
.footer {
    background-color: #0d1b2a;
    color: #ffffff;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content div {
    flex: 1 1 250px;
}

.footer a {
    color: #90caf9;
    text-decoration: none;
}

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

.footer h2,
.footer h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer p,
.footer li {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #b0bec5;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f9fbff, #e3efff);
    padding: clamp(80px, 10vw, 140px) 5%;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: #1a1a1a;
    display: flex;
    justify-content: flex-start;
}

.content-wrap {
    max-width: 820px;
    text-align: left;
}



.section-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.75em;
    letter-spacing: -0.03em;
    color: #0f2d52;
}

.section-intro {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 720px;
    line-height: 1.7;
    margin-bottom: 2.5em;
    color: #444;
}

.about-highlights p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 1.2em;
    display: flex;
    align-items: center;
    gap: 0.8em;
    color: #222;
}

.about-highlights i {
    color: #0057ff;
    min-width: 24px;
    font-size: 1.3em;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-header h2 {
    font-size: 2.5em;
    color: #0d47a1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-header h2 i {
    margin-right: 10px;
    color: #64b5f6;
    font-size: 1.5em;
}

.about-header .intro {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333;
    animation: fadeInUp 0.8s ease;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease;
}

.about-list li i {
    color: #1976d2;
    margin-right: 12px;
    font-size: 1.2em;
}

/* 
---------------------------------------
Animations: fadeUp & fadeInUp
---------------------------------------
Used to animate elements (e.g. hero content, headings, cards) so that 
they fade in and slide upwards when entering the viewport or on load.
---------------------------------------
*/
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* 
---------------------------------------
Responsive Design for Mobile/Tablets
---------------------------------------
All styles in this block apply to screens 768px wide or less 
(smartphones & tablets). 
- Stacks navbar/logo vertically
- Adjusts navigation links for touch
- Makes hero, footer, about section, and CTA buttons mobile-friendly
- Improves text sizing and section spacing for small screens
---------------------------------------
*/
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .navbar a {
        font-size: 1.1rem;
    }

    .hero {
        padding: 80px 20px;
        text-align: center;
    }

    .hero-content {
        max-width: none;
    }

    .cta {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-content div {
        margin-bottom: 20px;
    }

    .footer-bottom {
        margin-top: 20px;
    }

    .about-section {
        padding: 40px 20px;
    }

    .about-header h2 {
        font-size: 1.8em;
    }

    .about-header .intro {
        font-size: 1em;
    }

    .about-list li {
        font-size: 1em;
    }
}

/* ===== Consultation Form Basic Styling (Improved) ===== */
.consult-section {
  background: transparent; /* Section background matches site: inherit body gradient */
  padding: 5.2rem 0 5rem 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#consultForm {
  background: var(--card-bg, #23242b);
  border-radius: 20px;
  padding: 40px 34px 30px 34px;
  box-shadow: 0 7px 22px rgba(16,20,40,0.13);
  max-width: 410px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.consult-heading {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.47rem;
  font-weight: 700;
  margin-bottom: 1.5em;
  color: var(--accent, #3a59b7);
  letter-spacing: 0.01em;
  text-align: left;
}

#consultForm label {
  color: var(--text-main, #f4f4f6);
  font-weight: 500;
  font-size: 1.04rem;
  display: flex;
  flex-direction: column;
  gap: 0.34em;
}

#consultForm input,
#consultForm textarea,
#consultForm select {
  margin-top: 5px;
  background: #252537;
  border-radius: 8px;
  border: 1.3px solid #23243b;
  color: var(--text-main, #f4f4f6);
  font-size: 1.01rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  padding: 12px 13px;
  transition: border-color 0.16s, box-shadow 0.18s, background 0.18s;
}

#consultForm input:focus,
#consultForm textarea:focus,
#consultForm select:focus {
  border-color: var(--accent, #3a59b7);
  background: #20202d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(58,89,183,0.08);
}

#consultForm textarea {
  min-height: 72px;
  resize: vertical;
}

#consultForm select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%238f91a2' d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 13px 8px;
}

/* Remove blue select outline on Firefox */
#consultForm select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 var(--text-main, #f4f4f6);
}

#consultForm button[type="submit"] {
  margin-top: 10px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.12rem;
  padding: 1em 2.1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(92deg, var(--accent, #3a59b7) 70%, #537be5 100%);
  color: #fff;
  box-shadow: 0 3px 14px rgba(58,89,183,0.12);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.15s;
}

#consultForm button[type="submit"]:hover,
#consultForm button[type="submit"]:focus {
  background: linear-gradient(92deg, #224397 60%, var(--accent, #3a59b7));
}

#form-status {
  margin-top: 1.3em;
  font-size: 1.01rem;
  color: #ffd379;
  min-height: 1.5em;
  font-weight: 500;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .consult-section {
    padding: 2.5rem 0 1.5rem 0;
  }
  #consultForm {
    padding: 18px 4vw 16px 4vw;
    max-width: 100vw;
    border-radius: 10px;
  }
  .consult-heading {
    font-size: 1.07rem;
  }
}


/* Demo Image */
.demo {
    width: 150px;
    height: auto;
    margin-right: 20px;
    display: inline-block;
}

/* advantages  */
.advantages-section {
    background: linear-gradient(115deg, #eaf1fc 40%, #f8fbff 100%);
    padding: 72px 0 56px 0;
    display: flex;
    justify-content: center;
}

.advantages-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 96vw;
    padding: 0 12px;
}

.advantages-heading {
    text-align: center;
    font-family: 'DM Serif Display', serif;
    font-size: 2.3rem;
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 2.5em;
    letter-spacing: -0.02em;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px 24px;
}

.advantage-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.1em 1.4em 1.7em 1.4em;
    box-shadow: 0 4px 16px rgba(19, 44, 87, 0.09);
    text-align: center;
    transition: box-shadow 0.18s, transform 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advantage-card:hover,
.advantage-card:focus-within {
    box-shadow: 0 10px 28px rgba(19, 44, 87, 0.13);
    transform: translateY(-5px) scale(1.025);
}

.adv-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 70%, #6d28d9 100%);
    color: #fff;
    font-size: 2.1em;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px rgba(90, 56, 255, 0.13);
}

.advantage-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.21rem;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #1e3a8a;
    letter-spacing: -0.01em;
}

.advantage-card p {
    color: #444e60;
    font-size: 1.01rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 650px) {
    .advantages-section {
        padding: 36px 0 22px 0;
    }

    .advantages-heading {
        font-size: 1.3rem;
        margin-bottom: 1.1em;
    }

    .advantages-grid {
        gap: 18px;
    }

    .advantage-card {
        padding: 1.15em 0.85em;
    }

    .adv-icon {
        width: 46px;
        height: 46px;
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .advantage-card h3 {
        font-size: 1.07rem;
    }

    .advantage-card p {
        font-size: 0.98rem;
    }
}