@font-face {
    font-family: 'GveretLevin';
    src: url('../fonts/GveretLevinAlefAlefAlef-Regular.otf') format('opentype');
}

:root {
    --green: #03f1a2;
    --blue: #2563eb;
    --purple: #7c3aed;
    /* --orange: #ff9900; */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* פונט ברירת מחדל - טקסט לקריאה */
body {
    font-family:
        'DynaPuff',
        'Fredoka',
        sans-serif;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* פונט לכותרות וטקסטים גדולים */
h1,
h2,
h3,
.hero-text,
.header-p,
.step-circle .number,
.step-circle .text,
.feature-number,
.final-cta-small,
.final-cta-highlight,
.blog-cta-title,
.blog-related-title {
    font-family:
        'DynaPuff',
        'GveretLevin',
        sans-serif;
    letter-spacing: 2px;
}

/* שאלות בכרטיסים - נשארות בפונט הקריא */
.faq-card-front h3 {
    font-family:
        'DynaPuff',
        'Fredoka',
        sans-serif;
    letter-spacing: normal;
}

body {
    background: #0f172a;
    color: white;
    overflow-x: hidden;
}

.background {
    height: 100vh;
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--green));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.background::before {
    content: "";
    position: absolute;
    width: 95%;
    height: 95%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    z-index: 0;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
    height: 100vh;
    height: 100svh;
    padding: 40px 20px;
}

.hero-title-wrapper {
    height: 160px;
}

.hero-title {
    font-size: 160px;
    text-shadow: none;
    animation: slideDown 1s ease forwards, glowDelay 3s ease forwards;
    transition: all 2s ease;
}

.hero-title.scrolled {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    z-index: 1000;
}

@keyframes glowDelay {

    0%,
    50% {
        text-shadow: 0 0 0px var(--green);
    }

    100% {
        text-shadow:
            0 0 20px var(--green),
            0 0 30px var(--green),
            0 0 4px var(--green);
    }
}

.signature-line {
    width: 100%;
    max-width: 700px;
    display: block;
    margin: auto;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 6s ease forwards;
}

.signature-line path {
    stroke: var(--green);
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.header-p {
    font-size: 28px;
    animation: fadeIn 3s ease;
}

.hero-text {
    font-size: 44px;
    font-weight: 900;
    padding: 0 50px;
}

.effect_text .small_effect {
    text-shadow: 0 0 10px var(--green), 0 0 20px var(--green);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 100px 30px 150px;
    flex-wrap: wrap;
}

.step {
    position: relative;
}

.step-circle {
    width: 220px;
    height: 220px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50% 60% 50% 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: 0.4s;
    animation: float 4s ease-in-out infinite;
}

/* DARKER ON HOVER */
.step-circle:hover {
    transform: scale(1.08) rotate(2deg);
    background: rgba(0, 0, 0, 0.55);
}

/* GREEN BORDER ANIMATION */
.step-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 4px solid var(--green);
    /* מסכה עם מעבר רך: במצב רגיל רואים רק קשת עליונה שדועכת בהדרגה */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 57%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 57%);
    -webkit-mask-size: 100% 300%;
    mask-size: 100% 300%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 0 75%;
    mask-position: 0 75%;
    transition: -webkit-mask-position 0.7s ease, mask-position 0.7s ease;
}

/* במעבר - המסכה מחליקה למטה והמסגרת מתמלאת על כל העיגול */
.step-circle:hover::before {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
}

.text {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    transition: 0.4s;
}

.subtitle {
    position: absolute;
    bottom: 50px;
    padding: 0 10px;
    opacity: 0;
    transition: 0.4s;
    text-align: center;
    width: 80%;
}

.step-circle:hover .text {
    transform: translateY(-60%);
}

.step-circle:hover .subtitle {
    opacity: 1;
}

.number {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    border-radius: 60% 50% 60% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.contact-div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    font-size: 24px;
}

.btn {
    padding: 15px 40px;
    color: var(--green);
    border: none;
    box-shadow: 2px 4px 5px black, inset 2px 2px 5px rgba(0, 0, 0, 0.5);
    background-color: transparent;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    font-size: 20px;
}

.btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

section {
    padding: 70px 40px;
    max-width: 1000px;
    width: calc(100% - 40px);
    margin: 0 auto 80px;
}

.section-title {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 70px;
    padding: 20px 40px;
    text-align: center;
    font-size: 20px;
    line-height: 1.3;
    color: #0f172a;
    background-color: white;
    border-radius: 40vh 20vh 40vh 20vh;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.35),
        0 0 30px rgba(3, 241, 162, 0.45);
}

/* קו אור ירוק שדועך - מסגרת בצורת הכותרת עם מעבר צבע */
.section-title::before {
    content: "";
    position: absolute;
    inset: -6px -10px -8px;
    padding: 2px 3px;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--green) 0%, rgba(3, 241, 162, 0.6) 30%, transparent 65%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    filter: drop-shadow(0 0 6px rgba(3, 241, 162, 0.8));
    pointer-events: none;
}

section.services-section {
    max-width: 1100px;
}

.features-vertical {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin: auto;
    padding-top: 20px;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

/* ימין */
.feature-row.right {
    flex-direction: row;
}

/* שמאל */
.feature-row.left {
    flex-direction: row-reverse;
}

.feature-card {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100px);
    opacity: 0;
    transition: 1s;
    position: relative;
}

.feature-row.left .feature-card {
    transform: translateX(100px);
}

.feature-card.show,
.feature-row.left .feature-card.show {
    transform: translateX(0);
    opacity: 1;
}

.feature-card img {
    position: relative;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(3, 241, 162, 0.35)) drop-shadow(8px 16px 14px rgba(0, 0, 0, 0.6));
    animation: float 5s ease-in-out infinite;
    transition: filter 0.4s;
}

.feature-row.left .feature-card img {
    animation-delay: -2.5s;
}

.feature-card:hover img {
    filter: drop-shadow(0 0 40px rgba(3, 241, 162, 0.6)) drop-shadow(8px 16px 14px rgba(0, 0, 0, 0.6));
}

.feature-desc {
    max-width: 420px;
    font-size: 20px;
    line-height: 1.7;
}

.feature-number {
    display: block;
    font-size: 72px;
    font-weight: bold;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--green);
    margin-bottom: 10px;
}

.feature-title {
    font-size: 36px;
    color: var(--green);
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-desc p {
    margin-bottom: 25px;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    padding: 12px 28px;
    border-radius: 50vh;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 2px 4px 5px black, inset 2px 2px 5px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.more-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

.more-btn i {
    transition: transform 0.3s;
}

.more-btn:hover i {
    transform: translateX(-5px);
}

@media (prefers-reduced-motion: reduce) {
    .feature-card img {
        animation: none;
    }
}

.projects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.project {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
    border: 2px transparent solid;
    color: white;
    text-decoration: none;
}

.project:hover {
    background-color: transparent;
    border: 2px white solid;
    transform: scale(1.05);
}

.project img {
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

input,
textarea {
    padding: 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    box-sizing: border-box;
    min-width: 0;
    background: linear-gradient(90deg, transparent 0%, white 90%);
    resize: none;
    width: 100%;
}

.input-wrapper {
    width: 100%;
    position: relative;
}

.input-wrapper i {
    position: absolute;
    top: 3px;
    right: 3px;
    border-radius: 40% 60% 40% 60%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(90deg, var(--purple) 0%, var(--green) 100%);
}


.input-wrapper i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
}

.input-wrapper input,
.input-wrapper textarea {
    padding-right: 50px;
}

.form-button-wrapper {
    position: relative;
    text-align: center;
}

.form-button-wrapper button {
    width: 200px;
}

.form-button-wrapper i {
    font-size: 28px;
    position: absolute;
    bottom: -20px;
    right: calc(50% + 60px);
    color: black;
    animation: bounceHand 1s infinite ease-in-out;
}

footer {
    text-align: center;
    padding: 20px;
    background: #020617;
}

footer a {
    color: inherit;
    text-decoration: none;
}

.color-animation-text {
    background: linear-gradient(90deg,
            var(--green) 0%,
            var(--green) 50%,
            white 50%,
            white 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: revealGreen 4s ease forwards;
}

@keyframes revealGreen {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0% 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 750px) {
    .step-circle {
        width: 160px;
        height: 160px;
    }

    .number {
        width: 80px;
        height: 80px;
        top: -30px;
        right: -30px;
    }

}

@media (max-width: 900px) {
    .features-vertical {
        gap: 90px;
    }

    .feature-row.right,
    .feature-row.left {
        flex-direction: column;
        gap: 40px;
    }

    .feature-card {
        width: min(340px, 85vw);
        height: min(300px, 75vw);
    }

    .feature-desc {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 96px;
    }

    section {
        padding: 50px 20px;
        width: calc(100% - 24px);
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 24px;
        padding: 16px 30px;
        margin-bottom: 40px;
    }

    .feature-number {
        font-size: 56px;
    }

    .feature-title {
        font-size: 32px;
    }

    .feature-desc {
        font-size: 20px;
    }
}

/* אייקון צף לכותרות הסקשנים */
.section-title {
    position: relative;
}

.title-icon {
    position: absolute;
    top: -34px;
    right: -30px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid white;
    color: white;
    font-size: 24px;
    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transform: rotate(2deg);
    animation: iconFloat 6s ease-in-out infinite;
}

/* קשת אור ירוקה שדועכת סביב האייקון */
.title-icon::after {
    content: "";
    position: absolute;
    inset: -8px;
    padding: 2.5px 3px;
    border-radius: 50%;
    background: conic-gradient(from 290deg, transparent, var(--green) 15%, var(--green) 30%, transparent 55%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    filter: drop-shadow(0 0 4px rgba(3, 241, 162, 0.9));
    pointer-events: none;
}

@keyframes iconFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

@media (max-width: 600px) {
    .title-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
        top: -26px;
        right: -16px;
    }

    .title-icon::after {
        inset: -5px;
        padding: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .title-icon {
        animation: none;
    }
}

/* כפתור חזרה לראש העמוד */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--green);
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, box-shadow 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
}

.back-to-top:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .back-to-top {
        width: 46px;
        height: 46px;
        bottom: 18px;
        right: 18px;
    }
}

/* הודעות שגיאה בטפסים */
/* .field-invalid {
    box-shadow: 0 0 0 2px #ff4d6d, 0 0 14px rgba(255, 77, 109, 0.45);
    animation: fieldShake 0.4s ease;
} */

.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-right: 6px;
    font-size: 16px;
    color: #9c0f28;
    text-align: right;
    animation: errorIn 0.3s ease;
    letter-spacing: 1px;
}

.field-error::before {
    content: "!";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: white;
    background: #9c0f28;
}

@keyframes fieldShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }
}

@keyframes errorIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

@media (prefers-reduced-motion: reduce) {

    .field-invalid,
    .field-error {
        animation: none;
    }
}
/* בועות סביב סמן העכבר */
.cursor-bubble {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 60%);
    box-shadow: 0 0 6px currentColor;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.4);
    animation: cursorBubble 0.9s ease-out forwards;
}

@keyframes cursorBubble {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.4);
    }

    75% {
        opacity: 0.8;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1);
    }

    /* ההתפוצצות - הבועה מתנפחת ונעלמת */
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.8);
        border-width: 0.5px;
    }
}
