/* Additional Styles for Split Screen Layout Sections */

/* About Content Section */
.about-content {
    margin-top: 30px;
    line-height: 1.6;
    color: var(--text-dark);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #053F5C;
    opacity: 0.9;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: rgba(175, 219, 234, 0.2);
    border-radius: 5px;
    transition: all var(--transition-speed);
    border-right: 3px solid var(--primary-color);
}

.contact-item:hover {
    background-color: rgba(175, 219, 234, 0.4);
    transform: translateX(5px);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: #053F5C;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 15px;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(5, 63, 92, 0.2);
}

.contact-item span {
    font-size: 15px;
    color: #053F5C;
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    color: #053F5C;
    font-size: 24px;
    font-weight: 600;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

body[dir="rtl"] .section-title:after {
    left: auto;
    right: 0;
}

/* Companies Section */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.company-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.company-card:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.company-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #053F5C;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 180px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 20px;
    position: relative;
}

.project-logo {
    position: absolute;
    top: -25px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-content h3 {
    font-size: 18px;
    margin: 15px 0 10px;
    color: #053F5C;
}

.project-content p {
    font-size: 14px;
    color: #053F5C;
    opacity: 0.7;
    line-height: 1.5;
    margin: 0;
}

/* Contact Form Section */
.contact-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #053F5C;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: #ffffff;
    border: 1px solid rgba(175, 219, 234, 0.5);
    border-radius: 5px;
    color: var(--text-dark);
    font-size: 14px;
    transition: all var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-upload-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-speed);
}

.file-upload-btn:hover {
    background-color: #053F5C;
    color: white;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-name {
    margin-left: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-submit {
    background-color: #053F5C;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-block;
}

.btn-submit:hover {
    background-color: #042e44;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-message {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .company-card {
        height: 160px;
    }
    
    .company-logo {
        width: 80px;
        height: 80px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* RTL Adjustments */
body[dir="rtl"] .contact-item:hover {
    transform: translateX(-5px);
}

body[dir="rtl"] .project-logo {
    left: auto;
    right: 20px;
}

body[dir="rtl"] .file-name {
    margin-left: 0;
    margin-right: 10px;
}
