/* ============================================
   Infused Innovations - Website Replica
   Color Palette:
   - Dark Navy: #091522
   - Blue Accent: #42a2d6
   - Green Accent: #65c43f
   - Light Gray BG: #f8f9fb
   - Border Gray: #e3e6ec
   - White: #ffffff
   Fonts: Montserrat (headings), Jost (body)
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #091522;
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #091522;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background: #42a2d6;
    color: #fff;
    border-color: #42a2d6;
}

.btn--primary:hover {
    background: #3691c2;
    border-color: #3691c2;
}

.btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn--outline-white:hover {
    background: #fff;
    color: #091522;
}

.btn--green {
    background: #65c43f;
    color: #fff;
    border-color: #65c43f;
}

.btn--green:hover {
    background: #56b332;
    border-color: #56b332;
}

.btn--small {
    padding: 10px 24px;
    font-size: 12px;
}

.btn--large {
    padding: 18px 48px;
    font-size: 16px;
}

.link-arrow {
    display: inline-block;
    color: #42a2d6;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    color: #3691c2;
    transform: translateX(4px);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header--overlap {
    background: transparent;
}

.header--overlap.scrolled {
    background: #091522;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header__wrapper {
    padding: 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header__logo {
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Navigation */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 28px 20px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav__link:hover {
    color: #42a2d6;
}

.nav__arrow {
    width: 10px;
    height: 6px;
    transition: transform 0.3s ease;
}

.nav__item:hover .nav__arrow {
    transform: rotate(180deg);
}

/* Mega Menu */
.nav__mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 680px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.nav__mega--narrow {
    min-width: 360px;
}

.nav__item:hover .nav__mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav__mega-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav__mega-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #091522;
    margin-bottom: 12px;
}

.nav__mega-divider {
    border: none;
    border-top: 1px solid #e3e6ec;
    margin: 8px 0;
}

.nav__mega-grid {
    display: grid;
    gap: 4px;
}

.nav__mega-grid--1col {
    grid-template-columns: 1fr;
}

.nav__mega-grid--2col {
    grid-template-columns: 1fr 1fr;
}

.nav__mega-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
    color: #091522;
}

.nav__mega-link:hover {
    background: #f8f9fb;
    color: #42a2d6;
}

.nav__mega-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.nav__mega-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
}

/* Header CTA */
.header__cta {
    padding: 10px 24px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #091522;
    overflow: hidden;
}

.hero--video {
    background: #000;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 21, 34, 0.85) 0%, rgba(9, 21, 34, 0.6) 100%);
    z-index: 1;
}

.hero__overlay--dark {
    background: linear-gradient(135deg, rgba(9, 21, 34, 0.5) 0%, rgba(9, 21, 34, 0.3) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 180px 0 120px;
}

.hero__content--left {
    display: block;
    max-width: 600px;
}

.hero__title {
    font-size: 52px;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__title--display {
    font-size: 56px;
}

.hero__title strong {
    font-weight: 800;
    font-style: italic;
}

.hero__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    max-width: 540px;
    line-height: 1.6;
}

.hero__subtitle strong {
    color: #fff;
    font-weight: 700;
}

.hero__divider {
    width: 48px;
    height: 3px;
    background: #42a2d6;
    margin-bottom: 32px;
    border-radius: 2px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn--pill {
    border-radius: 999px;
    padding: 14px 32px;
}

.btn--gradient {
    background: linear-gradient(135deg, #42a2d6, #65c43f);
    color: #fff;
    border: none;
}

.btn--gradient:hover {
    background: linear-gradient(135deg, #3691c2, #56b332);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section--light {
    background: #f8f9fb;
}

.section--dark {
    background: #091522;
}

.section--logos {
    padding: 30px 0;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section__eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #42a2d6;
    margin-bottom: 12px;
}

.section__title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section__title--white {
    color: #fff;
}

.section__subtitle {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.section__subtitle--white {
    color: rgba(255,255,255,0.8);
}

.section__text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ============================================
   LOGOS CAROUSEL
   ============================================ */
.logos-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll-logos 40s linear infinite;
    width: max-content;
}

.logos-track img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logos-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.about-content {
    max-width: 600px;
}

.about-awards {
    display: flex;
    gap: 24px;
    align-items: center;
}

.award-badge img {
    height: 140px;
    width: auto;
    object-fit: contain;
}

/* ============================================
   SOLUTIONS
   ============================================ */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.solution-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.solution-card__img-wrap {
    height: 200px;
    overflow: hidden;
}

.solution-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover .solution-card__img-wrap img {
    transform: scale(1.05);
}

.solution-card__body {
    padding: 20px;
}

.solution-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================
   SPLIT SECTIONS
   ============================================ */
.section--split {
    padding: 80px 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-grid--reverse .split-content {
    order: 2;
}

.split-grid--reverse .split-image {
    order: 1;
}

.rounded-img {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* ============================================
   METRICS
   ============================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.metric-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: #42a2d6;
    transform: translateY(-4px);
}

.metric-card__icon {
    margin-bottom: 16px;
}

.metric-card__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #42a2d6;
    margin-bottom: 8px;
}

.metric-card__title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
}

.metric-card__text {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.metric-card__text strong {
    color: #65c43f;
}

/* ============================================
   CTA SECTION
   ============================================ */
.section--cta {
    background: linear-gradient(135deg, #42a2d6 0%, #2d7fb3 100%);
    padding: 120px 0;
}

.section--cta .section__title {
    font-size: 48px;
    margin-bottom: 16px;
}

.section--cta .section__subtitle {
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ============================================
   PARTNERS
   ============================================ */
.section--partners {
    padding: 60px 0;
}

.partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partners-row img {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partners-row img:hover {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #091522;
    padding: 80px 0 40px;
    color: rgba(255,255,255,0.7);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer__logo {
    height: 36px;
    margin-bottom: 24px;
}

.footer__contact {
    margin-bottom: 24px;
}

.footer__contact p {
    margin-bottom: 6px;
}

.footer__contact a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer__contact a:hover {
    color: #42a2d6;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background: #42a2d6;
}

.footer__heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: #42a2d6;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    color: rgba(255,255,255,0.5);
    transition: color 0.3s ease;
}

.footer__legal a:hover {
    color: #42a2d6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1139px) {
    .hero__content {
        grid-template-columns: 1fr;
    }

    .hero__card {
        max-width: 380px;
    }

    .hero__title {
        font-size: 42px;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-awards {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .nav {
        display: none;
    }

    .nav.active {
        display: flex;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #091522;
        flex-direction: column;
        padding: 24px;
        overflow-y: auto;
        z-index: 999;
    }

    .nav.active .nav__list {
        flex-direction: column;
        width: 100%;
    }

    .nav.active .nav__link {
        padding: 16px 0;
        font-size: 16px;
    }

    .nav.active .nav__mega {
        position: static;
        transform: none;
        min-width: 100%;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        border-radius: 8px;
        padding: 16px;
        display: none;
    }

    .nav.active .nav__item.open .nav__mega {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav.active .nav__mega-grid--2col {
        grid-template-columns: 1fr;
    }

    .nav.active .nav__mega-link {
        color: #fff;
        padding: 8px 0;
    }

    .nav.active .nav__mega-link:hover {
        background: rgba(255,255,255,0.05);
    }

    .nav.active .nav__mega-heading {
        color: #42a2d6;
    }

    .nav.active .nav__mega-title {
        color: rgba(255,255,255,0.8);
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .header__cta {
        display: none;
    }

    .hero {
        padding: 160px 0 100px;
        min-height: auto;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__card {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 28px;
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-grid--reverse .split-content {
        order: 1;
    }

    .split-grid--reverse .split-image {
        order: 2;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .partners-row {
        gap: 30px;
    }

    .partners-row img {
        height: 30px;
    }

    .about-awards {
        flex-wrap: wrap;
    }

    .award-badge img {
        height: 100px;
    }

    .section--cta {
        padding: 80px 0;
    }

    .section--cta .section__title {
        font-size: 32px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        text-align: center;
    }
}

@media (max-width: 479px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 28px;
    }

    .section__title {
        font-size: 24px;
    }

    .logos-track img {
        height: 35px;
    }

    .logos-track {
        gap: 40px;
    }
}
