/* FE Trading Page Specific Styles */

/* Language Switcher */
.lang-switch-btn {
    margin-right: 8px;
    margin-left: 8px;
    padding: 8px 18px;
    font-size: 1rem;
    border-radius: 999px;
    background: #00AEEF;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.08);
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    outline: none;
    z-index: 10;
}

.lang-switch-btn:hover, .lang-switch-btn:focus {
    background: #007fa3;
    color: #fff;
}

.lang-switch-btn[data-lang="ar"] .lang-text {
    font-family: 'Cairo', sans-serif;
}

/* 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;
    }
    
    .lang-switch-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        margin-right: 3px;
        margin-left: 3px;
        order: 1;
        display: flex !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;
    }
    
    .nav-link:hover {
        color: #00AEEF !important;
        background: rgba(0, 174, 239, 0.1) !important;
    }
    
    .contact-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem;
        background: #00AEEF !important;
        color: white !important;
        border-radius: 20px !important;
    }
    
    .contact-btn:hover {
        background: #007fa3 !important;
    }
}

@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;
    }
    
    .lang-switch-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
        margin-right: 2px;
        margin-left: 2px;
        display: flex !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;
    }
}

/* RTL Support */
[dir="rtl"] .lang-switch-btn {
    margin-right: 8px;
    margin-left: 8px;
}

@media (max-width: 768px) {
    [dir="rtl"] .lang-switch-btn {
        margin-right: 4px;
        margin-left: 4px;
    }
}

@media (max-width: 600px) {
    [dir="rtl"] .lang-switch-btn {
        margin-right: 2px;
        margin-left: 2px;
    }
}

[dir="rtl"] .overview-content {
    direction: rtl;
}

[dir="rtl"] .capabilities-content {
    direction: rtl;
}

[dir="rtl"] .why-choose-content {
    direction: rtl;
}

[dir="rtl"] .contact-content {
    direction: rtl;
}

[dir="rtl"] .services-grid {
    direction: rtl;
}

[dir="rtl"] .products-gallery {
    direction: rtl;
}

[dir="rtl"] .projects-grid {
    direction: rtl;
}

/* Hero Section */
.fe-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(3px);
    transform: scale(1.1);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #87CEEB;
    line-height: 1.6;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Company Overview Section */
.company-overview {
    padding: 6rem 0;
    background: #f8f9fa;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.overview-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.overview-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-text p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.overview-image {
    text-align: center;
}

.overview-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Products Gallery Section */
.products-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.products-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.product-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-item:hover .product-overlay {
    transform: translateY(0);
}

.product-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
}

/* Capabilities Section */
.capabilities-section {
    padding: 6rem 0;
    background: white;
}

.capabilities-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.capabilities-image {
    text-align: center;
}

.capabilities-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.capabilities-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    width: 100%;
}

.capability-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: left;
}

.capability-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.capability-icon {
    font-size: 3rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    min-width: 60px;
    text-align: center;
}

.capability-text h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.capability-text p {
    color: #666;
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 6rem 0;
    background: white;
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.why-choose-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.advantage-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.advantage-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.advantage-text p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.why-choose-image {
    text-align: center;
}

.why-choose-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-link:hover {
    text-decoration: none;
    color: inherit;
}

.contact-link:hover .contact-icon {
    background: #007fa3;
    transform: scale(1.1);
}

.contact-link:hover .contact-details h4 {
    color: #00AEEF;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #00AEEF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.contact-map {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.map-container {
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    transition: transform 0.3s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.map-info {
    text-align: center;
    padding: 1rem;
}

.map-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.map-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #00AEEF;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.2);
}

.map-link:hover {
    background: #007fa3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.3);
    color: white;
    text-decoration: none;
}

.map-link svg {
    transition: transform 0.3s ease;
}

.map-link:hover svg {
    transform: translateX(3px) translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .overview-content,
    .capabilities-content,
    .why-choose-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-feature {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .products-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        padding: 1.5rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@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;
    }
    
    .lang-switch-btn {
        padding: 4px 6px;
        font-size: 0.75rem;
        margin-right: 1px;
        margin-left: 1px;
        display: flex !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;
    }
    
    /* Content responsive adjustments */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-item,
    .capability-item,
    .advantage-item,
    .contact-item {
        padding: 1rem;
    }
    
    .feature-icon,
    .capability-icon,
    .advantage-icon {
        font-size: 2rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Map responsive adjustments */
    .contact-map {
        padding: 1rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .map-info h4 {
        font-size: 1.1rem;
    }
    
    .map-info p {
        font-size: 0.9rem;
    }
    
    .map-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 10001;
}

.close-modal:hover,
.close-modal:focus {
    color: white;
    text-decoration: none;
}

.modal-title {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Back to Top Button */
#backToTop:hover {
    background: #0098d1;
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.25);
}
