/* Global Variables */
:root {
    --main-bg: #222831;
    --secondary-bg: #393E46;
    --main-text: #EEEEEE;
    --accent-color: #00ADB5;
    --aspect-ratio-16-9: 56.25%;
    --aspect-ratio-4-3: 75%;
    --aspect-ratio-1-1: 100%;
    --aspect-ratio-3-2: 66.67%;
    --aspect-ratio-5-4: 80%;
    --aspect-ratio-2-1: 50%;
    --aspect-ratio-21-9: 42.86%;
    --aspect-ratio-4-1: 25%;
    --aspect-ratio-1-2: 200%;
    --aspect-ratio-9-16: 177.78%;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
  }

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--main-bg);
    color: var(--main-text);
}

.container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.grey-box {
    background-color: var(--secondary-bg);
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.inner-text {
    max-width: 900px;
    position: absolute;
    bottom: 3em;
    font-size: clamp(1rem, -0.7778rem + 3.7037vw, 2rem);
    padding-left: 1em;
}

/* Header Section */
header {
    background-color: var(--secondary-bg);
    color: var(--main-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: top 0.3s;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.header-logo::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23EEEEEE"><path d="M12 2L1 21h22L12 2zm0 3.516L20.297 19H3.703L12 5.516zm-1 5.484v5h2v-5h-2zm0 6v2h2v-2h-2z"/></svg>');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.header-nav-menu {
    display: flex;
    list-style-type: none;
}

.header-nav-menu li {
    margin-left: 1rem;
}

.header-nav-menu li a {
    color: var(--main-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-nav-menu li a:hover {
    color: var(--accent-color);
}

.header-burger {
    display: none;
    cursor: pointer;
}

.header-burger div {
    width: 25px;
    height: 3px;
    background-color: var(--main-text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Home Section */
#home {
    padding: 2rem 0;
}

.home-container {
    padding: 0em;
}

.home-grey-box {
    position: relative;
    padding-top: var(--aspect-ratio-2-1);
    border-radius: 0px;
    width: 100%;
}

.home-grey-box::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-bg);
    background-image: linear-gradient(45deg, var(--secondary-bg) 25%, var(--main-bg) 25%, var(--main-bg) 50%, var(--secondary-bg) 50%, var(--secondary-bg) 75%, var(--main-bg) 75%, var(--main-bg) 100%);
    background-size: 56.57px 56.57px;
}

/* About Section */
#about {
    padding: 4rem 0;
    position: relative;
}

#about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.content {
    min-width: 320px;
    max-width: 600px;
    padding: 1em;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.description {
    color: var(--main-text);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--main-text);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #008C94;
}

.about-grey-box {
    max-width: 620px;
    height: 420px;
    position: relative;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-text-box {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-text-box.active {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
}

.carousel-indicator.active {
    background-color: var(--accent-color);
}

.desktop-carousel-controls {
    display: none;
}

/* Testimonial Section */
#testimonial {
    padding: 4rem 0;
    position: relative;
}

#testimonial::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}


.testimonial-flex-box {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 2em;
    padding:4em 0em;
}

.testimonial-box {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--secondary-bg);
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    max-width: 420px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.testimonial-person {
    padding-top:1em;
    font-size:18px;
    font-weight:600;
}

/* Contact Section */
#contact {
    padding: 8rem 0;
    position: relative;
}

.contact-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 320px;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: var(--secondary-bg);
    border: 1px solid var(--accent-color);
    color: var(--main-text);
    border-radius: 5px;
}

.contact-form button {
    background-color: var(--accent-color);
    color: var(--main-text);
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #008C94;
}

/* Footer */
footer {
    width: 100vw;
    background-color: var(--secondary-bg);
}

.footer-container {
    color: var(--main-text);
    text-align: center;
    padding: 1rem 0;
}

/* Media Queries */
@media screen and (max-width: 480px) {
    .home-grey-box {
        padding-top: var(--aspect-ratio-1-1);
    }
}

@media screen and (max-width: 768px) {
    .header-nav-menu {
        position: fixed;
        right: -100%;
        top: 3rem;
        flex-direction: column;
        background-color: var(--secondary-bg);
        width: 50%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-bottom-left-radius: 10px;
    }

    .header-nav-menu.active {
        right: 0;
    }

    .header-nav-menu li {
        margin: 2.5rem 0;
    }

    .header-burger {
        display: block;
    }

    .header-burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .header-burger.active .line2 {
        opacity: 0;
    }

    .header-burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    #home {
        padding: 0em;
    }

    .home-grey-box {
        padding-top: var(--aspect-ratio-1-1);
    }

    .inner-text {
        margin-top: 1em;
        bottom: inherit;
        padding: 0;
    }
}

@media (min-width: 769px) {

    .home-grey-box {
        border-radius:10px;
    }
    .desktop-carousel-controls {
        display: flex;
        gap: 2em;
        margin-top: 20px;
    }

    .carousel-control {
        background-color: var(--accent-color);
        color: var(--main-text);
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .carousel-control:hover {
        background-color: #008C94;
    }

    .carousel-indicators {
        display: none;
    }

    .flex-container {
        flex-direction: row-reverse;
        align-items: stretch;
    }

    .content, .about-grey-box {
        width: 48%;
        height: 420px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .content {
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .description {
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    .description {
        font-size: 1.125rem;
    }
}

@media(min-width: 1335px) {
    .testimonial-flex-box {
        justify-content: space-around;
    }
}