* {
    padding: 0;
    margin: 0;
    font-family: var(--font-main)
}

body {
    background-color: var(--black);
    color: var(--white);
}

.main {
    width: 100%;
    height: 80vh;
    background-image: url('/media/Crate.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 40vh;
}

.main .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    max-width: 80vw;
    min-height: 40vh;
    border-radius: 10px;
    padding: 0;
    padding-top: 10vh;
    padding-bottom: 10vh;
    background-color: rgba(43, 43, 43, 0.1);
    backdrop-filter: blur(4px);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.main button {
    position: relative;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    color: var(--white);
    background: linear-gradient(135deg, #03d1f1, #0088ff);
    border: none;
    border-radius: 5px;
    box-shadow: 0 6px 32px #03d1f1;
    cursor: pointer;
    transform: translate(0, 0);
    transition: transform 0.6s ease, scale 0.6s ease;
}

.main button:hover {
    transform: translate(0, -3px);
    scale: 1.05;
}

.in-a-button-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    flex-direction: column;
    justify-content: center;
    background-color: var(--black);
}

.in-a-button-section h2,
.in-a-button-section h3 {
    color: var(--orange);
    font-size: 2rem;
    text-align: center;
    margin: 1rem;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: clamp(4vw);
}

.in-a-button-section span {
    color: var(--blue);
    background-color: var(--orange);
    padding: 20px;
    border-radius: 100px;
    font-size: 2rem;
    text-align: center;
    margin: 1rem;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 3rem;
    white-space: nowrap;
    display: inline-block;
}

/* Features----------------------------------------------------- */

.features-section {
    background-color: var(--black);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 10vw;
    gap: 10vw;
    overflow: clip;
}

.feature-card {
    width: 30vw;
    height: 600px;
    border: 3px solid var(--orange);
    border-radius: 100px;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
    animation-fill-mode: forwards;
    transition: translate 0.3s ease-in-out;
}

@media (max-width: 600px) {
    .features-section {
        flex-direction: column;
    }

    .feature-card {
        min-width: 170px;
        width: 70vw;
    }
}

.bake-with-a-button {
    transform: translate(-30vw, 0);
    animation-name: slideinleft;
    background-image: url(../media/image1.png);
    background-position: center;
    background-size: cover;
}

.any-object {
    transform: translate(30vw, 0);
    animation-name: slideinright;
    background-image: url(../media/image2.jpg);
    background-position: center;
    background-size: cover;
}

@keyframes slideinleft {
    from {
        transform: translateX(-30vw);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideinright {
    from {
        transform: translateX(30vw);
    }

    to {
        transform: translateX(0);
    }
}

.feature-card p {
    font-family: var(--font-header);
    font-size: 3rem;
    padding: 1vw;
    padding-top: 100px;
}

/* Capabilities */
.capabilities {
    background-color: var(--black);
}

/* --- Common Styles for Both Boxes --- */
.slanted-boxr, .slanted-boxl {
    position: relative; /* Necessary to anchor the custom top border line */
    background: #000000;
    color: var(--white);
    min-width: 30vh;
    padding: 50px 20px 50px; /* Increased top padding to account for the border zone */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Right-Slanting Box (\) --- */
.slanted-boxr {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

/* Top border line for Right-Slanting Box */
.slanted-boxr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--orange);
    /* Creates a matching thin polygon strip right at the top edge */
    clip-path: polygon(0 10%, 100% 0, 100% 2px, 0 calc(10% + 2px));
    pointer-events: none;
}

/* --- Left-Slanting Box (/) --- */
.slanted-boxl {
    /* Flipped coordinates: Starts at 0% height on the left, goes to 10% on the right */
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%);
}

/* Top border line for Left-Slanting Box */
.slanted-boxl::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--orange);
    /* Creates a matching thin polygon strip mapped to the flipped slant */
    clip-path: polygon(0 0, 100% 10%, 100% calc(10% + 2px), 0 2px);
    pointer-events: none;
}

.slanted-boxl h3, .slanted-boxr h3{
    background-color: #0000006d;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    max-width: 1000px;
}

.slanted-boxl span, .slanted-boxr span{
    position: absolute;
    color: var(--orange);
    font-family: var(--font-header);
    font-size: clamp(30px, 20vw, 400px);
    z-index: -10;
    font-weight: 800;
}

.box1, .box2, .box3{
    background-attachment: fixed; 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.box1{
    background-image: url(/media/image3.jpg);
}

.box2{
    background-image: url(/media/image4.jpg);
}

.box3{
    background-image: url(/media/image5.jpg);
}