* {
    margin: 0;
    padding: 0;
}
.main {
    width: 100%;
}

/* Header */

nav{
    background-color: #fff;
    display: flex;
    padding: 0% 2%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 130px;
}
.nav-links{
    flex: 1;
    text-align: center;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    margin: 8px 3%;
    position: relative;
}
.nav-links ul li a{
    text-decoration: none;
    font-size: clamp(18px, 2vw, 28px);
    color: #000000;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000000;
  transition: transform 0.25s ease-out;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Center */

.segmeant_container {
    display: flex;
    width: 100%;
    height: 85vh;
    display: none;
}
.segmeant {
    flex: 1;
    background-size: cover;
    background-color: rgb(0 0 0 / 50%);
    background-blend-mode: color;
    position: relative; 
    overflow: hidden; 
    max-width: 33.33%;
}
.segmeant img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.info {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.9); 
    transition: bottom 0.4s ease;
    z-index: 2;
    pointer-events: none; 
}
.segmeant:hover .info {
    bottom: 0;
    height: 10vh;
    background-color: #ffff;
}
img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin: 0px 2% 0px 2%;
    color: #ffff;
    font-size: 100px;
    transition: 0.4s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    opacity: 1;
    z-index: 999;
}
.hide-arrows .prev,
.hide-arrows .next {
    opacity: 0;
    pointer-events: none;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
  color: rgba(255, 255, 255, 0.5);
}
.segmeant h1 {
    border-bottom: 1px Solid #000000;
    width: 70%;
    padding-bottom: 2%;
    margin: 1% 0px 1% 2%;
}
.segmeant h4 {
    margin-left: 2%;
}
.fade {
  animation-name: fade;
  animation-duration: .5s;
}
.popup {
    display: none; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); 
    color: white;
    z-index: 9999; 
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: auto;
}
.popup.hidden {
    opacity: 0;
    pointer-events: none;
}
.infoCont {
    background-color: #ffff;
    width: 90%;
    height: 90%;
    margin: auto;
    border-radius: 20px;
}
@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}
.card {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    flex-direction: row;
    height: 100%;
    background-size: cover;
    background-color: rgb(0 0 0 / 50%);
    background-blend-mode: color;
    border-radius: 10px;
}
.card.active {
    display: flex;
    opacity: 1;
    position: relative;
}
.card img {
    max-width: 100%;
    border-radius: 10px;
    margin: auto;
}
.infoCont .card:first-child img {
    max-width: 80%;
}
.card button {
    position: absolute;
    right: 0;
    font-size: 24px;
    background-color: transparent;
    color: #ffff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    margin: 1%;
}
.card button:hover {
    color: rgb(225,225,225,50%)
}
.description {
    background-color: white;
    color: black;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    overflow-y: auto; 
    max-height: 100%; 
}
.card h2 {
    margin-bottom: 10px;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    width: 50%;
}
.card p {
    padding: 10px;
    overflow: hidden;
    font-size: 90%;
    margin: auto;
}
.description p:last-of-type {
    margin-top: auto;
}
.title-bar {
    position: relative;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.title-bar h2 {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    font-size: 100%;
}
.title-bar button {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    background-color: transparent;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}
.title-bar button:hover {
    color: rgb(0,0,0,50%)
}
.popupprev, .popupnext {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    margin: 0px 2% 0px 2%;
    color: #fff;
    font-size: 100px;
    transition: 0.4s ease;
    cursor: pointer;
}
.popupnext {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.popupprev:hover, .popupnext:hover {
  color: rgba(255, 255, 255, 0.5);
}
.dots-container {
    position: fixed;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    gap: 12px;
    z-index: 10000;
}
.dot {
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: white;
}

@media (max-width: 1440px) {
    .segmeant:hover .info {
        height: 20vh;
    }
}
@media (max-width: 1024px) {
    .segmeant h1 {
        font-size: 150%;
    }
    .segmeant:hover .info {
        height: 17vh;
    }
}
@media (max-width: 768px) {
    .segmeant_container {
        display: grid !important;
        grid-template-columns: repeat(1, 2fr);
        gap: 10px;
        height: auto;
    }
    .segmeant {
        max-width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .segmeant img {
        height: auto;
        object-fit: cover;
        width: 100%;
    }
    .info {
        position: static;
        height: auto;
        background-color: rgba(255, 255, 255);
        transition: none;
    }
    .segmeant:hover .info {
        bottom: 0;
        height: auto;
        background-color: #fff;
    }
    .infoCont .card:first-child img {
        display: none;
    }
    .popupprev, .popupnext {
        display: none !important;
    }
    .card img {
        max-width: 100%;
    }
    .prev,.next{
        display: none ;
    }
}