/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "IBM Plex Sans Hebrew", sans-serif;
}

:root {
    --primary-green: #2d5016;
    --secondary-green: #4a7c2c;
    --light-green: #7ea656;
    --accent-green: #9ec96f;
    --pale-green: #e8f5e1;
    --white: #ffffff;
    --text-dark: #2c3e2e;
    --text-light: #5a6d5a;
    --bg-primary: #ffffff;
    --bg-secondary: #e8f5e1;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-large: rgba(0, 0, 0, 0.12);
    --border-color: #d4e8c8;
    --scrollbar-track: transparent;
}

[data-theme="dark"] {
    --primary-green: #7ea656;
    --secondary-green: #9ec96f;
    --light-green: #b8d89f;
    --accent-green: #c5e4a8;
    --pale-green: #1a2815;
    --white: #121212;
    --text-dark: #e8f5e1;
    --text-light: #b8d89f;
    --bg-primary: #1a1a1a;
    --bg-secondary: #1a2815;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-large: rgba(0, 0, 0, 0.5);
    --border-color: #2d4020;
    --scrollbar-track: #1a2815;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--light-green);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--light-green) var(--scrollbar-track);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Mobile menu overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 900;
}

body.menu-open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.navbar {
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-width: 0;
    overflow: visible;
}

@media (min-width: 1201px) {
    .map-page .navbar {
        max-width: none;
    }
}

.navbar .mainLogo{
    display: flex;
    align-items: center;
}

.navbar .mainLogo dotlottie-wc {
    width: 3.5rem;
    height: 3.5rem;
    margin-inline-end: -10px;
}


/* User Greeting in Navbar */
.user-greeting-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting-nav {
    font-size: 1rem;
    color: var(--primary-green);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background-color: var(--pale-green);
    border-radius: 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

}

.user-greeting-nav #greetingTime {
    font-weight: 600;
}

.user-greeting-nav #greetingName {
    color: var(--secondary-green);
    font-weight: 700;
}

.logout-btn {
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: none;
}

.logout-btn img {
    width: 30px;
    height: 30px;
    /* filter: invert(100%) sepia(10%) grayscale(100%) brightness(150%); */
}

.logout-btn:hover {
    transform: translateY(-2px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: visible;
    min-width: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1003;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-wrap: nowrap;
    overflow: visible;
    min-width: 0;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--secondary-green);
    background-color: var(--pale-green);
}

.nav-menu a.active {
    color: var(--primary-green);
    font-weight: 700;
    background-color: var(--pale-green);
    box-shadow: inset 0 -3px 0 var(--secondary-green);
}

/* Dropdown Menu */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    white-space: nowrap;
}

.nav-menu .dropdown-toggle:hover {
    color: var(--secondary-green);
    background-color: var(--pale-green);
}

.nav-menu .dropdown-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-menu .dropdown.open .dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    background-color: var(--bg-primary);
    box-shadow: 0 4px 12px var(--shadow-medium);
    border-radius: 8px;
    min-width: 220px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0;
    border-bottom: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Keep desktop nav stable when translations are longer */
@media (max-width: 1140px) and (min-width: 969px) {
    .nav-wrapper {
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a,
    .nav-menu .dropdown-toggle {
        font-size: 0.95rem;
        padding: 0.45rem 0.7rem;
    }

    .user-greeting-nav {
        font-size: 0.9rem;
        padding: 0.4rem 0.7rem;
        max-width: min(42vw, 420px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Hebrew labels can be longer; allow wrapping before mobile breakpoint to avoid page overflow */
@media (max-width: 1200px) and (min-width: 969px) {
    [dir="rtl"] .nav-menu a,
    [dir="rtl"] .nav-menu .dropdown-toggle {
        white-space: normal;
        line-height: 1.2;
    }

    [dir="rtl"] .nav-menu {
        gap: 0.6rem;
    }
}

@media (max-width: 1100px) and (min-width: 969px) {
    .navbar {
        padding: 0.5rem 12px;
    }

    .nav-wrapper {
        gap: 0.6rem;
    }

    .navbar .mainLogo dotlottie-wc {
        width: 3rem;
        height: 3rem;
        margin-inline-end: -6px;
    }

    .lang-switcher {
        gap: 1px;
        margin-inline-end: 0;
    }

    .lang-btn {
        padding: 3px 5px;
        font-size: 0.72rem;
    }

    .dark-mode-toggle {
        width: 38px;
        height: 38px;
        padding: 6px;
        border-width: 1.5px;
        flex-shrink: 0;
    }
}

@media (max-width: 985px) and (min-width: 969px) {
    .logo {
        font-size: 1.55rem;
        letter-spacing: 0;
    }
}

.nav-menu .dropdown-menu a:hover {
    background-color: var(--pale-green);
    color: var(--secondary-green);
    padding-inline-start: 1.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1003;
    transition: transform 0.3s ease;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.dark-mode-toggle {
    background: none;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-green);
    transition: all 0.3s ease;
    padding: 8px;
}

.dark-mode-toggle:hover {
    background-color: var(--pale-green);
    transform: scale(1.05);
}

.dark-mode-toggle .sun-icon {
    display: block;
}

.dark-mode-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: block;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-inline-end: 4px;
}

.lang-btn {
    background: none;
    border: 1.5px solid transparent;
    border-radius: 6px;
    padding: 4px 7px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    letter-spacing: 0.02em;
}

.lang-btn:hover {
    color: var(--primary-green);
    border-color: var(--primary-green);
    background: var(--pale-green);
}

.lang-btn-active {
    color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    background: var(--pale-green) !important;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
    padding: 4rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--secondary-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-button {
    background-color: var(--secondary-green);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.cta-button:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.2);
}

.cta-button:active {
    transform: translateY(0);
}

/* Setup CTA Animation */
.cta-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(45, 80, 22, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(45, 80, 22, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(45, 80, 22, 0.2);
    }
}

.hero-image {
    overflow: hidden;
    border-radius: 20px;
}

.hero-image dotlottie-wc {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transform: scale(3);
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
    padding: 5rem 20px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.9;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-primary);
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    color: var(--secondary-green);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Solutions Section */
.solutions {
    padding: 5rem 20px;
    background-color: var(--bg-primary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.solution-card {
    background-color: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-large);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .card-image img {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin: 1.5rem 1.5rem 1rem;
    font-weight: 700;
}

.card-description {
    font-size: 1.05rem;
    color: var(--text-light);
    padding: 0 1.5rem 2rem;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
    padding: 5rem 20px;
}

.contact-form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1.05rem;
    background-color: var(--bg-primary);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
    font-family: inherit;
    width: 100%;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-green);
}

.textarea-wrapper {
    position: relative;
}

.char-counter {
    position: absolute;
    bottom: 10px;
    inset-inline-end: 15px;
    font-size: 0.85rem;
    color: #666;
    pointer-events: none;
}

.submit-button {
    background-color: var(--secondary-green);
    color: var(--white);
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .user-greeting-container {
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1rem;
        border-bottom: 2px solid var(--primary-green);
        order: -1;
    }
    
    .user-greeting-nav {
        width: 100%;
        text-align: center;
        font-size: 1.05rem;
        border-radius: 0;
        background-color: transparent;
    }
    
    .logout-btn {
        width: 100%;
        font-size: 1.05rem;
    }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        inset-inline-end: -100%;
        height: 100vh;
        width: 300px;
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px var(--shadow-large);
        transition: inset-inline-end 0.3s ease;
        z-index: 1003;
    }

    [dir="ltr"] .nav-wrapper {
        box-shadow: 5px 0 15px var(--shadow-large);
    }
    
    .nav-wrapper.active {
        inset-inline-end: 0;
        overflow: auto;
    }

    .nav-wrapper-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        justify-content: center;
    }

    .nav-wrapper-header p {
        font-size: 2rem;
        font-weight: 700;
        color: var(--primary-green);
        text-align: center;

    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(126, 166, 86, 0.2);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 0;
        border-bottom: none;
    }
    
    .nav-menu a.active {
        background-color: var(--pale-green);
        color: var(--primary-green);
        font-weight: 700;
        border-bottom: none;
        border-inline-end: 4px solid var(--secondary-green);
        padding-inline-end: calc(1.5rem - 4px);
    }
    
    .nav-menu a:hover {
        background-color: var(--pale-green);
    }
    
    /* Mobile Dropdown Styles */
    .nav-menu .dropdown {
        width: 100%;
    }
    
    .nav-menu .dropdown-toggle {
        display: flex;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 0;
        justify-content: space-between;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: var(--bg-primary);
        box-shadow: none;
        border-radius: 0;
        min-width: auto;
        width: 100%;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: auto;
    }
    
    .nav-menu .dropdown.open .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 0.85rem 2.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(126, 166, 86, 0.15);
        background-color: transparent;
    }
    
    .nav-menu .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-menu .dropdown-menu a:hover {
        padding-inline-end: 3rem;
        background-color: var(--pale-green);
    }
    
    .dark-mode-toggle {
        align-self: center;
        margin-top: 1rem;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }
    
    .hero-image {
        order: -1;
    }

    .stats,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1.05rem;
    }
    
    .about,
    .solutions,
    .contact {
        padding: 3rem 20px;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .user-greeting-nav {
        font-size: 0.95rem;
    }
    
    .logout-btn {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .nav-wrapper {
        width: 75%
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .about,
    .solutions,
    .contact {
        padding: 2rem 20px;
    }
}

/* Custom Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px var(--shadow-large);
    animation: slideUp 0.3s ease;
    z-index: 10001;
    text-align: center;
}

.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modal-icon-svg {
    color: var(--primary-green);
    stroke-width: 2;
}

.modal-icon.success .modal-icon-svg {
    color: #10b981;
}

.modal-icon.error .modal-icon-svg {
    color: #ef4444;
}

.modal-icon.warning .modal-icon-svg {
    color: #f59e0b;
}

.modal-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 2rem;
    white-space: pre-line;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-buttons.two-btn {
    flex-direction: row;
    justify-content: center;
}

.modal-close-btn {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: "IBM Plex Sans Hebrew", sans-serif;
}

.modal-buttons.two-btn .modal-close-btn {
    width: auto;
    flex: 1;
}

.modal-close-btn.danger {
    background-color: #ef4444;
}

.modal-close-btn.danger:hover {
    background-color: #dc2626;
}

.modal-close-btn:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.modal-close-btn:active {
    transform: translateY(0);
}

.modal-cancel-btn {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color, #ccc);
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-family: "IBM Plex Sans Hebrew", sans-serif;
}

.modal-cancel-btn:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.modal-cancel-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .modal-message {
        font-size: 1rem;
    }
    
    .modal-close-btn {
        padding: 0.75rem 2rem;
    }

    .modal-cancel-btn {
        padding: 0.75rem 2rem;
    }

    .modal-buttons.two-btn {
        gap: 0.5rem;
    }
}

/* Custom Form Validation Styles */
.form-group,
.contact-form input,
.contact-form textarea,
.contact-form .textarea-wrapper {
    position: relative;
}

.validation-message {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 6px;
    border-inline-start: 0 solid #ef4444;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease
}

[data-theme="dark"] .validation-message {
    background-color: rgba(239, 68, 68, 0.15);
}

.validation-message.show {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-inline-start-width: 3px;
    transform: scaleY(1);
    opacity: 1;
    max-height: 100px;
    transition: all 0.5s ease;
}

.validation-message svg {
    display: inline-block;
    vertical-align: middle;
    margin-inline-end: 0.5rem;
    color: #ef4444;
}

input.invalid,
textarea.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

input.valid,
textarea.valid {
    border-color: #10b981 !important;
}

@keyframes slideInValidation {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Form group layout for validation messages */
.form-group {
    margin-bottom: 1rem;
}

.contact-form > input,
.contact-form > .textarea-wrapper {
    margin-bottom: 0;
}

.contact-form .input-wrapper {
    margin-bottom: 0;
}

.contact-form .textarea-wrapper-container {
    margin-bottom: 0;
}

/* Adjust contact form spacing */
.contact-form {
    display: flex;
    flex-direction: column;
}

/* Validation icon in message */
.validation-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* ── Orientation Overlay ── */
#orientation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

#orientation-overlay.visible {
    display: flex;
}

.orientation-icon {
    height: 90px;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    animation: rotate-hint 2.4s ease-in-out infinite;
}

.orientation-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes rotate-hint {
    0%   { transform: rotate(0deg);   }
    30%  { transform: rotate(-90deg); }
    70%  { transform: rotate(-90deg); }
    100% { transform: rotate(0deg);   }
}

.orientation-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.orientation-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}