:root {
    --color-background: rgba(255, 255, 255, 1);
    --color-secondary-background: rgba(39, 53, 175, 1);
    --color-text: rgba(0, 0, 0, 0.98);
    --color-secondary-text: rgba(112, 118, 128, 1);
    --color-mobile-menu: rgba(255, 255, 255, 1);
    --header-height-desktop: 80px;
    --header-height-mobile: 70px;
    --transition-default: 0.6s ease;
}

/* Fonts omitted for brevity – keep as-is */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


.header {
    background-color: var(--color-background);
    padding: 10px 60px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.11);
    position: fixed;
    width: 100%;
    height: var(--header-height-desktop);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: visible;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    /* margin: 0 auto; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 4px;
    /* margin-left: -59px; */
}

@media (max-width: 668px) {
  .logo-group {
    gap: 6px;
    align-items: center;
  }
}

.logo-icon {
    width: 26px;
    height: auto;
}
.logo-name {
    height: 24px;
    width: auto;
}
.logo-ai {
    height: 18px;
    width: auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-title {
    color: rgba(5, 6, 21, 1);
    font-family: 'Montserrat';
    font-size: 24px;
    font-weight: 600;
    line-height: 100%;
}

.nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary-background);
    transition: width var(--transition-default);
}

.nav-link:not(.dropdown-toggle):hover::after,
.nav-link:not(.dropdown-toggle).active::after {
    width: 100%;
}

/* Dropdown Base */
.dropdown {
    position: static;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    width: 12px;
    margin-top: 6px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(-180deg);
}

/* ✅ All Dropdown Wrappers - hidden by default */
.dropdown-wrapper {
    position: absolute;
    top: var(--header-height-desktop);
    left: 0;
    width: 100vw;
    min-height: 50vh;
    overflow-y: auto;
    /* padding: 1rem 7rem; */
    padding:10px 60px;
    background-color: var(--color-background);
    color: var(--color-secondary-text);
    border-top: 0.03px solid rgb(239 240 243);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
}

/*  Shown when toggled open */
.dropdown-wrapper.show {
    display: block;
}

/*  Two-column specific style */
.dropdown-wrapper.two-column.show {
    display: grid; /* Use grid for a consistent layout */
    grid-template-columns: repeat(4, 1fr); /* 3 equal columns per row */
    gap: 1rem; /* Space between items */
    justify-items: stretch; /* Stretch items to take up full column width */
    align-items: flex-start; /* Align items at the top of the container */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Column inside two-column */
.dropdown-column {
    flex: 1;
    /* min-width: 200px; */
    padding: 16px;
    border-radius: 16px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dropdown-column:hover {
  background-color: #e6f4ff; /* soft blue background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* subtle shadow */
}

/* Headers inside dropdowns */
.dropdown-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    padding-top: 20px;
    line-height: 26px;
    color:#000000CC;
}

.dropdown-menu {
    list-style: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* padding: 0;
    margin: 0; */
    width: 100%;
    padding-bottom: 12px;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #000000CC;
    overflow-wrap: break-word;
}

/* .image-column {
  max-width: 340px;
  padding-left: 0rem;
  padding-top:17px;

  .dropdown-header {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
    padding-top: 0px;
  }

  .image-card {
    background-color: #f0f8ff;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;

    .innovation-img {
      width: 100%;
      border-radius: 0.8rem;
      margin-bottom: 0.8rem;
    }

    .image-caption {
      font-size: 0.9rem;
      color: #333;
    }
  }
} */

.image-column {
  max-width: 340px;
  padding-left: 0rem;
  padding-top: 17px;

  .dropdown-header {
    font-weight: 700;
    font-size: 1.3rem; /* Slightly larger for heading */
    margin-bottom: 1rem;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
    padding-top: 0px;
    color: #222;
  }

  .image-card {
    position: relative; /* Needed for absolute overlay text */
    background-color: #f0f8ff;
    padding: 1rem;
    border-radius: 1rem;
    text-align: left;

    .innovation-img {
      width: 100%;
      border-radius: 0.8rem;
      margin-bottom: 0.8rem;
      display: block;
    }

    .overlay-text {
        position: absolute;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 1rem;
        padding: 1rem 1.2rem;
        border-radius: 8px;
        pointer-events: none;
        max-width: 95%;            /* ✅ Use nearly full width of image */
        width: 95%;                /* ✅ Ensures it's not shrinking */
        text-align: left;        /* ✅ Center-aligns text */
        line-height: 1.4;
        white-space: normal;
        word-break: break-word;
        }

    .image-caption {
      font-size: 0.9rem;
      color: #333;
    }
  }
}

/* Media query for high zoom levels (e.g., 150% or more) */
@media (min-resolution: 1.5dppx) {
    .dropdown-wrapper.two-column.show {
        grid-template-columns: repeat(4, minmax(200px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .dropdown-column {
        padding: 0.5rem;
    }

    .dropdown-header {
        font-size: 1rem;
    }

    .dropdown-menu {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

.nav-link.dropdown-toggle {
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 5px 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.nav-link.dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary-background);
    transition: width 0.3s ease;
}

.nav-link.dropdown-toggle:hover::after,
.nav-link.dropdown-toggle.active::after {
    width: 100%;
}

/* Mobile-specific adjustment */
@media (max-width: 786px) {
    .nav-link.dropdown-toggle.active::after {
        width: 100%;
    }

    .nav-link.dropdown-toggle {
        padding: 10px 0;
    }
}

.dropdown-item {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    padding: 8px 10px;
    color: var(--color-secondary-text);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.9);
    margin: 2px 6px;
    white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
    color: rgba(81, 84, 88, 0.91);
    background-color: rgba(234, 236, 250, 1);
    border-radius: 10px;
}

.about-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.about-link:hover .dropdown-column {
    background-color: #e6f4ff; /* same as before */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    padding: 0;
    z-index: 2;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 70%;
    background: var(--color-text);
    border-radius: 20px;
    transition: var(--transition-default);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Blur overlay */
.blur-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background-color: rgb(0 0 0 / 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-default), visibility var(--transition-default);
}

.blur-background.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive styles */
@media (max-width: 786px) {
    .header {
        height: var(--header-height-mobile);
        padding: 8px 20px;
    }

    .header.menu-open {
        background-color: var(--color-mobile-menu);
        z-index: 1001;
    }

    .logo img {
        width: 45px;
        height: 34px;
    }

    .logo-title {
        font-size: 18px;
    }

    .nav {
        width: 100%;
    }

    .hamburger {
        display: block;
        width: 20px;
    }

    .hamburger span {
        height: 2px;
        width: 20px;
    }

    .nav-links {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        background: var(--color-mobile-menu);
        padding: 5rem 0 2rem;
        transition: var(--transition-default);
        z-index: 1000;
    }

    .nav-links.active {
        top: var(--header-height-mobile);
        padding: 1rem;
    }

    .dropdown-wrapper {
        position: static;
        width: 100%;
        height: auto;
        max-height: 40vh;
        overflow-y: auto;
        padding: 0;
        box-shadow: none;
        border-top: none;
    }

    .dropdown.active .dropdown-wrapper {
        display: flex;
    }

    .dropdown-menu {
        width: 100%;
    }

    .dropdown-menu .dropdown-item.active {
        color: #4754f0;
        font-weight: 600;
        background-color: transparent;
        border-radius: 0;
    }

    .dropdown-item {
        font-size: 16px;
        padding: 8px 0;
    }

    .nav-links .dropdown-wrapper {
        display: none !important;
    }

    .nav-links .dropdown.active .dropdown-wrapper {
        display: block !important;
    }
}


@media (max-width: 1024px) {
    .header {
        height: var(--header-height-mobile);
        padding: 8px 20px;
    }

    .header.menu-open {
        background-color: var(--color-mobile-menu);
        z-index: 1001;
    }

    .logo img {
        width: 141px;
        /* margin-left: 60px; */
    }

    .logo-title {
        font-size: 18px;
    }

    .nav {
        width: 100%;
    }

    .hamburger {
        display: block;
        width: 20px;
    }

    .hamburger span {
        height: 2px;
        width: 20px;
    }

    .nav-links {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        background: var(--color-mobile-menu);
        padding: 5rem 0 2rem;
        transition: var(--transition-default);
        z-index: 1000;
    }

    .nav-links.active {
        top: var(--header-height-mobile);
        padding: 1rem;
    }

    .dropdown-wrapper {
        position: static;
        width: 100%;
        height: auto;
        max-height: 40vh;
        overflow-y: auto;
        padding: 0;
        box-shadow: none;
        border-top: none;
    }

    .dropdown.active .dropdown-wrapper {
        display: flex;
    }

    .dropdown-menu {
        width: 100%;
    }

    .dropdown-menu .dropdown-item.active {
        color: #4754f0;
        font-weight: 600;
        background-color: transparent;
        border-radius: 0;
    }

    .dropdown-item {
        font-size: 16px;
        padding: 8px 0;
    }

    .nav-links .dropdown-wrapper {
        display: none !important;
    }

    .nav-links .dropdown.active .dropdown-wrapper {
        display: block !important;
    }
}
