/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Rubik:wght@400;500&display=swap');

/*=============== CSS VARIABLES ===============*/
:root {
    /* Tetradic Color Scheme */
    --primary-color: #4A90E2; /* A calming, professional blue */
    --secondary-color: #50E3C2; /* A vibrant, modern teal/green for highlights */
    --accent-color-1: #F5A623; /* A warm, inviting orange for calls to action */
    --accent-color-2: #BD10E0; /* A bold purple, used sparingly */

    /* Neumorphism Base & Text */
    --bg-color: #EBF0F5; /* Light, slightly cool background */
    --text-color: #3D4A5C; /* Dark, desaturated blue for high readability */
    --text-color-light: #7E8A9A;
    --white-color: #FFFFFF;
    --black-color: #1A1A1A;

    /* Neumorphism Shadows */
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(163, 177, 198, 0.6);
    --neumorphic-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neumorphic-shadow-inset: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);

    /* Typography */
    --font-family-headings: 'Manrope', sans-serif;
    --font-family-body: 'Rubik', sans-serif;

    /* Other Variables */
    --header-height: 5rem;
    --border-radius-soft: 15px;
    --border-radius-round: 50px;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/*=============== BASE STYLES ===============*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-headings);
    color: var(--text-color);
    font-weight: 800;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-color-1);
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0 2rem;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #222222;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/*=============== GLOBAL BUTTON STYLES ===============*/
.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-round);
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: var(--neumorphic-shadow);
    background: var(--bg-color);
    color: var(--primary-color);
}

.button:hover {
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--accent-color-1);
}

.button--primary {
    background: linear-gradient(145deg, var(--primary-color), #3c78b9);
    color: var(--white-color);
    box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

.button--primary:hover {
    background: linear-gradient(145deg, #3c78b9, var(--primary-color));
    box-shadow: inset 4px 4px 8px #32649a, inset -4px -4px 8px #62c6ff;
    color: var(--white-color);
}

.button--secondary {
    color: var(--text-color-light);
}

.button.disabled {
    opacity: 0.6;
    pointer-events: none;
    box-shadow: var(--neumorphic-shadow-inset);
}


/*=============== HEADER & NAVIGATION ===============*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(235, 240, 245, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    column-gap: 2.5rem;
}

.nav__link {
    font-family: var(--font-family-body);
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
    position: relative;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 21px;
    flex-direction: column;
    justify-content: space-between;
}

.nav__burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition-smooth);
}


/*=============== HERO SECTION ===============*/
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    overflow: hidden;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--white-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}


/*=============== NEUMORPHIC CARD & CONTAINER STYLES ===============*/
.neumorphic-card, .neumorphic-container--inset {
    background: var(--bg-color);
    border-radius: var(--border-radius-soft);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.neumorphic-card {
    box-shadow: var(--neumorphic-shadow);
}

.neumorphic-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.neumorphic-container--inset {
    box-shadow: var(--neumorphic-shadow-inset);
    padding: 2rem;
}


/*=============== INNOVATION SECTION ===============*/
.innovation__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    box-shadow: var(--neumorphic-shadow-inset);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    width: 100%;
}

.card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card__text {
    color: var(--text-color-light);
    line-height: 1.6;
}


/*=============== CASE STUDIES (CAROUSEL) ===============*/
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--neumorphic-shadow);
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 10;
    transition: var(--transition-smooth);
}

.carousel-button:hover {
    box-shadow: var(--neumorphic-shadow-inset);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}


/*=============== WEBINARS (TIMELINE) ===============*/
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #d1d9e6;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: inset 1px 1px 2px var(--shadow-dark), inset -1px -1px 2px var(--shadow-light);
}

.timeline__item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline__item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--neumorphic-shadow);
}

.timeline__item:nth-child(odd) {
    left: 0;
}

.timeline__item:nth-child(even) {
    left: 50%;
}

.timeline__item:nth-child(odd)::after {
    right: -10px;
}

.timeline__item:nth-child(even)::after {
    left: -10px;
}

.timeline__content {
    background: var(--bg-color);
    position: relative;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--neumorphic-shadow);
    padding: 1.5rem;
}

.timeline__date {
    display: inline-block;
    font-weight: 700;
    color: var(--accent-color-1);
    margin-bottom: 0.5rem;
}

.timeline__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline__description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}


/*=============== CUSTOMER STORIES ===============*/
#customer-stories {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.story-card {
    padding: 2.5rem;
    border-left: 5px solid var(--secondary-color);
}

.story__text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-color);
}

.story__author {
    font-weight: 700;
    font-family: var(--font-family-headings);
    color: var(--primary-color);
}


/*=============== EXTERNAL RESOURCES ===============*/
.resources__list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.resource-item {
    display: block;
    padding: 1.5rem;
    border-radius: var(--border-radius-soft);
    background: var(--bg-color);
    box-shadow: var(--neumorphic-shadow);
    transition: var(--transition-smooth);
}

.resource-item:hover {
    box-shadow: var(--neumorphic-shadow-inset);
    transform: none; /* Override card hover */
}

.resource-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resource-description {
    display: block;
    color: var(--text-color-light);
}

/*=============== CAREERS SECTION ===============*/
.careers__container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.careers__content {
    flex: 1;
}

.careers__content.is-two-thirds {
    flex-basis: 60%;
}

.careers__content p {
    line-height: 1.7;
    margin-bottom: 2rem;
}

.careers__image-container {
    flex-basis: 40%;
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    box-shadow: var(--neumorphic-shadow);
    height: 450px;
}

.careers__image-container .card-image {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}


/*=============== CONTACT SECTION ===============*/
.contact__form {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
}

.form__group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: none;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--text-color);
    font-family: var(--font-family-body);
    font-size: 1rem;
    outline: none;
}

.form__label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-color-light);
    pointer-events: none;
    transition: 0.3s ease;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    top: -1.5rem;
    left: 0.25rem;
    font-size: 0.85rem;
    color: var(--primary-color);
}

textarea.form__input {
    resize: vertical;
    min-height: 120px;
}

.form__button {
    width: 100%;
    padding: 1.25rem;
}


/*=============== FOOTER ===============*/
.footer {
    background-color: #dde4ed;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer__container {
    text-align: center;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer__description, .footer__link, .footer__social-link {
    color: var(--text-color-light);
    font-size: 0.95rem;
}

.footer__link, .footer__social-link {
    display: block;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.footer__link:hover, .footer__social-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__copy {
    display: block;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
}


/*=============== OTHER PAGES (SUCCESS, PRIVACY, TERMS) ===============*/
.success-page, .legal-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--header-height) 1.5rem 2rem;
    text-align: center;
}

.success-content, .legal-content {
    max-width: 800px;
    padding: 3rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--neumorphic-shadow);
}

.legal-page {
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + 4rem);
    text-align: left;
}

.legal-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p, .legal-content li {
    line-height: 1.8;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

/*=============== RESPONSIVE DESIGN ===============*/
@media screen and (max-width: 992px) {
    .container {
        padding: 0 1rem;
    }

    .section__title {
        font-size: 2rem;
    }
    
    .hero__title {
        font-size: 2.8rem;
    }

    .careers__container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .careers__content.is-two-thirds,
    .careers__image-container {
        flex-basis: 100%;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline__item {
        width: 100%;
        padding-left: 4rem;
        padding-right: 1rem;
    }

    .timeline__item:nth-child(even) {
        left: 0;
    }
    
    .timeline__item::after {
        left: 10px;
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: var(--bg-color);
        padding: 3rem;
        box-shadow: -8px 0 16px var(--shadow-dark);
        transition: right 0.4s ease;
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        row-gap: 2.5rem;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__description {
        font-size: 1.1rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 4rem 0 1rem;
    }
    
    .neumorphic-card, .neumorphic-container--inset, .contact__form {
        padding: 1.5rem;
    }

    .carousel-slide {
        padding: 0 0.5rem;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-button.prev { left: 10px; }
    .carousel-button.next { right: 10px; }
}