@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    --bg: rgb(230, 230, 230);
    --text: rgb(61, 61, 63);
    --primary: rgb(44, 32, 224);

    --width: min(90%, 1600px);

    font-family: "roboto", sans-serif;
}

a {
    text-decoration: none;
    color: var(--text);
    transition: 0.5s;
}

a:hover {
    color: var(--primary);
}

h2 {
    font-size: 3rem;
}

p {
    font-size: 1.5rem;
    text-align: justify;
    margin: 0;
}

h1 {
    margin: 0;
}

body {
    margin: 0;

    background-color: var(--bg);
    display: flex;
    flex-direction: column;

    gap: 20px;
}

body > h2 {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: var(--width);
    margin: 0 auto;
    padding: 20px 0;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


header {
    padding: 10px 0;
    width: 100%;
    position: fixed;
    z-index: 67;
    background-color: var(--bg);

    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 69;
}
header div {
    width: var(--width);
    margin: auto;
    display: flex;
    justify-content: space-around;
}
header div a {
    font-size: 1.5rem;
}
header p {
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

#hero {
    margin: 0 auto;
    max-width: 100%;
    height: 97vh;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
#hero iframe {
    transform: scale(1.5);
    pointer-events: none;
}
#hero h1 {
    z-index: 68;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--bg);
    font-size: 5rem;
}
#hero p {
    z-index: 68;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: var(--bg);
}



#content {
    display: flex;
    flex-direction: column;
    gap: 40px;

    width: var(--width);
    margin: auto;
    padding-bottom: 40px;
}
.segment {
    display: flex;
    width: var(--width);
    margin: auto;
    gap: 20px;

    border-radius: 50px;
    background: #e0e0e0;
    box-shadow:  14px 14px 28px #bebebe, -14px -14px 28px #ffffff;

    overflow: hidden;
}
.segment:nth-child(even) {
    flex-direction: row-reverse;
}
.segment * {margin: 0}
.segment img {
    width: 50%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.segment div {
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 30px;
}
.segment button {
    width: max(35%, 200px);
    height: 50px;

    margin-top: 20px;
}

button {
    background-color: var(--primary);
    border-radius: 10px;
    color: var(--bg);
    font-family: "roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;

    transition: 0.5s;
}
button:not(.carousel-btn):hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary);
    cursor: pointer;
}
button:not(.carousel-btn):active {
    transform: scale(0.95);
    box-shadow: none;
}

#popup {
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background-color: transparent;
    backdrop-filter: blur(5px);

    z-index: 420;
}

#popup div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: var(--bg);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);

    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 70%;
    height: 70%;
}

#popup iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}

#popup button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 15px;
    font-size: 1.2rem;
    padding: 0;
    z-index: 10;
    background-color: rgb(248, 61, 61)
}

footer {
    width: 100%;
    background-color: lightgrey;
    border-radius: 50px 50px 0 0;
    padding: 20px 0;
}

footer div {
    width: var(--width);
    height: 100%;
    margin: auto;

    display: flex;
    flex-direction: column;
    gap: 20px;

    align-items: center;
    text-align: center;
}

footer h3 {
    color: var(--text);
    margin: 0;
}