/* About Page Specific Styles */

/* Disable all animations and transitions for stability */
* {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Force all text to stay centered and stable */
html, body {
    direction: rtl !important;
}

/* Ensure all text elements stay centered */
h1, h2, h3, h4, h5, h6, p, span, div, a, li, button {
    text-align: center !important;
    direction: rtl !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Force footer to stay centered */
.footer * {
    text-align: center !important;
    direction: rtl !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Ensure text stability */
.about-section *,
.timeline-section *,
.services-section *,
.global-reach-section *,
.customers-section * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '▼';
    margin-left: 5px;
    font-size: 0.8em;
    transition: none;
}

.dropdown:hover .dropdown-toggle::after {
    transform: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #2d3748;
    text-decoration: none;
    transition: none;
    border-bottom: 1px solid #f7fafc;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #ffffff;
    color: #00AEEF;
    padding-left: 20px;
}

/* About Hero Section */
.about-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* About Section */
.about-section {
    padding: 0;
    background: white;
}

/* Keep all text centered regardless of language */
.about-section h1,
.about-section h2,
.about-section h3,
.about-section h4,
.about-section h5,
.about-section h6,
.about-section p,
.about-section .section-title,
.about-section .section-subtitle,
.about-section .about-description p {
    text-align: center !important;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.about-text {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #00AEEF 0%, #0099cc 100%);
    border-radius: 2px;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -100px;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    min-height: 800px;
    transition: none;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background: white;
}

/* Keep timeline text centered */
.timeline-section h2,
.timeline-section .section-title {
    text-align: center !important;
}

.timeline-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.timeline-image-item {
    width: 100%;
    height: 600px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    margin-bottom: 0;
    opacity: 1;
    transform: none;
    animation: none;
}

.timeline-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: none;
}

.timeline-image-item:hover img {
    transform: none;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: white;
}

/* Keep services text centered */
.services-section h2,
.services-section .section-title {
    text-align: center !important;
}

.services-image {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

/* Global Reach Section */
.global-reach-section {
    padding: 80px 0;
    background: white;
}

/* Keep global reach text centered */
.global-reach-section h2,
.global-reach-section .section-title {
    text-align: center !important;
}

.global-image {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.global-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

/* Customers Section */
.customers-section {
    padding: 80px 0;
    background: white;
}

/* Keep customers text centered */
.customers-section h2,
.customers-section .section-title {
    text-align: center !important;
}

.customers-image {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.customers-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #00AEEF;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: none;
}

.footer-section ul li a:hover {
    color: #00AEEF;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
    color: #cbd5e0;
}

/* Language Switch Button */
.lang-switch-btn {
    background: linear-gradient(135deg, #00AEEF, #0099cc);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: none;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.lang-switch-btn:hover {
    background: linear-gradient(135deg, #007fa3, #006b8f);
    transform: none;
    box-shadow: none;
}

.lang-switch-btn:active {
    transform: none;
}

/* All text directions fixed to RTL with center alignment */
.about-content {
    flex-direction: row-reverse;
}

.about-text {
    text-align: center;
}

.about-description p {
    text-align: center;
}

.section-title {
    text-align: center;
}

.section-title::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.timeline-gallery {
    direction: rtl;
}

.footer-links {
    text-align: center;
}

.footer-bottom-links {
    text-align: center;
}

/* Mobile responsive for language button */
@media (max-width: 768px) {
    .lang-switch-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-left: 5px;
    }
    
    /* Fixed margin for all languages */
    .lang-switch-btn {
        margin-left: 5px;
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .lang-switch-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        margin-left: 3px;
    }
    
    /* Fixed margin for all languages */
    .lang-switch-btn {
        margin-left: 3px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .lang-switch-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        margin-left: 2px;
    }
    
    /* Fixed margin for all languages */
    .lang-switch-btn {
        margin-left: 2px;
        margin-right: 0;
    }
}

/* Mobile Navigation Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    margin-right: auto;
    margin-left: 0;
    padding: 10px;
    border-radius: 8px;
    transition: none;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #00AEEF;
    margin: 3px 0;
    transition: none;
    border-radius: 2px;
    display: block;
}

.nav-toggle:hover {
    background: rgba(0, 174, 239, 0.1);
    transform: none;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: none;
    background: #007fa3;
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: none;
    background: #007fa3;
}

/* Hide hamburger menu for about page */
.nav-toggle {
    display: none !important;
}

/* Responsive Design */

@media (max-width: 1024px) {
    .about-hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .about-image {
        min-height: 500px;
        max-height: 600px;
    }
    
    .about-image img {
        min-height: 500px;
        max-height: 600px;
        object-fit: cover;
    }
}
/* Mobile Navigation */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0 !important;
    }
    
    .navbar {
        padding: 0.5rem 1rem !important;
    }
    
    .nav-container {
        gap: 0.5rem;
    }
    
    .nav-logo {
        flex-shrink: 0;
    }
    
    .nav-logo .logo-img {
        width: 80px !important;
        height: auto !important;
    }
    
    .nav-toggle {
        display: none !important;
    }
    
    .nav-menu {
        position: static !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
        z-index: auto !important;
        display: flex !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        color: #2d3748 !important;
        display: inline-block !important;
        width: auto !important;
        text-align: center !important;
        white-space: nowrap;
        border: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .nav-link:hover {
        color: #00AEEF !important;
        background: rgba(0, 174, 239, 0.1) !important;
        transform: none !important;
    }
    
    .contact-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem;
        background: #00AEEF !important;
        color: white !important;
        border-radius: 20px !important;
        margin: 0 !important;
        width: auto !important;
        box-shadow: none !important;
    }
    
    .contact-btn:hover {
        background: #007fa3 !important;
        transform: none !important;
    }
    
    .about-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 0;
    }
    
    .about-text {
        padding: 1.5rem;
        margin-top: 0;
    }
    
    .about-image {
        margin-top: -50px;
        min-height: 400px;
        max-height: 500px;
    }
    
    .about-image img {
        min-height: 400px;
        max-height: 500px;
        object-fit: cover;
    }
    
    .timeline-gallery {
        gap: 0;
        padding: 0;
    }
    
    .timeline-image-item {
        height: 400px;
    }
    

    
    .global-image {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .services-image {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .customers-image {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 1rem;
        margin-left: 1rem;
        display: block !important;
    }
    
    .dropdown-item {
        padding: 8px 0;
        border-bottom: none;
        color: #2d3748;
        display: block !important;
    }
    
    .dropdown-item:hover {
        background: transparent !important;
        color: #00AEEF !important;
        padding-left: 10px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 0.3rem 0 !important;
    }
    
    .navbar {
        padding: 0.3rem 0.8rem !important;
    }
    
    .nav-logo .logo-img {
        width: 70px !important;
        height: auto !important;
    }
    
    .nav-menu {
        gap: 0.2rem;
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }
    
    .contact-btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem;
        border-radius: 18px !important;
    }
    
    .about-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .about-text {
        padding: 1rem;
    }
    
    .about-image {
        margin-top: -30px;
        min-height: 300px;
        max-height: 400px;
    }
    
    .about-image img {
        min-height: 300px;
        max-height: 400px;
    }
    
    .timeline-image-item {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.2rem 0 !important;
    }
    
    .navbar {
        padding: 0.2rem 0.5rem !important;
    }
    
    .nav-logo .logo-img {
        width: 60px !important;
        height: auto !important;
    }
    
    .nav-menu {
        gap: 0.15rem;
    }
    
    .nav-link {
        font-size: 0.65rem;
        padding: 0.2rem 0.3rem;
    }
    
    .contact-btn {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem;
        border-radius: 15px !important;
    }
    
    /* Mobile Navigation for small screens */
    .nav-toggle {
        top: 15px;
        left: 15px;
        padding: 8px;
    }
    
    .nav-toggle .bar {
        width: 20px;
        height: 2px;
    }
    
    .nav-menu {
        width: 250px;
        padding: 1.5rem 1rem;
    }
    
    .about-hero {
        height: 50vh;
        min-height: 300px;
        padding: 80px 0 40px;
    }
    
    .about-image {
        margin-top: -30px;
        min-height: 300px;
        max-height: 400px;
    }
    
    .about-image img {
        min-height: 300px;
        max-height: 400px;
        object-fit: cover;
    }
    
    .about-text {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .about-description p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .timeline-section,
    .services-section,
    .global-reach-section,
    .customers-section {
        padding: 60px 0;
    }
    
    .services-image {
        padding: 0 0.5rem;
    }
    
    .global-image {
        padding: 0 0.5rem;
    }
    
    .customers-image {
        padding: 0 0.5rem;
    }
}
