/* ltr-styles.css - Specific styles for LTR (English) version */

/* Override RTL-specific animations for LTR */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px); /* Keep same for LTR */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px); /* Keep same for LTR */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* LTR specific adjustments */
.lg\:text-left {
    text-align: left !important;
}

/* Fix text alignment in hero section */
.text-center.lg\:text-left {
    text-align: left !important;
}

/* Fix icon alignment */
.fas.fa-arrow-right.ml-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

/* Fix service cards and portfolio items */
.service-card, .portfolio-item {
    text-align: center;
}

/* Fix timeline items */
.relative.pl-6 {
    padding-left: 1.5rem !important;
    padding-right: 0 !important;
}

/* Fix progress bars for skills */
.skill-bar-bg {
    direction: ltr !important;
}

/* Fix contact form alignment */
.contact-form input, .contact-form textarea {
    text-align: left !important;
}

/* Fix mobile menu animation */
#mobile-menu aside {
    right: 0 !important;
    left: auto !important;
    transform: translateX(100%) !important; /* Fix initial position for LTR */
}

/* Fix mobile menu visibility */
#mobile-menu {
    z-index: 40 !important;
    /* No !important on display to allow JavaScript to control visibility */
}

/* Fix z-index stacking order to prevent content appearing above header */
body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Ensure proper z-index stacking */
main {
    z-index: 10 !important; /* Lower z-index than header */
    position: relative;
    margin-top: 60px !important; /* Add margin to prevent content from appearing under header */
}

/* Ensure header is always on top */
header {
    z-index: 50 !important;
    position: relative;
}

#mobile-menu.hidden {
    display: none; /* Removed !important to allow JavaScript to control visibility */
}

#mobile-menu:not(.hidden) {
    display: block; /* Removed !important to allow JavaScript to control visibility */
}

/* Fix mobile menu for LTR mode */
html[dir="ltr"] #mobile-menu aside {
    right: 0 !important;
    left: auto !important;
    transform: translateX(100%) !important;
}

html[dir="ltr"] #mobile-menu aside.translate-x-full {
    transform: translateX(100%) !important;
}

html[dir="ltr"] #mobile-menu aside:not(.translate-x-full) {
    transform: translateX(0) !important;
}

/* Fix timeline dots and lines */
.border-l-2.border-primary-100 {
    border-left: 2px solid var(--tw-border-opacity) !important;
    border-right: none !important;
}

/* Fix list items spacing */
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0 !important;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))) !important;
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)) !important;
}

/* Fix icon alignment in navigation */
.flex.items-center .fas {
    margin-right: 0.75rem !important;
    margin-left: 0 !important;
}

/* Fix portfolio grid for LTR */
.grid-cols-1, .grid-cols-2, .grid-cols-3 {
    direction: ltr !important;
}

/* Fix form inputs for LTR */
input, textarea, select {
    text-align: left !important;
    direction: ltr !important;
}

.lg\:mr-6 {
    margin-right: 1.5rem !important;
}

.lg\:ml-72 {
    margin-left: 18rem !important;
}

.mr-3 {
    margin-right: 0.75rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.lg\:mx-0 {
    margin-left: 0 !important;
}

/* Fix alignment for LTR text */
[dir="ltr"] .text-center.lg\:text-left {
    text-align: left !important;
}

/* Fix spacing for LTR layout */
.space-x-reverse {
    --tw-space-x-reverse: 0 !important;
}

.space-x-4 > * + * {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

/* Adjust sidebar positioning for LTR */
.left-0 {
    left: 0 !important;
}

.right-0 {
    right: 0 !important;
}

.right-4 {
    right: 1rem !important;
}

/* Fix transform for mobile menu in LTR */
.-translate-x-full {
    --tw-translate-x: -100% !important;
}

.translate-x-full {
    --tw-translate-x: 100% !important;
}

/* Timeline adjustments for LTR */
.border-l-2 {
    border-left-width: 2px !important;
    border-right-width: 0 !important;
}

.pl-6 {
    padding-left: 1.5rem !important;
    padding-right: 0 !important;
}

/* Timeline dots positioning for LTR */
.left-\[-13px\] {
    left: -13px !important;
    right: auto !important;
}

/* Fix any RTL specific transforms */
[dir="ltr"] .transform {
    --tw-translate-x: var(--tw-translate-x) !important;
    --tw-translate-y: var(--tw-translate-y) !important;
}

/* Fix mobile layout for LTR */
@media (max-width: 1023px) {
    [dir="ltr"] main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        padding-top: 60px !important; /* Ensure content starts below the header */
    }
    
    [dir="ltr"] .p-6, 
    [dir="ltr"] .md\:p-10, 
    [dir="ltr"] .lg\:p-16 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    [dir="ltr"] section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}