body,
html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    height: 100%;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.cover {
    /* background: url('https://static.igem.wiki/teams/4608/wiki/backgrounds/purple-background.png') center/cover no-repeat; */
    background-color: #EEEBE5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%234B74A0' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23253F6E'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    display: flex;
    align-items: center;
    padding: 7rem 2rem;
    justify-content: center;
}

.cover h1 {
    color: #253f6e;
    font-size: 9rem;
    margin: 0;
    z-index: 1;
    opacity: 0;
    transform: translateY(250px) scale(0.95);
    animation: fadeInUpZoom 1.2s ease-out 0.5s forwards;
}

.section-middle {
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.section-middle h1 {
    color: #253f6e;
    font-size: 8rem;
    margin: 0;
    z-index: 1;
    opacity: 1;
    margin-left: 9rem;
}

@keyframes fadeInUpZoom {
    to {
        opacity: 1;
        transform: translateY(0) scale(1.2);
    }
}

.dot-nav {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid #253f6e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #253f6e;
    transform: scale(1.2);
}

section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.circle-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #EEEBE5;
    padding: 1rem 8rem;
    padding-top: 6rem;
}

.header {
    margin-bottom: 30px;
    margin-left: 60px;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-left: 15px;
}

.circle {
    position: relative;
    width: 400px;
    height: 400px;
    /* margin: 0 auto; */
    border-radius: 50%;
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
    transition: all 0.3s ease;
}

.circle.active {
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.3);
}

.fix {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
}

.labels {
    position: absolute;
    cursor: pointer;
    transition: all 0.5s ease;
    z-index: 10;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.labels:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.labels.selected {
    transform: scale(1.2);
    background: rgba(0, 123, 255, 0.2);
}

.labels.pulsing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Position labels around the circle */
.label-1 {
    top: 10%;
    left: 40%;
}

.label-2 {
    top: 40%;
    right: 10%;
}

.label-3 {
    bottom: 10%;
    right: 40%;
}

.label-4 {
    bottom: 40%;
    left: 10%;
}

.rounding-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.rounding {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ccc;
    transition: all 0.5s ease;
}

.rounding.active {
    background-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.rounding-1 {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.rounding-2 {
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
}

.rounding-3 {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.rounding-4 {
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background-color: #f5f5f0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.label-text {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    margin-top: 5px;
}

.label-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin: 0 auto;
}

.section-container {
    flex: 1;
    display: flex;
    position: relative;
    padding: 2rem 3rem;
    padding-top: 4rem;
    /* align-items: center; */
    justify-content: space-between;
}

.content {
    width: 65%;
    justify-content: center;
    padding-top: 4rem;
    padding-left: 8rem;
    display: flex;
}

.stage-header {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    /* titlul centrat orizontal */
    gap: 1rem;
    min-height: 60px;
    /* înălțime fixă pentru a nu mișca layout-ul */
}

#stage-content {
    width: 100%;
}

#stage-title {
    flex: 0 0 auto;
    font-size: 50px;
    text-align: center;
}

#stage-description-wrapper {
    position: relative;
    overflow: auto;
    scrollbar-width: none;
    min-height: 500px;
    height: auto;
    display: flex;
    /* align-items: center; */
    justify-content: center;
}

#stage-description {
    position: absolute;
    width: 100%;
    text-align: justify;
    padding: 0px 0rem;
    font-size: 20px;
    padding-left: 1rem;
    padding-right: 3rem;
}

.slide-out-left {
    animation: slideOutLeft 0.4s forwards;
}

.slide-in-right {
    animation: slideInRight 0.4s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.4s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.4s forwards;
}

@keyframes slideOutLeft {
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-arrow {
    background: none;
    border: none;
    height: 120px;
    width: 64px;
    font-size: 60px;

}

.stage-dots {
    display: flex;
    justify-content: left;
    gap: 25px;
    margin-top: 4rem;
    padding-left: 11rem;
}

.stage-dots button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.stage-dots button.active {
    background: #333;
    /* dot activ */
    transform: scale(1.2);
}