

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatUpDownLeft {
    0% {
        transform: translate(0, 100px);
        opacity: 0;
    }
    20% {
        opacity: 0.1;
    }
    50% {
        transform: translate(-20px, -100px);
        opacity: 0.1;
    }
    80% {
        opacity: 0;
    }
    100% {
        transform: translate(-40px, -200px);
        opacity: 0;
    }
}

@keyframes floatUpDownRight {
    0% {
        transform: translate(0, 100px);
        opacity: 0;
    }
    20% {
        opacity: 0.1;
    }
    50% {
        transform: translate(40px, -100px);
        opacity: 0.1;
    }
    80% {
        opacity: 0;
    }
    100% {
        transform: translate(60px, -200px);
        opacity: 0;
    }
}



.hero {
    display: flex;
    align-items: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}
.container {
    max-width: 1142px;
    margin: 0 auto;
    padding: 0 20px;
}

.floating-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    color: #1D7AC0;
    margin-bottom: 20px;
}

.hero-content p {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #333;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #1D7AC0;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
}

.hero-image {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.floating-dsp {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: rgba(0, 162, 255, 0.377);
    pointer-events: none;
    transition: transform 0.5s ease-out;
    user-select: none;
}

.cta-button:hover {
    background: #34C7F5;
}

/*.bid-flow {*/
/*    padding: 100px 0;*/
/*    background: #f8f9fa;*/
/*    min-height: 800px;*/
/*    position: relative;*/
/*}*/

.section-title {
    text-align: center;
    font-size: 36px;
    color: #1D7AC0;
    margin-bottom: 20px;
}


/* Bid Section */
.bid-flow {
    padding: 100px 0;
    background: #f8f9fa;
    min-height: 800px; /* קובע גובה מינימלי קבוע */
    position: relative;
}

.bid-flow-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Stages Styling */
.stage {
    display: none;
    opacity: 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.stage.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    opacity: 1;
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Stage Visual */
.stage-visual {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    min-height: auto;
}

/* Advertisers Styling */
.advertisers-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advertiser {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dsp-platform {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dsp-platform img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Advertiser Icons & Bids */
.advertiser-icon {
    font-size: 30px;
    background: #f0f7ff;
    padding: 10px;
    border-radius: 50%;
}

.bid-amount {
    font-weight: bold;
    color: #1D7AC0;
}

.bid-amount.highlight {
    color: #34C7F5;
    font-size: 1.2em;
}

.bid-arrow {
    font-size: 24px;
    color: #1D7AC0;
    animation: pulse 1.5s infinite;
}

/* Processing Styling */
.processing-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.process-step {
    text-align: center;
}

.process-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Delivery Styling */
.delivery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.user-devices {
    display: flex;
    gap: 20px;
}

.device {
    font-size: 30px;
    animation: float 3s infinite ease-in-out;
}

/* Stage Info Styling */
.stage-info {
    padding: 20px;
}

.stage-info h3 {
    color: #1D7AC0;
    margin-bottom: 15px;
}

.stage-features {
    margin-top: 20px;
    list-style: none;
}

.stage-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.stage-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34C7F5;
}

/* Navigation Styling */
.stage-navigation {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    z-index: 10;
}

.nav-btn {
    padding: 12px 25px;
    border: 2px solid #1D7AC0;
    border-radius: 8px;
    background: transparent;
    color: #1D7AC0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #1D7AC0;
    color: white;
}

.nav-btn.active {
    background: #1D7AC0;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(29, 122, 192, 0.2);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .bid-flow {
        min-height: 1000px; /* גובה גדול יותר למובייל */
    }

    .stage.active {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stage-visual {
        padding: 10px;
    }

    .dsp-platform img {
        max-width: 100%;
    }

    .advertiser {
        font-size: 0.9em;
    }
}

/*values section */
.values {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: 2.5rem;
    color: #1D7AC0;
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.value-item h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-item {
        padding: 1.5rem;
    }

    .value-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .value-item h3 {
        font-size: 1.25rem;
    }
}

/* RESPONSIVE STYLES FOR HERO SECTION ONLY */

/* Large screens (desktops, 1200px and down) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-content h1 {
        font-size: 42px;
    }
}

/* Medium screens (tablets, 992px and down) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    /* Hero section responsive */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-image {
        min-height: 300px;
    }
}

/* Small screens (tablets and large phones, 768px and down) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    /* Hero section responsive */
    .hero {
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .cta-button {
        padding: 12px 24px;
    }
}

/* Extra small screens (phones, 576px and down) */
@media (max-width: 576px) {
    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Hero section responsive */
    .hero {
        padding: 70px 15px 15px 15px;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-image {
        min-height: 250px;
    }

    .hero-image img {
        width: 350px;
    }
}

/* Tiny screens (small phones, 400px and down) */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}
