* {
    box-sizing: border-box; /* Global safety reset */
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center; /* Keeps sections centered on the page */
}

.container {
    width: 100%;
    display: block; 
    border: none;
}

.banner {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
    background-position: bottom;
}

.logo {
    display: block;
    width: 250px;
    height: auto;
    max-width: 788px; 
    margin: 32px 0 0 0;
    margin-left: 20%;
}


.white-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 2% 24px;
}

.white-section, .black-section-wrapper {
    width: 100%;
    max-width: 788px;
    padding: 2% 24px;
}

.black-section {
    width: 100%;
    background-color: black;
    clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
    display: flex;
    justify-content: center;
    padding-top: 8%;
    padding-bottom: 8%;
    color: white;
}

.black-section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.black-section-title-wrapper {
    margin-bottom: 24px;
}

.black-section-contents {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: hidden;
    gap: 24px;
    position: relative;
}

.manifesto-sentence {
    color: white;
    -webkit-text-stroke: 2.5px black;
    paint-order: stroke fill;
    font-size: 30pt;
    text-align: right;
    width: 100%;
}

.black-title {
    background-color: black;
    color: white;
    padding: 8px 16px;
    width: fit-content;
    font-size: 18pt;
    font-weight: 600;
    transform: rotate(2.95deg);
}

.white-title {
    background-color: white;
    color: black;
    padding: 8px 16px;
    width: fit-content;
    font-size: 18pt;
    font-weight: 600;
    border-style: solid;
    border-width: 2px;
}

.gray-title {
    background-color: #535353;
    color: white;
    padding: 8px 16px;
    width: fit-content;
    font-size: 18pt;
    font-weight: 600;
    border-style: solid;
    border-width: 2px;
}

.green-title {
    background-color: #BBBA0B;
    color: white;
    padding: 8px 16px;
    width: fit-content;
    font-size: 18pt;
    font-weight: 600;
}

.project-card {
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px;
    padding-right: 350px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.project-title {
    font-size: 24pt;
    font-weight: 700;
    color: white;
}

.project-scope {
    font-size: 16pt;
    font-weight: 400;
    color: white;
}

.project-thumbnail {
    width: 354px;
    height: auto;
}

.contacts-options {
    display: flex;
    flex-direction: row;
    gap: 18px;
}

.services-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    justify-content: flex-start;
}

.white-button {
    background-color: white;
    color: black;
    padding: 8px 16px;
    width: fit-content;
    font-size: 18pt;
    font-weight: 600;
    border-style: solid;
    border-width: 2px;
    cursor: pointer;
}

#collection-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.collection-image {
    width: calc(33.333% - 14px);
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .collection-image {
        width: 100%;
    }
    
    .contacts-options {
        flex-wrap: wrap;
    }
    
    .white-button {
        font-size: 14pt;
        padding: 6px 12px;
    }
}

.project-card:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.carousel-track {
    display: flex;
    flex-direction: row;
    gap: 24px;
    animation: scrollCards 20s linear infinite;
    width: max-content;
}

.black-section-contents:hover .carousel-track {
    animation-play-state: paused;
}

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

#footer {
    width: 100%;
    max-width: 788px;
}

#footer .contacts-options {
    justify-content: center;
    width: 100%;
}

#rights-reserved {
    text-align: center;
    width: 100%;
}