@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-size: 16px;
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

#main {
    height: 100%;
    width: 100%;
}

#hero {
    min-height: 100vh;
    width: 100%;
    padding: 4.4rem 3.75rem 3.75rem 3.75rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#hero-img {
    flex: 1;
    width: 100%;
    background-image: url('https://images.pexels.com/photos/34092/pexels-photo.jpg');
    background-size: cover;
    background-position: 0 80%;
    background-repeat: no-repeat;
}

#hero > #hero-text-container {
    padding-right: 3rem;
}

#hero > #hero-text-container > h1 {
    font-size: 6rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.2rem;
    margin-top: 3.75rem;
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero >  #hero-text-container > h1 > span {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
}

#hero >  #hero-text-container > button {
    border: 1px solid #000000;
    border-radius: 50rem;
    background-color: transparent;
    color: black;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    margin-top: 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

#hero >  #hero-text-container > button:hover {
    color: white;
    background-color: #000000;
}

#hero > #hero-text-container > button > i {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

@media (max-width: 430px) {
    #hero {
        height: 40vh;
        margin-top: 2.2rem;
        padding: 1.8rem 1.8rem 4rem 1.8rem;
    }
    #hero > #hero-text-container > h1 {
        margin-top: 1.5rem;
        font-size: 3rem;
    }
    #hero > #hero-text-container > h1 > span {
        font-size: 3rem;
    }
    #hero > #hero-text-container > button {
        margin-top: 1.5rem;
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }
    #hero > #hero-text-container > button > i {
        font-size: 1rem;
    }

}

#sectors {
    height: fit-content;
    width: 100%;
    padding: 0 3.75rem;
}

.sector-item {
    width: 100%;
    min-height: 300px;
    border-bottom: 1px solid rgba(145, 145, 145, 0.34);
    display: grid;
    grid-template-columns: auto 1.5fr 2fr;
    align-items: center;
    padding: 3.75rem;
    position: relative;
    gap: 2rem;
}

.sector-item > h3 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.09rem;
    color: #000000;
    position: relative;
    z-index: 1;
    grid-column: 1;
}

.sector-item img {
    grid-column: 2;
    justify-self: center;
    height: 250px;
    width: 100%;
    max-width: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.5s ease-out;
    opacity: 0;
    transform: scale(0);
}

.sector-item:hover img {
    opacity: 1;
    transform: scale(1);
}

.sector-item:last-child {
    border-bottom: none;
    margin-bottom: 3rem;
}

.sector-item > #item-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    flex: 1.4;
}

.sector-item > #item-details > h2 {
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #000000;
}

.sector-item > #item-details > p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-top: 0.8rem;
}

.sector-item > #item-details > #item-details-hidden {
    margin-top: 0rem;
}

#item-details-hidden {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-out;
    opacity: 0;
}

.sector-item:hover #item-details-hidden {
    max-height: 500px; /* Adjust based on your content */
    opacity: 1;
    padding-top: 1rem;
}

.sector-item > #item-details {
    padding: 1.5rem;
}

.sector-item {
    transition: background-color 0.3s ease;
}

/* Different pastel colors for each sector item */
.sector-item:nth-child(1):hover {
    background-color: #f0f7ff; /* Light blue */
}

.sector-item:nth-child(2):hover {
    background-color: #fff0f5; /* Light pink */
}

.sector-item:nth-child(3):hover {
    background-color: #f0fff4; /* Light green */
}

.sector-item:nth-child(4):hover {
    background-color: #fff8e1; /* Light yellow */
}

.sector-item:nth-child(5):hover {
    background-color: #f3e5f5; /* Light purple */
}

.sector-item:nth-child(6):hover {
    background-color: #e8f5e9; /* Light green */
}

.sector-item > #item-details > #item-details-hidden > p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-top: 0.8rem;
}

.sector-item > #item-details > #item-details-hidden > button {
    border: 1px solid #000000;
    border-radius: 50rem;
    background-color: transparent;
    color: black;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.sector-item > #item-details > #item-details-hidden > button:hover {
    background-color: #000000;
    color: #ffffff;
}

#banner {
    height: 60vh;
    width: 100%;
    padding: 2rem 3.75rem;
}

#banner-container {
    height: 100%;
    width: 100%;
    padding: 2rem 3.75rem;
    background-image: url('../images/gray-bg.jpg');
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dbdbdb;
    border-radius: 3rem;
}

#banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#banner-content > h2 {
    text-align: center;
    font-size: 6rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.3rem;
    color: #000000;
}

#banner-content > h2 > span {
    color: #000000;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-style: italic;
    font-size: 3rem;
}

#banner-content > button {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    background-color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
    margin-top: 3rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

#banner-content > button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#banner-content > button:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#banner-content > button > i {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    #banner {
        padding: 0rem 1.8rem;
        height: fit-content;
    }

    #banner-container {
        padding: 2rem 1.8rem;
        height: fit-content;
        border-radius: 2rem;
    }

    #banner-content > h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        letter-spacing: -0.15rem;
    }
    
    #banner-content > h2 > span {
        font-size: 1.4rem;
        letter-spacing: -0.1rem;
        line-height: 2;
    }

    #banner-content > button {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 430px) {
    #sectors {
        padding: 0rem 0rem;
    }

    .sector-item {
        padding: 2rem 1.8rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        min-height: auto;
    }

    .sector-item h3 {
        margin: 0;
        order: 1;
        text-align: left;
        width: 100%;
    }
    
    .sector-item img {
        display: none;
        order: 2;
        width: 100%;
        max-width: 100%;
        height: 200px;
        margin: 0.5rem 0;
    }
    
    .sector-item > #item-details {
        order: 3;
        width: 100%;
        padding: 0;
    }
    
    .sector-item > #item-details {
        padding: 0rem;
    }

    .sector-item > #item-details > h2 {
        font-size: 3.5rem;
        margin-top: 1.5rem;
    }
    
}

@media (min-width: 1200px) and (max-width: 1799px) {

    #hero > #hero-text-container > h1 {
	font-size: 4.5rem;
	margin-top: 2.75rem;
    }

    #hero > #hero-text-container > button {
	margin-top: 2.5rem;
    }

    #banner-content > h2 {
	font-size: 5rem;
    }

}
