/* css/hero.css */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

/* Remove the ::before element that created the diagonal stripes */
.hero::before {
    display: none;
}

.hero .container {
    padding: 0;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start; /* Changed from flex-end to align content to the right in RTL */
    width: 100%;
}

.hero-content {
    max-width: 600px;
    margin-left: auto;
    text-align: right;
    direction: rtl;
    padding-right: 0;
}

.greeting {
    color: #2196F3; /* Colors.blue */
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    display: block;
    margin-bottom: 30px;
    font-weight: normal;
}

.hero-content h1 {
    color: #ffffff;
    font-size: clamp(2rem, 6.5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 2rem;
    color: #b3b3b3;
    margin-bottom: 1rem;
}

.hero-content .description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 500px;
    color: #ffffff;
}

.description .highlight {
    color: #2196F3; /* Colors.blue */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    height: auto;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: clamp(0.875rem, 2vw, 1rem);
    height: 3.5rem;
    min-width: auto;
    flex: 1 1 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: #324499;
    color: white;
    border: none;
}

.btn.primary:hover {
    background-color: #283780;
}

.btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid #324499;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #324499;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn.secondary:hover::before {
    width: 100%;
}

.btn.secondary:hover {
    background-color: transparent;
    color: white;
}

/* Add responsive design */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 50px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .btn {
        height: 3rem;
        padding: 0.6rem 1rem;
        width: 100%;
        flex: none;
    }

    .hero-content {
        margin-right: 1rem;
        padding: calc(2 * var(--defaultPadding));
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        gap: 0.5rem;
    }

    .btn {
        font-size: 0.9rem;
        height: 2.8rem;
        padding: 0.5rem 0.8rem;
    }
}

.typing-text {
    font-size: 2rem;
    color: #b3b3b3;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.typing-text::after {
    left: -12px;  /* Changed from right */
    right: auto;
}

/* Remove the ::after pseudo-element as we'll handle the cursor in JS */
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Add this new style for RTL support */
.container {
    padding: 0 20px;
    margin: 0 auto;
    direction: rtl;
}

.typing-container {
    font-size: 2rem;
    color: #b3b3b3;
    margin-bottom: 30px;
    text-align: right;
    direction: rtl;
    width: 100%;
}

.typing-container .prefix {
    white-space: nowrap;
    display: inline-block;
}

.typing-container .prefix,
.typing-text {
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    color: #9E9E9E; /* Colors.grey */
    font-weight: bold;
    margin: 0;
    padding: 0;
    display: inline;
}

.typing-text {
    display: inline-block;
    direction: rtl;
    text-align: right;
}

/* Remove any margin/padding that might affect alignment */
.typing-text, .prefix {
    margin: 0;
    padding: 0;
}