:root {
    /* Colors */
    --color-black: #000000;
    --color-dark: #1d1d1b;
    --color-action: #eb6200;
    --color-white: #ffffff;

    /* Responsive font sizes */
    --font-size-nav: clamp(1.2rem, 2.5vw, 1.8rem);

    --font-size-title: clamp(2.5rem, 5vw, 4.5rem);
    --font-size-subtitle: clamp(1.5rem, 3vw, 2.5rem);
    --font-size-content: clamp(1rem, 2vw, 1.25rem);

    /* Device Sizes */
    --device-xxs-min: 479px; /* Old devices */
    --device-xs-min: 767px; /* Smartphones */
    --device-sm-min: 991px; /* Tablets */
    --device-md-min: 1199px; /* Small Desktops */
    --device-lg-min: 1200px; /* Desktops */
}

*,
:before,
:after {
    box-sizing: border-box;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    margin: 0;
    line-height: inherit;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

#SYN-IT-LOGO {
    z-index: 9999 !important;
    position: relative;
}

html.lenis {
    height: auto;
}

section[id] {
    scroll-margin-top: 2em;
    scroll-behavior: smooth;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

.full-screen-div {
    min-height: 100vh;
}

.parallax {
    background-image: url('../images/start1.jpg');
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax2 {
    background-image: url('../images/synit-start-2-bw.jpg');
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.logo-animation {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1;
}

.main {
    position: relative;
    overflow: hidden;
}

.main-logo {
    display: block;
    font-size: clamp(20px, 2vw, 4vw);
    background-color: var(--color-white);
    top: 0;
    left: 0;
    right: 0;
}

.sticky {
    position: fixed;
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

.sticky-pin {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.jumps-prevent {
    width: 100%;
    height: auto;
    padding-top: 0;
}

.toTop {
    display: none;
    top: 90%;
    left: 93%;
    cursor: pointer;
    width: 75px;
    height: 75px;
}

.text-nav {
    font-size: var(--font-size-nav);
}

.header {
    width: 100%;
    padding-top: 1.30rem;
    padding-bottom: 1.30rem;
}

.heading-full {
    min-height: calc(80vh - 155px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-container {
    width: 100%;
    max-width: 1600px;
    padding: 1.10rem 1.30rem;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.container {
    position: relative;
    width: 100%;
}

.container-content {
    margin-top: 60px;
    margin-bottom: 60px;
}

.line-tr {
    border-bottom: 1px solid;
    opacity: 0.2;
}

.section-title, .text-title {
    font-size: var(--font-size-title);
    margin-bottom: 1rem;
}

.section-subtext, .text-title-sub {
    font-size: var(--font-size-subtitle);
    margin-bottom: 1rem;
}

.section-text, .text-light, p {
    font-size: var(--font-size-content);
    line-height: 1.6;
}

.text-o50 {
    opacity: 0.5;
}

.title-sub {
    border: 1px solid red;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(24px, 1.5vw, 30px);
    max-width: clamp(320px, 67.857vw, 950px);
    font-weight: 400;
}

.title-sub p {
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(20px, 1.5vw, 30px);
    max-width: clamp(320px, 67.857vw, 950px);
    margin-bottom: 150px;
    font-weight: 500;
    border: 1px solid red;
}

.hover\:no-underline:hover {
    text-decoration-line: none;
}

.hero-title {
    font-size: clamp(61px, 5vw, 300px);
    line-height: clamp(65px, 5vw, 200px);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-text {
    font-size: clamp(18px, 1.5vw, 30px);
    max-width: clamp(320px, 67.857vw, 950px);
    margin-bottom: 50px;
    font-weight: 300;
}

.toTop {
    color: var(--color-white);
}

.toTop:hover {
    color: var(--color-action);
}

.bi {
    mix-blend-mode: difference;
    transition: filter 0.3s ease;
}

.bi:hover {
    mix-blend-mode: normal;
}

.toTop {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.toTop:hover .bi {
    filter: invert(0);
}

/* FLEX */
.block {
    display: block;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.justify-between {
    justify-content: space-between;
}

.flex-min-block {
    width: 60px;
    height: 10px;
}

/* FLEX END */

#fade-element {
    transition: opacity 0.5s ease;
    opacity: 1;
}

#fade-element.hidden {
    opacity: 0;
    pointer-events: none;
}

/* STANDARDS */
.w100 {
    width: 100%;
}

.section-href {
    padding-bottom: 50px
}

/* GOALS */
#section-goal {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* TEAM / SOLUTION */
.team-flex, .solution-flex {
    margin-top: 75px;
    margin-bottom: 75px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.team-member, .solution-member {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-white);
    color: var(--color-black);
    border: 1px solid #ccc;
    text-align: center;
    height: auto;
    aspect-ratio: 1;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    transition: all 0.4s ease-in-out;
    width: calc(33.333% - 20px);
    max-width: 300px;
    min-width: 280px;
}

.team-member:hover, .solution-member:hover {
    transform: scale(1.05);
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    padding: 30px;
}

.team-member h3,
.solution-member h1 {
    font-size: var(--font-size-subtitle);
    margin: 0.5rem 0;
}

.team-member p,
.solution-member p {
    font-size: var(--font-size-content);
    margin: 0.5rem 0;
    padding: 0 1rem;
}

.solution-member {
    padding: 20px;
}

.team-member {
    position: relative;
    overflow: hidden; /* Ensures the overlay doesn't spill outside */
}

.team-member .text-overlay {
    position: absolute;
    bottom: -100%; /* Start fully hidden below */
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: bottom 0.3s ease-in-out;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.team-member:hover .text-overlay {
    bottom: 0;
}

.team-member .text-overlay h3,
.team-member .text-overlay p {
    margin: 0;
    color: var(--color-white);
}

.team-member .text-overlay p {
    margin-top: 5px;
    font-size: 16px;
}

.solution-member .text-overlay {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 200px;
    padding: 6px 0;
    background: var(--color-action);
    color: white;
    font-family: Arial, sans-serif;
    font-size: var(--font-size-content);
    font-weight: bold;
    text-align: center;
    transform: rotate(-45deg);
    transform-origin: 0 0;
    top: 100px;
    left: -40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


/* Links */
a {
    text-decoration: inherit;
}

a:hover {
    color: var(--color-action);
}

/* Get In Touch Button */
.get-in-touch-btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
}

.get-in-touch-btn:hover {
    background-color: var(--color-action);
    color: var(--color-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animation div for hero section */
.animation-div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

/* Footer responsive */
.footer {
    padding: 2rem 0;
}

.footer .flex {
    gap: 2rem;
}

/* Responsive Design */

/* Mobile devices (up to 600px) */
@media (max-width: 600px) {
    :root {
        --font-size-title: clamp(2rem, 8vw, 3rem);
        --font-size-subtitle: clamp(1.25rem, 5vw, 1.75rem);
        --font-size-content: clamp(0.9rem, 3vw, 1.1rem);
        --font-size-nav: clamp(1rem, 4vw, 1.4rem);
    }

    .main-container {
        padding: 0.8rem 1rem;
    }

    .heading-full {
        min-height: calc(100vh - 120px);
        text-align: left;
    }

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

    .animation-div {
        order: -1;
        margin-bottom: 2rem;
        display: none;
    }

    .logo-animation {
        max-width: 300px;
    }

    .parallax, .parallax2 {
        height: 200px;
        background-attachment: scroll;
    }

    .section-href {
        padding-bottom: 100px
    }

    .team-flex, .solution-flex {
        margin-top: 40px;
        margin-bottom: 40px;
        gap: 20px;
    }

    .team-member, .solution-member {
        width: 100%;
        max-width: 350px;
        min-width: auto;
        margin: 0 auto;
    }

    .solution-member .text-overlay {
        padding: 15px;
    }

    .solution-member h1 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    .solution-member p {
        font-size: clamp(0.85rem, 3vw, 1rem);
        line-height: 1.4;
    }

    .container-content {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .footer .flex {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .get-in-touch-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .toTop {
        display: block;
        top: 85%;
        left: 85%;
        width: 50px;
        height: 50px;
    }
}

/* Tablets (601px to 900px) */
@media (min-width: 601px) and (max-width: 900px) {
    :root {
        --font-size-title: clamp(2.5rem, 6vw, 3.5rem);
        --font-size-subtitle: clamp(1.4rem, 4vw, 2rem);
        --font-size-content: clamp(1rem, 2.5vw, 1.15rem);
        --font-size-nav: clamp(1.1rem, 3vw, 1.5rem);
    }

    .main-container {
        padding: 1rem 1.5rem;
    }

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

    .animation-div {
        order: -1;
        margin-bottom: 2rem;
    }

    .logo-animation {
        max-width: 400px;
    }

    .parallax, .parallax2 {
        height: 300px;
    }

    .section-href {
        padding-bottom: 70px
    }

    .team-flex, .solution-flex {
        margin-top: 50px;
        margin-bottom: 50px;
        gap: 25px;
    }

    .team-member, .solution-member {
        width: calc(50% - 15px);
        max-width: 380px;
        min-width: 280px;
    }

    .container-content {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .footer .flex {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .toTop {
        display: block;
        top: 88%;
        left: 90%;
        width: 60px;
        height: 60px;
    }
}

/* Small desktops (901px to 1199px) */
@media (min-width: 901px) and (max-width: 1199px) {
    .main-container {
        padding: 1.1rem 1.5rem;
    }

    .parallax, .parallax2 {
        height: 400px;
    }

    .section-href {
        padding-bottom: 60px
    }

    .team-member, .solution-member {
        width: calc(33.333% - 20px);
        max-width: 350px;
        min-width: 280px;
    }

    .animation-div {
        display: flex;
        max-width: 450px;
    }

    .logo-animation {
        max-width: 450px;
    }

    .toTop {
        display: block;
        top: 90%;
        left: 92%;
        width: 65px;
        height: 65px;
    }
}

/* Large desktops (1200px and up) */
@media (min-width: 1200px) {
    .parallax, .parallax2 {
        height: 500px;
    }

    .team-member, .solution-member {
        width: calc(33.333% - 20px);
        max-width: 400px;
        min-width: 300px;
    }

    .animation-div {
        display: flex;
        max-width: 500px;
    }

    .logo-animation {
        max-width: 500px;
    }

    .solution-member .text-overlay {
        padding: 25px;
    }

    .toTop {
        display: block;
        top: 90%;
        left: 93%;
        width: 75px;
        height: 75px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--color-dark);
        color: var(--color-white);
    }

    a {
        color: var(--color-white);
    }

    #section-goal {
        background-color: var(--color-white);
    }

    #section-goal h2, #section-goal p {
        color: var(--color-black);
    }

    .line-tr {
        border-color: var(--color-white);
    }

    .get-in-touch-btn {
        background-color: var(--color-white);
        color: var(--color-black);
    }

    .main-logo {
        background-color: var(--color-dark);
    }

    .team-member, .solution-member {
        background-color: var(--color-dark);
        color: var(--color-white);
        border-color: #555;
    }

    .scroll-reveal-box {
        background-color: var(--color-dark);
        color: var(--color-white);
    }
}

/* Light Mode */
@media (prefers-color-scheme: light) {
    body {
        background-color: var(--color-white);
        color: var(--color-dark);
    }

    a {
        color: var(--color-black);
    }

    .line-tr {
        border-color: var(--color-dark);
    }

    #section-goal {
        background-color: var(--color-black);
    }

    #section-goal h2, #section-goal p {
        color: var(--color-white);
    }

    .get-in-touch-btn {
        background-color: var(--color-black);
        color: var(--color-white);
    }

    .scroll-reveal-box {
        background-color: var(--color-white);
        color: var(--color-black);

    }
}

