:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accordion-bg: #f1f1f1;
    --accent-color: rgb(102, 8, 8);
    --cta-hover: rgb(200, 0, 0);
    --dark-bg-color: #000700;
    --dark-text-color: #ffffff;
    --dark-accordion-bg: #222222;
    --navbar-bg-light: rgba(255, 255, 255, 0.6);
    --navbar-bg-dark: transparent;
    --border-light: rgba(0, 0, 0, 0.2);
    --border-dark: rgba(255, 255, 255, 0.2);
    --card-width: 1050px;
    --card-gap: 2vw;
    --section-height: 100vh;
}

*, *::before, *::after{
    box-sizing: border-box;
}

html, body{
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

body.light-mode{
    --bg-color: #ffffff;
    --text-color: #000000;
    --accordion-bg: #ffffff;
    --accordion-shadow: #f1f1f1;
}

body.dark-mode{
    --bg-color: #000000;
    --text-color: #ffffff;
    --accordion-bg: #000000;
    --accordion-shadow: #121212;
}

.body-container{
    max-width: 1280px;
    transition: background 0.3s ease, color 0.3s ease;
    margin: 0% 3%;
    width: 100%;
    padding: 0 20px;
}

.body-container.scroll-section{
    display: flex;
    align-items: center;
}

h1{
    font-family: 'Libre Baskerville', serif;
    font-size: 3em;
}

h2{
    font-family: 'Libre Bakersville', serif;
    font-weight: 500;
} 

h3{
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size:larger;
}

a{
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

a:hover{
    opacity: 0.8;
    cursor: pointer;
}

body.dark-mode a{
    color: var(--dark-text-color);
}

.navbar{
    position: fixed;
    display: flex;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 7px 7px 7px 10px;
    background: var(--navbar-bg-light);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, padding 0.3s ease-in-out, width 0.3s ease-in-out;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar *{
    transition: color 0s, background-color 0s, padding 0.3s ease-in-out, width 0.3s ease-in-out;
}

.nav-items{
    display: grid;
    justify-content: center;
    flex-grow: 1;
    grid-auto-flow: column;
    grid-column-gap: 50px;
    margin: auto;
    align-items: center;
    font-weight: 400;
}

.nav-items > *{
    display: flex;
    align-items: center;
}

.nav-items a,
.nav-items button{
    line-height: 1;
    padding: 0.5em 1em;
}

.navbar.scrolled{
    max-width: 90vw;
    margin-top: 0.5%;
    padding: 7px 7px 7px 10px ;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

body.dark-mode .navbar{
    background: var(--navbar-bg-dark);
}

body.dark-mode .navbar.scrolled{
    border: 1px solid var(--border-dark);
}

.nav-cta{
    padding: 15px 30px;
    border: solid 1.3px;
    border-color: var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500; 
    align-items: center;
    justify-content: center;
    align-self: center;
}

.nav-cta:hover{
    opacity: 0.8;
    cursor: pointer;
    border-color: var(--cta-hover);
    transform: translateY(-2px);
}

.contact-dropdown{
    position: relative;
    display: inline-block;
}

.contact-btn{
    position:relative;
    display: flex;
    align-self: center;
    background: transparent;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 500;
}

.dropdown-content{
    display: none;
    position: absolute;
    right: 0;
    background: black;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-content a{
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.contact-dropdown:hover .dropdown-content {
    display: block;
}

.fries-menu-btn{
    background: none;
    display: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

.fries-icon{
    width: 24px;
    height: 18px;
    display: none;
}

.theme-switch{
    position: relative;
    width: 50px;
    height: 24px;
    display: flex;
    margin-left: auto;
}

.theme-switch input{
    display: none;
}

.slider{
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    border-radius: 34px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0.7px 1.5px 3.5px rgba(0, 0, 0, 0.2), 
                inset -1px -1px 3.5px rgba(255, 255, 255, 0.5);
}

.slider::before{
    content: "☀️";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    background: var(--bg-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, left 0.3s ease;
}

input:checked + .slider{
    background-color: var(--dark-bg-color);
    box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.6), 
                inset -5px -5px 10px rgba(255, 255, 255, 0.1);
}

input:checked + .slider::before{
    content: "🌙";
    left: 26px;
}

.content-container{
    padding: 0;
}

.hero{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 90px 0;
    min-height: 80vh;
}

.hero-text{
    flex: 1;
    text-align: left;
}

.hero-text h1{
    font-size: 2.9em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p{
    font-size: 1.2em;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img{
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

.hero-image-mobile{
    display: none;
}

.hero-image-desktop{
    display: block;
}

#typed-output{
    color: var(--accent-color);
}

body.dark-mode #typed-output{
    color: #00b3b3;
}

.banner{
    background: rgba(255, 102, 0, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    display: none;
}

.banner a{
    color: var(--accent-color);
    text-decoration: underline;
}

.cta{
    display: inline-block;
    padding: 15px 20px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 1rem;
}

.cta:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
}

.pain-card{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.pain-image{
    flex: 1;
    display: flex;
    justify-content: center;
}

.pain-text{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pain-text h3{
    margin: 0;
}

.pain-text p{
    margin: 0;
}

.pain-text hr{
    margin: 1rem 0;
    width: auto;
    border: 1px solid #ccc;
}

.scroll-section {
    height: 400vh;
    position: relative;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.card-track {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    padding-top: 50px;
}

.cards-wrapper {
    display: flex;
    gap: var(--card-gap);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 5%;
    scroll-behavior: smooth;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.card {
    flex: 0 0 var(--card-width);
    max-width: 1280px;
    height: calc(100vh - 4rem - 60px);
    box-sizing: border-box;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1.2px solid #ccc;
    scroll-behavior: smooth;
    flex-direction: row;
    gap: 2rem;
}

.card.active {
    box-shadow: 0 10px 30px rgba(255,0,0,.25);
    transition: all .3s ease;
}

.card-buttons {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: grid;
    justify-content: stretch;
    grid-template-columns: repeat(4, 250px);
    grid-auto-flow: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 1240px;
}

.card-buttons.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.card-buttons button {
    padding: 0.6rem 1.2rem;
    font-size: 0.7rem;
    background: var(--navbar-bg-light);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    border: solid 0.001px;
    border-radius: 4px;
    border-color: var(--border-light);
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.card-buttons button.active {
    background: darkred;
    color: var(--dark-text-color);
}

.card-buttons button:hover {
    background: lightgrey;
}

.card-buttons button.active:hover {
    background: #8b0000;
}

.right{
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right img {
    width: auto;
    height: 60vh;
    max-width: 350px;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.left{
    flex: 1;
    min-width: 0;
}

.phone-demo{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 90px 0; 
    min-height: 80vh;
}

.phone-wrap {
    position: relative;
    width: 300px;
    aspect-ratio: 1117.68 / 2238.04;
}

.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    pointer-events: none;
}

.phone-screen {
    position: absolute;
    top: 2.2%;
    left: 5.2%;
    width: 89.6%;
    height: 95.5%;
    overflow: hidden;
    background: white;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.chat-header,
.chat-footer {
    flex-shrink: 0;
    height: 60px;
    z-index: 20;
    background-color: #f2f2f2;
    position: relative;
}

.chat-footer{
    bottom: 2.2%;
}

.chat-content {
    flex: 1;
    overflow-y: auto;
    z-index: 10;
    background: #fff;
    overflow-y: auto;
    scrollbar-width: none;
    padding-top:14%;
}

.chat-content::-webkit-scrollbar {
    display: none;
}

.chat-content img {
    width: 100%;
    height: auto;
    display: block;
}

svg.header,
svg.footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 21;
}

.service-card{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.service-card *{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card img{
    max-width: 500px;
    height: auto;
    width: 500px;
}

.service-card hr{
    margin: 1rem 0;
    width: auto;
    border: 1px solid #ccc;
}

.service-card:nth-child(even) {
    flex-direction: row-reverse;
}

.accordion {
    display: flex;
    background-color: var(--accordion-bg);
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: 0.4s, ease-in-out;
    justify-content: space-between;
    align-items: center;
}

.accordion .icon {
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    right: 15px;
    transition: 0.4s, ease-in-out;
}
  
.panel {
    padding: 0 18px;
    display: none;
    background-color: transparent;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.2s ease-out;
}

.active + .panel {
    display: block;
}

.main-footer {
    background: #222;
    color: white;
    padding: 20px 0;
    width: 100%;
}

.footer-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    :root{
        --card-width: 100vw;
    }

    .navbar{
        flex-wrap: wrap;
        display: flex;
        justify-content: space-between;
    }

    .fries-menu-btn{
        display: block;
        align-items: center;
        justify-content: center;
    }

    .fries-icon{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }

    .fry{
        height: 2px;
        background: var(--text-color);
        border-radius: 1px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .fry:nth-child(1) {
        width: 100%;
    }

    .fry:nth-child(2) {
        width: 85%;
    }

    .fry:nth-child(3){
        opacity: 0;
        width: 100%;
    }

    .fries-menu-btn.active .fry:nth-child(1) {
        transform: rotate(45deg) translate(5.5px, 5.5px);
    }

    .fries-menu-btn.active .fry:nth-child(2) {
        opacity: 0;
    }

    .fries-menu-btn.active .fry:nth-child(3) {
        opacity: 1;
        transform: rotate(-45deg) translate(5.5px, -5.5px);
    }

    .logo{
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .nav-items{
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

    .nav-items.active{
        display: flex;
    }

    .nav-items a,
    .contact-dropdown{
        width: 100%;
        padding: 10px 0;
    }

    .theme-switch{
        order: 3;
        margin-left: auto;
    }

    .hide-on-menu {
        display: none !important;
    }

    .content-container {
        padding: 0 15px;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        margin: auto;
    }

    body.dark-mode{
        background: #0A0A0A;
    }

    .hero {
        flex-direction: column;
        padding: 60px 0 40px;
        min-height: 90vh;
        text-align: center;
        justify-content: center;
    }

    .banner{
        display: none;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
        order: 1;
    }

    .hero-text h1 {
        margin-bottom: 1.5rem;
        line-height: 1.3;
        text-align: center;
        size: clamp(2.5rem, 5vw, 3.5rem); 
        letter-spacing: slight (0.02em);
        font-weight: 700;
    }

    .hero-text-mobile h3{
        size: clamp(1.125rem, 2vw, 1.5rem);
        font-weight: 500;
        line-height: 1.6;
    }

    .hero-text-mobile h3 .light-mode{
        color: #121212;
    }

    .hero-text p {
        font-size: 1.1em;
        margin-bottom: 2rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text-mobile {
        display: block;
        max-width: 900px; 
        margin: auto; 
        text-align: center;
    }

    .hero-text-desktop {
        display: none;
    }

    .hero-image {
        order: 2;
        margin-bottom: 2rem;
    }

    .hero-image img {
        max-width: 4800px;
        width: 100%;
    }

    .hero-image-desktop {
        display: none;
    }

    .hero-image-mobile {
        display: block;
    }

    #typed-output {
        white-space: nowrap;
        overflow: hidden;
        max-width: 100%;
    }

    .cta{
        background: linear-gradient(90deg, var(--accent-color), #ea3c33);
        border-radius: 9999px;
        Padding: 0.875rem 1.75rem;
        font-weight: 600;
    }

    .icon img{
        width: 200px;
        height: auto;
    }
    .pain-card{
        flex-direction: column;
        text-align: center;
    }

    .pain-image, .pain-text{
        flex: unset;
        width: 100%;
    }

    .scroll-section {
        height: auto;
        width: 100%;
        overflow-x: hidden;
        margin-left: 0;
        margin-right: 0;
    }

    .card-buttons {
        position: fixed;
        top: calc(60px + 20px);
        left: 0;
        right: 0;
        transform: none;
        padding: 0 20px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .card-buttons::-webkit-scrollbar {
        display: none;
    }

    .card-buttons.visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .card-buttons button {
        white-space: nowrap;
        min-width: fit-content;
        flex-shrink: 0;
    }

    .card-track {
        position: static;
        height: auto;
        overflow: visible;
        width: 100%;
    }

    .cards-wrapper {
        flex-direction: column;
        padding: 10% 10%;
        gap: 2rem;
        transition: none;
        transform: none !important;
        width: 100%;
        box-sizing: border-box;
    }

    .card {
        width: 100%;
        height: 80vh;
        max-width: 100%;
        padding: 2rem;
        font-size: 0.9rem;
        opacity: 0.2;
        transition: opacity 0.3s ease;
        box-sizing: border-box;
        margin: 0 auto;
        flex-direction: column;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .card.active {
        opacity: 1;
    }

    .card .right img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .card .left {
        margin-bottom: 1rem;
    }

    .spacer {
        height: 50vh;
        width: 100vw;
    }

    .phone-demo{
        flex-direction: column;
    }

    .service-card,
    .service-card:nth-child(even) {
        flex-direction: column-reverse;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .hero-text-mobile {
        display: none;
    }

    .hero-text-desktop {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .content-container {
        padding: 0 10px;
    }
}