/* general */
h1, h2, h3 {
    text-transform: capitalize;
}
svg {
    max-width: 400px;
}

/* mega menu navigation */
.nav-item {
    position: relative;
    display: inline-block;
    padding: 15px 20px;
    cursor: pointer;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: -40%;
    width: fit-content;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.6px);
    -webkit-backdrop-filter: blur(6.6px);
    border-radius: 10px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 100;
}
.mega-menu * {
    text-wrap: nowrap;
}
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}
.mega-menu-sidebar {
    padding: 20px;
    padding-right: 40px;
    font-family: var(--font-text-secondary);
    font-size: 25px;
    background: linear-gradient(to right, var(--primary), var(--primary), var(--bg));
    color: var(--text-light);
}
.mega-menu-content {
    width: fit-content;
    padding: 20px 10px;
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-text-secondary);
}
.sidebar-item {
    padding: 10px 15px;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}
.sidebar-item:hover {
    filter: brightness(0.85);
}
.content-section {
    display: none;
    width: fit-content;
}
.content-section.active {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: flex-start;
}
.content-item {
    width: fit-content;
    padding: 10px 15px;
}
.content-item a {
    width: fit-content;
    color: var(--grey-blue);
    font-family: var(--font-text-secondary);
    font-weight: 900;
    font-size: 20px;
    text-decoration: none;
    text-wrap: nowrap;
    transition: color 0.2s ease;
}
.content-item a.active {
    color: var(--primary);
}
.content-item a:hover {
    color: var(--grey-blue);
}
.content-item a.active:hover {
    color: var(--accent-light);
}


.ai-assistant-mega {
    min-width: 320px;
}
.ai-assistant-menu {
    padding: 0px;
    flex-direction: column;
    gap: 0;
}
.assistant-item {
    width: 100%;
    padding: 10px 15px;
    transition: 0.5s;
    margin-bottom: 5px;
}
.assistant-item:hover {
    background-color: var(--primary-light);
}
.assistant-item:last-child {
    margin-bottom: 0;
}
.assistant-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.assistant-title {
    font-family: var(--font-text-secondary);
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}
.assistant-description {
    font-family: var(--font-text-secondary);
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.3;
    opacity: 0.8;
}
.assistant-item:hover .assistant-title {
    color: var(--accent);
}
.assistant-item:hover .assistant-description {
    opacity: 1;
}

/* waves */
.wave {
    width: 100%;
    margin: -30px 0;
}

/* hero */
#hero-container {
    position: relative;
    background-color: var(--primary);
    padding: 50px;
    padding-bottom: 0;
}
#hero {
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.6px);
    -webkit-backdrop-filter: blur(6.6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 50px;
    transition: all 0.3s ease;
}
#hero:hover {
    translate: 0 -5px;
}
nav {
    height: 2em;
    padding: 20px 20px;
    margin-bottom: 40px;
    background: none;
}
#hero > div {
    display: grid;
    grid-template-columns: 50% 50%;
    justify-content: space-around;
    align-items: center;
    height: fit-content;
    width: 100%;
    margin: 20px;
}
#hero .textual {
    max-width: fit-content;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: left;
    text-align: left;
    z-index: 1;
}
#hero .textual *{
    width: 100%;
    text-align: left;
}
#hero .textual h1 {
    font-size: 3.1em;
    font-family: var(--font-titles);
    font-weight: bold;
    line-height: 1.5em;
    letter-spacing: 2px;
    margin-bottom: 30px;
}
#hero .textual h1 span {
    color: var(--accent);
}
#hero .textual p {
    font-size: 1.5em;
    line-height: 1.5em;
    width: 80%;
    margin: 0;
    margin-bottom: 30px;
}
#hero .textual a {
    font-size: 1.6em;
    font-family: var(--font-text-secondary);
    font-weight: bold;
    letter-spacing: 0.1em;
    width: fit-content;
    padding: 0.9em 2em;
    border-radius: 10px;
    border: none;
    background-color: var(--accent);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
#hero .textual a:hover {
    scale: 1.05;
    box-shadow: 0 0 10px 0 var(--accent);
}
#hero img {
    width: 100%;
}


/* ai button */
#ai-button {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: var(--accent-light);
    width: 40px;
    height: 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow-x: hidden;
    transition: all 0.4s ease-in-out;
}
#ai-button:hover {
    width: 160px;
}
#ai-button:hover::before {
    content: "Ask AI Assistant";
    position: absolute;
    left: 0;
    border-radius: 10px;
    padding-left: 20px;
    background-color: var(--accent-light);
    color: var(--text-light);
    text-wrap: nowrap;
    font-family: var(--font-text-secondary);
}
#ai-button::after {
    content: "?";
    position: absolute;
    right: 12px;
    color: var(--text-light);
    font-size: 25px;
}


/* sections */
h2 {
    font-size: 45px;
    font-family: var(--font-titles);
    font-weight: bold;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 60px;
}
section {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 120px;
    margin-bottom: 100px;
    gap: 80px;
}
section:nth-child(odd) {
    flex-direction: row-reverse;
}
section > div {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    width: 50%;
}
section > img {
    width: 50%;
}
section h3 {
    font-size: 34px;
    font-family: var(--font-titles);
    font-weight: bold;
    margin-bottom: 30px;
}
section p {
    font-size: 25px;
    font-family: var(--font-text-secondary);
    margin-bottom: 30px;
}
ul li {
    font-size: 25px;
    font-family: var(--font-text-secondary);
    margin: 20px 0;
    padding-left: 5px;
    list-style: none;
}
ul li::before {
    content: '';
    display: inline-block;
    height: 30px;
    aspect-ratio: 1/1;
    background-image: url('../images/check_mark_orange.png');
    background-size: contain; /* or cover, or specific dimensions */
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    vertical-align: middle;
}


/* buttons */
button {
    font-size: 20px;
    font-family: var(--font-text-secondary);
    font-weight: bold;
    letter-spacing: 0.1em;
    width: fit-content;
    padding: 20px 40px;
    margin: 30px 0;
    border-radius: 10px;
    border: none;
    background-color: var(--accent-light);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
button:hover {
    scale: 1.05;
    box-shadow: 0 0 10px 0 var(--accent);
}


/* apply sections colors variation */
section:nth-of-type(1) button {
    background-color: var(--accent-light);
}
section:nth-of-type(1) button:hover {
    box-shadow: 0 0 10px 0 var(--accent-light);
}
section:nth-of-type(2) ul li::before {
    background-image: url('../images/check_mark_light_blue.png');
}
section:nth-of-type(2) button {
    background-color: var(--primary-light);
}
section:nth-of-type(2) button:hover {
    box-shadow: 0 0 10px 0 var(--primary-light);
}
section:nth-of-type(3) button {
    background-color: var(--primary);
}
section:nth-of-type(3) button:hover {
    box-shadow: 0 0 10px 0 var(--primary);
}
section:nth-of-type(3) ul li::before {
    background-image: url('../images/check_mark_blue.png');
}


/* team section */
section.center {
    flex-direction: column;
    gap: 10px;
}
.center p {
    display: block;
    width: 60%;
    margin: 20px auto;
    font-family: var(--font-text);
    font-size: 26px;
    line-height: 2;
    text-align: center;
    text-wrap: balance;
}   

/* contact us section */
section#contact {
    background-color: var(--primary);
    margin-bottom: 0;
}
section#contact .textual {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
}
section#contact .textual h1 {
    color: var(--text-light);
}
section#contact img {
    width: 40%;
}
section form {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
section form input, section form button {
    font-family: var(--font-text);
    font-size: 20px;
}
section input {
    flex-grow: 1;
    padding: 20px 40px;
    border-radius: 10px;
    border: none;
    height: fit-content;
    background-color: var(--text-light);
    color: var(--primary);
}
section#contract h1 {
    margin: 40px;
}