:root {
    --background-color: #ffffff;
    --text-color: #000000;
    font-family: Jost-Medium;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

main {
    background-color: var(--background-color);
    color: var(--text-color);
    width: 100%;
}

section.hero {
    color: var(--text-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

section.brand {
    padding-top: 2em;
}

.hero {
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero h1 {
    line-height: 1;
    margin-bottom: 0;
    font-family: var(--base-font);
    text-align: center;
}

.brand-icons-wrap {
    gap: 2rem;
    align-items: center;
}

img.brand-icon {
    height: 34px;
    width: auto;
    opacity: 0.5;
}

img.brand-icon:nth-child(3) {
    height: 25px;
}

img.brand-icon.active {
    opacity: 1;
}

.home-text {
    align-items: flex-end;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--padding);
    z-index: 2;
}

.hero h1,
.main-text {
    font-size: 40px;    
    font-size: clamp(40px, 5vw, 80px);
}

.main-text {
    line-height: 1;
    margin-bottom: 0;
    font-family: var(--base-font);
    color: white;
}

.swiper-wrapper::after {
    content: '';
    top: 0;
    left: 0;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
}

.home-button:hover,
.home-button {
    border-color: white !important;
    background-color: white !important;
    color: black !important;
    padding-left: 30px;
    padding-right: 30px;
}

.hero-text {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    width: 100%;
    padding: var(--padding);
    text-align: center;
}

.hero-desc {
    width: 100%;
    max-width: 800px;
}

.hero-text svg {
    transform: rotate(-135deg);
    position: relative;
    left: 5px;
    top: 1px;
    padding: 3px;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%);
}

/* Brands Section */

.brand-header h5 {
    color: var(--text-color);
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section-container {
    width: 100%;
    padding: var(--padding);
}

.brand-heading {
    text-align: left;
    margin-bottom: 2em;
    width: 100%;
}

.brand-heading p {
    font-size: var(--header-font-size);
    letter-spacing: 0.03em;
    color: var(--text-color);
    margin: 0;
    padding-bottom: 10px;
}

.brand-heading hr {
    width: 100%;
    margin: 1px 0;
    border-top: 1px solid #ddd;
    background-color: #8c8c8c;
    border: 0;
    height: 1px;
}

.brand-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.brand-item {
    display: flex;
    flex-direction: column;
    width: 32%;
    margin-bottom: 20px;
    position: relative;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1em;
    text-transform: uppercase;
}

.brand-header h5 {
    margin: 0;
    font-size: var(--base-font-size);
}

.arrow-icon {
    width: auto;
    height: 12px;
    fill: white;
    transition: transform 0.3s;
    cursor: pointer;
}

.brand-item:hover .arrow-icon {
    transform: rotate(-135deg);
}

.dropdown-content {
    color: var(--text-color);
    overflow-wrap: break-word;
    border-bottom: 1px solid rgb(94, 94, 94);
    padding-bottom: 1em;
    max-height: 0;
    overflow: hidden;
    left: 0;
    top: 100%;
    width: 100%;
    background-color: var(--background-color);
    transition: max-height 1.5s ease, opacity 1s ease;
    z-index: 1;
}

.dropdown-content p {
    margin: 0;
    padding-top: 1em;
    padding-bottom: 1em;
    opacity: 0;
    transition: opacity 1s ease;
    font-size: var(--base-font-size);
}

.brand-item:hover .dropdown-content {
    max-height: 500px;
}

.brand-item:hover .dropdown-content p {
    opacity: 1;
}

.brand-item:hover .dropdown-content .explore-link,
.brand-item:hover .brand-header .explore-link {
    color: black;
}

.brand-item .explore-link {
    opacity: 0;
    transition: opacity 1s ease;
}

.brand-item:hover .explore-link {
    opacity: 1;
}

.explore-link {
    display: block;
    color: var(--text-color);
    margin-top: 10px;
    margin-left: 0; 
    text-underline-offset: 3px;
    font-size: 12px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    color: inherit !important; 
    text-decoration: none; 
    margin-top: 0;
    text-transform: uppercase;
}

.underlined {
    text-decoration: underline !important;
}

.explore-link:hover {
    text-decoration: underline;    
}

/* Top Section */
.top-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    text-align: left;
}

.hero-heading {
    font-size: 90px;
    color: white;
}

/*  End Section */
.end-section {
    position: relative;
    height: 100vh;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.end-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; 
}


.end-heading {
    font-size: 90px;
    color: var(--white-text);
    margin-bottom: 0; 
}

.end-container {
    text-align: center;
    color: white;
    padding: 0;
}


.explore-link:hover {
    text-decoration: underline; 
}

.arrow-icon {
    width: 11px; 
    height: auto;
    margin-left: 8px; 
}

.home-slider {
    position: relative;
}

.home-slider .swiper-slide {
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .home-text {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-img {
        height: 50vh;
        object-fit: cover;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero p {
        font-size: var(--base-font-size);
    }

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

    .welcome-message {
        text-align: center;
        margin-top: 60px;
    }

    .welcome-message p {
        font-size: (var(--base-font-size) - 2px);
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .brand-row {
        flex-direction: column;
        align-items: center;
    }

    .brand-item {
        width: 100%;
    }

    .brand-header h6 {
        font-size: 1.2rem;
    }

    .dropdown-btn {
        font-size: 1.2rem;
    }

    .dropdown-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .dropdown-content {
        max-height: unset !important;
        border-bottom: 0px;
    }

    .brand-item .explore-link,
    .dropdown-content p {
        opacity: 1;
    }

    .project-interface {
        flex-direction: column;
        padding: var(--padding);
    }

    .project-list {
        flex: none;
        overflow-y: auto;
        max-height: calc(100vh - 200px);
    }

    .project-item {
        padding: 0;
        margin-bottom: 10px;
    }

    .project-item .header {
        display: flex;
        justify-content: space-between;
        position: relative;
        height: 50px;
        align-items: flex-start;
    }

    .project-item .year {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .project-item .icon {
        position: static;
        margin-top: 5px;
    }

    .project-item .details>div {
        width: 100%;
        margin-bottom: 5px;
    }

    .project-item .project-title {
        flex: 4;
        font-size: calc(var(--base-font-size) - 2px);
        font-weight: lighter;
        margin: 0;
    }

    .project-details {
        width: 100%;
        padding: 10px;
    }

    .laminate-details {
        grid-template-columns: 1fr;
    }

    .brand-icons-wrap {
        justify-content: space-between;
        width: 100%;
    }
}