* {
    font-family: "Satoshi", sans-serif;
}

.container {
    background-color: #faf8f3;
}

.nav-item {
    color: #656565 !important;
}

.nav-item.active {
    color: #97C49C !important;
}

.hamburger-line {
    background-color: black;
}

.top-divider {
    padding-top: 100px;
    padding-bottom: 50px;
}

.top-line {
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, #9F9F9F 50%, transparent 100%);
    max-width: 1300px;
    margin: 0 auto;
}


/* About Story Section */
.about-story {
    margin-bottom: 15rem;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr auto;
    height: 550px;
}

.story-text {
    background-color: #01784B;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom-left-radius: 120px;
}

.story-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    line-height: 1.2;
}

.story-description {
    font-size: 1.3rem;
    color: white;
    line-height: 1.8;
    text-align: justify;
}

.story-media {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 120px;
    width: 508px;
}

.story-image,
.story-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.story-image:hover,
.story-video:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.story-video {
    cursor: pointer;
    background: #000;
}

/* Ensure video poster is visible */
.story-media {
    background: #000;
}

/* Video container */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Loading indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 40px;
    border-radius: 15px;
}

.video-loading p {
    color: white;
    font-size: 1rem;
    margin: 0;
}

/* Spinner animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* Values Section */
.values-section {
    padding: 80px 5%;
    background-color: #faf8f3;
    margin-bottom: 5rem;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.values-icons {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.value-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.value-icon:hover {
    transform: scale(1.15);
}

.value-icon.zoom-active {
    animation: zoomPulse 0.5s ease;
}

@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.value-icon img {
    width: 120px;
    height: auto;
    object-fit: contain;
}


.value-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.values-text {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.values-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
}

.values-description {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
}

.values-description strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Bottom Video Section */
.bottom-video-section {
    padding: 80px 5%;
    background-color: #faf8f3;
    margin-bottom: 5rem;
}

.bottom-video-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bottom-video-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 50px;
}

.bottom-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.bottom-video-wrapper .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.bottom-story-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Infrastructure Section */
.infrastructure-section {
    padding: 20px 5%;
    background-color: #faf8f3;
    margin-bottom: 5rem;
    position: relative;
}

.infrastructure-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.infrastructure-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 60px;
}

.infrastructure-desktop {
    display: block;
    width: 50%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.infrastructure-desktop::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('../images/elipse.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}

.infrastructure-svg {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.infrastructure-mobile {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 1160px) {
    header {
        background-color: #00000033;
    }

    .hamburger-line {
        background-color: white;
    }

    .top-divider {
        margin-bottom: 20px;
    }

    .top-line {
        background: none;
    }

    .story-video {

        width: 100%;
        height: 100%;
        bottom: 0;
    }
}

@media (max-width: 1300px) {
    .values-section {
        padding-top: 20vw;
    }
}

@media (max-width: 1100px) {
    .values-section {
        padding-top: 30vw;
    }
}

@media (max-width: 968px) {

    .about-story {
        margin-bottom: 5rem;
    }

    /* Dezactivează hover pe touch devices */
    .value-icon:hover {
        transform: none;
    }

    .story-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .story-text {
        padding: 50px 30px;
        border-top-right-radius: 120px;
        border-bottom-left-radius: 0;
        order: 1;
    }

    .story-title {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .story-description {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 5%;
        text-align: left;
    }

    .story-media {
        height: 500px;
        order: 2;
        width: 100%;
        border-top-right-radius: 0;
        border-bottom-left-radius: 120px;
    }

    .play-button svg {
        width: 60px;
        height: 60px;
    }

    .values-section {
        padding: 50px 15px;
        margin-bottom: 3rem;
    }

    .values-container {
        grid-template-columns: 1fr;
        gap: 50px;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .values-icons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3vw;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        order: 2;
        padding: 0 0 60px 0;
        width: 100%;
    }

    .values-text {
        display: contents;
    }

    .values-heading {
        order: 1;
        margin-bottom: 30px;
    }

    .values-description {
        order: 3;
    }

    .value-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        flex: 1 1 30%;
        max-width: 32%;
    }

    .value-icon {
        width: clamp(70px, 20vw, 100px);
        height: clamp(70px, 20vw, 100px);
    }

    .value-icon img {
        width: clamp(60px, 18vw, 100px);
        height: auto;
    }

    .value-title {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .values-text {
        padding-left: 0;
        text-align: center;
    }

    .values-heading {
        font-size: 2.1rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .values-description {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
        padding: 20px;
    }

    /* Infrastructure Mobile */
    .infrastructure-section {
        padding: 5px 20px;
        margin-bottom: 3rem;
    }

    .infrastructure-title {
        font-size: 2.1rem;
        margin-bottom: 5rem;
    }

    .infrastructure-desktop {
        display: none;
    }

    .infrastructure-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .infra-item {
        display: flex;
        align-items: center;
        gap: 20px;
        background: white;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .infra-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    .infra-icon {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #DBFAE0 0%, #B8F0C4 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .infra-icon svg {
        width: 30px;
        height: 30px;
    }

    .infra-text {
        font-size: 1.1rem;
        color: #333;
        font-weight: 500;
        margin: 0;
        line-height: 1.4;
    }

    .infrastructure-svg {
        width: 80%;
        margin: 0 auto;
    }

    /* Bottom Video Mobile */
    .bottom-video-section {
        padding: 50px 20px;
        margin-bottom: 3rem;
    }

    .bottom-video-title {
        font-size: 2.1rem;
        margin-bottom: 30px;
    }

    .bottom-video-wrapper {
        border-radius: 15px;
    }
}


.services-accordion-about {
    display: inline-block;
    position: relative;
}

.hero-btn {
    background: transparent;
    color: #00a651;
    padding: 1.5rem 1rem;
    border: 3px solid #00a651;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    gap: 3rem;
    transition: all 0.3s;
    position: relative;
    min-width: 300px;
}

.hero-btn span {
    display: block;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn .toggle-icon {
    width: 60px;
    height: 60px;
    background: #00a651;
    border-radius: 50%;
    padding: 18px;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

.hero-btn.active {
    background: #7DCEA0;
    border-color: #7DCEA0;
    color: white;
    border-radius: 30px 30px 0 0;
}

.hero-btn.active .toggle-icon {
    background: white;
    color: #7DCEA0;
    transform: translateY(-50%) rotate(45deg);
}

.hero-btn:hover {
    background: #00a651;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.3);
}

.hero-btn:hover .toggle-icon {
    background: white;
    color: #00a651;
}

.services-dropdown-about {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    background: white;
    border: 3px solid #7DCEA0;
    border-top: none;
    border-radius: 0 0 30px 30px;
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
}

.services-dropdown-about.active {
    max-height: 300px;
    opacity: 1;
    padding: 1.5rem 2rem;
}

.services-list-about {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list-about li {
    margin-bottom: 0.5rem;
}

.services-list-about li:last-child {
    margin-bottom: 0;
}

.service-link-about {
    color: #333;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-link-about:hover {
    background: #E8F5E9;
    color: #00a651;
    padding-left: 1.2rem;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for about page */
.story-title.animate-on-scroll.visible {
    transition-delay: 0.1s;
}

.story-description.animate-on-scroll.visible {
    transition-delay: 0.3s;
}

.story-media.animate-on-scroll.visible {
    transition-delay: 0.2s;
}

.values-heading.animate-on-scroll.visible {
    transition-delay: 0.1s;
}

.values-description.animate-on-scroll.visible {
    transition-delay: 0.3s;
}

.value-item.animate-on-scroll.visible:nth-child(1) {
    transition-delay: 0.2s;
}

.value-item.animate-on-scroll.visible:nth-child(2) {
    transition-delay: 0.4s;
}

.value-item.animate-on-scroll.visible:nth-child(3) {
    transition-delay: 0.6s;
}

.infrastructure-title.animate-on-scroll.visible {
    transition-delay: 0.1s;
}

.infrastructure-svg.animate-on-scroll.visible {
    transition-delay: 0.3s;
}

.hero-btn.animate-on-scroll.visible {
    transition-delay: 0.4s;
}

/* Reviews section push-down animation */
#reviewsSection {
    transition: margin-top 0.4s ease-out;
}

#servicesContainerAbout.dropdown-open ~ div#reviewsSection {
    margin-top: 200px;
}

@media (max-width: 768px) {
    #servicesContainerAbout.dropdown-open ~ div#reviewsSection {
        margin-top: 180px;
    }
}
