.bg {
    background-image: url("Assets/background.jpg");
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

a {
    text-decoration: none;
    color: rgb(236, 174, 174);
    justify-content: end;
    gap: 2rem;
}

a:visited {
    color: white;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

nav a:hover {
    background: rgba(236, 174, 174, 0.15);
    color: #ecaeae;
}

header {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-top: auto;
    margin-bottom: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 0 1rem;
}

header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    transform: translateY(-20px);

}

header p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
    border-right: .15em solid white;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 5s steps(30, end), blink-caret .75s;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 50%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: rgb(227, 217, 217);
    }
}

/* 
    ==============
    About section 
    ============== */
#about {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    color: rgb(54, 44, 44);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#about p {
    font-size: 16px;

}

#about .card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    height: fit-content;
    text-align: left;
    transition: box-shadow 0.3s;
    gap: 2rem;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.card-video {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-video video {
    max-width: 50%;
    border-radius: 10%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#about .card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

h2::after {
    content: "";
    display: block;
    height: 4px;
    width: 60%;
    background: rgb(54, 44, 44);
    margin: 10px auto 0;
    border-radius: 10px;
    animation: underline 2s infinite alternate;
}

@keyframes underline {
    from {
        width: 60%;
        background: rgb(54, 44, 44);
    }

    to {
        width: 80%;
        background: rgb(54, 44, 44);
    }
}

.card video {
    border-radius: 16px;
}

h3 {
    background-color: bisque;
    width: 117px;
    height: 30px;
    border-radius: 10%;
}

button {
    margin-left: 45%;
    margin-bottom: 2%;
    padding: 10px;
    border-radius: 10px;
    background-color: rgb(79, 77, 77);
    border: none;
    font-size: 20px;
}

button a {
    color: white;
}

button a:visited {
    color: white;
}

button:hover {
    background-color: rgb(54, 44, 44);
}

/* Responsive Design
================== */
@media (max-width: 768px) {
    nav {
        flex-direction: row-reverse;
        align-items: center;
    }

    #about .card {
        flex-direction: column;
        align-items: center;
    }

    .card video {
        width: 100%;
        height: fit-content;
        max-width: 295px;
        border-radius: 20px;
    }

    .card-content {
        text-align: center;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .card-video {
        margin-top: 1rem;
    }

    button {
        margin-left: 35%;
        padding: 8px;
        font-size: 16px;
    }
}

/* 
    =================
    Population section 
    ================= */
.population {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    color: rgb(54, 44, 44);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.population p {
    font-size: 16px;
}

.population h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

li {
    text-align: left;
    margin-left: 25%;
    margin-bottom: 1%;
    font-size: 1rem;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.culture-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    gap: 2rem;
}

.culture-content-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f9f6f2;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.culture-content-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #362c2c;
    text-align: left;
    margin: 0;
}

.carousel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    max-width: 450px;
}

.carousel-track {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-track img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
}

.carousel-track img.active {
    opacity: 1;
    z-index: 1;
}