/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
    transition: all 0.3s ease;
}

body.en {
    font-family: 'Inter', sans-serif;
    direction: ltr;
    text-align: left;
}

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

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

body.en .language-toggle {
    right: auto;
    left: 20px;
}

.lang-btn {
    background: rgba(44, 90, 160, 0.9);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(44, 90, 160, 1);
    transform: translateY(-2px);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body.en .nav-container {
    flex-direction: row;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo i {
    font-size: 2rem;
    color: #fbbf24;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: #fbbf24;
    background: rgba(255,255,255,0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

body.en .hero-container {
    grid-template-columns: 1fr 1fr;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

body.en .hero-buttons {
    justify-content: flex-start;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #fbbf24;
    color: #1e3a8a;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 4rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.floating-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Tracking Section */
.tracking-section {
    padding: 80px 0;
    background: #f8fafc;
}

.tracking-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

.tracking-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.shipping-types {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.type-btn {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-btn.active,
.type-btn:hover {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.tracking-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.en .tracking-input {
    flex-direction: row;
}

.tracking-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.tracking-input input:focus {
    border-color: #2c5aa0;
}

.track-btn {
    padding: 15px 30px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.tracking-example {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

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

.service-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    background: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Shipping Maps Section */
.shipping-maps {
    padding: 80px 0;
    background: #f8fafc;
}

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

.map-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.map-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: white;
}

.map-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.map-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.major-route { background: #ff6b6b; }
.secondary-route { background: #4ecdc4; }
.port { background: #45b7d1; }
.air-route { background: #96ceb4; }
.land-route { background: #feca57; }
.hub { background: #ff9ff3; }

.maps-info {
    max-width: 600px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card h4 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 0.5rem 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-right: 1.5rem;
}

body.en .info-card li {
    padding-right: 0;
    padding-left: 1.5rem;
}

.info-card li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #10b981;
    font-weight: bold;
}

body.en .info-card li:before {
    right: auto;
    left: 0;
}

.info-card li:last-child {
    border-bottom: none;
}

/* Shipping Types Section */
.shipping-types-section {
    padding: 80px 0;
    background: white;
}

.shipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.shipping-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.shipping-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    background: white;
}

.shipping-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.shipping-icon i {
    font-size: 1.8rem;
    color: white;
}

.shipping-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.shipping-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.shipping-card ul {
    list-style: none;
}

.shipping-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.shipping-card li i {
    color: #10b981;
    font-size: 0.9rem;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

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

body.en .about-content {
    grid-template-columns: 1fr 1fr;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e3a8a;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.about-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

body.en .about-features {
    justify-content: flex-start;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a8a;
    font-weight: 600;
}

.feature i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f8fafc, #e5e7eb);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
}

.image-placeholder i {
    font-size: 4rem;
    color: #9ca3af;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1e3a8a;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #374151;
}

body.en .contact-item {
    flex-direction: row;
}

.contact-item i {
    color: #2c5aa0;
    font-size: 1.2rem;
    width: 20px;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: #2c5aa0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #1e3a8a;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2c5aa0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #374151;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: #fbbf24;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fbbf24;
}

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.footer-contact i {
    color: #fbbf24;
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #374151;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #fbbf24;
    color: #1f2937;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tracking-input {
        flex-direction: column;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .shipping-types {
        flex-direction: column;
        align-items: center;
    }
    
    .maps-grid {
        grid-template-columns: 1fr;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
    }
    
    body.en .language-toggle {
        right: auto;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-grid,
    .shipping-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .maps-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 250px;
    }
}


/* Update System Styles */
.update-notification {
    font-family: 'Cairo', sans-serif;
}

body.en .update-notification {
    font-family: 'Inter', sans-serif;
}

#adminPanel {
    font-size: 14px;
}

#adminPanel button {
    transition: all 0.3s ease;
}

#adminPanel button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Update indicator animation */
@keyframes updatePulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.updating {
    animation: updatePulse 1s infinite;
}

/* Admin panel responsive */
@media (max-width: 768px) {
    #adminPanel {
        left: 10px;
        bottom: 10px;
        min-width: 250px;
        font-size: 12px;
    }
    
    #adminPanel button {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Update history modal styles */
.update-history-modal {
    font-family: 'Inter', sans-serif;
}

.update-history-modal h2 {
    color: #1e3a8a;
    margin-bottom: 20px;
}

.update-history-entry {
    border-left: 3px solid #2c5aa0;
    padding-left: 15px;
    margin-bottom: 15px;
}

.update-history-entry.automatic {
    border-left-color: #10b981;
}

.update-history-entry.manual {
    border-left-color: #f59e0b;
}

.update-history-entry.error {
    border-left-color: #ef4444;
}

