/* ===== Base Styles ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3E7FBF;
    --accent-color: #3498db;
    --text-color: #333;
    --light-text: #fff;
    --light-bg: #f9f9f9;
    --dark-bg: #1a1a1a;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* RTL/LTR Support */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== Language Switcher ===== */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: 25px;
    box-shadow: var(--box-shadow);
}

[dir="rtl"] .language-switcher {
    left: auto;
    right: 20px;
}

.lang-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--light-bg);
}

.lang-btn.active {
    background: var(--secondary-color);
    color: var(--light-text);
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

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

.cta-button {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: var(--secondary-color);
    color: var(--light-text);
    border-color: var(--secondary-color);
}

.cta-button.primary:hover {
    background: transparent;
    border-color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

.cta-button.secondary:hover {
    background: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    color: var(--light-text);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== About Section ===== */
.about {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-text);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-item p {
    color: #666;
    font-size: 0.9rem;
}

/* ===== CEO Letter Section ===== */
.ceo-letter {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.ceo-letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.ceo-letter .container {
    position: relative;
    z-index: 1;
}

.ceo-letter-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: start;
    margin-top: 40px;
}

/* RTL Layout - Image on right, text on left */
[dir="rtl"] .ceo-letter-content {
    grid-template-columns: 1fr 380px;
}

/* LTR Layout - Image on left, text on right */
[dir="ltr"] .ceo-letter-content {
    grid-template-columns: 380px 1fr;
}

.ceo-text-wrapper {
    background: var(--light-text);
    padding: 60px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    border-top: 4px solid var(--secondary-color);
}

.ceo-text-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px 12px 0 0;
}

.ceo-quote {
    position: relative;
    margin-bottom: 40px;
    padding: 30px 0;
    text-align: center;
}

.quote-icon-start,
.quote-icon-end {
    position: absolute;
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.15;
    line-height: 1;
}

.quote-icon-start {
    top: 0;
    right: 0;
}

.quote-icon-end {
    bottom: 0;
    left: 0;
}

[dir="ltr"] .quote-icon-start {
    right: auto;
    left: 0;
}

[dir="ltr"] .quote-icon-end {
    left: auto;
    right: 0;
}

.quote-text {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.ceo-message {
    line-height: 2;
    margin-bottom: 40px;
}

.ceo-message p {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 0;
    text-align: justify;
    line-height: 2;
}

.ceo-signature-inline {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.signature-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary-color) 50%, transparent 100%);
    margin: 0 auto 20px;
}

.ceo-signature-inline .ceo-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.ceo-signature-inline .ceo-position {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ceo-image-wrapper {
    position: sticky;
    top: 120px;
}

.ceo-image-container {
    text-align: center;
    position: relative;
}

.ceo-image-frame {
    position: relative;
    background: var(--light-text);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    overflow: hidden;
}

.ceo-image-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shine 3s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.ceo-image {
    width: 100%;
    max-width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.ceo-image:hover {
    transform: scale(1.02);
}

.ceo-image-container .image-placeholder {
    width: 100%;
    max-width: 350px;
    height: 450px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
    margin: 0 auto;
}

.ceo-image-container .image-placeholder i {
    font-size: 5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    opacity: 0.5;
}

.ceo-contact-info {
    background: var(--light-text);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.ceo-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ceo-contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ceo-contact-item:first-child {
    padding-top: 0;
}

.ceo-contact-item i {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-top: 3px;
    min-width: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    word-break: break-word;
    unicode-bidi: plaintext;
}

.contact-value:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== Services Section ===== */
.services {
    background: var(--light-text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card > p {
    color: #666;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

[dir="rtl"] .service-features {
    text-align: right;
}

.service-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

[dir="rtl"] .service-features li {
    padding-left: 0;
    padding-right: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

[dir="rtl"] .service-features li::before {
    left: auto;
    right: 0;
}

/* ===== Products Section ===== */
.products {
    background: var(--light-bg);
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--light-text);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--light-text);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-btn {
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.product-btn:hover {
    background: var(--light-text);
    color: var(--secondary-color);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.products-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.products-loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--light-text);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-content p,
.info-content a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
    unicode-bidi:plaintext;
}

.info-content a:hover {
    color: var(--secondary-color);
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.contact-form {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#formMessages {
    margin-bottom: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.success-message i {
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #999;
    transition: var(--transition);
    pointer-events: none;
}

[dir="ltr"] .form-group label {
    right: auto;
    left: 15px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
    top: -10px;
    right: 10px;
    font-size: 0.85rem;
    background: var(--light-text);
    padding: 0 5px;
    color: var(--secondary-color);
}

[dir="ltr"] .form-group input:focus + label,
[dir="ltr"] .form-group input:not(:placeholder-shown) + label,
[dir="ltr"] .form-group textarea:focus + label,
[dir="ltr"] .form-group textarea:not(:placeholder-shown) + label,
[dir="ltr"] .form-group select:focus + label,
[dir="ltr"] .form-group select:not([value=""]) + label {
    right: auto;
    left: 10px;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--secondary-color);
}

.form-error {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: var(--light-text);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

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

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #aaa;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 1.2rem;
    unicode-bidi: plaintext;
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

[dir="ltr"] .footer-links a:hover,
[dir="ltr"] .footer-services a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #aaa;
    unicode-range: plaintext;
}

.footer-contact ul li i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-contact a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--box-shadow);
}

[dir="rtl"] .back-to-top {
    left: auto;
    right: 30px;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-5px);
}

/* ===== Error Message ===== */
.error-message {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    background: #ffe6e6;
    border-radius: var(--border-radius);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        left: 10px;
        padding: 3px;
    }
    
    [dir="rtl"] .language-switcher {
        left: auto;
        right: 10px;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--light-text);
        flex-direction: column;
        padding: 40px 20px;
        transition: var(--transition);
        box-shadow: var(--box-shadow);
    }
    
    [dir="rtl"] .nav-links {
        left: auto;
        right: -100%;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    [dir="rtl"] .nav-links.active {
        right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .ceo-letter-content {
        grid-template-columns: 1fr !important;
        gap: 50px;
    }
    
    .ceo-image-wrapper {
        position: relative;
        top: 0;
        order: -1;
    }
    
    [dir="ltr"] .ceo-image-wrapper {
        order: -1;
    }
    
    .ceo-image {
        max-width: 100%;
        height: auto;
        max-height: 500px;
    }
    
    .ceo-text-wrapper {
        padding: 40px 25px;
    }
    
    .quote-text {
        font-size: 1.6rem;
    }
    
    .ceo-message p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* AOS Animation */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}
