/* General Styles */
:root {
    --primary-color: #69a243;
    --secondary-color: #80ba45;
    --text-color: #333;
    --background-color: #fff;
    --card-background: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--background-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 1rem;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-active {
    transform: translateX(0%);
}

.burger .line1,
.burger .line2,
.burger .line3 {
    width: 25px;
    height: 3px;
    background-color: var(--background-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--background-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    padding-top: 80px;
}

section {
    scroll-margin-top: 80px;
    padding-top: 20px;
}

/* Hero Section */
#maayanOmer {
    position: absolute;
    left: 50px;
    top: 160px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#maayanOmer:hover {
    transform: scale(1.1);
}

#maayanOmer img {
    width: 100px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
}

#maayanOmer p {
    margin-top: 0.5rem;
    font-weight: bold;
}

.hero {
    background-color: var(--secondary-color);
    color: var(--background-color);
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.logo-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #578636;
}

.version {
    font-size: 1rem;
}

/* download  */
.download-section {
    margin-top: 2rem;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
}

.download-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.download-table .h4 {
    font-weight: bold;
    text-align: center;
}

.toremez-td-img {
    width: 50px;
    height: auto;
}

.btn-success {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: var(--secondary-color);
}

/* Card Styles */
.card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2,
.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card ul {
    padding-left: 1.5rem;
}

/* Features Section */
.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.features-item {
    flex-basis: calc(33.33% - 20px);
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.features-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    position: sticky;
    top: -20px;
    background-color: #f9f9f9;
    padding: 10px 0;
    z-index: 1;
}

.features-item ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.features-item li {
    margin-bottom: 10px;
    text-align: right;
}

.features-item ul ul {
    padding-right: 20px;
}

.features-item ul ul li {
    margin-bottom: 5px;
}

/* Images Section */
.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image-box {
    position: relative;
    margin: 20px 0;
    transition: none;
    transform: none;
    margin: 10px;
    text-align: center;
    cursor: zoom-in;
}

.image-box:hover {
    transform: none;
    box-shadow: none;
}

.image-box img {
    width: 100%;
    height: auto;
    transition: none;
    transform: none;
}

.image-box img:hover {
    transform: none;
}

.image-box p {
    margin: 0;
    padding: 0;
}

.image-box.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-card {
    flex-basis: calc(50% - 10px);
    max-width: 300px;
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.9em;
}

/* Feedback Section */
.feedback-form {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feedback-form iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #578636;
}

/* Modal */
body.modal-open {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #maayanOmer {
        position: static;
        margin-top: 1rem;
        cursor: pointer;
        transition: transform 0.3s ease;
        text-align: center;
        margin-bottom: 1rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        height: calc(100vh - 80px);
        width: 100%;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: right 0.5s ease;
        z-index: 1000;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        margin: 1rem 0;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .features-item {
        flex-basis: 100%;
    }

    .contact-card {
        flex-basis: 100%;
    }
}

@media (max-width: 599px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 100px;
        height: calc(100vh - 80px);
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        transition: right 0.5s ease;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
        opacity: 1;
    }

    .burger {
        display: block;
    }

    .image-box {
        flex: 0 1 calc(100% - 20px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cta-container {
        flex-direction: column;
    }
}

@media (min-width: 600px) and (max-width: 799px) {
    .image-box {
        flex: 0 1 calc(50% - 20px);
    }
}

@media (min-width: 800px) {
    .image-box {
        flex: 0 1 calc(25% - 20px);
    }
}

/* Animation */
.reveal {
    position: relative;
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
}

.active.fade-bottom {
    animation: fade-bottom 0.5s ease-in;
}

.active.fade-left {
    animation: fade-left 0.5s ease-in;
}

.active.fade-right {
    animation: fade-right 0.5s ease-in;
}

@keyframes fade-bottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-left {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-right {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

#toremez-online .btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 30px;
    padding: 10px 70px;
}

#toremez-online .btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-control {
    display: flex;
    border: 1px solid #ddd;
    background: #fff;
    height: 80vh;
    min-height: 400px;
    max-height: 800px;
}

.tab-navigation {
    width: 200px;
    border-right: 1px solid #ddd;
    background: #61a916;
}

.tab-button {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: right;
    border: none;
    background: none;
    cursor: pointer;
    color: white;
}

.tab-button:hover {
    background: #a5cb7c;
}

.tab-button.active {
    background: #81ba45;
    color: white;
}

.tab-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Nested tab styles */
.nested-tab-control {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    height: 100%;
}

.nested-tab-navigation {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    background: white;
}

.nested-tab-button {
    padding: 12px 20px;
    text-align: center;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9em;
    color: gray;
    border-bottom: 2px solid transparent;
    font-weight: bold;
    opacity: 0.5;
    transition: opacity 0.3s ease, border-bottom-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    position: relative;
}

.nested-tab-button:hover {
    color: black;
    border-bottom: 2px solid black;
    opacity: 0.8;
}

.nested-tab-button.active {
    border-bottom: 3px solid #81ba45;
    color: #81ba45;
    opacity: 1;
}

.nested-tab-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.nested-tab-pane {
    display: none;
}

.nested-tab-pane.active {
    display: block;
}

/* Image styles inside nested tabs */
.nested-tab-pane .image-box {
    max-width: min(800px, 90%);
    margin: 0 auto;
}

.nested-tab-pane .image-box img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
}

.nested-tab-pane .image-box h5 {
    margin-top: 10px;
    font-size: 1em;
}

.nested-tab-pane .image-box p {
    font-size: 0.9em;
    color: #666;
}

/* Media Queries */
@media (max-width: 768px) {
    .tab-control {
        height: 90vh;
        flex-direction: column;
    }

    .tab-navigation {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .nested-tab-pane .image-box img {
        max-height: 50vh;
    }
}

/* Features specific tab styles */
.features-tabs {
    margin-top: 20px;
}

.features-tabs .tab-navigation {
    width: 150px;
    background: #f5f5f5;
}

.features-tabs .tab-button {
    color: #333;
    border-bottom: 1px solid #ddd;
}

.features-tabs .tab-button:hover {
    background: #e9e9e9;
}

.features-tabs .tab-button.active {
    background: #fff;
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.features-tabs .features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-tabs .tab-navigation {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .features-tabs .tab-button {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
        border-bottom: 2px solid transparent;
    }

    .features-tabs .tab-button.active {
        border-right: none;
        border-bottom: 2px solid var(--primary-color);
    }
}